Skip to content

Drop two workflow guards the projection already settles - #1018

Merged
max-sixty merged 1 commit into
mainfrom
prune-workflow-guards
Sep 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
prune-workflow-guards

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to #1012's review. The move loop in canonical_workflows guarded record is None, and page_action_unsettled re-checked that the source was a reader move. Neither can fire: projection.actions admits only actions whose widget the markup holds and whose tag declares the verb, and the loop filters to reader moves before it asks about settlement. The loop now indexes by_id and the registry directly, so a break in that contract raises instead of silently dropping a move.

No behavior moves. test_interact_* and test_website_server.py pass (992).

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

The move loop's `record is None` guard and page_action_unsettled's author
check can never fire: the projection admits only actions whose widget the
markup holds and whose tag declares the verb, and the loop filters to reader
moves before settlement is asked. Index directly so a violation of that
contract raises instead of silently dropping a move.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 1dbe920 into main Sep 23, 2026
5 checks passed
@max-sixty
max-sixty deleted the prune-workflow-guards branch September 23, 2026 17:34
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.

2 participants