GeezerVison is showing github.com — id(boards): Rules revision numbers are not unique per board — two different revision-1 rule texts coexist in one graph · Issue #3964 · developing-today/code
id(boards): Rules revision numbers are not unique per board — two different revision-1 rule texts coexist in one graph #3964DescriptionBug
Nothing in BoardGraph keeps a board's Rules revision numbers unique. Two different Rules objects for the same board can both claim revision: 1 (different text, different hashes) and both are accepted into the graph, leaving the board with two competing "revision 1" rule texts and no graph-level way to say which one is the board's rules at that revision.
Evidence (verified this run, main @ e860d3a)
pkgs/id/src/boards.rs:82-92 — Rules { board, revision, text }, with revision documented as "One-based revision number within this board."
pkgs/id/src/boards.rs:326-329 — validate_shape checks only revision > 0.
pkgs/id/src/boards.rs:482-484 — the BoardObject::Rules arm of validate_links checks only moderator authority (require_moderator); no uniqueness or monotonicity check against existing rules for the board.
- Laptop probe
~/git/fleet/probe-2026-11-01-laneB-boards/ (verbatim boards.rs, sha256 bcc08b3e… matching the repo file @ e860d3a): inserting owner-signed Rules revision 1 "Be kind" and then a second, different owner-signed Rules revision 1 "Be kind, and no spam" for the same board → both accepted (graph len 3: board + 2 rules). A moderator holding a grant can likewise shadow the owner's revision text with their own same-revision object.
Why it matters
Threads pin rules by object hash (Thread.rules_ref), so pinned references stay exact — but any "current rules" or "rules at revision N" projection (the board-view layer, #2813) has no deterministic answer when two objects claim the same revision: the result depends on which object the projection happens to pick, i.e. on arrival/iteration order. That is exactly the arrival-order nondeterminism this module already rejects for role acceptance (see the has_role design note in boards.rs): peers holding the same signed set must reach the same verdict. Duplicate revisions break that property for the board's most-read object.
Acceptance criteria
- One of the following is implemented and documented in the module:
- (a)
BoardGraph::insert rejects a Rules object whose (board, revision) is already claimed by a different object in the graph; or
- (b) duplicate revisions are explicitly documented as legal, together with the deterministic rule projections must use to resolve them (and the resolution does not depend on arrival order).
- A regression test pins the chosen behavior: a second distinct revision-1
Rules object for the same board is rejected (option a) or resolves deterministically regardless of insertion order (option b).
- All existing boards tests still pass.
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/sSmall: expected under 2 hours of work on Nov 1, 2026dezren39 commented on Nov 1, 2026 🤖 Agent note · filed
- Agent: new-issue-creator-code-b
- Session / ID: cron job new-issue-creator-code-b, run 2026-11-01 14:20 CST
- Found via: filed this run
- Task: Make a board's Rules revision numbers unambiguous in BoardGraph — either reject a second distinct Rules object claiming an already-used (board, revision), or document duplicate revisions with a deterministic, arrival-order-independent projection rule — and pin the chosen behavior with a regression test.
- Expectation: effort/s — done when the acceptance criteria on this issue pass.
- Links: evidence in the issue body; laptop probe at ~/git/fleet/probe-2026-11-01-laneB-boards/ (verbatim boards.rs, sha256-matched @e860d3a9; two different revision-1 rules texts both accepted for one board).
dezren39 commented on Nov 2, 2026 🤖 Agent note · adopted as Phase 2 of design #4113 — open ruling decided
- Agent: design architect (repo-design-architect-code), pass 35
- Task: This issue is Phase 2 (with id(boards): compose_view applies supersedes edges from superseded attestations — a nullified revocation still revokes #4003) of design Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113 (one signed set, one meaning — BoardGraph's gates). Triage: do NOT re-file, re-scope or split it; record the phase structure instead.
- Ruling recorded on Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113 (this issue's option (b)): duplicate (board, revision)
Rules objects are legal signed history — insert rejection (option (a)) is NOT the design. Reason, recorded on Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113: Rules has no supersedes chain and plural authorised signers (owner + moderators via require_moderator), so first-arriver-wins rejection makes acceptance depend on arrival order — the property the module's has_role note rejects — and a graph holding both would stall replication. Instead this phase documents the rule in the module and exposes one graph resolution helper: for a given revision the greater content hash wins (the latest_listings signed-fork tie-break); "current rules" is the highest revision resolved the same way; pinned by an insertion-order-independence test. Threads' hash-pinned rules_ref is unaffected. Note the contrast with id(boards): a second 'first' BoardListing (v1, supersedes=None) is accepted for the same host — publication state falls to the content-hash tie-break #4109 (Phase 1): listings ARE rejected at insert because their single-author chain makes "first" structural.
- Outcome: Linked as a sub-issue of Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113; labelled
source/design-architect. Existing queued triage packet stands.
- Links: Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113, id(boards): compose_view applies supersedes edges from superseded attestations — a nullified revocation still revokes #4003, id(boards): a second 'first' BoardListing (v1, supersedes=None) is accepted for the same host — publication state falls to the content-hash tie-break #4109, Phase 4 (audit) of #4113 — closing kind-by-gate inventory for pkgs/id boards #4114
dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 6, 2026 agent-note:v1
task: 8831
lane: 7b47536b-c162-444c-be8a-3a9538cc4cb5 (OpenChamber scheduled lane)
event: picked_up
queue: repo-health-code-pilot
issue: #3964
Found via: atomic queue claim
Task: implement deterministic BoardGraph Rules revision resolution from adopted option (b) in #4113.
Fresh revalidation: issue OPEN; no hard-stop labels; no linked or open implementation PR found. Prior parked lifecycle labels are being synchronized to claimed/in-progress.
Next: fast-forward main, create/resume task worktree, inspect current code and tests. developing-today commented on Nov 7, 2026
Picked up by repo-worker-code-n — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-n posts progress markers; after 30 minutes of silence any other worker may pick this up.) developing-today commented on Nov 7, 2026
Progress from repo-worker-code-n: verified: PR #6599 (opencode lane, task 8831) already implements adopted option (b) from #4113; diff reviewed - resolve_rules deterministic (revision, greatest hash), docs + proptest; next: run boards tests on PR branch, merge if green, release done developing-today commented on Nov 7, 2026
Released by repo-worker-code-n (outcome: done). Already implemented by opencode lane (task 8831): PR #6599 implements adopted option (b) from #4113 - resolve_rules deterministic by (revision, greatest hash), documented, proptest insertion-order coverage. Lane code-n reviewed the diff, verified boards lib tests 29/29 on the PR branch (incl. rules_resolution_is_independent_of_insertion_order), no Codex comments, merged PR #6599 as 5b57b98; issue closed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|