Repository navigation
docs(agents): exact subagent lifecycle — one task per worker, rotate on stall, never re-task - #305
Conversation
…on stall, never re-task Field-verified: a 7h/351-message session produced no artifact on a few-file change, while a fresh session with the same brief produced it directly. Adds the hard rule (2 re-briefs / ~50-message / no-artifact triggers -> STOP and spawn fresh), the artifacts-not-liveness rule, the fan-out cap, and 'do the bounded fix yourself'. AGENTS.md is auto-read by every harness, so every opencode instance picks it up. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: docs-only (prose added to Security screen: PASS — no secrets/egress, no guardrail weakening (adds an operational lifecycle section; does not touch landing/attribution/no-force-push/no-direct-push rules or the validator spec), no embedded instructions to the reviewer, no supply-chain change. Blocks
(Non-blocking, tool-limited: the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: docs-only (prose added to Security screen: PASS — additive prose only; no secrets/egress, no obfuscation, no supply-chain change; does not touch the rulebook's landing / attribution / no-force-push / no-direct-push rules or this validator's spec, so no guardrail is loosened and no T4 sign-off is triggered; no embedded directive aimed at the reviewer. Checklist: All applicable rules PASS or NA. (A1 body complete — Summary accounts for the sole changed file; How tested pastes real output; R0–R10 each answered with a HOW or Evidence cross-check (tool-limited): the pasted Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — additive Checklist: All applicable rules PASS or NA. (A1 — Summary accounts for the sole changed file; How tested names the docs-only class and pastes real Evidence cross-check (tool-limited): the pasted Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Add the exact subagent lifecycle rule to
AGENTS.mdso it is picked up by everyharness/opencode instance in this repo automatically (AGENTS.md is auto-read).
Field evidence: a subagent session ran 7 hours / 351 messages and produced no
artifact on a few-file change — while a fresh session with the same brief produced
it directly. The loss was re-tasking a stalled session with appended corrections,
which grows context with dead ends and superseded instructions instead of converging.
The rule added: one task per subagent (close on completion, never re-task a finished
worker); rotate on stall (no artifact after two re-briefs, or ~50 messages → STOP and
spawn a FRESH subagent); judge progress by artifacts, never liveness; cap the fan-out;
durable artifacts carry state across the rotation; do the bounded critical-path fix
yourself when you hold the context. Mechanism lives in
/charly-internals:agents.How tested
Documentation-only prose change (no code, no runtime path). The section is present in the
file:
Rulebook compliance
/charly-internals:agentsloaded (the owning skill for this surface).N/A — documentation only; no code path, no workaround.main.N/A — documentation only.Agent:
coordination· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (documentation reviewed)