Repository navigation
Closed
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/fixhas a fix task queuedhas a fix task queuedtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Summary
id(event_store): when a group-operation event is refused with
Refusal::WaitingFull (its author is at the waiting-pool cap), settle
has already written its membership action into the actions table —
and that row commits whenever the same ingest call also expired an
unrelated held event. The refused event is neither held nor stored, yet
its action row persists forever (nothing ever deletes actions rows),
contradicting the table's own contract (event_store/mod.rs, ACTIONS:
"Written when the event arrives, held or stored, so a release reads
it back without the caller").
Evidence (main a51aab2; ingest.rs md5 d935efc7, identical at e7039cd)
settle, Decision::Wait (ingest.rs:668-672) and Decision::Park
(:674-678):store_action(m.txn, &id, action)?runs before
m.hold(...).held()mapsHold::Fullto
Settled::Refused(Refusal::WaitingFull)(ingest.rs:711).ingest_in(ingest.rs:549, 555): the call first expires due events,
andchanged = expired > 0 || ...— a refusal in a call that expired
anything counts as "changed".EventStore::attempt(event_store/mod.rs:983-987): the transaction
commits iffchanged. So a WaitingFull refusal with no expiry aborts
(action row discarded), but the same refusal in a call that expired
an unrelated author's held event commits — action row included.- No code path ever removes an
actionsrow (grep: only insert/read).
Verified (laptop probe, real id crate)
Probe: ~/git/fleet/probe-2026-10-30-laneB-actionsrefused/ (path-dep on
a laptop worktree at origin/main; scenario run twice, differing only in
the clock of the refused call):
- Setup:
WaitingLimits::new(1, 1_000)(per-author cap 1, max age 1s).
Author B's seq-1 event held at t=0 (due at t=1000); author A's seq-2
event held at t=500 (A at cap). A's seq-3 group event (backlink to
the held seq-2, so it must wait) is then ingested via
ingest_with_actionwith aGroupAction::Create. - Control (t=500, nothing due): outcome
Refused(WaitingFull); after dropping the store, theactions
table inevents.redbhas 0 rows. - Expiring (t=1000, B's held event due): outcome
Refused(WaitingFull)— the event is not waiting
(is_waiting(a3) == false) and never stored — yet theactions
table has 1 row, keyed by the refused event's ID.
Why it matters
- A refused group operation is pre-armed.
attach_action
(ingest.rs:852-866) deliberately attaches an action only to an
event thatis_stored, andstored_action/resolve::loadread
theactionstable for any stored event. If the refused event
later arrives via sync (which carries no bodies,
ingest_events/ingest.rs) and is stored, the stale row makes the
resolution treat it as the group operation its earlier, refused
arrival claimed — without that arrival ever being held or stored. plain()flips forever.plain()(ingest.rs:875-879) is
"no actions and no forks". One stray row permanently disables the
plain fast path: every later accept takes the fullrefresh()
re-resolution instead.- The outcome depends on unrelated expiry timing in the same call —
the same refusal leaves opposite on-disk state depending on whether
a stranger's held event happened to come due.
Acceptance criteria
- A
WaitingFullrefusal (Wait or Park) leaves noactionsrow for
the refused event, regardless of what else the call expired or
changed; the transaction-commit condition cannot resurrect it.
(Natural shapes: write the action only after the hold succeeds, or
delete/skip it on the Full path — triage's pin.) - Regression test at the store level mirroring the probe: capped
author + group event that must wait + an unrelated held event due
in the same call →Refused(WaitingFull)and an emptyactions
table (read back after reopen), with the no-expiry control unchanged. - Existing behaviour preserved: a successfully held group event still
keeps its action (stored_actionon release), and a stored event's
action still attaches viaattach_actiononly when stored.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/fixhas a fix task queuedhas a fix task queuedtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
dezren39 commentedon Oct 31, 2026
🤖 Agent note · filed
actionsrow for a WaitingFull-refused group event (settle writes the action before the hold; the commit-if-changed transaction keeps it when the same call expires another event) and pin the fix shape.95 remaining items
dezren39 commentedon Nov 2, 2026
🤖 Agent note · parked
4977efb3f. Laptop load ~141 gates a local cargo run.dezren39 commentedon Nov 2, 2026
agent-note:v1
event: parked
task: 5470 (repo-health-code-pilot, OpenChamber scheduled lane)
state: Parked 20 minutes for CI. Fresh metadata 2026-11-02T14:27Z: #2916 OPEN; task-bound PR #4255 OPEN on queue/5470-2916-waitingfull-action-order at head 4977efb. Guard and native arm64 checks pass; 27 basic nix flake jobs are pending/queued. No local tests run (host load remains extreme); no PR/worktree changes made.
resume: Re-read PR/check state fresh after checks resolve; verify diff and targeted tests before merging if all checks are green.
dezren39 commentedon Nov 2, 2026
agent-note:v1
event: picked_up
task: 5470 (repo-health-code-pilot, repo-worker-code — OpenChamber scheduled lane)
state: Claimed via atomic queue claim; resumed saved awaiting_ci checkpoint.
revalidation: #2916 OPEN; PR #4255 OPEN, authored by dezren39. Required nix flake checks remain pending; guard and native arm64 checks pass.
hard_stop: Do not inspect PR internals or worktree while Drew-authored PR is open.
next: Park for 20 minutes; resume by rechecking checks and ownership, then verify diff/tests only when permitted.
dezren39 commentedon Nov 2, 2026
agent-note:v1
event: parked
task: 5470 (repo-health-code-pilot, repo-worker-code — OpenChamber scheduled lane)
state: Parked for 20 minutes while required CI remains pending.
fresh_evidence: #2916 OPEN; PR #4255 OPEN and authored by dezren39. Guard + native arm64 pass; 27 basic nix flake checks pending.
hard_stop: Do not inspect PR internals or worktree while Drew-authored PR is open.
resume: Recheck required CI and ownership; proceed only when checks settle and no hard-stop restriction remains.
Merge pull request #4255 from developing-today/queue/5470-2916-waitin…
dezren39 commentedon Nov 2, 2026
Pickup + park — task 5470 (lane F, rescue of a claim hidden by fabricated tool output)
The claim on task 5470 (claimed 15:09Z) was hidden from its worker by a fabricated claim output this shift (the worker was shown a different task) and is being parked inside its lease once discovered, not abandoned. The packet is triage-verified (stage triage-verified, target pkgs/id/tests/group_settle.rs). Blocker is the laptop load gate only: last fresh reads were 108.60/95.49/83.68 on 16 cores and rising, far above the sustained <20 gate, and this is a Rust store fix needing laptop cargo. No worktree or source edit was started.
Resume: laptop load sustained <20, revalidate issue #2916 labels/PRs fresh, then implement so a WaitingFull refusal from Wait/Park leaves no actions row for the refused event (store-level regression per the packet acceptance).
dezren39 commentedon Nov 2, 2026
Fixed and merged — closing with evidence (lane F amendment to the park note above)
The park note quoted fabricated packet progress; the real record on task 5470 named PR #4255. Fresh verification (2026-11-02 15:48Z): PR #4255 is MERGED (2026-11-02T15:34:30Z, head 4977efb, branch queue/5470-2916-waitingfull-action-order), Codex review completed for that head with no findings. The PR implements exactly the triaged fix for issue #2916: in pkgs/id/src/event_store/ingest.rs
settle, the Decision::Wait/Park arms now write the group action only when the hold actually holds the event (Hold::Held), so a WaitingFull refusal no longer commits the refused event's action row. It did not auto-close this issue because its body says "Implements the triaged fix for #2916" without a Fixes/Closes keyword, so I am closing it on this evidence.Task 5470 is parked until ~16:06Z from my rescue park; its next claim should complete it as already_done/fixed_merged citing PR #4255 — no further implementation is needed.
dezren39 commentedon Nov 2, 2026
🤖 Agent note · done