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): Post embed_ref is never validated — dangling and cross-board game-post references are accepted into BoardGraph · Issue #3963 · developing-today/code

id(boards): Post embed_ref is never validated — dangling and cross-board game-post references are accepted into BoardGraph #3963

New issue
Copy link
New issue
Copy link
Closed
#4513
Closed
id(boards): Post embed_ref is never validated — dangling and cross-board game-post references are accepted into BoardGraph#3963
#4513
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/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Bug

BoardGraph validates every object reference a Post carries — thread, parent post, and each attachment get existence + same-board scope checks via require_scoped — except embed_ref. A post whose embed_ref names a hash that is not in the graph at all, or a post that lives in a different board, is accepted into the graph. The module header promises the graph "checks signatures, canonical references, board scope, and the authority rules needed to accept an object" (pkgs/id/src/boards.rs:3-9); embed_ref is the one reference class that escapes that promise.

Evidence (verified this run, main @ e860d3a)

  • pkgs/id/src/boards.rs:62-68 — GamePostRef { object: ArtifactHash }, "Hash of the immutable signed game-post object."
  • pkgs/id/src/boards.rs:145 — Post.embed_ref: Option<GamePostRef>.
  • pkgs/id/src/boards.rs:505-524 — the BoardObject::Post arm of validate_links checks require_board, require_scoped(thread), the parent post (incl. same-thread), and every attachment — embed_ref is never read.
  • Laptop probe ~/git/fleet/probe-2026-11-01-laneB-boards/ (verbatim boards.rs, sha256 bcc08b3e… matching the repo file @ e860d3a; faithful minimal SignedArtifact harness; all 8 built-in boards tests pass):
    • post with embed_ref = hash of a nonexistent object → insert Ok (accepted)
    • post with embed_ref = a real post in a different board → insert Ok (accepted)
    • controls: the same missing hash as an attachment → insert Err; the same foreign post as an attachment → insert Err

Why it matters

The board graph is the validation substrate every later layer (replication #3806, board views #2813) will trust: an object in the graph is supposed to have had its references checked. A dangling embed reference means projections must re-validate (or render broken embeds), and a cross-board embed reference breaks the board-scope invariant the rest of the module enforces everywhere else — including for the attachments on the very same post.

Acceptance criteria

  • A Post whose embed_ref names an object not present in the graph is rejected at BoardGraph::insert with a clear error.
  • A Post whose embed_ref names an object scoped to a different board is rejected at insert.
  • The expected kind of the referenced object is decided and documented (a dedicated game-post object kind does not exist yet in v1; at minimum existence + same-board scope via require_scoped, with the kind rule stated in the code/docs for when the game-post type lands).
  • Regression tests in the boards.rs test module cover the missing-object and cross-board embed_ref cases, mirroring the existing attachment controls.
  • 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: Validate Post.embed_ref in BoardGraph::validate_links (existence + same-board scope, like attachments), decide/document the expected referenced kind, and add regression tests for missing and cross-board embed references.
    • Expectation: effort/s — done when the acceptance criteria on this issue pass, including the two new rejection tests mirroring the attachment controls.
    • Links: evidence in the issue body; laptop probe at ~/git/fleet/probe-2026-11-01-laneB-boards/ (verbatim boards.rs, sha256-matched @e860d3a9; embed_ref missing/cross-board accepted, attachment controls rejected).
  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 1 of design #4113

    • Agent: design architect (repo-design-architect-code), pass 35
    • Task: This issue is Phase 1 (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) 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.
    • Decision recorded on Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113 that binds this phase: embed_ref is validated in the Post arm of validate_links via require_scoped (existence + same-board scope), and the kind rule is stated in the module doc: in v1 the target must be a Post — the only game-post object kind in the graph; when a dedicated game-post kind lands, the kind check updates in the same change that adds the kind. Lazy/projection-time validation was considered and rejected on Design: one signed set, one meaning — BoardGraph's gates hold at insert, projection and replication (pkgs/id) #4113.
    • 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): 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
    removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  8. 66 remaining items

  9. dezren39
    added
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Nov 3, 2026
  10. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-02 20:12 CST
    • Found via: monitor reconciliation
    • Task: Claim-evaporated repair: task 6273 is queued unclaimed (attempts 3/3, checkpoint stage handed_off) while this issue still carried claimed labels. Labels reset to queue/queued + status/needs-triage so GitHub matches the queue. The task is DEAD at its attempt cap and can never be claimed again — operator repair: raise the cap or enqueue a fresh packet resuming from stage handed_off.
    • Expectation: operator/lane pickup after repair; no holder is currently working this issue.
  11. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    status/parkedDeliberately paused with a recorded resume condition
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  12. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code (OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a)
    • Session / ID: task 6273
    • Found via: repo-health-code-pilot queue claim (fresh revalidation: issue OPEN, PR fix(id/boards): validate Post.embed_ref at insert #4513 OPEN head 9454f3b on this task branch, no held/user/owned/do-not-merge labels; guard pass)
    • Task: validate Post.embed_ref at insert + regression tests; verify branch tests + PR checks, then merge under standing criteria
    • Expectation: verify worktree/branch, run boards tests, disposition review, merge if green
    • Links: PR fix(id/boards): validate Post.embed_ref at insert #4513 · issue id(boards): Post embed_ref is never validated — dangling and cross-board game-post references are accepted into BoardGraph #3963
  13. dezren39
    closed this as completedin #4513on Nov 3, 2026
  14. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: repo-worker-code (OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a)
    • Session / ID: task 6273
    • Found via: repo-health-code-pilot queue claim
    • Task: validate Post.embed_ref at insert via require_scoped (post-kind, same-board) + regression test; updated branch to latest main, re-verified
    • Expectation: met — boards 28 pass incl new post_embed_ref regression; checks green; Codex completed no findings; PR fix(id/boards): validate Post.embed_ref at insert #4513 MERGED (1a26a90), issue auto-closed
    • Links: PR fix(id/boards): validate Post.embed_ref at insert #4513 · merge 1a26a90
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 3, 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/triageQueue packet kind: verify, reproduce, and route this item

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.