Harness Intelligence Wiki
HarnessExecution Modes

Sequential and Parallel Delivery

Release dependency-ready work through the Execution Frontier, Task Gates, and Active Write Scopes

Harness implementation releases work through an Execution Frontier, not through fixed waves. The parent coordinates, applies Task Gates, and owns shared records. Scoped workers make every implementation edit. The route keeps its old URL for compatibility.

Plan Inputs

create-plan gives each Tn task the fields the frontier needs:

  • depends_on: prerequisite tasks; in provider-task mode these mirror native provider blocker edges.
  • owned_paths: the exact Active Write Scope.
  • read_dependencies: paths, contracts, and authority the task or its checks consume.
  • shared_runtime_resources: shared processes, ports, fixtures, provider objects, or databases, with compatible access.
  • relevant_input_set: authoritative inputs and how to read their identity before and after checks.
  • wave_boundary: the earliest planned frontier, for example W1.
  • validation, the TDD fields, runtime_validation, and implementation_skill_guidance.

An empty field is written as explicit none with a reason; an absent field counts as unknown. A wave label is a planning aid, not a barrier.

The Execution Frontier

The frontier holds every unfinished task whose prerequisites passed their current Task Gates and whose scopes, declared reads, runtime resources, and architecture responsibilities permit release. The parent recomputes it after each gate result, input invalidation, capacity change, or scope transfer.

Conflict rules:

  • Overlapping reserved writes conflict.
  • A write that touches an active declared read conflicts, and so does a read that touches an active write.
  • Incompatible shared-runtime use conflicts.
  • Read/read overlap alone is safe.

Each conflict is recorded with its owner, apart from prerequisite edges. It delays only the affected work.

When capacity is short, the parent dispatches in this priority: assumption-invalidating work, then the longest remaining dependency chain, then unlock count, then plan order. Capacity one still delegates one worker. A slow unrelated worker never becomes an extra prerequisite.

Active Write Scopes

An Active Write Scope is the reserved path set, its owning task, the native worker handle, and its lifecycle state. The parent reserves it before spawning. It stays exclusive through execution, failure, interruption, gate review, and cleanup. A finished handle alone does not release it. Before release or transfer, the parent proves the old writer stopped, inspects its changes and cleanup, and records the new owner. Ownership follows the task lifecycle, not the wave.

Workers write on the recorded branch. They create no branches or worktrees and preserve unrelated working-tree changes.

Task Gates

The parent inspects each Task Result as soon as it arrives. A missing or malformed result is blocked. The gate outcome is passed, repair_required, or blocked.

A passed gate needs all applicable task-local proof:

  • changed paths inside the Active Write Scope;
  • acceptance references met by parent inspection of observable results;
  • real RED/GREEN evidence, or an accepted non-testable reason with exact proof;
  • relevant typecheck and lint;
  • task validation, runtime proof, and one evidence record per forwarded guidance entry;
  • declared public seam, topology, and responsibility obligations.

Verification joins a Task Gate only when the task owns a complete visible journey or runtime side effect that a dependent consumes. Otherwise Verification is a final-acceptance gate.

The parent captures the Relevant Input Set before and after checks, and compares it again before dependent release. A changed input invalidates only affected evidence and gates.

Gate Order

A passed Task Gate releases dependents immediately. Summary reconciliation into PLAN.md and IMPLEMENTATION-NOTES.md happens later, off the critical path. The parent flushes all pending reconciliation before cumulative Architecture Checkpoints, final acceptance, the review handoff, and finalization.

These are separate facts: Task Gate result, evidence eligibility (pending, current, invalidated), reconciliation (pending, complete, stale, blocked), final acceptance, and Code Review. A failed summary write blocks reconciliation, not the Task Gate.

For architecture-bearing plans, each architecture wave ends with a cumulative Architecture Checkpoint. An unproved responsibility blocks only its consumers.

Ownership

  • The parent owns the plan graph, the frontier, Task Gates, scope custody, retries, escalation, and shared records. It makes no implementation edit, including repair.
  • Each worker owns one task and its Active Write Scope, returns a Task Result (ready_for_gate or blocked), and never edits PLAN.md, IMPLEMENTATION-NOTES.md, or another task's result.
  • Each worker runs $simplify on its task's changed code once GREEN and before task validation, so the validation and the Task Gate see the simplified code.

Failure Handling

A failed task blocks only its dependent chain; independent eligible work continues. The failed scope stays reserved until the parent proves the old worker stopped, or transfers it to exactly one scoped repair worker. A retry needs new actionable evidence; repeating the same repair is not new evidence. Stagnant repair, scope redesign, weaker gates, changed requirements, or a human decision take an out-of-bounds Autonomous Decision inside AFK delivery-phase: another approach, debt capture, or a narrower scope. Only missing access routes to human steering. Only an architecture contract amendment inside accepted bounds re-enters planning, through Requirements Phase as plan-only input.

Done Signal

Implementation completes when every accepted task passed its gate, required runtime and Verification proof exists, summaries are reconciled, acceptance is audited, and an architecture-bearing plan has zero-drift closure with an empty migration ledger.

Implementation completion is not delivery completion. Delivery still needs Code Review, docs ingest, and closeout. See Implementation.

Known Gaps

  • Standalone $swarm-planner saves <topic>-plan.md in the working directory, uses status Not Completed, and reviews with a generic subagent. Inside create-plan, the output is one PLAN.md in the spec folder, status Planned, and review by plan-reviewer.

On this page