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-web): store note grants in the node snapshot (#14790) by dezren39 · Pull Request #15444 · developing-today/code

Conversation

@dezren39

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

Uh oh!

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

Copy link
Copy Markdown
Member

Part of #14790

Before: the grants model could decide whether a grant admits a reader (may_read_with_grants) and could write and re-check a stored grant set (GrantSet::to_snapshot / from_snapshot), but the node held no grants. Nothing issued, kept or revoked them, so no grant survived a restart.

After: the node keeps its grant set beside the note checkpoint log and writes it into the same .note-checkpoints.json snapshot it already persists. A note owner can issue a grant over notes they own and revoke grants they issued, and CollabState::may_read_note answers reads with the owner's live grants added at the object tier.

How:

  • NoteCheckpointSnapshot gains an optional grants field. It is left out when the set is empty, so older snapshots read and write exactly as before.
  • On restore the grants load through GrantSet::from_snapshot before any state is replaced. A tampered or invalid grant snapshot fails the whole restart with NoteSnapshotError::Grants and replaces nothing.
  • grant_note_access stores only root grants whose issuer is the caller and whose every scope is a note the caller owns. An unknown note gets the same refusal as someone else's note, so a refusal never confirms that a note exists.
  • revoke_note_grant is limited to the issuer. A stranger's attempt gets the same answer as an unknown grant id.
  • Grants stay node-local in this slice. Replicating them as signed events is id: design: partial replication protocol (from #5672) #5800. No route calls these yet.

Tests in collab.rs cover:

  • a grant admitting a reader, and revoke ending that access;
  • the owner-only and note-only checks;
  • grants surviving a restart through the snapshot file;
  • a tampered grant snapshot failing the restart.

Generated by Claude Code


Open in [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.

All reactions
@claude
feat(id-web): store note grants in the node snapshot (#14790)
21d0426
The node now keeps its selective-sharing grant set beside the note
checkpoint log and persists it in the same snapshot file, loaded through
GrantSet::from_snapshot so a damaged grant snapshot fails the restart
instead of loading. Owners issue and revoke grants over notes they own,
and may_read_note composes may_read_with_grants with the node's group
roles. Grants stay node-local; replicating them as signed events is #5800.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 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 58 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: 444b3c88-44ab-4732-b6b0-551b78bc740b
Commits

Reviewing files that changed from the base of the PR and between 1b4339c and 21d0426.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 2

  • pkgs/id/crates/id-web/Cargo.toml
  • pkgs/id/crates/id-web/src/collab.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.

@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · shepherd stand-down (direct no-queue lane BO)

Standing down on this PR — classification (a), not a completed slice left in draft:

  • Live lane claim on the linked issue: id: impl: selective-sharing grants model core (from #5799) #14790's most recent comment (2026-11-26T07:48:52Z, @dezren39) reads "Claimed by lane 2, 2026-11-26T07:48Z, for the remainder: where a grant set lives in the running node" and records the design decision this PR implements. There is no later completion/release comment on id: impl: selective-sharing grants model core (from #5799) #14790 for this slice — unlike slices 1, 2a and 2b on that issue, each of which got an explicit "landed in #…" comment. The claim is therefore treated as live, and this lane will not merge over it.
  • No passed verification on the current head: head 21d04260c740e7b5c74830240e5b5df4f0b49cb2 has no successful verification run — the only check is the codesmith "Proof" check in skipping state. The PR body's stated tests have not been shown passing on this head.

What was verified by this lane: base is main, state OPEN/draft, mergeable CLEAN at check time; the diff is scoped to pkgs/id/crates/id-web (collab.rs, Cargo.toml, Cargo.lock) and matches the PR body / #14790 slice (grants in the note checkpoint snapshot, loaded via GrantSet::from_snapshot, node-local, replication left to #5800); no secrets or obvious defects spotted in review.

Next step belongs to lane 2 / the claiming lane: record completion on #14790 (or release the claim) and show a green verification run on the head above, after which this PR can be marked ready and merged under the standing merge authority.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39 Claude

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Verification run 45778348099 on head 21d0426: test-unit and test-shard-0..3 all passed. The only failed check is clippy-lint, and every one of its 64 errors is in files this PR doesn't touch (src/currency/gateway_poc.rs, id-worlds world_template/gesture/spill_pool, id-cli walk/publications_runtime, src/hosted_ingest.rs). The scheduled main nightly fails the same way, so this is pre-existing on main. Nothing in id-web (the crate changed here) errors. Merging on the green tests.


Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39
dezren39 marked this pull request as ready for review November 26, 2026 12:43
@dezren39
dezren39 merged commit d4a4e73 into main Nov 26, 2026
1 of 2 checks passed

Uh oh!

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

@dezren39
dezren39 deleted the claude/project-thread-oleea7 branch November 26, 2026 12:43
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
id: impl: selective-sharing grants model core (from #5799) #14790
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

2 participants

@dezren39 @claude
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.