Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
docs(verification): a close rewrites its own refusal; what the unit tests cover of the races
luishron123701793650b41
diff --git a/docs/verification/question-cards.md b/docs/verification/question-cards.mdindex 737ece7a00..d945e37a2f 100644--- a/docs/verification/question-cards.md+++ b/docs/verification/question-cards.md@@ -102,10 +102,12 @@ handed on keep their own paths. A card reads closed only when the engine took ththe delivery returns, whatever source the engine reports for it: with the ACP fake set to ask only once(`FAKE_ACP_QUESTION_ONCE=1`), the next turn answers without a new card and the first card still reads closed. If theclose is refused, or the engine did not take it, the card stays open and can still be tapped, and the line is sent as-before. Sends that close the same request share one decline. A tap, an explicit decline, Stop or the turn ending that-wins while the decline is on its way settles the card as it always does, and no request outlives its turn (unit tests-in `server/host/ask-cards.test.ts`: the default fakes settle a decline as soon as they take it, so these races need an-engine held mid-delivery, which only the unit tests provide). Two tries of one send that arrive together close+before. Sends that close the same request share one decline. The card settles the moment its request resolves, the+close's own decline included, so for that instant it reads "Denied"; the close's outcome then turns it closed. In the+unit tests of `server/host/ask-cards.test.ts`, with the engine held mid-delivery: a tap, Stop or the turn ending that+wins settles the card as it always does, and an explicit decline that wins stays "Denied", even when a newer question+opens before the close returns, and takes no second answer. The default fakes settle a decline as soon as they take it,+so these races are not run end to end. Two tries of one send that arrive together closeor answer one card, even when another opens before the line is written. That holds for 60 seconds after the first trytook effect: a send whose line was never written, tried again after that, may close or answer the card open then.