GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #3964

New issue
Copy link
New issue
Copy link
Closed
#6599
Closed
id(boards): Rules revision numbers are not unique per board — two different revision-1 rule texts coexist in one graph#3964
#6599
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 1, 2026
Issue body actions

Bug

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.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 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).
  3. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  4. dezren39
    added a parent issue on Nov 2, 2026
    • Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113
  5. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Nov 2, 2026
  6. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 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
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  8. 121 remaining items

  9. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 6, 2026
  10. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-e
    • Session / ID: task 8831
    • Found via: queue claim
    • Task: handing task 8831 for issue id(boards): Rules revision numbers are not unique per board — two different revision-1 rule texts coexist in one graph #3964 to the opencode claimant (assigned_lane=opencode); claimant launches the bound opencode session
    • Expectation: claimant picks up task 8831; attempts 20/24
    • Links: issue id(boards): Rules revision numbers are not unique per board — two different revision-1 rule texts coexist in one graph #3964
  11. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    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.

  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 6, 2026
  13. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    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.)

  14. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    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

  15. developing-today
    closed this as completedin #6599on Nov 7, 2026
  16. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    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.

  17. developing-today
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.