Skip to content

Keep contribution readings atomic during control lookup - #1832

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-37301484253
Oct 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-37301484253

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Keep a contribution's next reading together while its command checks a retained control. #1788 made command availability consult those controls; during draft projection, that lookup could settle a pending contribution update before normalization finished. The margin then painted an intermediate option state and reversed it in the same script.

The new runtime test fails before the guard with a listener seeing the old idle entry during the read, then the final engaged entry. With the guard, it sees only the complete reading. The failing render-gate case also passes locally; four draft cases, two margin cases, all 223 runtime tests, and the changed files' pre-commit checks pass.

Refs #1592. The separate failures from that full run are being addressed through other changes; this PR fixes the contribution reentry cause.

A command availability check can ask for its retained control while a contribution is being normalized. Settling the previous registration from that lookup reentered annotation presentation with a partial reading, so margin options opened and closed within one script. Hold delivery until the complete contribution has been published; a unit test pins the transaction and the projected rewrite browser case now passes.
@leaf-agent
leaf-agent merged commit 0ab6d4a into main Oct 5, 2026
3 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-37301484253 branch October 5, 2026 14:22
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