Przejdź do treści

Orbiplex Agora

Orbiplex Agora is a Node-attached solution component that provides a topic-addressed, content-addressed, signature-verified record relay and shared record substrate for the swarm. It is the common ground under multiple existing record families — resource opinions, comments, whisper signals, seed-directory announcements, federated offer listings — that today each invent their own bespoke store.

Agora does not own the meaning of any particular record kind. It owns the envelope, the topic shape, the canonicalization rules, the signature domain, the content addressing, and the ingest/query/subscribe surface. Per-kind semantics (what a resource-opinion.v1 means, what a plain-comment.v1 answers) live in their own proposals and schemas and travel as content/schema + content inside the Agora envelope.

The v1 deployment attaches as a supervised channel_json middleware service and retains an independently authenticated product relay API on loopback. Clients discover relay capability through the Node host under capability id agora.relay; the product listener is not a middleware executor endpoint.

Hard-MVP closure note: the public record relay, content addressing, signature verification, local store, subject index, SSE subscription, Matrix-backed relay, Agora Vault, daemon supervision, and Story-008 resource opinion path are implemented in the reference Node runtime. Aggregate status surfaces and hot-path optimizations remain product-layer or scale-driven extensions; they are not prerequisites for the hard-MVP Agora deployment.

Agora also exposes a separate Agora Vault surface for encrypted opaque artifacts. Vault entries are not ordinary agora-record.v1 records: they do not publish author, participant, nym, topic, or domain metadata. The public outer shape is agora-vault-entry.v1; it exposes only opaque artifact ids and the cryptographic envelope. Scoped list/get/delete are controlled by agora-vault@v1 authority over an opaque vault/subject.

Purpose

The component is responsible for the solution-level execution path of:

  • accepting signed agora-record.v1 envelopes from local authors (host signer binding the author's primary participant key),
  • validating envelope structure, content-schema conformance, topic ACLs, content-addressing, and signature domain,
  • persisting accepted records in a local-first backend,
  • serving record-by-id, topic listing, subject-index (record/about) listing, and SSE subscription surfaces,
  • federating over a Matrix-based relay transport for canonical / cache / origin relay roles,
  • honoring per-topic retention policy with a periodic sweep,
  • being discoverable through the node's capability-routing surface under a uniform capability id (agora.relay), with optional agora.relay capability passport for federation discoverability.

Public contract artifacts:

  • doc/project/60-solutions/008-agora/agora-record-relay.v1.openapi.yaml is a legacy test/reference fixture for the pre-P068 standalone Agora HTTP surface. Canonical OpenAPI projection is daemon-owned and served through GET /v1/openapi.json.
  • agora-vault-entry.v1 and agora-vault-ref.v1 define the generic encrypted artifact vault and its sealed recovery reference.
  • doc/project/60-solutions/008-agora/008-agora-backlog.md is the granular solution-local implementation backlog for P-items that are too detailed for this overview.

Agora Vault

Agora Vault is the encrypted-artifact sibling of the public Agora record relay. It is used when a component needs durable, admission-controlled storage and lookup by an opaque artifact id, but ordinary agora-record.v1 would leak too much by design: author identity, participant or nym ids, topic keys, and domain metadata.

Vault entries are schema-gated as agora-vault-entry.v1. The outer entry is intentionally small and may expose only:

  • vault-entry/id;
  • opaque artifact/id;
  • generic artifact/kind;
  • encryption envelope metadata;
  • ciphertext.

The encrypted payload contains the artifact itself and all domain metadata. Agora MUST reject a vault entry that is not valid JSON, does not validate against agora-vault-entry.v1, contains plaintext payload fields, lacks ciphertext, or lacks at least one key envelope. The runtime currently accepts xchacha20-poly1305 entries and validates the envelope at ingest and export boundaries. The MVP recorded-message writer may emit key-wrap = "dev-key-commitment"; that value is a non-recoverable development custody commitment to the discarded symmetric key, not recipient key wrapping. Durable recipient recovery requires x25519-hkdf-sha256+xchacha20-poly1305.

The public lookup surface is:

  • GET /v1/agora/vault-artifacts/{artifact_id}.

It returns ciphertext-bearing entries for the opaque artifact id and reports the public metadata class as artifact/id, artifact/kind, vault-entry/id, encryption, and ciphertext. It MUST NOT return vault/subject, participant ids, nym ids, author ids, topic keys, or plaintext payload metadata. The reference service filters public lookup entries to that public field set even though ingress schema validation already rejects known identity/topic metadata keys.

Scoped vault operations are:

  • POST /v1/agora/vaults/{vault_subject}/artifacts;
  • GET /v1/agora/vaults/{vault_subject}/artifacts;
  • GET /v1/agora/vaults/{vault_subject}/artifacts/{artifact_id};
  • DELETE /v1/agora/vaults/{vault_subject}/artifacts/{artifact_id}.

vault_subject is opaque and currently must use the agora-vault: prefix with safe id characters. In the supervised local runtime these endpoints are gated by the Agora client token. Remote/provider deployments bind the same semantic operations to the agora-vault@v1 capability/passport profile, scoped to the opaque vault/subject and allowed operations.

The supervised service also exposes daemon-dispatchable host capability handlers:

  • agora.vault.put;
  • agora.vault.list;
  • agora.vault.get;
  • agora.vault.delete.

The reference implementation stores entries in agora-vault.v1.sqlite with (vault_subject, artifact_id) as the scoped uniqueness boundary. Deletion is a soft delete: scoped get/list and public lookup ignore deleted entries. The same artifact/id may exist under more than one vault_subject; scoped list/get/delete remains subject-bound, while public lookup by artifact id may return ciphertext entries from every non-deleted matching subject without revealing those subjects.

Recovery metadata is not stored in public Agora records. A node that needs to recover vault access seals agora-vault-ref.v1 records into the Pseudonym Vault. Those refs bind a recovered participant or nym context to the opaque provider, vault/subject, capability references, and allowed artifact kinds. Possession of only a public participant id is not sufficient for list/get/delete. Recovery requires restored key or recovery material that can open the sealed vault reference.

Recorded messaging is the first production profile that uses Agora Vault: a recorded message-envelope.v1 is encrypted as a generic vault artifact and stored best-effort through agora.vault.put. Delivery of the message is not rolled back if the vault write is temporarily unavailable; the messaging layer tracks vault.pending, vault.stored, or failure/retry state and retries failed-retryable vault jobs from its outbox worker.

Scope

This document defines solution-level responsibilities of the Agora component.

It does not define:

  • the semantic meaning of any specific content/schema carried inside an Agora record (that lives in the per-kind proposal, e.g. proposal 026 for resource-opinion.v1),
  • namespace-level authority roots and publish/subscribe capability profiles — those are defined in doc/project/60-solutions/021-agora-authority/021-agora-authority.md,
  • content moderation, reputation weighting, or listener-side filtering — these are the listener's concern,
  • whether the relay runs in-process with the daemon or as a separate program; v1 bundles it as a supervised Rust binary, but the solution contract does not require that shape,
  • how federation topology is chosen at the capability-passport / seed-directory layer — Agora only offers the relay endpoint; the passport model decides who gets routed to whom.

Must Implement

Required MVP Producer Delivery Consolidation

P035 producer delivery and its P035-001–P035-003 tracker own the planned migration of Node UI, Dator and accepted Seed Directory publication to S023 AD agora-default. The operator promoted these three tasks to mandatory Node hard-MVP completion conditions on 2026-11-04; they consequently block alpha-node. Other P035 continuations are not promoted by this decision. Signing, caller/topic authorization and Agora admission remain separate from delivery. Preserve direct ingest compatibility, Matrix federation and read APIs; only producer delivery intent/retry/status moves to the common plane. Existing relay completion does not establish this migration's runtime status.

Agora Record Signing

Based on:

  • doc/project/30-stories/story-008-cool-site-comment.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • agora-record.v1

Responsibilities:

  • canonicalize the unsigned agora-record.v1 payload (schema, topic/key, author/participant-id, authored/at, content/schema, content, record/about) into the canonical signing bytes for the agora.record.v1 domain,
  • obtain an Ed25519 signature through the daemon's host signer using KeyRef::PrimaryParticipant (MVP) or, at a future layer, through a proxy key bound by key-delegation.v1 (see may-implement),
  • verify that the public key returned by the signer matches the author's participant/did:key fingerprint,
  • compute record/id as sha256:<base64url-no-pad(sha256(canonical_content_address_bytes))> and return it with the signature to the caller.

Status:

  • done in the Node reference implementation. agora-core owns canonical bytes, record-id derivation, and sign_agora_record_via_host; agora-service exposes POST /v1/agora/records.sign over the daemon HostSigner path.

Signing placeholder contract:

  • unsigned builders and POST /v1/agora/records.sign MAY use record/id = "sha256:pending" and signature.value = "pending" as input placeholders,
  • records.sign MUST overwrite both fields before returning the record,
  • every final ingest, replay, and federation path MUST reject a record that still carries sha256:pending; syntactic sha256:* shape is not enough, because the declared record/id must match the canonical content address.

Agora Record Ingest

Based on:

  • doc/project/30-stories/story-008-cool-site-comment.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • agora-record.v1

Responsibilities:

  • re-verify envelope structure and canonical record/id on ingest,
  • verify the signature.value against the author's public key in the agora.record.v1 domain,
  • apply the topic ACL gate (who may post what record/kind to which topic/key),
  • reject duplicates idempotently (same record/id → 200 OK),
  • persist the record in the local relay backend,
  • hand off to the federation transport when policy so requires.

Status:

  • done in the Node reference implementation. agora-service gates ingest through topic ACL, content-schema validation, signature verification, idempotent persistence, and the configured relay backend.

Agora Record Query

Based on:

  • doc/project/30-stories/story-008-cool-site-comment.md
  • doc/project/40-proposals/026-resource-opinions-and-discussion-surfaces.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • agora-record.v1
  • resource-ref.v1

Responsibilities:

  • serve record/id-keyed exact lookup,
  • serve bounded topic listings with cursor pagination,
  • serve record/about subject-index listings ({resource/kind, resource/id} pair → records mentioning that subject),
  • keep paging semantics stable across backends (SQLite v1, pluggable later).

Status:

  • done in the Node reference implementation. The HTTP surface serves record-id lookup, bounded topic listings, and record/about subject-index listings over stable cursor semantics. The record/about index is a derived, rebuildable relay-local view over the persisted records, not a source of truth; a dedicated persisted subject-index projector remains a later optimization if rebuild cost or query volume justifies it.

Topic Subscribe Stream

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • agora-record.v1

Responsibilities:

  • hold a server-sent events (SSE) connection open per subscriber,
  • deliver newly accepted records on the subscribed topic/key in authored-at order,
  • honor subscription start cursors (from-now, from-record-id),
  • enforce backpressure / lag bounds per subscription.

Status:

  • done in the Node reference implementation. Topic SSE subscription is live through the Agora HTTP API and proxied by Node UI for browser clients.

Topic ACL Gate

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Responsibilities:

  • enforce (topic/key, record/kind, content/schema) admission rules,
  • decide whether a relay role (canonical / cache / origin) is authoritative for a given topic,
  • keep ACL evaluation implementation-agnostic of transport (same rules for local ingest and federated ingress).

Status:

  • done in the Node reference implementation. agora-service applies the data-driven topic ACL before local ingest and uses the same rule family for federated ingress decisions.

Matrix Relay Transport

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • agora-record.v1

Responsibilities:

  • publish accepted records as Matrix state/timeline events under topic-keyed rooms per the relay-role model (canonical / cache / origin),
  • ingest inbound Matrix events, re-validate as ordinary Agora records, and apply the same ingest contract as the local path,
  • treat Matrix as transport provenance only: the receiver trusts the agora-record.v1 envelope after local verification, not the donor relay,
  • expose canonical-topic, cache-topic, and origin-topic behaviors as deployment-configurable roles.

Status:

  • done in the Node reference implementation. agora-matrix-client and agora-relay-matrix provide Matrix-backed publish, inbound sync, and store-and-forward relay behavior. Inbound Matrix records are admitted through the same envelope/signature/delegation, content-schema, topic ACL, authority/capability/revocation, and idempotency checks as local HTTP ingest; Matrix event signatures and donor relay identity are diagnostics and transport provenance, not sufficient record validity.
  • P035-004 qualifies the opaque v2 carrier with immutable author bytes, durable source/ checkpoint batches, bounded history recovery/replay and separate forwarding outcomes. The reviewed 2026-10-12 profile passes four SQLite and 21 Matrix cases at Node 20c4c16c and Orbidocs 862586f, including host-signed/UI confidence 0.5, permitted Whisper families, exact bytes, restart/replay and recovery review. All 41 Node-created full PDUs fit 65,536 bytes; maximum 50,043. Direct protocol boundary/enforcement observations are independent and scoped to the disclosed pinned fixture (node:docs/evidence/matrix-opaque-envelope/README.md). Original v0.7.0 oversize evidence remains unchanged. The frozen run selected v2 explicitly. The accepted write policy now defaults to v2, with explicit legacy v1; P035-006 owns the config-local v2 implementation and the separate qualified omitted-config proof below. The enum has no default; publication intents freeze one version per account/topic/record. This completes the carrier task while global Agora stays partial; unmodified reference-server qualification is P035-005, and federation and production readiness remain separate.

  • P035-005 separately qualifies official unmodified Synapse v1.162.0/PostgreSQL 16.13 with room v10 at Node dcc8133c / Orbidocs c84df99 on 2026-10-13: four SQLite and 22 Matrix cases. Both independent gates pass: all 42 Node complete PDUs fit 65,536 (maximum 49,927); direct protocol PDUs reach 65,535, with actual 413 M_TOO_LARGE including requests below the PDU ceiling. Stock serialization verifies hashes, server signatures and event IDs. Confidence 0.5, exact bytes, permitted Whisper families, A/B and homeserver/database restart, limited-sync backfill, late binding and source replay pass. Room registration preserves the account checkpoint and bootstraps unanchored rooms independently; the initial failure and earlier Conduit evidence stay retained. Qualification: node:docs/evidence/matrix-opaque-envelope/2026-10-13-synapse/qualification.json. Explicit v2 only; P035-006 and global Agora partial retain their scope.

  • Post-qualification recovery review uses page-durable admission and token progress, so the 8 MiB HTTP response bound does not cap total history. Empty bootstrap retains its start token; admission uses the recovery room snapshot to avoid a late-binding race. Focused conformance covers long history, resume, empty rooms, non-limited backfill and atomic rollback; P035-005 runtime evidence stays frozen. One room can still hold the account checkpoint/current timeline; exhausting its page budget does not skip others' history work. P035-007 tracks isolation of account delivery from room recovery. P035-006 separately qualifies the current paths and bounded public evidence archives under node:docs/evidence/RETENTION.md.

  • P035-006 qualifies default v2 with explicit legacy v1 on 2026-10-14 at clean Node 42fde666 / Orbidocs 4ecec76: five SQLite and 27 Matrix cases with the writer key absent on A/B. Protected confidence-0.5 gossip, permitted Whisper signal/trace/threshold, exact bytes, first-intent preservation and unknown-third- claim operator retry pass across restart and replay. Independent Node and stock Synapse room-v10 gates pass: 692 complete Node PDUs, maximum 49,927 within 65,536; direct protocol maximum 65,535 and actual size refusals. Long history restores 643 records over 12 filtered pages across crash/resume, including 640 fixture- signed and three UI samples. Empty bootstrap and non-limited late binding pass; their bounded archive qualifies identically after extraction. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-14-default-v2/README.md. P035-007, global Agora partial and broader federation/production exclusions remain.

  • The 2026-10-14 evidence storage review keeps that qualification frozen. Node enforces new Git budgets of 16 MiB/full run, 1 MiB/refusal and 4 MiB/refusal campaign under node:docs/evidence/RETENTION.md. The recipe proposal is superseded by P035-008a [done]: bounded tar+xz at Node 7df7949a reproduces historical bytes and qualification in 13,006,802 retained bytes within 16 MiB. The small proof references existing input; no new runtime is claimed by 008a. P035-008b [done] separately qualifies the changed harness at clean Node bc83d310 / Orbidocs a515a5d: 27 Matrix and five SQLite cases on stock Synapse, independent Node/homeserver gates and identical loose/extracted qualification. The complete retained set is 13,245,341 bytes; three runtime/qualification/retention cause-only capsules occupy 1,508,971 bytes including their index, each below 1 MiB. Original success/refusal outcomes and required dependencies remain explicit. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-14-capsules/README.md. Parent P035-008 is done; Agora remains partial. The qualified follow-up review gives the profile cause/dependency ownership, makes origin and exact refusal paths explicit and labels retention receipts as attested measurements. Frozen sets and 136 MiB cumulative accounting bound Git cost. P035-009 must decide external retention before the next full runtime campaign, no later than 2026-11-14; current runtime evidence is not renewed. P035-007's comparison baseline includes 64 events/page, eight pages/room/round and the deliberate B crash/restart after 512 durable records; the observed 10.32 seconds is not a throughput/latency bound.

  • P035-007 is implemented and partial on 2026-10-16. Account durable reception proceeds independently of per-room jobs and deferred admission. Two fair history workers use bounded requests and durable backoff; operator controls require local authority and revision CAS. Replay uses retained local admission receipts, and UI presents local sequence with recovered-history metadata. Four focused cases on unmodified Synapse qualify blocked/hung/rate-limited history isolation, confidence-0.5 host signing, restart and replay at clean Node 5d5392b2 / Orbidocs b3813122. The 181979-byte archive qualifies identically before/after extraction; all earlier refusals remain retained. Full 30-Matrix/five-SQLite, large fairness, Whisper and separate full-PDU gates wait for P035-009, due 2026-11-14. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-16-room-recovery-focused/README.md. Agora remains partial; this focused proof does not close P035-007.

  • The 2026-10-16 restart review fixes silent skipping of still-bound, noncanonical publication topics: durable active bindings hydrate the sink before first sync and remain the receiver's sole authority. Three conformance regressions pass; fresh five-case focused Synapse qualification passes at clean Node b0a44ade / Orbidocs aee179e: actual non-limited sync after restart, unchanged binding, no topic reuse, B API/index, valid signature and replay. The complete 192528-byte set has identical loose/extracted qualification. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-16-room-recovery-restart/README.md. Idle worker polling is one second; the future full profile has 31 Matrix/five SQLite cases and stays gated by P035-009. P035-010 owns explicit excessive Retry-After handling. Earlier frozen qualification is unchanged.

  • Full continuation on 2026-10-19 closes P035-007/009/010 for per-room-recovery-v2: 34 Matrix and five SQLite cases at clean Node 1bc523a6 / Orbidocs 5993f7d0. Independent room recovery, two 640-record held histories, deferred and late-local-expiry admission, excessive 429 blocking/CAS, restart and source replay qualify with continuing sync/publication. Both Node and stock Synapse room-v10 PDU gates pass: 2041 Node full PDUs, maximum 49927 bytes. Confidence-0.5 gossip and permitted Whisper families retain exact author bytes. The complete 16511847-byte retained set and fresh external retrieval qualify identically; Git holds 2282442 bytes of controls with payload external. Explicit 192 MiB compression preserves the same tar under the unchanged 256 MiB decoder ceiling and 16 MiB cap; default remains 128 MiB. The original default-profile retention refusal preserves its successful runtime result. Earlier dated scope stays frozen. One local store is not independent backup; Agora remains partial, with federation, nym issuance, all Whisper and release/production gates separate. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-19-room-recovery-full/README.md.

  • Review closure (2026-10-19) separately qualifies four focused delay cases at clean Node ac386090 / Orbidocs fbba8e73, reviewed qualifier 121c19fb. The 24 h credibility ceiling preserves credible floors; exact u64 maximum and ten-year limits have an audited, reasoned, host-local task/binding CAS escape. Restarts, continued confidence-0.5 live delivery and exact-source replay pass. Complete retained/retrieved proof is 142758 bytes; it renews neither full PDU gates nor the frozen 34/five campaign. Original unsuccessful attempts now have externally retrieved cause-only capsules, never full qualification. P035-011 gates larger campaigns on source deduplication; P035-012 owns an independent copy/manual pre-release fresh verify, P035-013 owns S039/bulk actions. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-19-delay-credibility-focused/README.md.

  • P035-011 closes on 2026-10-20 at clean Node ee64042f / Orbidocs a2addea1: all 34 Matrix/five SQLite cases on unmodified Synapse 1.162.0, room v10, preserve exact author bytes, full PDU coverage, confidence 0.5 and the existing Whisper signal/trace/threshold families through restart and replay. Same-capture legacy/source values and non-representation facts agree; ordinary qualification is identical before/after archive extraction and fresh external retrieval. The set retains 2048 indivisible PDUs and 2048 independent stored-row artifacts; all 2041 Node PDUs fit 65536 bytes, maximum 49927. Complete retention is 15220597 bytes with the default 128 MiB XZ dictionary and unchanged 256 MiB decoder bound; compact Git controls are 5878 bytes versus the earlier 2282442. Detailed indexes and exact reports remain in the complete store, with explicit digest pins in Git. Aggregate new public proof metadata is 49484 Git bytes, including the runtime controls; conservative whole-collection charging is 15264203 bytes within 16 MiB. The prior historical gate is private-candidate storage conformance at 3b06e1b4 / 51de82e9, retained as a small report referencing the original frozen input rather than another full archive. It does not renew this runtime. Dual-write timing observations (7.211888 s / 35.0048 s) do not replace the historical fairness baseline or establish bounds. At that checkpoint P035-012/013 remained open; Agora remains partial and one local store is not an independent backup. No federation, nym issuance, all-Whisper or release/production claim follows. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-20-source-observations/README.md.

  • P035-012 closes on 2026-10-20 for operator-adopted mirrored primary-media-loss protection. Clean Node dc996b24 / Orbidocs 83c77609 freshly recovers eight exact bundles (32517795 original file bytes per logical store) while the OS denies primary/previous-capture access. Four full/focused qualifications and four cause-only results remain exact. A separate clean Node 70d507cb release rehearsal verifies both locations and the v2 outer gate binds candidate, attempt, inventory, policy and trusted tools; changing the attempt refuses. Other release checks remain unqualified. The mirror shares one primary medium and has another separate online member, as explicitly accepted by the operator; shared host/site and mirror-management risks remain. Auxiliary originals retain their original results without deletion, and no new Matrix runtime is claimed. P035-013 was open at that checkpoint; Agora remains partial. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-20-replica-recovery/README.md.

The 2026-10-20 custody review explicitly limits P035-012 to observed mirror health and manual verification. P035-014 subsequently qualified optional session-bound topology/sample checks, stale supervision and S039 notifications on 2026-10-23; see node:docs/evidence/matrix-opaque-envelope/2026-10-23-replica-supervision/README.md. Temporary originals are not durable second copies. The operator-authorized branch integration prerequisite is now validated against current primary baselines, with preserved frozen evidence, ledger/MVP ownership and budgets. Full workspace and affected fixture checks, documentation gates and fresh pre-closure evidence reads are recorded at node:docs/audits/WHISPER-INTEGRATION-2026-10-20.md. P035-013/014 were open at that integration checkpoint; their later focused qualifications remain separate from repository integration and release readiness. The dated review supplement at node:docs/evidence/matrix-opaque-envelope/2026-10-20-replica-review/README.md records a new clean-checkout sixteen-read rehearsal and a 336181-byte observed retention-refusal capsule, also freshly verified at both stores. The original successful runtime result and initial capsule publication refusal remain unchanged.

Public Evidence Retirement Lifecycle

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md#predictable-evidence-retirement-contract-2026-10-26

P035-015 separates three storage effects: cleanup of non-evidence derived material, retirement of one evidence replica, and retirement of the last retrievable evidence bundle. The Node public-evidence retention maintainer owns the exact catalogue and may propose digest-bound dry-run plans. Claim and release owners own their dependency bindings and holds. A reviewed local operator decision may authorize one exact plan; the executor gains no general selection authority.

The catalogue and its append-only plan, decision and receipt facts must preserve immutable evidence identities and historical outcomes. Missing classification, dependency coverage, replacement qualification, current protection or active-use facts fail closed. Age, size, failed/refused status and informal usefulness may trigger review but cannot authorize deletion.

S020 may schedule bounded catalogue checks, dry runs or plan verification, but it does not interpret evidence, release holds, approve retirement or repair storage. Node provides the bounded deterministic read-only catalogue, dry-run, exact-plan and structural decision/receipt validators. The separate opt-in local operator runtime authenticates owner/reviewer signatures, binds the executor to adopted OS custody, durably consumes one exact plan and decision, applies bounded physical effects and independently observes their outcome. Reviewed complete membership inventories derive the strongest classification; incomplete coverage, current holds and unknown facts refuse.

P035-015 is complete for the qualified local operator profile recorded in node:docs/evidence/evidence-retirement/README.md. Real filesystem retirement, quarantine/restore, ordinary replacement qualification, replica reads, separate post-action verification and process-death/restart inspection run on the recorded macOS host with synthetic fixture bytes. The final-delete policy clock and selected fault cuts are controlled. Exact working-source digests are retained; a clean committed checkout or acceptance on every supported operating system is not claimed.

The authority-adoption chain retains one consumed namespace across key/tool renewal and rejects superseded authority. Partial or missing receipts preserve uncertainty and require a new reconciliation catalog and decision. The local administrative profile assumes exclusive custody among cooperating processes under one OS uid; hostile same-uid/root processes and hardware power loss are outside its qualification. Legacy production stores retain P035-009 protection until their owners supply the relevant complete sources, trust adoption and exact signed plans. Software completion does not classify or retire their existing bytes, renew transport evidence or promote global Agora/release readiness.

Recurring policy may propose already classified cache or reproducible-derivative candidates. S020 may execute only a separately approved, unexpired exact plan; elapsed time or policy match is never standing deletion authority. Quarantine is a reversible, verified terminal state for that plan. Final deletion requires a fresh catalogue, plan and decision after the bound not-before time.

Creation-time producer metadata is now automatic in the shared archive-retention, cause-capsule and store-publication helpers. It binds membership, identities, campaign, recording time and explicit ownership; custody remains a separate fact. Incomplete dependency/hold coverage and unresolved recovery stay protected. These facts prepare review, not adoption or approval. A pre-production executor review also adds a post-effect replacement-refusal regression: a failed final ordinary check must retain partial, even when all physical deletions already happened. See node:docs/audits/EVIDENCE-RETIREMENT-REVIEW-2026-10-26.md and the new qualification supplement linked from the evidence index; earlier reports keep their source scope.

The Agora topic-record sweep below is a separate product-data lifecycle. Its max_age_secs, max_count and periodic eviction authority apply only to admitted Agora records under per-topic policy. They MUST NOT select, classify or delete public acceptance evidence, evidence replicas, refusal capsules or unknown filesystem material.

Retention Policy Sweep

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Responsibilities:

  • run a periodic sweep per configured retention_sweep_interval_secs,
  • evict records older than max_age_secs per topic,
  • trim topics exceeding max_count entries,
  • preserve canonical-role durability contracts where applicable.

Status:

  • done in the Node reference implementation. agora-service starts the configured retention sweep over per-topic retention policies.

Domain Accepted-Fact Adapters

Based on:

  • doc/project/40-proposals/023-federated-offer-distribution-and-catalog-listener.md
  • doc/project/40-proposals/025-seed-directory-as-capability-catalog.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md
  • doc/project/60-solutions/031-seed-directory/031-seed-directory.md

Related schemas:

  • agora-record.v1
  • service-offer.v1
  • node-advertisement.v1
  • seed-capability-registration.v1
  • capability-passport-revocation.v1

Responsibilities:

  • keep agora-record.v1 as the generic public/federated envelope, not as a home for domain policy,
  • emit accepted Seed Directory facts as records: seed.node-advertisement.accepted, seed.capability-registration.accepted, and seed.capability-revocation.accepted,
  • emit provider service-offer snapshots as offer-snapshot records,
  • replay those records into domain projections (SeedDirectoryStore, ObservedCatalogStore) rather than making discovery or marketplace clients query raw Agora topics,
  • treat offer-snapshot as the durable public/federated publication record, not as the full source of truth for a provider's standing offer,
  • preserve offer provenance during replay so marketplace trust admission can use the provider participant id, provider node id, record author, publisher/origin node id, topic key, record id, observation time, and inner service-offer.v1 signature verification result,
  • let the domain engines continue to own passport checks, sovereign policy, trust admission, TTL/sequence semantics, endpoint joins, and query shape.

Status:

  • done for the reference adapter layer. seed-directory::agora maps accepted Seed Directory advertisements, capability registrations, and revocations to agora-record.v1 and can replay them into the existing store. catalog::agora maps service-offer.v1 snapshots to offer-snapshot records and can replay them into the observed catalog projection. The schema gate recognizes these content schemas in strict Agora content-validation mode. M2 uses deterministic-as-of-record-acceptance replay: domain projections trust records already accepted by the local relay, with revocation freshness checked at the publish/ingest boundary. Local authoritative stores remain local; observed or federated read models use agora-primary replay where configured.

M2 replay-fed projections cover this canonical domain set:

  • Seed Directory accepted facts,
  • Offer Catalog observed/federated snapshots,
  • moderation markers,
  • comments,
  • resource opinions,
  • public gossip.

Seed Directory and Offer Catalog carry hard equivalence tests because both have pre-Agora domain stores. Agora-native domains (moderation markers, comments, opinions, gossip) use fixture replay tests into an empty projection store instead of inventing a legacy model. The reference implementation exposes projection status and domain query endpoints under /v1/agora/projections/*; operational diagnostics include counters for malformed/skipped/rejected/deferred records, cursor pruning, cursor state, last error, and last successful replay age.

May Implement

Agora Relay Capability Passport

Based on:

  • doc/project/40-proposals/024-capability-passports-and-network-ledger-delegation.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Related schemas:

  • capability-passport.v1

Responsibilities:

  • advertise agora.relay as a capability offered by this relay for federation-scoped discoverability,
  • expose the relay endpoint, supported topics, and relay role through the passport payload,
  • remain optional: a relay without an agora.relay passport is still a valid local relay (see proposal 035 §5.7).

Status:

  • optional

Proxy-Key Delegated Signing

Based on:

  • doc/project/40-proposals/032-key-delegation-passports.md

Related schemas:

  • agora-record.v1
  • key-delegation.v1

Responsibilities:

  • accept sign requests that carry a DelegationProof instead of signing with PrimaryParticipant,
  • verify the proof through a pluggable DelegationProofVerifier (fail-closed fallback by default; capability-bridge verifier in production),
  • bind the proxy public key to the record, keep the principal's participant id as the author, and attach the inline proof so verifiers can check the delegation without remote lookups.

Status:

  • done for M2b verification parity: envelope fields, fail-closed verifier hook, capability grant, bridge verifier, delegated examples, Rust service/relay accept paths, records.sign with key_delegation, Rust Matrix-only ingest parity, and host agora.record.verify capability for non-Rust middleware are implemented. Bundled Python middleware has a HostAgoraClient.verify_record() helper for that verifier, and committed delegated fixtures assert the same decisions across Rust, Matrix, SQLite replay, and Python host-capability transport. M3 adds high-level agora.record.admit as a read-only host capability that composes verifier output with content-schema checks, optional publish/subscribe profile checks, and node-local authority-policy evaluation for supervised middleware diagnostics.

Replay-Fed Public Domain Projections

Based on:

  • doc/project/40-proposals/026-resource-opinions-and-discussion-surfaces.md
  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md
  • doc/project/60-solutions/008-agora/008-agora-dir-simplify-impl.md

Related schemas:

  • agora-record.v1
  • plain-comment.v1
  • comment-thread-policy.v1
  • resource-opinion.v1
  • public-gossip.v1
  • moderation-marker.v1
  • agora-public-rejection.v1
  • reputation-snapshot.v1

Responsibilities:

  • replay accepted public Agora records into local read models without querying raw topics from domain logic,
  • keep comments, opinions, public gossip, and moderation markers in separate tables while sharing cursor and diagnostic mechanics,
  • preserve orphan queue behavior for comments/opinions and deterministic promotion when parents arrive,
  • clamp gossip TTL/decay through local projection policy,
  • expose operator and API status for projection health.

Status:

  • done for M2 reference mechanics. The Node implementation uses <agora_data_dir>/agora-projections.v1.sqlite, projects comments/thread policies, resource opinions, public gossip, and moderation markers, and exposes /v1/agora/operator/projections/replay plus read-model query surfaces under /v1/agora/projections/*. Public moderation markers remain signals: M2 does not define automatic hide/delete policy from marker content.
  • The M2 baseline does not close every domain-consumer gap: P026-001–003 closed basic generic resource authoring, pair-only opinion reads and recoverable full-domain rebuild on 2026-10-12. The retained Story-008 open-references proof (node:docs/evidence/open-references/README.md) covers SQLite and two Matrix clients on one homeserver, including B /sync indexing before projection, no-JS forms and restart/replay. Its DTO derives subject/key from the BINARY pair lookup; signed historical facts remain unchanged. New authoring has eight references and the historical object-carrier 48 KiB budget. Opaque v2 Matrix creation separately uses 36 KiB. Historical P026 Matrix gossip qualification covers integer JSON numbers only (confidence=1), because Matrix canonical JSON cannot carry ordinary fractional confidence in the envelope object. P035-004 separately qualifies opaque v2 confidence 0.5 and its recalculated full-PDU budget; P026-004 owns explicit carry-forward after retention. Broader discussion surfaces remain; Agora P17 separately tracks public-gossip related-link projection and navigation.

Local Assessment Exposure and Deferred Round Projections

The bounded local-SQLite exposure pilot is implemented and qualified separately from the earlier opinion runtime checkpoint. The wider continuation is partial, owned by P026 section 6 and P026-005–011. The 2026-10-24 checkpoint separates the four frozen contracts, implementation and focused tests from nine real local host/API/UI/CLI cases and JavaScript/no-JavaScript Chrome acceptance. Agent and notification owner fixtures retain their component/scripted-host scope. P026-006 is done for local policy/private facts; P026-005/007/008 remain partial, and sealed rounds remain planned. Earlier SQLite/Matrix opinion qualification retains its original scope. The review checkpoint records monotone commands, bounded author isolation, default route refusal and the new source-pinned local runtime; wider qualification remains partial.

Keep agora-service read admission and exposure as separate steps: admit -> expose -> render. node:agora-service/src/opinion_query.rs already accepts a per-topic admission callback and consumes raw OpinionPage values; reuse this seam without encoding withheld as authorization refusal or leaking inaccessible record existence. Decide exposure before peer pagination, ranking and metadata construction. The first slice exposes a viewer projection with up to 100 entries per own/peer lane to UI, CLI and registered Agent/notification adapters. Mixed raw reads, details/search/exports and streams refuse access without a viewer-safe binding; richer pagination and inspection require separate qualification. Hidden peer data must not alter counts, cursors, ETags, ordering or notification activity. The active profile currently requires local SQLite. This remains a local-display guarantee, not confidentiality from other public relays.

agora-projections remains rebuildable from admitted relay records. Private viewer encounter/unlock/release facts belong to a separate S028 service-owned temporal recovery domain, never to ProjectionStore or its rebuild/swap. Replay and retention must not manufacture an unseen/independent viewer.

The later round projection verifies four dedicated assessment kinds, the signed barrier's exact set and per-commitment outcomes before emitting opinion views. Do not mutate OpinionView into a lifecycle engine or index unknown reveals as ordinary opinions. Reuse canonical-json/crypto, existing signer, kind contracts, admission, CAS/outbox and P035 transport binding; do not create another relay. Barrier references bind evidence but do not prove global publication time. Private panel/Corpus bindings need not publish their payloads into Agora.

Track implementation and evidence only in P026-005–011; S008 retains this owner mapping, not a duplicate tracker. Urgent protection and appeal remain available through P026's admitted, rating-free exception paths.

Agora M4: Story-005 Public Signal Closure

Based on:

  • doc/project/30-stories/story-005-whisper-rumor-intake.md
  • doc/project/40-proposals/013-whisper-social-signal-exchange.md
  • doc/project/60-solutions/011-whisper/011-whisper.md

Related schemas:

  • agora-record.v1
  • whisper-signal.v1
  • whisper-interest.v1
  • whisper-threshold-reached.v1
  • association-room-proposal.v1
  • public-gossip.v1

Responsibilities:

  • use Agora as the public/federated substrate for disclosure-safe Whisper/public signal records without making Agora the owner of Whisper semantics,
  • carry whisper-signal.v1 directly for the M4 public/federated smoke rather than substituting generic public-gossip.v1,
  • keep private/direct or private-correlation whispers off public Agora topics,
  • replay accepted public Whisper signals into a domain projection with cursor, lag, malformed/skipped/rejected/deferred diagnostics,
  • derive deterministic threshold state from compatible public/federated signals using the M4 rule: two distinct eligible nodes, same topic/class, same signal/similarity-key, bounded time window,
  • emit deterministic whisper-threshold-reached.v1 and association-room-proposal.v1 records as projection-authority-signed, issuer-scoped derived claims while preserving explicit human opt-in,
  • prevent derived-record loops with deterministic derived ids, source-record-kind exclusion, and derivation refs,
  • treat threshold/proposal artifacts as replayable public meta-signals and coordination records, not as public-gossip.v1 social narratives,
  • keep public-gossip.v1 as an explicit publication act that can be produced independently or after opt-in association, but never automatically from a threshold/proposal projection,
  • provide a three-node laptop smoke where node A and node B submit similar signals and node C runs the Agora relay/server.

Status:

  • done for M4 in the Node reference implementation. The public/federated direct-HTTP smoke path is implemented: node A and node B submit nym-authored, signed whisper-signal.v1 records to node C's Agora service, and node C projects signal, threshold, and association-room proposal state. Agora verifies inline-first nym proofs at the envelope/policy boundary, rejects private/direct-only Whisper signals on public Agora topics, emits deterministic whisper-threshold-reached.v1 and association-room-proposal.v1 records through the host signer, and prevents derived-record loops through source-kind exclusion and deterministic derivation ids. Story-005 now has a three-node laptop operator pack with durable profiles and English/Polish runbooks. Matrix-backed Agora sync parity is covered separately so Matrix remains a transport, not a trust source. Story-009 Agora-primary smoke remains the regression guard for the existing Agora substrate.

Agora Post-MVP: Whisper Trace Carrier Contract

Related schema:

  • whisper-trace.v1

Agora may carry public or federation-scoped Whisper trace statements under:

  • record/kind = "whisper-trace",
  • content/schema = "whisper-trace.v1",
  • topic/key = ai.orbiplex.whisper-traces/<trace-kind>.

Agora remains a signed record carrier and schema/disclosure gate. It does not turn a trace into a receipt, validate an opaque sender-local consent decision, or project trace statements into Whisper similarity and threshold state. Public ingress must reject private-correlation traces and must not infer that digest-only disclosure is anonymous or non-sensitive.

Status: implemented. Agora registers the trace record kind and schema, enforces the conventional public topic and disclosure posture at ingress, and exposes a metadata-only list/detail projection that is excluded from Whisper signal threshold and association state. Story-005 proves the public carrier together with a private AD/INAC trace using the same signed envelope family.

Projection Authority for Derived Records

Derived public records are signed by a projection authority. In M4 the authority may be the local projection node or a short-lived delegated projection key, but that is an implementation choice, not the permanent protocol model. The derived record is an issuer-scoped claim that a deterministic projection rule was applied to listed source records; it is not a global social-truth assertion.

Root authority configuration establishes which identities may grant projection publication rights. Routine derived records should be signed by operational delegated keys whenever possible, keeping long-lived authority material out of the hot path.

The contract must remain compatible with future committee authority. A later static committee or reputation-selected committee can sign the same derived records by carrying inline selection and quorum proofs in derivation/authority metadata. This lets local policy move from "trust this projection authority" to "trust this quorum of community-trusted authorities" without changing the meaning of whisper-threshold-reached.v1 or association-room-proposal.v1.

Operator-Local Rejection Feed

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Responsibilities:

  • persist local rejection diagnostics without publishing a public rejection oracle,
  • keep request bodies, passports, proof bundles, and internal policy traces out of the store by default,
  • expose bounded operator diagnostics through the Agora service status/API.

Status:

  • done for M2b. Rejections are stored in <agora_data_dir>/agora-rejections.v1.sqlite and exposed through /v1/agora/status and GET /v1/agora/operator/rejections. The default store is digest-only; payload capture, if ever enabled locally, is an operator debugging mode rather than a public protocol feature. A public rejection feed is explicitly out of scope for M2/M2b.

Correlated Action Trace

Based on:

  • doc/project/30-stories/story-008-cool-site-comment.md
  • doc/project/50-requirements/requirements-014-resource-opinions.md

Responsibilities:

  • correlate the local resource-opinion flow across daemon capability lookup, Agora signing, ingest, duplicate ingest, subject query, and record fetch,
  • keep the canonical trace in daemon-owned append-only storage under trace/agora,
  • use X-Orbiplex-Correlation-Id as the caller-supplied correlation seam,
  • reject trace append payloads that are malformed, oversized, or contain sensitive-looking keys,
  • expose append degradation in /v1/agora/status without coupling Agora to the daemon's storage internals.

Status:

  • done for Story-008 hard-MVP. The daemon exposes module-authenticated POST /v1/host/capabilities/agora.trace.append for the supervised agora-service, instruments GET /v1/host/capabilities/agora.relay lookup, and exposes operator readback through GET /v1/traces/agora?correlation_id=...&record_id=...&limit=.... Malformed or policy-rejected trace appends fail as HTTP 422, while daemon storage failures fail as HTTP 500; agora-service counts failed append attempts and reports trace status as ok or degraded. The public Agora API itself remains storage-agnostic: it emits events through the host capability channel and never writes the daemon commit log directly.

Org Authority Custody

Org authority roots do not name "keys that may publish" directly. They name an organization identity that may establish authority under a referenced custody policy:

{
  "id": "org:...",
  "kind": "org",
  "custody_policy_ref": "org-custody:example:v1",
  "namespaces": ["ai.orbiplex.reputation/**"]
}

The referenced org-custody-policy.v1 artifact defines which participants or keys may authorize agora-authority actions and whether the rule is any-authorized or threshold. Threshold rules require an inline org-custody-decision.v1 bundle carried beside the key-delegation proof. The decision bundle signs the target record digest, policy ref, org id, purpose, topic key, and optional delegation id; duplicate signers count once. Unknown policy refs, unknown modes, missing decisions, target mismatches, and insufficient quorum fail closed.

M2b implementation status: agora-service loads org_custody_policies from its runtime config, resolves custody_policy_ref fail-closed, validates org-custody-policy.v1 and inline org-custody-decision.v1 through the Node schema gate, and has regression coverage for valid threshold, missing signer, duplicate signer, signer outside policy, target digest mismatch, unknown policy ref, and unknown mode.

Aggregate Status Surface

Based on:

  • doc/project/40-proposals/035-agora-topic-addressed-record-relay.md

Responsibilities:

  • expose /v1/agora/status with relay role, configured topics, backend health, last sweep timestamp, and outbound Matrix transport state,
  • remain cheap, cacheable, and suitable for operator inspection.

Status:

  • optional

Future Hot-Path Optimizations

The v1 loopback HTTP shape is acceptable for record traffic where the per-record cost is already dominated by Ed25519 signing and backend durability — story-008-style comments are a representative example. For producers that emit records at a rate where loopback round-trips become the dominant cost (any high-frequency, bounded-latency record source), two deferred options are available without changing the envelope, the signing domain, or the record/id formula.

Batch Ingest

A single POST /v1/agora/records can accept N records in one request instead of one. The loopback round-trip amortizes across the batch, and after roughly fifty records the per-record transport cost falls below the per-record canonicalization and signing cost. This is the dominant optimization in comparable systems and keeps every other contract untouched: topic ACL, content-schema validation, signature verification, and idempotent persistence are applied per-record inside the batch, and the backend still sees one-record-at-a-time semantics. If the v1 HTTP surface does not already accept batched bodies, this should be a small dedicated proposal rather than a change to proposal 035.

Agora as In-Process Daemon Library

The solution contract (see Scope above) explicitly allows Agora to run either as a supervised separate program or as an in-process module of the daemon. Moving the in-process shape from "allowed" to "delivered" removes the second loopback hop: producers still speak HTTP to the daemon over loopback, but the daemon resolves agora.relay to an in-process call into agora-core plus the configured relay backend, rather than to a second HTTP client pointed at orbiplex-node-agora-service.

The cost is a narrower deployment envelope:

  • Agora must be built in the same language as the daemon. Today this is Rust for both, so the constraint is not binding.
  • Independent restart of the relay is lost; relay lifecycle is fused with the daemon's lifecycle.
  • Operator-visible component boundaries shift: middleware.agora stops being a separately supervisable process.

For the smallest useful deployment described in proposal 035 §5.7 (local-only, one node, one relay, no passport, one topic, one author) the in-process shape is arguably a better default than the supervised binary: it removes a process, removes a port, and removes the second loopback hop, while preserving every observable semantic of the relay.

Neither optimization is required for v1, and neither changes the agora-record.v1 envelope, the agora.record.v1 signing domain, the record/id formula, the topic ACL semantics, or any consumer-visible capability contract. They are orthogonal knobs on transport cost, not on meaning.

Out of Scope

  • per-kind semantic interpretation (opinion meaning, comment threading, whisper thresholds),
  • listener-side filtering, automatic moderation decisions, or reputation weighting,
  • payment / settlement of record ingest,
  • long-running workflow execution driven by record content,
  • replacement of the seed directory or the offer catalog — those are separate relay roles that may later migrate onto Agora but do not today.

Consumes

  • agora-record.v1
  • resource-ref.v1
  • moderation-marker.v1
  • capability-passport.v1

Produces

  • agora-record.v1
  • agora-caps.edn

Notes

Agora may be implemented as an in-process module of the daemon or as a separate supervised program/process attached to Node through explicit contracts. The v1 delivery is a supervised Rust binary (orbiplex-node-agora-service) reached on loopback, announced by the daemon under capability id agora.relay; solution semantics are stable either way.

The smallest useful Agora deployment is local-only: one node, one relay, no passport, one topic, one author. Proposal 035 §5.7 explicitly treats this as a first-class configuration rather than a degraded fallback. Story-008 exercises exactly this shape end-to-end.

Federated deployment layers on top without replacing the envelope or the signer contract: the same agora-record.v1, the same agora.record.v1 signing domain, the same record/id formula. The only thing that grows is the number of relays and the topology that capability-routing resolves to.

Recovery attention focused qualification (2026-10-23)

P035-013 is qualified at clean Node 885a78fd / Orbidocs b16312f6: 12 focused stock Synapse room-10 cases and five SQLite controls (four runtime, one conformance). Agora owns transactional redacted attention facts and receipt-backed commands; the host S020 adapter projects them into S039 without granting authority. Current operator checks, original CAS, bounded partial batch results, credible floors, labelled crash/reply loss, restart and carrier/S039 replay pass. Exact author bytes and all 35 complete new PDUs retain separate Node/homeserver gates.

The 357,068-byte XZ-128-MiB set has identical source/legacy, extracted and fresh qualification at both adopted stores; the original observed journal-lineage defect remains a cause-only refusal. Evidence: node:docs/evidence/matrix-opaque-envelope/2026-10-23-recovery-attention/README.md. This focused profile does not renew the historical 34-case Matrix transport qualification, qualify federation or OS notifications, close P035-014, or change Agora's global partial status or release readiness.