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: impl: selective-sharing grants model core (from #5799) · Issue #14790 · developing-today/code

id: impl: selective-sharing grants model core (from #5799) #14790

New issue
Copy link
New issue
Copy link
Done
Done
id: impl: selective-sharing grants model core (from #5799)#14790
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first lookstatus:in-review

Description

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

Implementation of the #5799 grants-model decision record (#5799 (comment)). The record is closed and settled; this issue does not reopen it. No implementation of it existed on main as of 2026-11-25. It is the foundation the #5802 public-share slices (#14780 to #14784) and the #5800 replication work build on.

Scope, from the record:

  • Units: objects and stable collections. Database or table selectors expand at creation time and never act as wildcards.
  • Subjects: an identity, a group, or the public audience.
  • Operations: read, subscribe (requires read), write, append, each explicit.
  • Durations: standing, expires_at, snapshot_once. One must always be chosen.
  • Revocation: takes effect at the next check.
  • Delegation: off by default and attenuated (no wider scope, no extra operations, no later expiry). Re-delegation must be explicit, and revoking a parent cascades to its children.

Slices:

  1. A pure model crate holding the types, creation-time validation, the attenuation check and an authorization check over a grant set. It covers revocation, expiry, lineage and snapshot-once consumption, with the record's invariants as tests. It also settles the public-subject rules from id: design: public shares through ID (from #5672) #5802 D1 and D3 (read and subscribe only, never delegable), which id: impl: public principal and read-only public grants (from #5802) #14780 needs.
  2. Composing the model with the id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 read-authority resolver (id-store read_authority.rs) at the object tier, and persisting grants.

Done check: the record's seven invariants each have a test, and authorization never distinguishes "no such resource" from "not granted" in what it returns to the requester.

Acceptance criteria

  • The grants-model core from the id: design: selective-sharing grants model (from #5672) #5799 decision record is implemented on main: units are objects and stable collections, subjects are an identity, a group, or the public audience, and operations are as the record scopes them.
  • Database/table selectors expand at creation time and never act as wildcards (covered by tests).
  • The id: design: public shares through ID (from #5672) #5802 public-share slices (issues id: impl: public principal and read-only public grants (from #5802) #14780–id: impl: public-read path for published Turso collections in the libsql adapter (from #5802) #14784) and the id: design: partial replication protocol (from #5672) #5800 replication work can build on this core without reopening the record.

Activity

  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

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

    CODE-5400

  3. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Claimed by lane 6, 2026-11-25T02:40Z. Building slice 1 (pure id-grants crate) with builds and tests run remotely.


    Generated by Claude Code

  4. developing-today
    added
    status:in-review
    on Nov 25, 2026
  5. developing-today-fleet
    added
    kind/featureNew feature or capability request
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Intake review

    Related: #5799 (decision record), #5802, #5800, slices #14780–#14784

    Notes: Foundation slice; no implementation existed on main as of 2026-11-25 per the body. Nothing merged was found that resolves it — it is live.

    Risks: Getting selector-expansion semantics wrong would silently widen grants; this is the security-sensitive core the other slices inherit.

    Suggested approach: Implement exactly to the record, with property-style tests around selector expansion and subject/operation scoping before the dependent slices land.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25T02:14Z
    • Found via: monitor reconciliation
    • Task: intake enrichment (protocol §5)
    • Expectation: see the Intake review comment on this issue
  7. dezren39
    added a commit that references this issue on Nov 25, 2026

    id-grants: selective-sharing grants model core (slice 1 of #14790) (#…

    7e396fb
  8. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Slice 1 landed in #14792: the new pure id-grants crate holds the grants model (validation against the record's invariants, attenuated delegation, cascading revocation, snapshot_once consumption, and GrantSet::authorize), with 17 invariant tests passing on a remote run. It also covers #14780 (public principal, read-only, never delegable).

    Still open here: slice 2, composing GrantSet::authorize with id-store's read_authority resolver so the #5678 order and grants answer together.


    Generated by Claude Code

  9. dezren39
    added a commit that references this issue on Nov 25, 2026

    id-store: owner grants at the object tier of the read order (slice 2a…

    c9f9a80
  10. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Slice 2a landed in #14803: id_store::grant_authority::may_read_with_grants adds the note owner's live grants at the object tier of the #5678 read order. Unknown notes stay denied, and only grants rooted in one the owner issued count (GrantSet::authorize_rooted_in). Remote tests green.

    Left here: persisting grants (slice 2b), so the set survives a restart and replicates.


    Generated by Claude Code

  11. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Claimed by lane 6, 2026-11-25T03:22Z, for slice 2b (persisting grants), first part: a versioned serialized form of a GrantSet (grants, revocations, served snapshots) and a load that re-checks every grant and every delegation's attenuation, so a damaged or edited file cannot load a wider grant than was ever issued. Writing it into the store comes after.


    Generated by Claude Code

  12. dezren39
    added a commit that references this issue on Nov 25, 2026

    id-grants: versioned stored form for grant sets (slice 2b of #14790) (#…

    f280d6b
  13. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Slice 2b landed in #14834: GrantSet::to_snapshot and GrantSet::from_snapshot give a grant set a versioned stored form, and a load re-checks every grant and delegation and refuses the whole snapshot on any failure. Remote tests green.

    What remains for this issue is where the snapshot lives in the running node (a store table, or grants carried as signed events in the note log so they replicate). That choice shapes #5800 replication, so I'm leaving it for whoever picks up the store wiring rather than guessing it here.


    Generated by Claude Code

  14. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026 – with Claude
    MemberAuthor
    More actions

    Claimed by lane 2, 2026-11-26T07:48Z, for the remainder: where a grant set lives in the running node.

    Decision for this slice: the node keeps its grant set in the note checkpoint snapshot it already persists (.note-checkpoints.json, beside events, policies and changelogs), loaded through GrantSet::from_snapshot so a bad snapshot refuses the whole restart. Grants stay node-local. Carrying them as signed events that replicate is left to #5800, because grants are not signed objects yet and that needs a signature format first; the stored form is versioned, so moving later is a migration, not a rewrite. The node gains owner-only issue and revoke, and a read check that composes may_read_with_grants.


    Generated by Claude Code

  15. dezren39
    added a commit that references this issue on Nov 26, 2026

    feat(id-web): store note grants in the node snapshot (#14790) (#15444)

    d4a4e73
  16. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026 – with Claude
    MemberAuthor
    More actions

    Slice 2 landed in #15444 (squash d4a4e73): the node now keeps its grant set beside the note checkpoint log, persists it in .note-checkpoints.json, lets a note owner issue and revoke grants over their own notes, and answers reads through may_read_with_grants at the object tier. A tampered grant snapshot fails the restart before any state is replaced. With slice 1's model crate already on main, both slices of this issue are done, so I'm closing it.


    Generated by Claude Code

  17. dezren39
    closed this as completedon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first lookstatus:in-review

    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.