host: number a request before its answer #13

Merged
mikluko merged 1 commit from tap-order into main 2026-11-16 05:05:06 +00:00
Owner

The defect specs-58 found in #7: tapWriter wrote to the pipe and recorded afterwards, so an agent's answer could be numbered before its request (session/new answered before it was asked). It records first now. TestARequestIsNumberedBeforeItsAnswer has the reader answer inside the write, and fails on the old order; the host suite passes with GOMAXPROCS=1 -race -count=20.

The defect specs-58 found in #7: `tapWriter` wrote to the pipe and recorded afterwards, so an agent's answer could be numbered before its request (`session/new` answered before it was asked). It records first now. `TestARequestIsNumberedBeforeItsAnswer` has the reader answer inside the write, and fails on the old order; the host suite passes with `GOMAXPROCS=1 -race -count=20`.
host: number a request before its answer
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 9s
test / go (pull_request) Successful in 51s
8dfb9e8226
tapWriter wrote to the pipe and then recorded, but a pipe write returns once
the agent has read, so the agent's answer could be recorded by the reader's
tap first and numbered before its own request; the registry then found an
answer without a request. The writer now records first. The test has the
reader answer inside the write, which is what the pipe allows.

Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch tap-order 2026-11-16 05:05:06 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!13
No description provided.