#3540·Archon

fix(sdlc): give the factory-pinned lifecycle a terminal delivery result on held and no-work paths

Author: i2020githubCreated Sep 27, 2026Updated Sep 27, 2026

Observed behavior and versions

A retained lifecycle run delivered a candidate, then correctly held it because runtime verification was inconclusive and independent holdout had not run. The engine completed with zero failed nodes, the merge nodes were skipped, and the persisted authored outcome was null. Repeated empty-intake ticks also completed successfully. Engine completion was accurate; delivery disposition was missing from the result contract.

Incident version: 24796870605b0fd576734b79a8d5c781f2b1c1e1. Source checks on 2026-09-27 found the same relevant lifecycle and selector bytes at README-mentioned snapshot a02b9ab6bc59f4aff6cae8bfca4723b3eadadb28. Factory e167ddc480d2f5c95d436f9d1c5cdcf37b092281 actually defaults to 24796870605b0fd576734b79a8d5c781f2b1c1e1 through its manifest and initializer; its README still names the older SHA. Current public Archon dev 879c99fe4dceeeae1bef98869e9427f38aadeea4 has neither lifecycle nor verify-runtime. This is a report about the public factory integration snapshot, not a reproduction on dev.

Proven cause

  • Lifecycle declaration returns the conditional merge include and declares no outcome_field.
  • Qualification correctly holds missing/inconclusive evidence without asking for application repair. Selection preserves the evidence pointer but emits ready:false and an empty PR list on that path. Merge gating skips merge when readiness is false.
  • Outcome persistence only acts when the workflow declares both a returns node and a boolean outcome field, and that node completed. This lifecycle never opts in. Adding outcome_field to the existing skipped merge return would not solve held/no-work paths.
  • CLI reporting reads an authored verdict only for opted-in workflows; otherwise a successful execution takes the generic completion message. This is not evidence of a merge.

Minimal reproduction

During investigation, the actual pinned select-qualified.py was executed with synthetic inputs: candidate {delivered:true, prs:[<PR>], head:<head>}, initial qualification {ready:false, repair:false, evidence:"qualification/report.md"}, and null repaired/retried inputs. It returned exactly {"ready":false,"prs":[],"evidence":"qualification/report.md"}. Inspection confirms the merge predicate is false and there is no authored-outcome declaration. This focused execution plus the retained native run establishes the path; it is not a newly executed end-to-end lifecycle.

An upstream regression fixture should supply those typed node results to the existing executor test harness, allowing the graph to settle without real agents or forge writes. A second fixture should return found:false from intake. Assert that neither path merges, while each has a distinguishable terminal delivery result.

Proposed correction

  1. Add a deterministic terminal result node to the lifecycle. Join every ordinary terminal branch, with nullable bindings for skipped branches and no readiness when on the result node. Use the existing skip-tolerant join semantics; keep execution failures/cancellation truthful in engine status rather than inventing success during a crash.
  2. Return a schema-checked delivery disposition (merged, no_work, held), reason, evidence reference, and original candidate PR/head. Preserve the candidate identity even when selected.prs is empty. Missing configuration must remain distinguishable from an empty eligible backlog: add a typed intake reason code rather than parsing its prose. A merge is confirmed only by the owning merge workflow's actual result; a queued or preview result is not merged.
  3. Make this node the returns node and declare a required boolean for the existing outcome_field contract: true for confirmed merge or legitimate no-work, false for a hold. Keep the more precise disposition alongside it. Never change the engine status or make a legitimate no-op exit nonzero.
  4. Retain the result as an artifact and surface the structured explanation through the owning terminal-output path. At this integration snapshot, top-level summary selection scans completed sinks; child runs use returns. Make the new result the terminal sink, and test both forms. Port to the existing terminal-record surface when the lifecycle lands on dev; do not create a second event database or widen the database outcome enum.

Changing CLI wording alone leaves the missing contract unfixed. Treating skipped merge as an execution failure conflates a correct refusal with a crash. A factory-side prose parser or stage dispatcher duplicates the upstream policy. The pack-owned result is the narrow correction.

Acceptance

Use packages/workflows/src/defaults/sdlc-general-purpose.test.ts for intake/pack cases, packages/workflows/src/dag-executor.test.ts for authored outcomes and skip joins, and packages/cli/src/commands/workflow.test.ts for display. Cover held runtime, missing holdout, empty eligible backlog, missing state-label mapping, successful merge, preview/queued merge, exhausted repair and an execution error. Confirm PR/head/evidence survive the hold, no-work remains exit-zero, and errors remain errors. Existing independent review, CI, runtime, holdout and merge authorization must not change.

Related issues and filing boundary

#3264 owns lifecycle composition; this can be a focused child acceptance item there if a separate integration-snapshot fix is unwelcome. #2618 and #2651 are closed: their authored-outcome machinery already exists here. #2393 is a broader event-contract effort. #2747 deliberately restricts its inbox to failed executions; it does not supply this lifecycle's missing authored result. #3329 concerns investigation finding no local change owed. #3399 concerns rendering an existing explanation in the console; this path has no terminal delivery explanation to render.