Repository navigation
Description
Summary
refresh-state can accept a coverage-backed result_class=no_followup while the same writeback keeps the agent vision open (vision_patch_proposed) and the path active (outcome=continue). For a completed advancement Todo without a successor, that semantic acknowledgement can clear the replan obligation even though the Todo never records structured no_followup=true.
The resulting state is split:
- semantic replan acknowledgement says no follow-up;
- vision/path still say continue;
- Todo lifecycle has no successor and no terminal no-follow-up;
- stale durable Next Action remains.
The next quota pass reports a projection gap. Generic repair guidance can then lead an agent to create an unnecessary user/owner gate, leaving a host Goal blocked instead of terminal.
Reproduction
- Complete an advancement Todo without a successor and without
--no-follow-up. - Call
refresh-statewith a coverage/evidence-backed typed observation usingresult_class=no_followup. - In the same writeback, provide an agent vision with an open state and
path_delta.outcome=continue. - Observe that the writeback is accepted and records
coverage_backed_no_followup. - Run
quota should-run; the succession obligation is gone, but terminal no-follow-up is not derived and stale Next Action triggers projection repair.
Expected behavior
- Reject no-follow-up progress paired with an open vision or a continuing path.
- Require
agent_vision.state=no_followupto usepath_delta.outcome=stop. - For
completed_advancement_without_successor, require structured Todo succession or Todono_followup=true; a semantic acknowledgement must not replace Todo lifecycle truth. - When terminal intent is present but Todo settlement is missing, guidance must point to the supported Todo no-follow-up settlement path and explicitly avoid inventing a user gate.
Acceptance criteria
- Unit coverage for invalid no-follow-up/vision/path combinations.
- A regression test proving semantic no-follow-up cannot clear a completed-Todo succession obligation by itself.
- An end-to-end test proving structured terminal settlement yields
terminal_no_followupwith no stale Next Action repair or synthetic user gate. - Existing successor, blocker, exploration-exhausted, and same-turn terminal-upgrade behavior remains unchanged.
Related work
#3261 handles append-only same-turn terminal upgrades when the original completion identity is available. This issue covers the separate cross-contract consistency gap between progress observations, vision/path state, Todo lifecycle, and quota projection.
Activity
NIU-123370 commentedon Aug 16, 2026
Verified this end to end on current
main(5d73c343) — the split-state reproduces at the fixture level and the chain holds line by line. Recording the six links with cites so the fix has a single reference:loopx/control_plane/work_items/progress_observation.py:309-315— aNO_FOLLOWUPresult withcoverage_scope_id+evidence_ids+ new terminal coverage appendscoverage_backed_no_followup; no vision/path/Todo condition anywhere in the branch.:404-410) rewardsfresh_vision_path_outcomeforpath_outcome in {continue, no_change, replan}, andsatisfying_semantic_outcomescontains both it andcoverage_backed_no_followup(loopx/control_plane/goals/goal_frontier/__init__.py:176-182) — terminal ACK and an open path are not mutually exclusive.loopx/control_plane/work_items/semantic_replan_writeback.py:169-170returns onsemantic_delta["accepted"] is True; its fail-closed contract covers "no typed delta", not a cross-contract contradiction.loopx/state_refresh.py:1140-1141setseffective_autonomous_replan_recorded, and:1244-1255writesautonomous_replan_ack_v0withsource="refresh_state_semantic_delta".goal_frontier/ack_policy.py:28-58(any required outcome satisfied ⇒ True), consumed atgoal_frontier/__init__.py:1647-1659/:1684-1696to clearreplan_obligation.goal_frontier/terminal.py:48-57requires a structuredclosure_intent(todo_closure_intent_v0,kind=no_followup,derived,source=todo_no_followup, boundedcount) plus an empty terminal frontier (:122-141) — with no structuredno_followupon the Todo and an open vision path keeping the frontier non-empty, the stale Next Action persists, which is what re-triggers the repair guidance in the issue's repro.On the seam: the narrowest fix looks write-side and fail-closed — reject the combination at emission (a
coverage_backed_no_followupoutcome alongside an open/continuing vision-path outcome in the same delta) rather than teaching every reader to reconcile, which addresses the "no split state" acceptance criterion at the source.Two notes on timing: #3264 is scoped to consume #3261's typed continuation and #3261 is still in review, so a fix PR should probably wait for it. If useful in the meantime, I can send the repro as a standalone red test (extension of
tests/control_plane/test_refresh_state_replan_gate.py/test_progress_observation.py) to pin the regression before the fix — and I'm glad to take the fix itself once #3261 lands if you want to hand it off.NIU-123370 commentedon Aug 16, 2026
#3261 merged right as my comment above went out — updating the timing note: the typed continuation is now available on
main(0cd999c). The six cites above are unaffected (that change stays inside the todo completion/continuation surface —loopx/control_plane/todos/*,loopx/todos.py— and touches none of the observation/frontier/ack/writeback files in the chain), so the write-side fail-closed seam stands as described. Ready to send the repro as a standalone red test, or the full fix, whenever you confirm — happy to take it.