Skip to content

fix(agent-question): the first accepted decision stands when two devices decide one card (RFC-0014 step 5 drive) - #136

Merged
acn-ericlaw merged 2 commits into
mainfrom
fix/agent-question-first-decision-stands
Nov 19, 2026
Merged

acn-ericlaw merged 2 commits into
mainfrom
fix/agent-question-first-decision-stands

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Contributor

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 in SQL_DECIDED alike; 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.json version 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.
  • The ask-person README narrows the audit claim: who decided reaches the audit store when the note reaches the model (a refused call); an approved call's decision stays on the channel's record and in the log.
  • CHANGELOG Unreleased/Fixed 1; continuity and the session log.

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 late nothing waiting could 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

acn-ericlaw and others added 2 commits November 19, 2026 16:48
…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
acn-ericlaw merged commit 6222611 into main Nov 19, 2026
5 checks passed
@acn-ericlaw
acn-ericlaw deleted the fix/agent-question-first-decision-stands branch November 19, 2026 09:32
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>
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