Repository navigation
Description
Observed failure
The isolated test command
cd pkgs/id && cargo test -p id-sync --lib log_sync::tests::test_a_refused_event_does_not_abort_the_batch_after_it -- --exactfails on current main and on the unrelated roster-cache branch. At crates/id-sync/src/log_sync.rs:1650, answered.received.refused is 0, while the test expects 1 for seq 2 is past the fork point. The test then intends to verify the batch continues and accepts all five events from the second author.
forked_store(&x, topic, 2) ingests honest seq 0 and seq 1, then a rival seq 1, creating the fork proof. The source store holds the honest chain through seq 2. The test comments say seq 1 should count as a duplicate proof header and seq 2 as refused. The current runtime result contradicts that expected refusal tally. This report does not determine whether the fixture is wrong, the event should be Voided rather than refused, or the sync/tally path is incorrect.
Acceptance criteria
- Reproduce the failure on main and determine the intended disposition of seq 2 relative to the fork point.
- Correct the fixture or implementation so the test exercises a real refused arrival, if refusal is the intended contract.
- Preserve the core invariant that a refused event does not abort the batch and that subsequent events from the other author are accepted.
- Run the isolated test and the focused
id-synctests remotely through Fleet.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T22:47:48Z",
"session_id": null,
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/agent-next-24-14634-20261124T221932Z-786bf1e5",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/agent-next-24-14634-20261124T221932Z-786bf1e5",
"repo": "developing-today/code",
"branch": "fleet/agent-next-24-local-14634",
"sha": "72d6d14aba87c2f573619f6cd9eefc12d6a877db"
},
"auth_subject": "agent-next-26-local",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5370
dezren39 commentedon Nov 24, 2026
Progress: reproduced on main and filed as a distinct triage item. Enqueued as Fleet task 23661 in
repo-health-code-pilot; current queue readback shows it claimed byagent-next-25-local, so another lane owns the investigation. See Fleet runs 45501884626 (branch) and 45502900195 (main) for the failing isolated test.dezren39 commentedon Nov 24, 2026
Triage finding: this is a test expectation mismatch, not a LogSync refusal defect. EventStore documents that a linking event above an author’s fork point is retained as voided evidence; only a third event at the fork point that displaces neither proof header is refused. The seq 2 in this test is above the fork point, so I’m changing the test to assert one voided event, zero refusals, and continued acceptance of the five later events. I’m reproducing the baseline and will verify the corrected test and focused id-sync suite through Fleet.
dezren39 commentedon Nov 24, 2026
Draft fix is ready for review in PR #14645. The test now checks the documented voided tally and continued delivery; baseline and corrected Fleet runs are still in progress.
dezren39 commentedon Nov 24, 2026
The corrected isolated test now passes remotely on the PR branch (Fleet run 45505980053). The focused
id-syncsuite is running as Fleet run 45507479337.dezren39 commentedon Nov 24, 2026
Merged PR #14645 as
dda5860; issue #14643 is closed. The corrected isolated test and fullid-syncsuite both passed remotely (Fleet runs 45505980053 and 45507479337). The issue readback verified a merged disposition.