You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(local_events): publish records duplicate live claims for a repeated (name, value) tag — the batch is never checked against itself #4772
pkgs/id/src/local_events.rs — LocalEvents::publish (line 272) records a document plus one tag.set per entry of its tags argument. Every tag is checked individually before anything is recorded (check_tag, line 285 → tag_claims::check_op on a single Set), but the batch is never checked against itself: the same (name, value) pair twice in one publish call creates two distinct live claims — different event IDs, same author, same subject, same name, same value.
Every other multi-entry validation in this layer refuses duplicates within one operation: tag.clear claim lists (tag_claims.rs check_op, #4765), ChainExt.after (chain.rs DuplicateAfter), note.revise parents (notes.rs), session-checkpoint participants (session_checkpoint.rs), and LocalEvents::clear_tag's own claim partitioning treats claims as a set. publish is the remaining batch entry point that does not.
Consequences: the duplicate claims both appear in tags_on / search hits for the document (a contested-looking pair that no second author created), both count toward MAX_CLEAR_CLAIMS chunking when the name is later cleared, and Published.claims returns two IDs for what the caller described as one tag.
Laptop probe (worktree ~/git/fleet/probe-2026-11-02-laneB-scan7, unit probe in pkgs/id/src/local_events.rs against the real crate, cargo test --lib probe_publish_duplicate_tags, probe removed after the run):
publish("text/plain", b"hello", [("city", Some("Seattle")), ("city", Some("Seattle")), ("city", None), ("city", None)]) → claims returned: 4; live claims on the document: 4 — two identical city=Seattle claims and two identical bare city claims, all by the same author.
Fix direction
In publish, refuse a (name, value) pair that appears twice in tags (exact pair equality; same name with different values, and bare vs valued, stay legal — they are distinct claims), before recording anything, so the existing "a bad tag records nothing" guarantee covers it. Alternatively deduplicate silently — but the sibling validators all refuse, and refusal surfaces caller bugs.
Acceptance criteria
publish with a repeated (name, value) pair returns an error and records no events (document or tags).
publish with the same name at different values, or bare plus valued, still succeeds with one claim per entry.
Regression tests in pkgs/id/src/local_events.rs tests cover the duplicate-pair refusal (valued and bare) and the distinct-pair success cases.
Existing local_events and tag_claims tests stay green.
Task: Filed after verifying on the laptop at origin/main 98d3d07: a unit probe in pkgs/id/src/local_events.rs showed publish() with a duplicated (name, value) pair returns 4 claims and leaves 4 live claims (two identical city=Seattle, two identical bare city) on the document. Probe removed; worktree clean.
Expectation: effort/s — refuse a repeated (name, value) pair in publish before recording anything, with regression tests; distinct values and bare+valued pairs stay legal.
Picked up task 6778 (lane 335a5d1f). Issue is open, no owning PR. Plan: refuse repeated exact (name, value) pairs in LocalEvents::publish before recording, with regression tests. Worktree: ~/git/fleet/6778-4772-publish-dup-tags, branch queue/6778-4772-publish-dup-tags.
Session / ID: task 8430 (repo-fleet-monitor run 2026-11-05T15:45:48Z)
Found via: monitor reconciliation (Duty 1 claim/label divergence repair)
Task: Claim evaporated: task 8430 is queued and unclaimed in repo-health-code-pilot, but this issue still carried claimed labels. Labels reset to the truth (queue/queued + status/needs-triage). Checkpoint stage at evaporation: handed_off.
Expectation: The next lane claim picks task 8430 up from the queued state and posts a fresh pickup note.
Next: PR fix(id): refuse repeated tag pairs in publish (#4772) #4776 is the canonical fix (open, untouched since 2026-11-03): review its diff against the acceptance criteria, disposition any Codex findings, run the local_events tests from its branch on the laptop, and merge it if verified — no competing PR.
Released done by repo-worker-code-y (lane code-y, FALLBACK MODE): issue #4772 fixed by landing the canonical PR #4776 (merged 450ec30); issue closed by the merge.
🤖 Agent note · done
Agent: repo-worker-code lane code-y (fallback mode)
No competing PR: PR fix(id): refuse repeated tag pairs in publish (#4772) #4776 (open and stale since 2026-11-03) was the canonical fix. Verified from its branch on the laptop — publish refuses a repeated exact (name, value) pair inside the pre-recording validation loop (nothing is recorded on refusal); distinct pairs stay legal. Tests: cargo test --lib local_events 13 passed (both new acceptance tests included), cargo test --lib tag_claims 10 passed.
Note: the claim comment and the PR verification comment initially hit the user-token secondary rate limit ("submitted too quickly"); both were delivered via the developing.today GitHub App route (fleet_paperwork, verified by readback) per the standing rate-limit fallback order.
Activity
dezren39 commentedon Nov 3, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 3, 2026
Picked up task 6778 (lane 335a5d1f). Issue is open, no owning PR. Plan: refuse repeated exact (name, value) pairs in LocalEvents::publish before recording, with regression tests. Worktree: ~/git/fleet/6778-4772-publish-dup-tags, branch queue/6778-4772-publish-dup-tags.
56 remaining items
dezren39 commentedon Nov 5, 2026
🤖 Agent note · handed off
developing-today commentedon Nov 7, 2026
Picked up by repo-worker-code-y (lane code-y, repo-queue-worker-shift-y) in FALLBACK MODE (backend down: fleet queue health HTTP 503 PGRST002).
🤖 Agent note · picked up
Merge pull request #4776 from developing-today/queue/6778-4772-publis…
developing-today commentedon Nov 7, 2026
Released done by repo-worker-code-y (lane code-y, FALLBACK MODE): issue #4772 fixed by landing the canonical PR #4776 (merged 450ec30); issue closed by the merge.
🤖 Agent note · done
Outcome