Skip to content

fix(sim): implementation arcs take the prose's call order — task init creates#547

Open
leeovery wants to merge 1 commit into
mainfrom
fix/sim-implementation-prose-order
Open

fix(sim): implementation arcs take the prose's call order — task init creates#547
leeovery wants to merge 1 commit into
mainfrom
fix/sim-implementation-prose-order

Conversation

@leeovery

Copy link
Copy Markdown
Owner

Summary

  • Authoring the prose-test feature corpus surfaced a sim/prose divergence: the sim's four implementation arcs ran topic start before task init, a call order no prose ever issues — implementation is the one phase where task init owns creation (implementation-process Step 0's created arm).
  • Consequence of the old order: the sim never exercised the created arm (the genuine fresh path real runs take), and it audited a manifest shape no real project produces — the resume arm deliberately leaves analysis_cycle_total, current_phase, linters, and project_skills unwritten.
  • Fix: the four arcs call task init directly, with mode=created pinned at each fresh init and mode=resumed pinned on the implementation-loop scenario's genuine resume.

Sibling change already in the prose-tests stack (#546): the feature-implemented fixture had copied the sim's order and is fixed the same way — its snapshot diff shows the four recovered fields.

Test plan

  • npm test green: 1678 tests, 0 fail (sim suite 14/14, ~125s).

🤖 Generated with Claude Code

… creates

Found while authoring prose-test cases: no prose site ever issues
`topic start` for implementation — task init owns creation
(implementation-process Step 0). The sim's four implementation arcs ran
topic start first, so the created arm (the real fresh path) was never
exercised and the audited item shape was missing the four fields only
that arm writes (analysis_cycle_total, current_phase, linters,
project_skills). The arcs now call task init directly, pinned with
mode=created; the implementation-loop scenario's second init is pinned
mode=resumed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant