Harness Intelligence Wiki
HarnessEntry PointsImplementation

AFK Implementation

Run one delivery goal end to end through goalify and Full Delivery, from the Architecture/SPEC pair and retained plan to closeout

AFK Implementation runs one bounded delivery goal without mid-run steering. It is the Implementation flow in Full Delivery mode, wrapped in an active goal.

AFK is the delivery-phase contract: the human starts delivery and is away until it stops. Starting it grants the run authority to decide, in every entry mode. AFK Implementation adds the goal: $goalify writes and activates a goal, and that goal runs $delivery-phase in Full Delivery mode, which continues to closeout.

  • Use this when: the requirements are closed, the goal is bounded, and the operator accepts that the run settles every open question itself as an Autonomous Decision.
  • It gives you: unattended delivery from the Architecture/SPEC pair and retained PLAN.md through implementation, review, docs ingest, and closeout.
  • It ends with: a closed delivery, or a durable record of the missing access that stops it. Each report opens with the Autonomous Decisions list.
  • Wrapped phase/skills: $goalify, $delivery-phase, and through it Requirements Phase (which runs $create-plan), $implement-spec, $review-phase, $debugging-phase, and $docs-ingest-phase.

Starting Contract

$goalify turns the request into one active goal in one move:

  1. Read the supplied handoffs, specs, issues, logs, and scoped repo guidance.
  2. Reduce the request to one objective with proof and stop conditions.
  3. Write the smallest /goal contract: objective, context, workflow, proof, and stop. It is pointer-heavy, has no secrets, and has at most 4,000 characters after /goal.
  4. Activate the goal immediately and keep working under it.

Invoking $goalify is permission to create the active goal. The goal's workflow names $delivery-phase.

The goal text must ask for end-to-end delivery. Only that wording selects the Full Delivery entry mode. Resume wording alone does not grant Full Delivery continuation, so a goal that says only "resume" stops after one phase.

Autonomous Decisions

Inside AFK delivery-phase, every pending user question becomes an Autonomous Decision. This applies to every entry mode, every delivery phase, and every inner step: Requirements Phase, implement-spec, $tdd, review routing, $debugging-phase, $docs-ingest-phase, and their workers. No step calls a question tool.

  1. The run takes the recommended answer from current artifacts and evidence.
  2. It marks the decision out-of-bounds when it changes accepted requirements or scope, weakens a gate, substantially redesigns implementation, or replaces a decision that a skill keeps for the human: human_steering_required, review_budget_exhausted, human direction, a confirmation, a closure, a park, or an approval. Every other decision is in-bounds.
  3. It records the question, the answer, the evidence, and the mark in the Phase Result's changed_facts, in the Delivery Handoff's autonomous_decisions, and in the skill's own log where one exists, such as the grill log or IMPLEMENTATION-NOTES.md.
  4. It posts each out-of-bounds decision to the thread at once, in one message that opens with ⚠️ AUTONOMOUS DECISION OUTSIDE ACCEPTED BOUNDS and states the question, the answer, the evidence, and how to reverse it.
  5. It continues.

Every report the human reads opens with the full Autonomous Decisions list, out-of-bounds first: the closeout report, every stop report, and the PR body, where closeout writes an Autonomous Decisions Block above the $pr Managed Region.

Only missing access that no decision can grant stops the run: credentials, permissions, or an unreachable provider. That stop is human_steering_required, and its access record is the whole request to the human. The human still merges the PR, and an explicit HITL checkpoint that the human chose still stops at its boundary.

Autonomous Run

Full Delivery re-enters the router after every Phase Result. At the review gate, $delivery-phase invokes $review-phase immediately, so one AFK goal crosses review without an operator step. No delivery reaches docs ingest or closeout without a valid Pass Report.

Flow

  1. Run $goalify with a request for end-to-end delivery of one bounded goal.
  2. The router resolves Context Pointers and requires the Architecture/SPEC pair. A gap routes to Requirements Phase.
  3. The router requires a current backlog projection and a retained PLAN.md (the Plan Complete gate). A gap routes to Requirements Phase, whose create-plan step writes PLAN.md with RED and GREEN commands for each testable task. Delivery has no plan phase and creates no plan.
  4. implement-spec runs the Execution Frontier through scoped workers and Task Gates, then Verification and the acceptance audit. $tdd asks nothing here: the plan's tdd_target and task contract stand in for its interface and behavior confirmation.
  5. $review-phase runs one Full Code Review Pass, commits one Pass Report, and returns its route.
  6. Delivery routes the findings. Ordinary repair gets Focused Repair Validation. A second pass needs a high-risk repair. Two completed passes is the ceiling. At the ceiling, a further pass needs the human's own words already in the goal or thread. Without them, the run takes an out-of-bounds Autonomous Decision on review_budget_exhausted: it captures the open findings as debt and continues to docs ingest or closeout.
  7. $docs-ingest-phase runs, or delivery records a docs no-op reason.
  8. Closeout makes the final commit, awaits CI, reads back backlog status, and tears down the Owned Stack.

Failure Handling

A failed task blocks only its dependent chain. Independent eligible work continues. The failed Active Write Scope stays reserved until the parent proves the old worker stopped, or transfers it to exactly one repair worker. A retry needs new actionable evidence; the same repair again is not new evidence. Stagnant repair, scope redesign, weaker gates, or changed requirements take an out-of-bounds Autonomous Decision: another approach, debt capture, or a narrower scope. A debt item that needs a product or scope decision outside the active goal takes an out-of-bounds Autonomous Decision too; only standalone implement-spec hands the human a $requirements-phase command. Only missing access routes to human steering.

Stop Conditions

The goal stops when:

  • closeout reports final evidence;
  • required access is missing and no decision can grant it: human_steering_required stays durable until the recorded access is present;
  • a required Context Pointer cannot resolve to one current identity, so the action is blocked.

An ambiguous goal or scope, an exhausted review budget, and an out-of-goal debt decision do not stop the goal; each takes an out-of-bounds Autonomous Decision.

To pause across sessions, $handoff writes a Delivery Handoff. The next session cold-routes from current authorities.

Stack-Aware Work

Delivery keeps the recorded branch, base, and stack intent for the whole run. One plan creates at most one pull request per Touched Repository; split or stack PRs only when the user explicitly asks. After the first meaningful in-scope commit is pushed, implement-spec reuses or creates the matching draft PR for that repository. An empty commit never qualifies. A conflicting base, stack, or existing non-draft PR needs reconciliation with accepted intent before any mutation. A provider failure records a visibility blocker; independent eligible work continues. $pr writes the PR body at draft time; closeout regenerates it, marks the PR ready and requests human review.

Terminal Outcome

The closeout report opens with the Autonomous Decisions list, out-of-bounds first, or with Autonomous Decisions: none. Then it names the goal, phase path taken, artifacts touched, validation labelled focused, CI, or local broad run, review result, debugging result, docs result, tracker or PR state with the PR handover readback, UI Evidence state, and the exit: done, blocked, or split into follow-up. The $pr body opens with the same list in its ## ⚠️ Autonomous Decisions section.

See Goal Mode And AFK, Sequential and Parallel Delivery, and Validation Gates.

Known Gaps

  • $goalify names no delivery entry mode. The Full Delivery wording rule comes from delivery-phase, so the goal author must state end-to-end intent.

On this page