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: foreign data-store adapter contract (from #5672) · Issue #5803 · developing-today/code

id: design: foreign data-store adapter contract (from #5672) #5803

New issue
Copy link
New issue
Copy link
Closed
Closed
id: design: foreign data-store adapter contract (from #5672)#5803
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)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 adapter contract itself: addressing, type mapping, live vs materialized reads, and credential handling — the contract every foreign-store adapter implements.

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-1486

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage routing (from task 10106, issue #5672)

    • Agent: queue worker (repo-worker-code), lane code-t
    • Session / ID: task 10106
    • Found via: queue claim (triage of issue id: design: ID selective sharing and foreign data-store adapters v1 #5672)
    • Task: routing the p2panda foreign-store candidate from issue id: design: ID selective sharing and foreign data-store adapters v1 #5672's WS-F2 cross-link comment onto this adapter-contract ticket, where it belongs
    • Expectation: this ticket's design evaluates p2panda alongside the named candidates (Turso, IndexedDB, Postgres, Redis)

    Issue #5672's cross-link comment (WS-F2 mining pass, 2026-11-04) names p2panda as a foreign-store candidate that appears nowhere else in the tracker: whether ID data should be exposable to / queryable from p2panda-shaped stores (and vice versa), or whether ID's own journal already covers the shape and p2panda is a conversion target at most (the Redis→SQLite one-shot pattern). Verified during task 10106 triage: this ticket's body does not mention p2panda, so the candidate is recorded here rather than only on the parent. No separate issue filed — the evaluation question is part of this ticket's adapter-candidate scope.

  4. 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
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage)

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 10206
    • Found via: queue claim
    • Task: Triage issue id: design: foreign data-store adapter contract (from #5672) #5803 (foreign data-store adapter contract design, from issue id: design: ID selective sharing and foreign data-store adapters v1 #5672)
    • Expectation: design ticket; triage done = scope, inputs, ordering and blockers recorded below
    • Links: parent issue id: design: ID selective sharing and foreign data-store adapters v1 #5672 (OPEN)

    Triage findings (verified fresh 2026-11-05 via gh):

    • Issue id: design: foreign data-store adapter contract (from #5672) #5803 is OPEN. Labels: task/triage, queue/queued, app/id. No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit) and no user/review / user/escalated.
    • This is a follow-on design ticket from issue id: design: ID selective sharing and foreign data-store adapters v1 #5672 (OPEN: "ID selective sharing and foreign data-store adapters v1"), filed in the 2026-11-04 WS-F gap pass; programme epic issue epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 per the body. It is not already handled or superseded.
    • Scope to settle (from the body): the adapter contract itself — addressing, type mapping, live vs materialized reads, and credential handling — as the contract every foreign-store adapter implements.
    • Fixed inputs, do not re-decide: the parent (issue id: design: ID selective sharing and foreign data-store adapters v1 #5672) fixes the selective-sharing grants model, the existence-privacy rule, and the foreign data-store adapter contract framing. If this ticket's answer would change a parent decision, that must be recorded explicitly on issue id: design: ID selective sharing and foreign data-store adapters v1 #5672 / here, not silently forked.
    • Candidate set (updated by the task 10106 triage routing note posted on this issue today): Turso, IndexedDB, Postgres, Redis, plus p2panda — including the explicit question whether p2panda is a real adapter candidate or only a conversion target (the Redis→SQLite one-shot pattern), or whether ID's own journal already covers that shape.
    • Deliverable / close condition: a recorded decision (on this issue or in a doc/ record linked from it): chosen contract shape, alternatives rejected and why, and the invariants implementation must hold. Further splits get filed as their own tickets and linked here, not grown into this issue.
    • Ordering / blockers: the final decision record depends on the parent design (issue id: design: ID selective sharing and foreign data-store adapters v1 #5672) settling its grants model and existence-privacy rule — those are still open, so exploratory evaluation of candidates can proceed now, but the contract decision should not be closed as final before the parent's decisions land, or it must state its assumptions against them. No Drew decision and no access blocker; implementation timing is explicitly a separate decision (per the filing note, possibly months out).

    Triage complete for task 10206; issue #5803 stays open for the design decision.

  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. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · triage verdict (queue task 12304, lane code-b, 2026-11-07)

    Verdict: REAL AND CURRENT — adapter-contract design unstarted, converted to a work packet

    Re-verified fresh this shift:

    • Issue id: design: foreign data-store adapter contract (from #5672) #5803 is OPEN, labels task/triage, app/id — no hard-stop labels. Prior triage (task 10206, 2026-11-05) scoped it; the done-task-only audit (code#7016) found no landed evidence, and that still holds.
    • No decision record exists: PR search for id: design: foreign data-store adapter contract (from #5672) #5803 returns only unrelated PR Update Rust crate tokio to v1.38.2 [SECURITY] #135, and a search of doc/ in developing-today/code finds no adapter-contract record.
    • Parent id: design: ID selective sharing and foreign data-store adapters v1 #5672 is OPEN (its fixed decisions — selective-sharing grants model, existence-privacy rule — are not to be re-decided here). Programme epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 is the umbrella. The p2panda candidate routed here from id: design: ID selective sharing and foreign data-store adapters v1 #5672's triage (task 10106) still awaits disposition in this ticket's design.

    Routing

    Converted to a work packet (kind small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:5803) scoped to producing the decision record: addressing, type mapping, live vs materialized reads, credential handling, alternatives dispositioned, invariants stated. Per Drew's triage doctrine, this triage does NOT close the issue — it returns for real work via that packet. The packet's task id is named in the completing checkpoint/result for task 12304.

  9. 70 remaining items

  10. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-p (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-p run 2026-11-08; task 12890
    • Found via: claimed task 12890 this shift; execution-lane assignment returned opencode (lane row 4732)
    • Task: task 12890 for issue id: design: foreign data-store adapter contract (from #5672) #5803 (small_fix). Fresh check: issue id: design: foreign data-store adapter contract (from #5672) #5803 is OPEN, no hard-stop labels. Handed off to the opencode claimant; this lane does not work it directly. Checkpoint handed_off recorded.
    • Expectation: claimant session drives task 12890 to a terminal state.
    • Links: task 12890 · issue id: design: foreign data-store adapter contract (from #5672) #5803
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Adapter-contract decision record — task 12890 (2026-11-08)

    Current-state re-verification: issue #5803 remains open. Parent #5672 is now closed: its latest closure record says its decomposition acceptance was met and the child designs continue independently (closure evidence). This decision applies the parent's Part B adapter framing and its selective-grant/existence-privacy constraints; it does not change the parent's grants, revocation, delegation, or privacy decisions. The fuller companion record is in PR #7739 (still open; not represented as merged).

    Chosen shared contract

    • Addressing: every exposed foreign collection has a stable ID-level reference of the form id://foreign/<adapter-id>/<source-alias>/<resource-path>. The alias resolves only in owner-local endpoint configuration; adapter-native locators (origins, URLs, database paths) and secret-bearing URL parts are not embedded in shared ID references. Resource paths are adapter-canonical, versioned, and may not collapse distinct source collections. Only owner-selected collections are exposed.
    • Type mapping: each adapter publishes a versioned, explicit mapping into the common ID vocabulary: null, boolean, signed 64-bit integer, finite float64, UTF-8 string, bytes, UTC-microsecond timestamp, ordered list, string-keyed record, and namespaced/versioned tagged values where a source type must remain distinct (for example, out-of-range BigInt). No implicit coercion or silent field/record loss: unsupported or lossy values are rejected or reported with a typed loss report. A decimal string alone is not a lossless BigInt mapping unless the mapped schema explicitly tags it as such.
    • Live vs. materialized: adapters declare supported modes; the owner chooses an allowed mode per collection. Adapter-specific defaults are explicit (or configuration is required). Live reads have bounded deadlines and report observation/consistency; failures do not become empty results or silently fall back to stale snapshots. Materializations are bounded before copy, atomically replaced, and carry source/schema/mapping version, time, completeness, and loss provenance. Cross-source atomicity is never implied.
    • Direction and credentials: v1 is read-only against foreign stores; materialization is an ID-side copy, not write-back. A local opaque credential reference may resolve to a least-privilege secret at call time; raw credentials and secret-bearing locators never enter ID data, grants, references, snapshots, logs, traces, or errors. A grant provides access only to the selected ID data, never the source credential.
    • Failure/privacy: outcomes are stable and typed; partial/truncated results are marked and never presented as complete. Queries that cannot enforce the caller's grant at the source are refused rather than fetched broadly and filtered afterward. Grantee-visible responses collapse distinctions (including not-granted vs. not-found vs. unavailable) whenever they could reveal withheld existence or shape. This exact error-collapse choice is a conservative adapter policy: id: design: ID selective sharing and foreign data-store adapters v1 #5672 leaves that particular distinction open, so this record does not claim it was already settled at parent level.

    Candidate and alternative dispositions

    IndexedDB, Postgres-over-HTTP, Turso/libsql HTTP, and Redis/SQLite remain adapter-specific designs under their existing child tickets; each supplies its own supported query shapes, mode/default, mapping/loss cases, limits, and failure semantics while conforming to the shared contract. p2panda is deferred, not accepted as a v1 table adapter. The routed candidate is a distinct local-first/P2P protocol and append-only-log ecosystem with its own schema and identity surfaces; the issues establish no shared schema or concrete cross-ecosystem consumer. ID's native journal also means compatibility must not be inferred from the historical iroh-docs motivation. Revisit only with a named interop use case and explicit schema, identity, grant, and loss mapping; a one-shot export/conversion is also deferred until it has a concrete consumer.

    Rejected alternatives: adapter-invented shareable URI schemes (inconsistent identity/grant/privacy boundaries); physical locators or credentials in ID references (replication and disclosure risk); universal coercion (silent semantic loss); requiring every adapter to be live-only or materialize-only (source capabilities differ); and unrestricted raw query/write passthrough (can escape grants/limits and exceeds read-only v1).

    Implementation invariants

    1. Every exposed collection has an explicit owner selection, stable adapter identity, canonical ID reference, and grant boundary; aliases cannot silently rebind to another source.
    2. Queries never read beyond a grant or enumerate/infer withheld objects through IDs, counts, schema, result shape, or errors; unsafe query shapes fail closed.
    3. Credentials and secret-bearing physical locators never cross into replicated ID data, snapshots, logs, traces, payloads, or errors.
    4. Values are validated against the declared mapping version; no implicit coercion, silent truncation, or unreported loss.
    5. Live reads are bounded and freshness/consistency-labelled; source failure is not empty success or automatic stale fallback.
    6. Materializations are pre-bounded, atomic, provenance-bearing, and visibly stale/incomplete when applicable.
    7. Foreign adapters remain read-only in v1; no API or credential reference smuggles in source write-back.
    8. Grantee error collapsing preserves the parent's existence-privacy rule; any needed change to a parent-level decision must be recorded there first.

    Parent reconciliation: no change to any decision in #5672 is proposed. The adapter-level error-collapse assumption above is explicitly identified as an assumption, not a silent amendment to the parent.

  13. dezren39
    added
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  14. dezren39
    added a commit that references this issue on Nov 16, 2026

    Merge pull request #7739 from developing-today/queue/12890-5803-adapt…

    654b7f3
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage: already resolved)

    • Agent: queue worker (repo-worker-code), lane code-h (openchamber-scheduled-lane)
    • Task: 18376 (triage)
    • Evidence: PR #7739 (docs(id): record shared foreign adapter contract (#5803)) is MERGED (2026-11-16T10:51:21Z). It is the decision record this issue asks for; its contract covers the addressing, type mapping, live vs materialized reads and credential handling named in the issue body.
    • Verdict: design resolved by the merged decision record. Closing this issue; any further split would be a new issue.
  16. dezren39
    closed this as completedon Nov 17, 2026
  17. dezren39
    removed
    status:in-review
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
  18. developing-today
    added
    status:done
    on Nov 17, 2026
  19. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (already_done)

    • Agent: repo queue worker, lane code-c (repo-worker-code)
    • Task: 19899 (small_fix, bulk-intake triage follow-on for issue id: design: foreign data-store adapter contract (from #5672) #5803)
    • Evidence (fresh this shift, two independent gh reads): issue id: design: foreign data-store adapter contract (from #5672) #5803 is CLOSED (updated 2026-11-17T03:01:35Z, status:done). PR docs(id): record shared foreign adapter contract (#5803) #7739 "docs(id): record shared foreign adapter contract (id: design: foreign data-store adapter contract (from #5672) #5803)" is MERGED 2026-11-16T10:51:21Z, merge commit 654b7f3 — it is the decision record this issue asks for (addressing, type mapping, live vs materialized reads, credential handling). Closing triage was recorded by task 18376 (lane code-h) at 2026-11-17T03:01:28Z.
    • Verdict: already resolved before this claim; no new work, no follow-on packet needed. Task 19899 completes as already_done. No hard-stop labels present; no in-flight queue/work labels remain on the issue.
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)epic/id-programReprioritization program epic (2026-11-12)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.