Repository navigation
fix(agent-question): the first accepted decision stands when two devices decide one card (RFC-0014 step 5 drive) - #136
Merged
Conversation
…ces decide one card - RFC-0014 step 5 drive In lockstep with the Python pack: a decision's write applies when the row is still open or the engine accepted it, in the memory inbox and SQL_DECIDED alike; the losing device gets the row as it stands. Vectors version 2 byte for byte, SHA re-pinned; the ask-person README's audit claim narrowed to a refused call's note. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Nov 19, 2026
…pp on main Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
What
extensions/agent-question: a decision's write applies only when the row is still open or when the engine accepted the decision (state = 'answered'), in the memory inbox and inSQL_DECIDEDalike; the PostgreSQL inbox answers with the row as stored when the guard kept it; the handler returns that row with the invoker's own outcome and broadcasts nothing for it.test/vectors/agent-question-vectors.jsonversion 2 (31 cases, the two-devices transition), byte for byte from the Python pack and re-pinned by SHA-256; the statement test's parameters follow.Why
RFC-0014's step 5, the live drive (the report is in the engines' repository,
docs/test-reports/ask-a-person-live-drive.md), drove the Node twins end to end behind the Java Playground and found, on the Python app first, that two devices deciding one card at the same moment both reach the engine - it resumes at most once - and the row took whichever outcome landed last, so a latenothing waitingcould overwrite the accepted decision and its operator. The twins implement one contract from one vector file, so the rule lands here in lockstep with mercury-python's PR.Gates:
npm test- 713 tests, 638 passed, 75 skipped (the gated live tests), 0 failed; the Node twins re-driven live after the fix.🤖 Generated with Claude Code