Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Visibility of derived search, navigation and federation metadata

**Design proposal dated November 23, 2026.** The motivating observations use the pinned sources below.

**Proposed integration contract.** Choose a visibility profile per peer class and entry point. The strict reader profile compares two stores that differ only in facts the principal cannot learn. The projected response must agree for the declared observables at the same visible frontier. A selected trusted peer can have a wider replication entitlement. The reviewed native exchange constructs its greeting from a full inventory while offers subsequently apply scope. B09 is an implicit-trust link. Whether its greeting is appropriate depends on which peers may enter that link. [Native exchange](https://github.com/developing-today/code/blob/7310a95730791e66da98f7b0e13865930058a516/pkgs/id/crates/id-sync/src/federation/exchange_net.rs#L586) · [Peer-class design](https://github.com/developing-today/code/issues/9142)

| Surface | Observables to specify | Independently specified fixture |
| --- | --- | --- |
| Graph query | Count, edge provenance, next-page indication, branch badges | A principal sees A and B and the edge A→B. Add a hidden neighbor H to a copy. Compare authorized adjacency, count and pagination at the visible cut. |
| Search and diagrams | Ranking, snippet origin, visible layout inputs and legend | Compare two corpora with the same authorized rows. For strict ranking privacy freeze public scoring statistics or use a suitably partitioned index. A shared BM25 corpus may legitimately differ under a separately documented looser contract. |
| Replication | Inventory IDs/digests, withheld IDs, receipt and diagnostics | Define entitlement for full-trust, scoped and unauthorized peers separately. Fail the fixture only if a class sees something outside the agreed profile. |
| Cached derivative | Availability and source of cached detail after a grant changes | A thumbnail or snippet retains an authorizing source reference and checks current service authority. Eviction and physical copies already received have distinct semantics. |

**Boundary.** Define the observable set including errors, cursor validity, result order and metadata. Physical timing noninterference is a separate, much stronger property and this fixture makes no timing claim. The existing authorized-query adapter can keep its own symbols and wire format. Host-side scope and a caller-supplied filter must have separate roles. Shared global statistics are compatible only with a declared policy that permits their influence. [Federation query chapter owner](https://github.com/developing-today/code/issues/9108) · [Atlas publication](https://github.com/developing-today/code/issues/6062)

**Decision needed.** First find the existing peer-class and Atlas policy records. Only ask an owner to decide which profile applies where the records leave a real choice. No wholesale protocol or search-index replacement follows from this proposal.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Recovering authority and effects across interrupted operations

**Design proposal dated November 23, 2026.** The motivating observations use the pinned sources below.

**Proposed adapter contract.** One user action may yield a durable intent, a remote acceptance, an external effect and one or more receipts. A renderer should expose the most specific fact the local node can prove. An absent reply cannot prove either failure or success. A separately authorized query can recover an earlier result without executing the effect again. [Existing MCP policy](https://github.com/developing-today/code/blob/7310a95730791e66da98f7b0e13865930058a516/pkgs/id/crates/id-caps/src/mcp_policy.rs) · [Relay design](https://github.com/developing-today/code/issues/2036)

| Recovery observation | Admissible action | Evidence exposed |
| --- | --- | --- |
| Content mutation locally durable, remote acceptance unknown | Resend the same signed identity under the current send grant | Local commit identity, remote state unknown |
| Authoritative effect already committed once and receipt readable | Retrieve the receipt under current read permission | Original command identity and observed effect status |
| Current grant revoked, prior receipt inaccessible | Refuse new effect; apply the explicit receipt visibility rule | Authorized refusal or unknown state without disclosing protected history |
| Effect provider is non-idempotent and outcome cannot be looked up | Keep the command uncertain and request an authorized reconciliation | Record that duplicate-safe recovery is unavailable |

**Compatibility.** Bind a request identity to principal, operation, arguments and effect identity. If the same identity arrives with different content, refuse. A transaction spanning local log and external service needs a provider idempotency or recovery contract. An outbox or a ledger of sent attempts alone does not establish exactly-once external effects. For a pure update replay, record deterministic inputs and the versioned guest profile. A host-sourced response enters replay only as explicit recorded input when policy permits disclosure.

**Worked acceptance case.** A model first accepts intent X, commits external result R once and loses the reply. The sender disconnects, restarts and attempts to resolve X after its grant changes. The independently specified external effect count is one. Current policy decides whether R may be read, whether a new send may occur and who may see the audit evidence. The two hosts agree on authorized observations at a common cut. Logs need distinct actors for queueing, custody and final acceptance. Apply this test first to a deterministic stub provider, then to one existing adapter with support for stable request identity. [MCP bridge follow-up](https://github.com/developing-today/code/issues/7917) · [Messaging implementation](https://github.com/developing-today/code/issues/5534)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Exact arithmetic in the currency supply audit

**Design proposal dated November 23, 2026.** The motivating observations use the pinned sources below.

**Proposed correction to the existing reconciliation job.** Owner to establish against the currency repository issues before filing. At the reviewed revision, posted fields are unsigned 128-bit counters, and the audit converts each to a signed integer with saturation before taking a difference. Holder aggregation also takes place in signed width. This record changes the accounting/reporting boundary only. [Reconciliation implementation](https://github.com/developing-today/code/blob/7310a95730791e66da98f7b0e13865930058a516/pkgs/id/src/currency/reconcile.rs#L186) · [Existing reconciliation PR](https://github.com/developing-today/code/pull/13139)

**Invariant.** Compare exact mathematical debits and credits across the complete account set in a single ledger view. Reading a backend error must produce an incomplete audit. A missing lazily created fee/burn account can follow the existing zero policy. Preserve the distinction among balanced, divergent and indeterminate in both the typed API and serialized report. A counter that exceeds a preferred output representation can still be a valid ledger value. Never turn overflow into a clean result.

**Implementation choice.** First inspect the supported ledger snapshot semantics and all public report consumers. Keep an explicit error/refusal for an unrepresentable intermediate as the small compatible fallback. For a full-range exact result, use checked wider accumulation with a proven bound for the number of accounts, or arbitrary-precision arithmetic in the audit boundary. A fixed 256-bit accumulator needs a stated account-count/counter bound and checked additions. JSON-facing large magnitudes need an agreed lossless representation with compatible readers. The authorization and posting paths require no change for this invariant.

**Independent oracle.** Set M to 2^127−1. Issuer posted debits M+2, one holder's posted credits M+1, other counters zero. The mathematical shortfall is one. The current conversion maps both to M. Repeat with equal M+2 on both sides, split the holder credits between accounts and cover both above and below the signed limit. Under an explicit limited-range implementation, the allowed result for an unrepresentable total is an indeterminate audit. It must carry the reason rather than report clean. Confirm that summing accounts in a different order gives the same audit outcome. This is a fixture for the auditor reading a deliberately divergent ledger view. Reachability through normal currency posting has not been established.

**Rollout.** Check whether the product already constrains posted totals elsewhere. If so, enforce that bound in the auditor too and document how historical data outside it is reported. Use the existing reconciliation tests and portable Fleet verification route. No production scan is required to decide the mathematical question. [Currency program](https://github.com/developing-today/code/issues/10070)
37 changes: 37 additions & 0 deletions pkgs/id/book/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,40 @@
- [Deploying this book](operations/deploying-this-book.md)
- [FAQ](operations/faq.md)
- [Glossary](operations/glossary.md)

- [ID research and platform design](research/charter.md)
- [Current ID issue map](research/current-issue-map.md)
- [Integrated implementation plan](research/implementation-plan.md)
- [Crate boundaries and library clients](research/crates.md)
- [Finding commands, frames, capability providers and hosted routes](research/surface-coverage.md)
- [Roc programs, capabilities and equivalent hosts](research/roc.md)
- [World capability catalogue](research/research-catalogue.md)
- [From an app directory to a reproducible guest release](research/research-developer.md)
- [Clients, games and simulation](research/clients.md)
- [Playable, accessible and authorable worlds across ID shells](research/research-clients.md)
- [Six apps a participant can finish, replay or resume](research/research-playbook.md)
- [The first ID apps and the #2056 family](research/research-apps-backlog.md)
- [Graph navigation, merge, search and the Atlas publication boundary](research/graph.md)
- [What a disconnected node can say about the graph](research/research-graph.md)
- [References, schema changes and publication across hosts](research/research-provenance.md)
- [What a reader can find in the ID graph](research/research-discovery-search.md)
- [Media that remains understandable when the renderer changes](research/research-media.md)
- [Federation, protocol conformance and match evidence](research/federation.md)
- [Discovering a world, contacting its members and contesting a result](research/research-messaging.md)
- [Operating one graph across intermittent peers and hosted backstops](research/research-operations.md)
- [Adopt the IndexedDB request-batch profile](research/store.md)
- [Tokens, trading and metered execution](research/tokens.md)
- [Currency, market offers and execution budgets](research/research-economy.md)
- [Identity, permission, update and content lifecycles](research/lifecycle.md)
- [Whose authority survives disconnection, recovery and retry?](research/research-authority.md)
- [Three design records for repository review](research/research-contracts.md)
- [Scale measurements and the remaining dependency chains](research/scale.md)
- [What the scale measurements establish and which experiment comes next](research/research-measurement.md)
- [Platform releases and installation](research/releases.md)
- [Design archive review](research/archive-review.md)
- [ID design history and decisions carried forward](research/research-archive.md)
- [Design review of the 41 open design-labeled ID issues](research/design-review.md)
- [ID issue map](research/issue-map.md)
- [Route each open issue to its next proof](research/roadmap-routing.md)
- [ID issue census update, November 23, 2026](research/issue-map-delta.md)
- [Maintaining and publishing the ID book](research/landing.md)
2 changes: 2 additions & 0 deletions pkgs/id/book/design/roadmap-and-issue-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This chapter is the programme record for the ID book (tracking issue #13332). It states the roadmap as the design archive records it, maps the epics and trackers the records name, and then gives the full design-record index: all 408 ID design records in the repo-root `doc/` archive, each mapped to exactly one design chapter of this book. The index is the coverage proof for the design-record dimension of the book. Counts in this chapter come from the archive survey for this book, verified in the tree at checkout `1ccb4a19457` on 2026-11-23: the archive holds 570 top-level entries and 2,917 paths in total; 408 entries are ID-programme records; 162 entries belong to other programmes (Atlas, Fleet, the PM stack, the home cluster) or are standing non-record material, and are excluded from the index.

The [Current ID issue map](../research/current-issue-map.md) records open issues, blockers, ownership evidence and the date of its census. The [Integrated implementation plan](../research/implementation-plan.md) connects the research proposals and their acceptance criteria to that work.

## The roadmap in phases

The archive's own phase records are the roadmap's spine. Twenty records are homed in this chapter: the phase records, the remaining-work record, the platform-completion brief, the programme essay answers, the Phase 12 exit audits, the walking-skeleton record, and the investigation charter that commissioned this book.
Expand Down
Loading