Chapter 04 • Direction & Compounding
Ambition, Self-Improvement & Human Steering
A reliable loop that only drains a static human-written checklist quickly runs dry—and one that asks a human to approve every tiny subtask turns you right back into a babysitter. Unify direction, complicated requirements, and human oversight into one clean pipeline: Intent → Just-in-Time Decomposition → Admission Policy → Verified Execution.
One Unified Steering Pipeline
Humans are best at setting direction, approving broad objectives, defining taste, and judging high-risk boundaries. They are worst at acting as a synchronous ticket-splitter every fifteen minutes.
Instead of inventing separate ad-hoc workflows for roadmaps, complicated specs, escalated failures, and tech-debt cleanup, route every kind of intent through the same four-stage pipeline:
Handling Complicated Requirements with Just-in-Time Decomposition
Big, complicated requirements break coding agents when handed over as one giant goal—and break teams when expanded upfront into twenty speculative tickets that go stale after the first day of real implementation.
Solve both problems by approving the objective once and decomposing it just-in-time. Capture broad direction in an Ambition Document or an approved objective spec (outcomes, architectural guardrails, non-goals, and what “good” looks like). When ready goals run low, the orchestrator invokes a read-only decomposer (a planner session that cannot edit source code directly) to inspect the live repository, recent landed commits, and open escalations, and propose only the next 1–2 small vertical slices.
Slice 1 Informs Slice 2
Ship one end-to-end usable slice first, land it, and let the decomposer read what Slice 1 actually discovered—real interfaces, edge cases, and test results—before proposing Slice 2.
Autonomous Within an Objective
Once a human approves the overarching objective, the engine decomposes and ships bounded vertical slices autonomously without interrupting a human on every step.
Simplification & Doc Passes
Between feature slices, the same read-only decomposer proposes targeted refactoring, deletion, or documentation updates so complexity does not quietly compound.
Splitting Escalated Goals
When a goal stalls or fails repeatedly because it was too large or ambiguous, the decomposer reads the failure evidence and splits it into smaller, verifiable sub-goals instead of retrying the same failing shape.
Failure Mode Prevented: Stale Big Plans & Endless Busywork
Planning twenty tasks upfront guarantees half of them will encode outdated assumptions by task three; leaving a planner unconstrained overnight invites speculative abstractions nobody asked for. Cap unlanded queued slices to one or two at a time, record explicit non-goals in the objective, and give the decomposer permission to stop cleanly when the objective is satisfied or a product call requires a human.
Tiered Admission Policy (Divorced from Transport)
Deciding whether a proposed goal may run is a policy decision, not a transport detail. Separate your admission policy cleanly from wherever work enters the repository (CLI, design doc, pull request, or issue tracker—covered in Chapter 5) and define two clear admission tiers:
| Admission Tier | What Belongs Here | How It Enters Execution |
|---|---|---|
Autonomous (auto) | Bounded slices derived from an already-approved objective, simplifications, doc passes, and recurring-failure repairs. | Enters the execution queue directly after automated contract validation and an independent spec-check pass—zero human bottleneck per slice. |
| Human-Gated | New ambiguous requests, unapproved objectives, scope shifts outside guardrails, or changes touching protected/high-risk boundaries. | Pauses at a human review surface before execution (whatever transport your team uses) until a human clarifies or approves the intent. |
Non-Blocking Approval Parking for High-Risk Landings
Some goals are safe to implement autonomously once admitted, yet still deserve a human eyes-on decision before touching main—a schema migration, a public API break, or a security boundary. Never freeze a worker slot while waiting for that human click:
- Once deterministic gates and fresh-context review pass, snapshot the candidate commit and evidence, mark the goal
awaiting-approval, and immediately release the worker slot so the engine keeps shipping independent ready slices. - When a human reviews the parked change, approving triggers transactional rebase-and-land; rejecting records plain-English feedback and returns the goal for a fresh attempt.
- Accumulate human feedback across rejections. Preserve the ordered trail of human notes across rounds rather than overwriting the previous rejection, so the next attempt fixes the new concern without undoing earlier guidance.
Self-Improvement & Metric-Gated Experiments
Two compounding feedback loops plug directly into the same decomposition and admission pipeline:
1. Cross-Task Failure Signatures → Auto-Admitted Repair Goals
Every time a gate or reviewer rejects an attempt, normalize the failure into a compact failure signature (such as a flaky test fixture, missing migration step, undocumented flag, or recurring type trap). Watch for the same signature recurring across different goals.
When a pattern crosses a threshold, the decomposer spawns a dedicated self-improvement goal—fixing the flaky helper, adding a targeted lint rule, or tightening repo instructions—which enters through the auto admission tier so future slices stop paying the same tax.
2. Metric-Gated Experiments
Some goals are hypotheses about latency, bundle size, memory usage, or accuracy rather than boolean feature checks. Attach a deterministic measurement command and target direction directly to the goal contract.
Before landing, the orchestrator measures baseline main and the candidate commit under identical conditions. Even if all unit tests and code review pass, the experiment lands only when the measured number moves in the right direction beyond noise. Otherwise, the change is discarded cleanly and the negative measurement is saved so the decomposer explores a different hypothesis next.
Why record discarded experiments instead of deleting all trace of them?
Without a compact record of failed hypotheses and their measured numbers, a fresh decomposer session will propose the exact same seemingly clever optimization again next week. Recording “tried caching X, p95 stayed flat at 42ms, discarded” keeps exploration moving forward.
How to Know You Built It Right
- Approving one broad objective lets the decomposer ship Slice 1, read what changed, and propose Slice 2 under the
autoadmission tier without asking a human to approve every individual slice. - Ambiguous new requests or scope shifts automatically route to the human-gated admission tier instead of running unreviewed.
- Parking a high-risk landing for human approval immediately frees its worker slot, and rejecting twice preserves both rounds of feedback in order.
- Recurring cross-task failure signatures spawn a single deduplicated repair goal, and metric-gated experiments that fail to beat baseline are discarded cleanly.