Writing archive · Page 4 of 9
More tutorials.
Same standard.
More entries from a 110-piece collection of tested, source-checked engineering notes.
- Evidence
- Working code, observable results, and primary sources.
- Judgment
- Tradeoffs, failure modes, and when not to use the technique.
- Freshness
- Every tutorial shows when it was reviewed—and a tested date only when its example was run.
Page 4 of 9
More from the archive.
Showing 37–48 of 107 archive entries.
- Read the tutorial
AI agent tools · Contract testing · JSON Schema
Contract Testing for AI Agent Tools
Test agent tool schemas, transport behavior, authorization, retries, and compatibility with valid, invalid, and adversarial requests.
- Read the tutorial
Multi-agent systems · FinOps · AI observability
Cost Attribution for Multi-Agent Systems
A practical ledger for attributing model, tool, compute, retry, and shared costs to successful multi-agent outcomes.
- Read the tutorial
AI agents · OAuth · Authorization
Delegated Authorization for AI Agents Acting on Behalf of Users
Preserve user intent and actor identity across agent-to-service and agent-to-agent calls with narrow audiences, scopes, consent, and delegation chains.
- Read the tutorial
WASI · AI agents · Sandboxing
Design an Async Sandboxed Agent Tool Runner with WASI 0.3
Use ratified WASI 0.3 async components with pinned runtime support, explicit capabilities, deadlines, backpressure, and safe cancellation.
- Read the tutorial
AI agents · Human in the loop · Security
Design Approval UX for High-Risk Agent Actions
Turn human approval into a real security control by previewing exact effects, binding approval to immutable action data, and preventing replay or substitution.
- Read the tutorial
Design engineering · Playwright · Testing
Design-to-Code with Visual Regression That Developers Can Trust
Turn design states into deterministic Playwright checks that combine semantic assertions, visual baselines, accessibility, and human-reviewed diffs.
- Read the tutorial
AI agents · Deterministic replay · Agent debugging
Deterministic Replay for Nondeterministic AI Agents
Record model, tool, time, randomness, configuration, and state dependencies so agent failures can be replayed without repeating real-world effects.
- Read the tutorial
LLM inference · Disaggregated serving · Long context
Disaggregate Prefill and Decode for Long-Context Agents
Separate prefill and decoding only when independent scaling and latency isolation beat KV-transfer cost, duplicated weights, and operational complexity.
- Read the tutorial
Coding agents · Evaluation · AGENTS.md
Do Repository Instruction Files Help Coding Agents? A Benchmark Protocol
Measure absent, concise human-written, generated, and noisy repository instructions with paired tasks, fixed agent settings, and no invented results.
- Read the tutorial
Durable execution · AI agents · Workflow orchestration
Durable AI Agents: Retries, Idempotency, Human Approval, and Resume
Design long-running agent workflows that survive crashes, retry only safe work, bind approvals to exact actions, and reconcile ambiguous side effects.
- Read the tutorial
AI infrastructure · Benchmarking · Backend architecture
Edge vs. Node vs. GPU Backends for AI Applications
Choose AI backend placement with a reproducible latency, quality, capacity, cost, security, and failure benchmark.
- Read the tutorial
Coding agents · Security · Policy as code
Enforce Coding-Agent Policy with Lifecycle Hooks
Design deterministic before-and-after hooks that deny unsafe agent actions, require approval, verify patches, and create an auditable policy trail.