test(prose): discovery, walked to the point where work first exists#568
Open
leeovery wants to merge 1 commit into
Open
Conversation
Discovery is the phase every work type begins at, and it had no coverage at all. This walks it from workflow-start on an empty project — no work units, no inbox, not even a project manifest, since none exists until the first work unit is created — through the opener, the shape-and-confirm gate and name resolution, stopping the moment the work unit is on disk. That stop is the durability boundary rather than an arbitrary point. Everything before the work-type commit is ephemeral however long the shaping ran; everything after it persists. The case asserts exactly that: nothing is on disk until one engine transaction creates the work unit, installs the session log staged in the cache, and commits. Three firsts. It is the first case that creates a work unit instead of reading one someone else built. It is the first live user of world `claims` — the manifest description and the session log's prose are the model's to write, so the world is judged against stated claims rather than byte-compared. And it is only the second case where engine_before_write is not vacuous, since the walk stages the session log under .workflows itself. The deterministic spine is the ordering: `manifest exists` must run before `workunit create`, because a collision check after the thing it checks for is no check at all. Alongside it, calls_exclude on the epic machinery — no map, no topics, no session close — since single-phase work must not touch any of it. The name is supplied by the scripted user rather than accepting the suggestion, which keeps every path in the expected world fixed instead of depending on what the model would have derived from the description. Passed first run: 5/5 path, all four checks, world PASS, no markers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Discovery is the phase every work type begins at, and it had no coverage at all. This walks it from
workflow-starton a genuinely empty project — no work units, no inbox, not even a project manifest, since none exists until the first work unit is created — through the opener, the shape-and-confirm gate and name resolution, stopping the moment the work unit is on disk.That stop is the durability boundary, not an arbitrary point. Everything before the work-type commit is ephemeral however long the shaping ran; everything after it persists. The case asserts exactly that: nothing on disk until one engine transaction creates the work unit, installs the cache-staged session log, and commits.
Three firsts:
world: "claims"— the manifest description and the session log's prose are the model's to write, so the world is judged against stated claims rather than byte-compared.engine_before_writeis not vacuous, since the walk stages the session log under.workflowsitself.The deterministic spine is ordering:
manifest existsmust run beforeworkunit create— a collision check that runs after the thing it checks for is no check at all. Pluscalls_excludeon the epic machinery (no map, no topics, no session close), since single-phase work must not touch any of it.The name is supplied by the scripted user rather than accepting the suggestion, which fixes every path in the expected world instead of leaving it to what the model would derive from the description.
Test plan
Passed on first run, on
claude-sonnet-5:Deterministic gate 76/76; snapshot rebuilds byte-identical.
🤖 Generated with Claude Code
Stack