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

id: design: selective-sharing grants model (from #5672) #5799

New issue
Copy link
New issue
Copy link
Closed
Closed
id: design: selective-sharing grants model (from #5672)#5799
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Summary

Follow-on design ticket from #5672 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.

What this design must settle

The grants model for selective sharing: units of sharing, operations, expiry, revocation, and delegation — who may share what slice, and how the grant ends.

Context from the parent

The parent design fixes the selective-sharing grants model, the existence-privacy rule, and the foreign data-store adapter contract. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.

Decision record expected

Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.

Relations

Parent: #5672. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).

Activity

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

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

    CODE-1482

  3. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 10202
    • Found via: queue claim
    • Task: Triage issue id: design: selective-sharing grants model (from #5672) #5799 (design: selective-sharing grants model, from id: design: ID selective sharing and foreign data-store adapters v1 #5672) — direct execution lane; confirming scope against the parent and the ruled read-authority model, then routing.
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage verdict (task 10202, lane code-g, 2026-11-05)

    Verdict: issue #5799 is live, well-scoped, and correctly placed — no defect, no duplicate, no blocker. It is ready for design work on its own merits.

    Verified fresh this run:

    • Parent id: design: ID selective sharing and foreign data-store adapters v1 #5672 is OPEN and was itself triaged today (task 10106, lane code-t): its acceptance is met by the filed decomposition, and work proceeds on the nine decomposition tickets individually — id: design: selective-sharing grants model (from #5672) #5799 (grants model), id: design: partial replication protocol (from #5672) #5800 (partial replication), id: design: encrypted shares & key distribution (from #5672) #5801 (encrypted shares), id: design: public shares through ID (from #5672) #5802 (public shares), id: design: foreign data-store adapter contract (from #5672) #5803 (adapter contract), id: design: IndexedDB adapter (from #5672) #5804 (IndexedDB), id: design: Postgres-over-HTTP adapter (from #5672) #5805 (Postgres-over-HTTP), id: design: Turso/libsql HTTP adapter (from #5672) #5806 (Turso/libsql HTTP), id: design: Redis→SQLite export + query-Redis-get-SQLite (from #5672) #5807 (Redis→SQLite), all OPEN.
    • id: design: selective-sharing grants model (from #5672) #5799's scope is exactly one design decision set: units of sharing, operations, expiry, revocation, delegation. Its decision-record requirement (chosen shape, rejected alternatives, implementation invariants — on the issue or in a linked doc/ record) is stated on the issue itself.
    • Boundary respected: the parent fixes the surrounding decisions (grants-model context, existence-privacy rule, adapter contract); id: design: selective-sharing grants model (from #5672) #5799 must not re-decide them, and any answer that would change a parent decision must be recorded explicitly on id: design: ID selective sharing and foreign data-store adapters v1 #5672 rather than silently forked — that instruction is already on the issue.
    • Relation to the knowledge-layer programme: id: design: selective-sharing grants model (from #5672) #5799's grants model is the selective-sharing sibling of the read-authority resolution order ruled on id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 (object → user default → server config → public); a design pass should state how the two compose, but neither re-opens the other.

    Routing: no follow-up queue task enqueued — mirroring the parent triage's reasoning (task 10106): the decomposition tickets are the follow-on work and already exist as open issues; a duplicate design task here would recreate per-item duplication. Implementation timing is, per the issue, a separate decision. No Drew decision is needed for the design to proceed.

    Issue #5799 stays open for the design work itself.

  6. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  7. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-h
    • Session / ID: task 10716
    • Found via: queue claim
    • Task: Handing off task 10716 for issue id: design: selective-sharing grants model (from #5672) #5799 to the opencode execution lane; claimant launches the bound opencode session. Fresh re-check at handoff: issue id: design: selective-sharing grants model (from #5672) #5799 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit).
    • Expectation: opencode claimant session drives task 10716 to a terminal state.
    • Links: issue id: design: selective-sharing grants model (from #5672) #5799
  9. 31 remaining items

  10. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-u
    • Session / ID: task 10716
    • Found via: queue claim
    • Task: Handing task 10716 for issue id: design: selective-sharing grants model (from #5672) #5799 to the opencode claimant — assigned_lane=opencode per fleet queue lane; claimant launches the bound opencode session. Fresh re-check at handoff: issue id: design: selective-sharing grants model (from #5672) #5799 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit).
    • Expectation: claimant session drives task 10716 to a terminal state; parked 30 minutes for that launch.
    • Links: issue id: design: selective-sharing grants model (from #5672) #5799
  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 5, 2026
  12. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane ec118cad-0fd3-4652-91c4-27432f2f2efd
    • Session / ID: task 10716
    • Found via: atomic queue claim
    • Task: produce the selective-sharing grants-model decision record for id: design: selective-sharing grants model (from #5672) #5799, consuming id: design: ID selective sharing and foreign data-store adapters v1 #5672 boundaries and id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 read-authority order; no implementation work.
    • Fresh check: id: design: selective-sharing grants model (from #5672) #5799 is OPEN; no hard-stop labels; PR search for id: design: selective-sharing grants model (from #5672) #5799 returned none. id: design: ID selective sharing and foreign data-store adapters v1 #5672 and id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 are OPEN and the parent existence-privacy and id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 resolution-order rulings are present.
    • Labels: synced to queue/claimed + status/in-progress + work/assigned.
    • Links: task 10716 · issue id: design: selective-sharing grants model (from #5672) #5799
  13. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Grants-model decision record (2026-11-05; task 10716)

    Decision

    Grant unit and subject. V1 has two first-class resource units: an individual object and a stable collection. A collection grant applies to objects in that collection when authorization is evaluated, including later additions to that same collection. Database/table selectors are convenience shorthands expanded at grant creation to the then-selected stable collection IDs; they do not silently include newly created collections. V1 does not support per-field or redacted-field grants. A grant names one or more ID identities/keys, groups, or the public audience, as allowed by the parent design.

    Operations. A grant contains an explicit operation set: read, subscribe (receive ongoing updates), write, and append, where the data type and adapter support each operation. subscribe requires read; write and append are distinct and never implied by read access. An adapter must reject unsupported operations rather than silently widening or degrading them. Mutations always require an explicit write/append capability.

    Authority resolution. Preserve #5678's read order exactly: object → owner user default → server config → public. A collection policy is evaluated as part of the effective object-level policy for its member objects; an explicit object setting overrides the collection policy. At each tier, the first configured policy wins: an explicit restricted policy that does not name the requester denies access and does not fall through to a broader lower tier; inherit is the only fall-through. Identity and group grants refine the policy at the tier where they are configured. The resolver is the sole read-authority path—there is no separate share endpoint that bypasses it. The public fallback remains #5678's baseline; creating a private grant does not publish an object. Public publication remains an explicit, separate action.

    Duration. Every grant must choose exactly one mode; omission is invalid rather than silently permanent:

    • standing: valid until revoked;
    • expires_at: valid through a specified UTC instant, checked by the authority server on each access and update delivery;
    • snapshot_once: permits one initial read snapshot only, with no subscription or later re-fetch (retries belong to that same transfer).

    Revocation. Revocation takes effect at the issuer on the next authorization check: stop new reads/writes, terminate subscriptions and stop future replication. Notify the peer where the protocol supports it. Do not promise deletion or cryptographic take-back of plaintext already copied by a recipient; this matches #5672's stated boundary. Encrypted-share key distribution and its stronger revocation properties belong to #5801, not this decision.

    Delegation. Delegation is off by default. A grant can delegate only with an explicit delegation capability. Each child must be attenuated: no broader object/collection scope, no additional operations, and an expiry no later than the parent. Re-delegation is not inherited unless explicitly allowed. The issuer can inspect the grant lineage, and revoking a parent invalidates its descendants.

    Composition with existence privacy and partial replication

    Apply #5672's existence-privacy rule unchanged: to an unauthorized peer, an absent object and an existing-but-ungranted object have the same protocol-visible result; do not reveal withheld IDs, counts, names, metadata, or membership through listings, queries, or update feeds. A private grant does not grant transitive access to referenced objects. The treatment of dangling references/redacted placeholders and the exact partial-snapshot/update protocol remain #5800's decision; that protocol must preserve this no-enumeration invariant.

    Rejected alternatives

    • Database-wide access as the only unit: too coarse; database/table convenience selectors instead expand to visible, auditable collection scopes.
    • Object-only grants: cannot express the parent design's collection-level sharing.
    • Per-field grants in v1: adds partial-value/redaction semantics that the parent does not establish; defer to a separately scoped design if required.
    • Read implies subscribe or mutation: violates least authority and makes a nominal snapshot grant unexpectedly persistent or writable.
    • Union all matching policy tiers: can let a broad default override the more-specific object setting and contradicts id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678's ordered resolution.
    • Unrestricted delegation or guaranteed cryptographic take-back: either permits authority amplification or promises control over bytes already copied; reject for the invariants above.

    Implementation invariants

    1. Every access is authorized by the id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 resolver and the selected grant's subject, scope, operation, and lifetime.
    2. Expiry is checked for each access/update; revoked and expired grants deliver no further data.
    3. A collection grant cannot escape its stable collection scope; database/table expansion is recorded, not an implicit wildcard.
    4. Subscribe requires read; write/append require their own explicit capabilities and adapter support.
    5. Delegated grants are attenuated and bounded by their parent; parent revocation cascades.
    6. Unauthorized and nonexistent resources are indistinguishable in protocol-visible results, and partial replication exposes no withheld-object inventory.
    7. Revocation guarantees future server-side denial, not erasure of recipient-held plaintext.

    Boundary: this settles the grants model only. It does not implement grants or settle #5800's replication mechanics, #5801's encryption/key distribution, #5802's public-share UX, or any adapter behavior.

  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  15. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (design record)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane ec118cad-0fd3-4652-91c4-27432f2f2efd
    • Session / ID: task 10716
    • Outcome: grants-model decision record posted and cross-checked against id: design: ID selective sharing and foreign data-store adapters v1 #5672 and id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678. id: design: selective-sharing grants model (from #5672) #5799 remains OPEN for its broader design work; this task did not implement code or open a PR.
    • Verification: fresh issue view confirms the record; no matching PR; code tests and CI not applicable.
    • Bookkeeping: sandbox backlog and sweep log deferred to fleet reconciliation.
    • Links: task 10716 · decision record
  16. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-x
    • Session / ID: task 12301 (triage)
    • Found via: queue claim
    • Task: Triage verdict for issue id: design: selective-sharing grants model (from #5672) #5799 — explicit verified closure with evidence
    • Expectation: issue id: design: selective-sharing grants model (from #5672) #5799 closed as completed; no fix packet — the design's own acceptance is met and implementation is explicitly a separate, later decision

    Verdict: the design is settled; closing per this issue's own acceptance.

    This ticket's acceptance is a recorded decision: "Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold." That record exists on this issue: the grants-model decision record posted 2026-11-05 by task 10716 (#5799 (comment)), cross-checked against parent #5672 and #5678. It settles every question in "What this design must settle" — units of sharing (object + stable collection), operations (read/subscribe/write/append as distinct capabilities), expiry (standing / expires_at / snapshot_once), revocation (next-check denial, no plaintext take-back promise), and delegation (off by default, attenuated children, parent revocation cascades) — plus rejected alternatives and seven implementation invariants.

    Why no fix packet: implementation is out of this ticket's scope by its own text ("implementation timing is a separate decision, possibly months out"; the record's boundary: "does not implement grants"). The neighboring designs the record defers to are filed and open separately — #5800 (partial replication), #5801 (encrypted shares & key distribution), #5802 (public shares) — so closing this ticket orphans nothing. The done-task-only audit flagged this issue only because no merged PR references it; design tickets close on their decision record, which is present and complete.

  17. dezren39
    closed this as completedon Nov 8, 2026
  18. developing-today
    added
    status:done
    on Nov 8, 2026
  19. dezren39
    added a commit that references this issue on Nov 25, 2026

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

    7e396fb
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)status:donetask/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.