Build your own local-first agent control plane
Status: Ready
Article ID: 120
Truth label: Design
Audience: Architect and technical lead
Reader outcome: Turn the architecture lessons into a staged implementation plan.
Related articles: 001, 004, 067
Target week: 48
Last verified: 2026-09-13
Technical reviewer: Codex architecture audit
Editorial reviewer: Codex editorial audit
Stage 1: define authority
Separate the operator interface, reasoning service, control plane, worker service, execution child, provider, and evidence stores. Write the task state machine, trust zones, assets, principals, and non-goals before adding agents.
Stage 2: make state durable
Use one transactional control-plane writer per native data root. Implement atomic claims, leases, fences, idempotent terminal writes, and a worker-local outbox. Test crash, retry, duplicate, stale, and second-writer cases.
Stage 3: bound execution
Register projects under narrow roots. Give workers distinct identity and each run narrow attempt authority. Resolve engine permission under a worker ceiling. Add OS isolation and a minimal child environment before hostile repositories.
Stage 4: make delivery reviewable
Carry task identity, logs, diff or artifact evidence, source revision, checks, cost evidence, and trace provenance. Build scope, implementation, QA, rework, machine hold, audit, checkpoint, and grading as explicit transitions.
Stage 5: add memory safely
Keep current controls direct and historical retrieval bounded and untrusted. Use a canonical exact store plus rebuildable semantic projection. Preserve provenance, remove stale records, enforce one scope gateway, and keep knowledge promotion behind operator review.
Stage 6: operate and learn
Add health, heartbeat, external alerts, resource bounds, protected logs, complete encrypted backup, isolated restore drills, and incident response. Evaluate retrieval and outcomes without turning rank or correlation into authority.
Current limits
This is a staged design guide, not an implemented security guarantee. Public hosting, hostile execution, confidential multi-client isolation, distributed writers, and automatic knowledge promotion require additional design and proof.
Next lesson
Return to the Academy catalog and choose the next path for your role.
Derivative map
- Weekly package: WEEK-48
- Long video: VIDEO-W48-LONG
- Shorts: SHORT-W48-PROBLEM, SHORT-W48-MECHANISM, SHORT-W48-WARNING
- Email: EMAIL-W48
- LinkedIn: LI-W48-A, LI-W48-B
- X: X-W48-A, X-W48-B
- Visual: VISUAL-W48
Review record
- Authority, durability, execution, delivery, memory, and operations stages included.
- Current, Limited, Historical, and Design boundaries from the series are preserved.
- Security, reliability, evidence, and human-gate tests are staged before scale.
- Public, hostile, multi-client, distributed, and automatic-promotion claims remain excluded.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13