Skip to content
Registry StackDocsv0.49.0

Architecture

View as Markdown

Registry Stack is a set of focused products. Each product owns its data, configuration, API, and operational boundary. Base Registry Engine (BReg) is the governed record service.

flowchart LR
  Caller[Calling service] --> BReg[Base Registry Engine]
  Caller --> Evidence[Registry Evidence]
  Evidence --> Source[Fixed authoritative source]
  Reviewer[Reviewer] --> Manifest[Registry Manifest]
  Manifest --> Static[Static metadata]
  Discovery[Registry Discovery] --> Caller
  Casework[Registry Casework] --> BReg
  • Base Registry Engine owns writable PostgreSQL records, governed changes, history, events, and its record API.
  • Registry Evidence evaluates predefined requirements against fixed sources and returns minimum-disclosure assertions. An assertion is signed unless the package and the caller’s grant allow unsigned JSON and the caller asks for it.
  • Registry Manifest validates and renders portable static metadata.
  • Registry Discovery serves a curated public index. Current contracts index Evidence providers.
  • Registry Casework coordinates human review while mutations remain with the source system.
  • Registry Coordinator runs reviewed, finite workflows across durable waits. Receiving products keep authority over every effect.
  • Registry Messaging delivers one operational message per request through operator-configured providers. The caller decides why, when, and to whom.
  • Registry Scheduling keeps one capacity ledger in PostgreSQL. Holds and appointments are created only inside Scheduling.
  • Registry Render produces byte-stable PDF documents from registry data using embedded Typst.
  • Registry Adapter serves a declared API over an existing source system, or ingests source pages into a reviewed projection.
  • Registry Document Store holds document bytes in custody and releases an exact, verified version to a recipient a document grant names. It is pre-1.0 and held out of releases.
  • Registry Platform supplies bounded primitives. It does not decide product policy. Its SQLite boundary opens a database read-only and installs a statement authoriser that denies by default.

Products are configured and deployed independently. A package, credential, trust decision, or audit record from one product does not silently authorise another.

BoundaryInvariant
BReg write boundaryOnly compiled model operations under authorised profiles, and reviewed bregctl maintenance commands, can change PostgreSQL records.
Evidence source boundaryThe reviewed package and its pinned Adapter pack route fix every request origin, method, and path template. Authorised selector values fill only the path segments the route declares. Credentials, endpoint bindings, the acquisition deadline, and the response budget come from the operator runtime file. Its endpoint bindings must match the governed connection policy.
Evidence assertion boundaryOnly declared concepts and value forms enter the signed assertion.
Manifest publication boundaryOutput is descriptive static metadata and grants no runtime authority.
Discovery selection boundaryA selection is inert until an application validates and accepts it locally.
Casework decision boundaryCasework records review. The source system retains mutation authority.

No shared root activates the products atomically. Operators record and recover each product revision separately.

Only a product’s documented contract crosses its boundary, for example an authorised BReg API response, an Evidence assertion, or static Manifest metadata. The source stays responsible for the correctness and currentness of its data. A signed Evidence assertion names the requirement it supports and the configuration revision it was evaluated under. It does not establish that the source’s data was correct or current. An Evidence error body carries static text and a trace identifier only. It never carries a source URL, source response, credential, or script diagnostic.

Applications integrate through documented APIs and portable artifacts. BReg can supply governed records through its own API. Registry Evidence can call an explicitly configured source. Manifest output can describe a service without controlling it. Registry Evidence does not read a metadata manifest. Discovery returns inert metadata that an application must validate and accept locally.

A fixed authoritative source remains outside the Registry Evidence product boundary. An authenticated Base Registry Engine route can serve as such a source when its own authorisation permits the request; that composition does not merge the two products’ trust boundaries.

The Registry Manifest reference owns the current metadata keys and field schemas.