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 — feat(id): signed board object graph v1 (#2812) by dezren39 · Pull Request #3892 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Phase 1 of the boards program: the signed board object graph v1, commissioned for #2812 by the #2054 synthesis (queue task 5811).

What changed

  • New pkgs/id/src/boards.rs (900 lines, gated on the world feature in lib.rs): signed-object types Board, Rules, Forum, Thread, Post, Attachment, Membership, RoleAttestation (+ BoardRole), ModerationAction, BoardFork, plus Supersede and Tombstone — all as variants of BoardObject carried by SignedBoardObject (sign / verify / hash, hash-linked via ArtifactHash).
  • Post carries the embed_ref hook (Option<GamePostRef>) for id: investigate: embedded playable posts — HTML5 mini-games, async challenges, and forkable succession saves #2053.
  • BoardGraph insert validates the graph invariants: scoped parents, supersede relations (same type, same author, identity roots cannot be superseded, no self-supersede), and role-attestation supersession (same subject + role).
  • 5 unit tests in-module covering signing/verification and the graph rules.
  • No view layer and no moderation enforcement, per id(boards): candidate — board object types in the ID graph (route via #2054) #2812's scope.

Verification status

  • Implementation was complete at the implementation_complete checkpoint (prior lane); this lane committed it unchanged (96ff011), pushed, and opened this PR.
  • Focused test runs have twice timed out at compile under current laptop load (~64-80, fleet-wide build storm) before executing: boards::tests still needs a completed run. This PR is parked with queue task 5811 until that run lands; do not merge before it passes and Codex review is dispositioned.

Refs #2812 (does not close it — merge follows verification).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
feat(id): signed board object graph v1 (#2812)
96ff011
@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 17:49
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 661b42e3-ac07-4616-9c51-ffab1c5d3a1f
Commits

Reviewing files that changed from the base of the PR and between f7c942b and e01791c.

Files selected for processing: 2
  • pkgs/id/src/boards.rs
  • pkgs/id/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T20:07:41.844724Z e01791c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 1, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96ff01180e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/boards.rs
Comment on lines +627 to +630
fn require_moderator(&self, board: &ArtifactHash, author: &str) -> Result<()> {
let root = self.require_board(board)?;
if root.artifact.author == author || self.has_role(board, author, BoardRole::Moderator) {
return Ok(());

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 1, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Validate moderator authority against signed causal history

When a moderator's objects are imported after their role revocation, this check rejects legitimate historical objects because has_role uses the graph's current role frontier. For example, inserting root → grant → moderator-authored forum → revocation succeeds, but inserting root → grant → revocation → the same forum fails, even though all of the forum's explicit references are present. Consequently, peers replaying the same signed objects in different cross-author arrival orders cannot reconstruct the same graph. Authority needs to be evaluated against a verifiable causal context for the object, rather than whichever attestations happened to arrive first.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 03e320f, with the semantics made explicit: a signed object carries no causal pointer to the grant/revocation that would order it, so frontier-based authority made graph reconstruction arrival-order dependent — the defect named here. Acceptance now rests on grant existence in the graph (has_role: any granted attestation for board/member/role present), which every peer holding the grant evaluates identically in any arrival order; your scenario root -> grant -> revocation -> forum now inserts, matching root -> grant -> forum -> revocation. Revocations remain signed history in the graph and are enforced by the view/serving layers that decide what is served now; this substrate (per #2812 scope) records and validates objects and does not enforce moderation — that boundary is documented on has_role. Regression test: moderator_acceptance_does_not_depend_on_revocation_arrival_order (both orders reconstruct; no-grant still rejects).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/boards.rs
Comment on lines +493 to +495
if let Some(parent) = &value.parent_post {
self.require_scoped(parent, &value.board, "post")?;
}

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 1, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check that a reply's parent belongs to its thread

When a board contains multiple threads, a post can name one thread in thread while naming a post from another thread in parent_post: require_scoped checks only the board and object kind. Both references therefore pass validation, leaving an accepted reply whose ancestry crosses thread boundaries. Check that the referenced parent post's thread equals the new post's thread so thread membership also bounds reply ancestry.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 03e320f: Post validation now resolves the parent post and requires parent_post.thread == the reply thread, so reply ancestry cannot cross thread boundaries. Regression test: reply_parent_must_belong_to_the_same_thread (accepts a same-thread reply, rejects a cross-thread one).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/boards.rs
Comment on lines +365 to +368
Self::Supersede(value) => ensure!(
value.previous != value.replacement,
"an object cannot supersede itself"
),

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 1, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject cycles in supersede relationships

For two same-author posts A and B in the same board, both Supersede(A, B) and a subsequent Supersede(B, A) pass validation: this inequality rejects only direct self-supersession, and validate_links never checks existing replacement paths. The accepted history therefore contradicts the documented earlier/new version relationship and has no terminal replacement for either post. Reject a supersede edge when its replacement already reaches its previous object, or otherwise enforce a strictly forward version ordering.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 03e320f: Supersede validation now walks the existing replacement chain from the new replacement (via BoardGraph::supersede_replacement) and rejects the edge if it reaches the previous object, so A->B followed by B->A is refused; the walk is visited-set guarded. Regression test: supersede_cycles_are_rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Nov 1, 2026
id(boards): candidate — board object types in the ID graph (route via #2054) #2812
Closed
id(boards): candidate — Theme object format v1 + board-view rendering (route via #2054) #2813
Closed
id(boards): replicate signed board object sets across hosts and publish listings #3806
Closed
@dezren39
fix(id): disposition Codex findings on board graph v1 (#2812)
03e320f
- reply parent post must belong to the same thread as the reply (P2)
- reject supersede edges that would close a replacement cycle (P2)
- moderator acceptance is based on grant existence in the graph, not the
  current role frontier, so reconstruction is arrival-order independent;
  revocations remain signed history for view/serving layers to enforce (P1)
- regression tests for all three findings
@dezren39

dezren39 commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

@codex review — new commit 03e320f dispositions all three findings from the 96ff011 round (see replies on each thread); please re-review the updated boards.rs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 1, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03e320f9f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/boards.rs Outdated
Comment on lines +622 to +625
.find_map(|signed| match &signed.object {
BoardObject::Supersede(value) if &value.previous == previous => {
Some(value.replacement.clone())
}

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 1, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Traverse every supersede successor when checking for cycles

When a version has multiple replacements, find_map follows only the supersede record with the smallest artifact hash, although insertion does not prohibit multiple outgoing edges. For example, after accepting same-author post relationships A→B and A→C, if A→B sorts first, inserting C→A follows A→B and succeeds despite creating the cycle A→C→A. The fresh evidence beyond the earlier cycle finding is that the new helper silently discards alternate replacement paths. Traverse all successors when checking reachability, or explicitly enforce one replacement per previous object.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e01791c: the cycle check is now a full reachability traversal — BoardGraph::supersede_replacements returns every successor and the check DFS-walks all of them (visited-set guarded), so A->B, A->C, then C->A is rejected regardless of hash order. The regression test supersede_cycles_are_rejected now includes exactly that multi-successor case.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
fix(id): traverse every supersede successor in cycle check (#2812)
e01791c
Codex re-review of 03e320f: find_map followed only the first
supersede successor, so a cycle through an alternate replacement
(A->B, A->C, then C->A) passed. Cycle check is now a full
reachability traversal over all supersede successors, with a
multi-successor regression case.
@dezren39
dezren39 merged commit 182a5c8 into main Nov 1, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/5811-2812-signed-board-graph branch November 1, 2026 20:17
This was referenced Nov 1, 2026
feat(id): signed themes and layered board views (#2813) #3971
Merged
feat(id): signed board listings and native-host replication (#3806) #4048
Merged
id: implement ID boards v1 - signed boards, portable themes, playable posts (design #2054) #5525
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.