From 78331a1b23f268703c2a3d9559116ceb2e0b85aa Mon Sep 17 00:00:00 2001 From: Patrick Schmitt <45056826+patschmittdev@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:55:10 -0500 Subject: [PATCH 1/2] Remove duplicated content from the docs Each fact now appears once, on the page that owns it, and other pages link there: - The experimental-results banner stays on the README, project status, and the ingest-and-refine guide, in one wording. - The threat model summarizes the security boundaries and links to the pages that define them. Model transport limits move to the configuration reference. - The guarantees page links to the threat model for residual risks and incident handling. - The authorization reference page and the review guide link to the protocol specification instead of restating it. - The README links to project status for the evidence numbers. - The landing page drops four duplicated list items and an aphorism. Co-Authored-By: Claude Opus 5.5 --- ARCHITECTURE.md | 2 - README.md | 15 +-- .../docs/concepts/human-authority-boundary.md | 2 - site/src/content/docs/concepts/tiers.md | 2 - .../docs/getting-started/first-vault.md | 2 - .../getting-started/garden-walkthrough.md | 2 - .../docs/getting-started/installation.md | 2 - .../content/docs/getting-started/overview.md | 28 ++---- .../guides/human-review-and-authorization.md | 28 ++---- .../content/docs/guides/ingest-and-refine.md | 7 +- .../docs/reference/authorization-protocol.md | 56 +----------- site/src/content/docs/reference/cli.md | 2 - .../content/docs/reference/configuration.md | 8 +- site/src/content/docs/security/guarantees.md | 37 ++------ .../src/content/docs/security/threat-model.md | 91 +++---------------- site/src/pages/index.astro | 11 +-- 16 files changed, 49 insertions(+), 246 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 138c2f1..4e1b3da 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1,7 +1,5 @@ # Ziggurat Architecture -**Experimental:** model-backed refinement has no human usability scores; the revised model-workflow batch reused the fixtures that informed it and is not held out. - ## System purpose Ziggurat is a memory admission firewall. It preserves untrusted source material, diff --git a/README.md b/README.md index 01bb44c..e2685f0 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,11 @@ See the [threat model](site/src/content/docs/security/threat-model.md). ## Status -Pre-release 0.1.0, source-only, with no tagged releases. Ziggurat is not published to npm; install it from source. Contracts, index formats, and CLI behavior may change before 1.0. +Pre-release 0.1.0, source-only, with no tagged releases. Contracts, index formats, and CLI behavior may change before 1.0. -**Experimental:** model-backed refinement has no human usability scores. A revision staged 90/90 on the same fixtures that informed it, so it is not a held-out result; human acceptance remains pending. See the [workflow evaluation](docs/model-workflow-evaluation.md). +**Experimental:** model refinement has no human usability scores. Initial staging was 79/90, below the 81/90 gate. A revision staged 90/90 on the same fixtures that informed it, so it is not a held-out result; human acceptance remains pending. See [model evidence](docs/model-workflow-evaluation.md). -Retrieval has no abstention: on the small synthetic corpus, 4/6 no-answer queries still returned results. A threshold experiment selected no candidate. See the [retrieval evaluation](docs/retrieval-evaluation.md). +See [project status](site/src/content/docs/project/status.md) for bounded evidence and remaining gaps. ## Requirements and installation @@ -49,15 +49,6 @@ The refine host reads selected Bronze and optional target context, sends bounded A reviewer independently authors a knowledge page and obtains an external receipt. `build` admits Gold only after receipt verification and every eligibility check. Gold, review, and evidence indexes remain separate; shipped MCP exposes only read-only Gold. Retrieved chunks have reference status and no instruction authority. See the [authorization boundary](site/src/content/docs/concepts/human-authority-boundary.md), [isolated indexes](site/src/content/docs/concepts/isolated-indexes.md), and [provenance](site/src/content/docs/concepts/provenance-and-authority.md). -## Evidence - -| Report | Bounded result | -|---|---| -| [Model workflow](docs/model-workflow-evaluation.md) | Initial staging was 79/90, below the 81/90 gate. Human usability remains unscored. | -| [Retrieval](docs/retrieval-evaluation.md) | On a small synthetic corpus, exact-identifier holdout top-1 reached 8/8 and no-answer false positives remained 4/6. On the separate abstention fixture, the Gold-ID baseline holdout reached 3/6 exact top-1. | -| [Operating envelope](docs/operating-envelope.md) | Synthetic 1,000-page targets passed on one Windows machine with 512 MiB old-space; default-heap RSS failed and native Windows disk-full recovery remains unverified. | -| [External signing](docs/external-signing-interop.md) | Independent Python bytes and disposable signatures interoperated with Node; this is neither a shipped signer nor proof of human review. | - ## Documentation Documentation source is in `site/`. Build locally with `cd site`, `npm ci`, then `npm run build`; use `npm run dev` to read it locally. Start with [overview](site/src/content/docs/getting-started/overview.md), [installation](site/src/content/docs/getting-started/installation.md), [CLI](site/src/content/docs/reference/cli.md), [configuration](site/src/content/docs/reference/configuration.md), and [architecture](ARCHITECTURE.md). diff --git a/site/src/content/docs/concepts/human-authority-boundary.md b/site/src/content/docs/concepts/human-authority-boundary.md index d4c0d47..c09dbd3 100644 --- a/site/src/content/docs/concepts/human-authority-boundary.md +++ b/site/src/content/docs/concepts/human-authority-boundary.md @@ -3,8 +3,6 @@ title: The human authority boundary description: Why Ziggurat's review step is a cryptographic capability rather than a workflow convention. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - Most review steps are conventions. Someone is supposed to look, someone is supposed to approve, and the system records that they said they did. A convention fails silently: it holds exactly as long as everybody follows it, and nothing detects the moment they stop. diff --git a/site/src/content/docs/concepts/tiers.md b/site/src/content/docs/concepts/tiers.md index 8d2755f..e89e672 100644 --- a/site/src/content/docs/concepts/tiers.md +++ b/site/src/content/docs/concepts/tiers.md @@ -3,8 +3,6 @@ title: Bronze, Silver, and Gold description: What each tier stores, who can write it, and what crossing between tiers requires. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - Tiers have distinct writers. ## Bronze: preserved evidence diff --git a/site/src/content/docs/getting-started/first-vault.md b/site/src/content/docs/getting-started/first-vault.md index 23e5112..08e2cda 100644 --- a/site/src/content/docs/getting-started/first-vault.md +++ b/site/src/content/docs/getting-started/first-vault.md @@ -3,8 +3,6 @@ title: Your first vault description: Create a vault, capture one piece of evidence, and build the three isolated indexes. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - A vault is an ordinary directory. `init` does not create a Git repository or a vault `.gitignore`. Before committing one, add vault-local ignore rules for generated indexes and decide whether inbox and Bronze evidence are safe to place in version control. diff --git a/site/src/content/docs/getting-started/garden-walkthrough.md b/site/src/content/docs/getting-started/garden-walkthrough.md index c766d88..529b9cf 100644 --- a/site/src/content/docs/getting-started/garden-walkthrough.md +++ b/site/src/content/docs/getting-started/garden-walkthrough.md @@ -3,8 +3,6 @@ title: The garden walkthrough description: Prepare a fixture vault, ingest its sources, and print the manual steps that remain. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - The repository ships fixture inputs and a script that initializes a vault, ingests those files as Bronze, and prints the remaining manual steps. diff --git a/site/src/content/docs/getting-started/installation.md b/site/src/content/docs/getting-started/installation.md index b295cc6..d7ec9c6 100644 --- a/site/src/content/docs/getting-started/installation.md +++ b/site/src/content/docs/getting-started/installation.md @@ -3,8 +3,6 @@ title: Installation description: Build the Ziggurat CLI from a source checkout and verify that it works. --- -**Experimental:** model-backed refinement has no human usability scores; the revised model-workflow batch reused the fixtures that informed it and is not held out. - Ziggurat is distributed as source, not as a published npm package. Its `package.json` keeps `"private": true`, so do not depend on the `ziggurat` package name. diff --git a/site/src/content/docs/getting-started/overview.md b/site/src/content/docs/getting-started/overview.md index 5e7e02f..cf6bea8 100644 --- a/site/src/content/docs/getting-started/overview.md +++ b/site/src/content/docs/getting-started/overview.md @@ -3,29 +3,19 @@ title: Overview description: What Ziggurat is, what it enforces, and what it deliberately does not do. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - Ziggurat is a human-gated memory firewall: a local TypeScript reference implementation that treats durable AI memory as a privileged write surface. +## The boundary in one paragraph + A model can read authorized content and return a strict version-1 refinement draft with source IDs and line ranges. The refine host derives canonical citations and version-2 Silver, then validates and persists only that artifact. Gold requires a valid receipt from a configured Ed25519 key that operator policy assigns to a reviewer. Ziggurat verifies key control and exact-content authorization, not humanity, attention, -semantic support, or factual truth. - -## The boundary in one paragraph - -Content moves through three tiers. **Bronze** is canonical UTF-8 text captured from -untrusted sources after CRLF-to-LF normalization; ingest creates it without overwriting, -and its body hash detects later mutation. **Silver** is strict version-2 JSON that the -refine host materializes from a model draft, validates, and persists; every citation is -revalidated against stored Bronze text. **Gold** is eligible knowledge content admitted by `build` after a detached -Ed25519 receipt from a configured key and every other eligibility check pass. - -Ziggurat ships no signer, apply, approve, or promote command; see the -[human authority boundary](../concepts/human-authority-boundary.md). +semantic support, or factual truth. See [Bronze, Silver, and Gold](../concepts/tiers.md), +the [human authority boundary](../concepts/human-authority-boundary.md), and the +[enforced boundaries](../security/guarantees.md#enforced-boundaries). ## What this is for @@ -56,10 +46,8 @@ integrate with these products. - Not an OS sandbox, and not a multi-tenant authorization service. - Not a key custody, revocation, or hosted identity service. -- Not a claim about truth. A valid signature proves that a configured key approved exact - content. It does not make that content correct. -- Every retrieved chunk carries `content_role: reference` and - `instruction_authority: none`. + +See all [non-guarantees and residual risks](../security/threat-model.md#explicit-non-guarantees-and-residual-risks). :::caution[Gold is authorization, not truth] Gold carries no truth or safety guarantee; see @@ -82,8 +70,6 @@ Gold carries no truth or safety guarantee; see ## Canonical specifications -This site is task-oriented documentation. Consult these canonical architecture, threat-model, and protocol references: - - [ARCHITECTURE.md](https://github.com/patschmittdev/Ziggurat/blob/main/ARCHITECTURE.md) - [Threat model](../security/threat-model.md) - [docs/authorization-protocol.md](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md) diff --git a/site/src/content/docs/guides/human-review-and-authorization.md b/site/src/content/docs/guides/human-review-and-authorization.md index b53e277..37d6224 100644 --- a/site/src/content/docs/guides/human-review-and-authorization.md +++ b/site/src/content/docs/guides/human-review-and-authorization.md @@ -36,7 +36,7 @@ prerequisites. key outside the vault and model-accessible processes; no shipped signing path accepts or uses it. -5. **Follow the [authorization protocol](../reference/authorization-protocol.md)** to +5. **Follow the [authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md)** to compute the canonical page digest, sign the domain-separated payload, and store the strict detached receipt under `authorizations/`. @@ -117,24 +117,9 @@ Only the public key belongs here. `ziggurat check` flags PEM private-key materia ## The receipt -Receipts are strict JSON, and the deterministic path for `knowledge/topic.md` is -`authorizations/topic.md.authorization.json`. - -```json -{ - "schema_version": 1, - "decision": "admit", - "target_path": "knowledge/topic.md", - "content_sha256": "", - "reviewer_id": "committee-chair", - "reviewed_at": "2026-08-29T21:00:00Z", - "key_id": "committee-chair-2026", - "algorithm": "ed25519", - "signature": "" -} -``` - -Review timestamps require canonical UTC ISO-8601 values. +The receipt for `knowledge/topic.md` is strict JSON at +`authorizations/topic.md.authorization.json`. Review timestamps require canonical UTC +ISO-8601 values. See the [authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md) for receipt fields, canonicalization, and signing bytes. ## Why a signature is not enough on its own @@ -153,9 +138,8 @@ page. Until then the contradiction blocks Gold. A valid signature proves control of a configured key and authorization of exact canonical content. It does not prove humanity, attention, completion of this workflow, semantic support, or factual truth; see -[provenance and authority](../concepts/provenance-and-authority.md). -A stolen key, a compromised reviewer, or an inattentive approval can authorize harmful -content. +[provenance and authority](../concepts/provenance-and-authority.md) and the +[residual risks](../security/threat-model.md#explicit-non-guarantees-and-residual-risks). ## Related diff --git a/site/src/content/docs/guides/ingest-and-refine.md b/site/src/content/docs/guides/ingest-and-refine.md index 58b0035..bda38a1 100644 --- a/site/src/content/docs/guides/ingest-and-refine.md +++ b/site/src/content/docs/guides/ingest-and-refine.md @@ -3,9 +3,9 @@ title: Ingest and refine description: Capture untrusted evidence, then stage a strict Silver proposal through a loopback model. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. +**Experimental:** model refinement has no human usability scores. Initial staging was 79/90, below the 81/90 gate. A revision staged 90/90 on the same fixtures that informed it, so it is not a held-out result; human acceptance remains pending. See [model evidence](https://github.com/patschmittdev/Ziggurat/blob/main/docs/model-workflow-evaluation.md). -This guide covers evidence capture and model-assisted refinement. `ingest` persists +`ingest` persists Bronze evidence; the model pathway cannot invoke it. `refine` materializes and persists a Silver proposal from a model draft. Neither command writes Gold, knowledge pages, receipts, or trust anchors. @@ -84,7 +84,8 @@ The host reads Bronze on the model's behalf and builds a bounded reference block | Request and response body ceiling | 1 MiB each | JSON encoding, metadata, prompts, and optional target context add request bytes; -they share the separate 1 MiB request ceiling. +they share the separate 1 MiB request ceiling. Each source carries its verified body +digest and 1-based lines. The host verifies each record and supplies its body as explicit `{line_number, text}` entries with a source ID, using 1-based Bronze body coordinates rather than candidate diff --git a/site/src/content/docs/reference/authorization-protocol.md b/site/src/content/docs/reference/authorization-protocol.md index 488c991..3570a07 100644 --- a/site/src/content/docs/reference/authorization-protocol.md +++ b/site/src/content/docs/reference/authorization-protocol.md @@ -10,58 +10,4 @@ Implement a signer against that document, never against this summary. Nothing he redefines a byte. ::: -## What the protocol covers - -| Section | What it defines | -|---|---| -| Status | The protocol version and its stability posture | -| Trust model | What a signature proves, and what it does not | -| Trusted reviewer configuration | The `config/trust.yaml` entry shape | -| Canonical page digest | The exact bytes hashed to identify a page | -| Receipt path | The deterministic location of a receipt | -| Unsigned receipt | The receipt fields before a signature is applied | -| Signing payload | The domain-separated bytes actually signed | -| Verification | The order and strictness of verification steps | -| Interoperability test vectors | Fixtures an independent signer can check against | -| Rotation and revocation | How key changes are handled | -| External signer checklist | What an implementer must get right | - -## The shape of a receipt - -```json -{ - "schema_version": 1, - "decision": "admit", - "target_path": "knowledge/topic.md", - "content_sha256": "", - "reviewer_id": "committee-chair", - "reviewed_at": "2026-08-29T21:00:00Z", - "key_id": "committee-chair-2026", - "algorithm": "ed25519", - "signature": "" -} -``` - -The deterministic receipt path for `knowledge/topic.md` is -`authorizations/topic.md.authorization.json`. - -## Why canonicalization exists - -The canonical page representation uses parsed fields in a fixed order and an -LF-normalized body, so the same page produces the same digest on Windows, macOS, and -Linux. Review timestamps require canonical UTC ISO-8601 values. The signing payload is -domain separated so a signature over one kind of object cannot be replayed as another. - -Changes to signed bytes require a new protocol version rather than an in-place -reinterpretation. - -## Test vectors - -`fixtures/authorization/receipt-vectors.json` publishes interoperability vectors. An -independent signer should reproduce them before being trusted with a real key. The -TypeScript implementation remains the authoritative verifier. - -## Related - -- [Human review and external authorization](../guides/human-review-and-authorization.md) -- [The human authority boundary](../concepts/human-authority-boundary.md) +The [authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md) defines the byte-level signing contract. diff --git a/site/src/content/docs/reference/cli.md b/site/src/content/docs/reference/cli.md index f257a12..ebf1a37 100644 --- a/site/src/content/docs/reference/cli.md +++ b/site/src/content/docs/reference/cli.md @@ -3,8 +3,6 @@ title: CLI reference description: Every Ziggurat command, its options, and what it is allowed to write. --- -**Experimental:** model-backed refinement has no human usability scores; the revised model-workflow batch reused the fixtures that informed it and is not held out. - After `npm run build`, from source, replace `ziggurat` with `node dist/src/cli/main.js`, or use `npm link`. ## Commands diff --git a/site/src/content/docs/reference/configuration.md b/site/src/content/docs/reference/configuration.md index 3f44dfc..13681a5 100644 --- a/site/src/content/docs/reference/configuration.md +++ b/site/src/content/docs/reference/configuration.md @@ -3,8 +3,6 @@ title: Configuration and selected limits description: Configuration files, their allowed keys, and security-relevant shipped CLI limits. --- -**Experimental:** model-backed refinement has no human usability scores; the revised model-workflow batch reused the fixtures that informed it and is not held out. - Configuration lives in `config/` and is validated strictly. Unknown keys are rejected at the top level **and** inside every nested object, so a typo such as `default_sensitvity` fails to load rather than being silently ignored. @@ -116,6 +114,12 @@ and `stream: false`. There is no protocol fallback, JSON repair, retry, or tool-call path. See the [local model protocol and setup guide](https://github.com/patschmittdev/Ziggurat/blob/main/docs/local-model-protocol.md). +The adapter reaches only HTTP loopback endpoints. It never follows redirects, so a +loopback endpoint answering with an off-machine `Location` cannot turn the adapter +into a server-side request forgery primitive. Every request carries a 30 second +deadline, and request and response bodies are capped at 1 MiB, with the response +ceiling enforced while streaming rather than after buffering. + ## `config/trust.yaml` ```yaml diff --git a/site/src/content/docs/security/guarantees.md b/site/src/content/docs/security/guarantees.md index 9534101..5fd71c5 100644 --- a/site/src/content/docs/security/guarantees.md +++ b/site/src/content/docs/security/guarantees.md @@ -3,14 +3,6 @@ title: Guarantees and residual risks description: What Ziggurat enforces in code, and the risks it explicitly does not remove. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - -Read both lists. A boundary whose edges you cannot describe is a boundary you cannot rely -on. - -This page owns the explanation of enforced boundaries. -[Threat model](./threat-model.md) owns the normative assumptions and residual risks. - ## Enforced boundaries - `ingest` is the only Bronze writer. It stores canonical UTF-8 text after CRLF-to-LF @@ -57,27 +49,12 @@ This page owns the explanation of enforced boundaries. - A present but malformed or unreadable `config/clean-room.yaml` fails the release audit instead of falling back to defaults. -## Operationally important non-guarantees - -- Not an OS sandbox. -- Not multi-tenant authorization. -- No key-custody service, revocation service, hosted identity, transport security, - or GUI review. -- A stolen key or inattentive approval can authorize harm, and approved text can still - contain prompt injection. - -The full [non-guarantees and residual risks](https://github.com/patschmittdev/Ziggurat/blob/main/site/src/content/docs/security/threat-model.md#explicit-non-guarantees-and-residual-risks) -cover filesystem and path races, metadata limits, delegated access, review mistakes, -rendering, unavailable services, Git history, and denial of service. - -## Key and incident handling - -Handle private keys, compromised keys, poisoned memory, and unexpected state changes -under -[Threat model](https://github.com/patschmittdev/Ziggurat/blob/main/site/src/content/docs/security/threat-model.md#key-and-incident-handling). +Corpus rejection diagnostics are described in +[integrity and recovery](../guides/integrity-and-recovery.md). -## Canonical source +## Residual risks and incident handling -If this summary and -[threat model](./threat-model.md) differ, -the threat model wins. Update this page rather than treating it as a second specification. +The [threat model](./threat-model.md) lists the +[non-guarantees and residual risks](./threat-model.md#explicit-non-guarantees-and-residual-risks) +and [key and incident handling](./threat-model.md#key-and-incident-handling). +If this page and the threat model differ, the threat model wins. diff --git a/site/src/content/docs/security/threat-model.md b/site/src/content/docs/security/threat-model.md index 3dccdc6..f2e0c2d 100644 --- a/site/src/content/docs/security/threat-model.md +++ b/site/src/content/docs/security/threat-model.md @@ -3,8 +3,6 @@ title: Threat model description: Assumptions, controls, and residual risks. --- -**Experimental:** model-backed refinement has no human usability scores; the revision reused the fixtures that informed it and is not held out. - Ziggurat addresses persistent AI memory and context poisoning: untrusted content enters a durable retrieval store and silently influences later model behavior. This attack class is described by @@ -39,67 +37,19 @@ and advisory review/evidence tooling. Advisory access does not establish human i ## Security boundaries and capabilities -The model endpoint receives messages and returns structured JSON. Ziggurat does not -give that endpoint filesystem or tool capabilities. The refine pathway owns only a -root-constrained Silver writer. - -The host reads Bronze and places the selected bytes into the request as an explicit, -bounded, labeled reference block: at most 12 records, 32 KiB of canonical Bronze -body bytes per source, and 256 KiB of combined canonical Bronze body bytes. -JSON encoding, metadata, prompts, and optional target context add request bytes -and share the separate 1 MiB request ceiling. Each source carries its verified -body digest and 1-based lines. The model receives -data, never a path, handle, or fetch capability, and the proposal it returns is still -revalidated against the real Bronze files before staging. Oversize records are -omitted rather than truncated so a citation can never be computed against bytes that -differ from the stored record. - -The adapter reaches only HTTP loopback endpoints. It never follows redirects, so a -loopback endpoint answering with an off-machine `Location` cannot turn the adapter -into a server-side request forgery primitive. Every request carries a 30 second -deadline, and request and response bodies are capped at 1 MiB, with the response -ceiling enforced while streaming rather than after buffering. - -`ingest` reads and deletes its source, so its source path is a combined arbitrary-read -and arbitrary-delete primitive if it escapes. A source must resolve to a real regular -file physically under `inbox/`. The following are all refused before the file is opened: - -- Absolute paths -- `..` traversal -- empty segments -- control characters -- directories -- symlinks -- junctions -- other reparse points -- hard links -- real-parent escapes - -A refused source is never read, copied, or unlinked. - -Retrieval is bounded per session: 1,024 UTF-16 code units per query, 20 results per search, and -200 retained citations. Over-long queries are refused rather than truncated. When the -citation ceiling is reached the oldest IDs are evicted, which revokes them: a read -against an evicted ID fails closed with the same error as a forged ID. - -No production module writes knowledge pages, reviewed metadata, trusted reviewer -keys, or authorization receipts. `init` can create an empty trust policy but never -adds or replaces keys. `build` can write generated indexes, but Gold construction -requires a valid receipt. Running `build` is not an admission capability. - -The human admission capability is an external Ed25519 private key. A receipt binds: - -- `decision: admit` -- normalized knowledge target path -- SHA-256 of canonical semantic page content -- reviewer ID and review timestamp -- trusted key ID and Ed25519 algorithm - -The signature payload is domain separated. The canonical page representation uses -parsed fields in fixed order and an LF-normalized body, so verification is stable on -Windows, macOS, and Linux. Review timestamps require canonical UTC ISO-8601 values. -The exact field and signing contract lives in the -[authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md#unsigned-receipt). +The model endpoint receives host-selected, bounded data and returns structured JSON. +It receives no path, handle, fetch, filesystem, or tool capability, and the refine +pathway can write only Silver. `ingest` refuses any source that does not resolve to a +real regular file physically under `inbox/`, before reading, copying, or deleting it. +No production module writes knowledge pages, reviewed metadata, trusted reviewer keys, +or authorization receipts. The human admission capability is an external Ed25519 +private key. + +Details: [enforced boundaries](./guarantees.md#enforced-boundaries), +[ingest and refine](../guides/ingest-and-refine.md), +[model transport and configuration](../reference/configuration.md), +[retrieval session bounds](../guides/mcp-gold.md#bounds), and the +[authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md). ## Attack mapping @@ -153,19 +103,6 @@ chunk, provenance, trust-label, BM25, trust-policy, or live-corpus mismatch prev startup or the next search/read. Rebuilding from current authoritative artifacts is required. -A corpus entry that is unreadable, lacks frontmatter, has invalid YAML, or fails its -schema is never admitted. It is reported by path with a category and structural -detail so an operator can repair it. Rejection diagnostics deliberately carry no file -content and no parsed values: for schema failures they name field paths and issue -codes only, so a restricted page is never quoted back through build output or logs. - -A `config/clean-room.yaml` that is unreadable, has malformed YAML, carries unknown -keys or invalid list entries, or is a non-null non-mapping document fails -`ziggurat check` with an actionable diagnostic. Absent, empty, comments-only, and -YAML-null documents use built-in defaults. Missing or null list values mean empty -additional lists. This separate parser does not apply the main vault configuration -parser's blanket prohibition on YAML anchors, aliases, explicit type tags, and tabs. - ## Provenance is not instruction authority Every retrieved chunk carries `content_role: reference` and @@ -220,8 +157,6 @@ Every retrieved chunk carries `content_role: reference` and - Treat any unexpected proposal, receipt, trust-policy, or index change as a potential memory-poisoning incident. -Ziggurat ships no signer, apply, approve, or promote command; see the -[human authority boundary](https://github.com/patschmittdev/Ziggurat/blob/main/site/src/content/docs/concepts/human-authority-boundary.md). Report vulnerabilities through [SECURITY.md](https://github.com/patschmittdev/Ziggurat/blob/main/SECURITY.md). See [guarantees](./guarantees.md). diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index d65b0ca..4ddfd91 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -17,14 +17,10 @@ const description = const enforced = [ 'ingest is the only Bronze writer, and captures are no-overwrite and body-hash verified; later mutation is detectable, not prevented.', - 'An ingest source must resolve to a real regular file physically under inbox/.', 'refine can write only strict version-2 artifacts under .ziggurat/proposals/.', - 'Silver candidates cannot carry status, reviewer, receipt, or admission metadata.', 'Every Silver citation must match exact Bronze bytes, hashes, and line ranges.', 'Gold requires a detached Ed25519 receipt from a key configured in config/trust.yaml.', - 'gold, review, and evidence are physically separate version-2 indexes.', 'Shipped MCP startup is Gold-only and exposes exactly two read-only tools.', - 'Model endpoints are HTTP loopback only, with redirects disabled, a 30 second deadline, and 1 MiB request and response ceilings.', 'Every returned chunk reports content_role: reference and instruction_authority: none.', ]; @@ -34,7 +30,6 @@ const notGuaranteed = [ 'A stolen reviewer key, a compromised reviewer, or an inattentive approval can authorize harmful or false content.', 'A valid signature proves control of a configured key and approval of exact content. It does not prove factual truth.', 'Approved text can still contain prompt injection; see provenance and authority.', - 'Application-level path checks cannot fully close time-of-check to time-of-use windows.', 'No key custody, revocation service, hosted identity, transport security, or GUI review system is provided.', ]; --- @@ -324,10 +319,6 @@ retrieval_eligible: true

What is enforced, and what is not

-

- The second column is not a disclaimer. A boundary you cannot describe the edges of is - a boundary you cannot rely on. -

@@ -336,12 +327,14 @@ retrieval_eligible: true
    {enforced.map((item) =>
  • )}
+

All enforced boundaries

Explicitly not guaranteed

    {notGuaranteed.map((item) =>
  • )}
+

All residual risks

From a4b7fd29e4a38fa5591da139ba301d7b4a7840ee Mon Sep 17 00:00:00 2001 From: Patrick Schmitt <45056826+patschmittdev@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:59:09 -0500 Subject: [PATCH 2/2] Keep signer guidance on the authorization reference page Restore the domain-separation rationale, the protocol-versioning rule, and the test-vector guidance for external signers. Rename the guarantees page to match its content, since residual risks now live in the threat model. Co-Authored-By: Claude Opus 5.5 --- .../content/docs/reference/authorization-protocol.md | 12 +++++++++--- site/src/content/docs/security/guarantees.md | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/site/src/content/docs/reference/authorization-protocol.md b/site/src/content/docs/reference/authorization-protocol.md index 3570a07..eaed1aa 100644 --- a/site/src/content/docs/reference/authorization-protocol.md +++ b/site/src/content/docs/reference/authorization-protocol.md @@ -1,13 +1,19 @@ --- title: Authorization protocol -description: Orientation to the byte-level signing contract, with the canonical specification linked. +description: Where the byte-level signing contract lives, and what an external signer must check. --- :::caution[The specification is canonical, this page is not] The byte-exact contract lives in [docs/authorization-protocol.md](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md). -Implement a signer against that document, never against this summary. Nothing here +Implement a signer against that document, not against this page. Nothing here redefines a byte. ::: -The [authorization protocol](https://github.com/patschmittdev/Ziggurat/blob/main/docs/authorization-protocol.md) defines the byte-level signing contract. +The signing payload is domain separated so a signature over one kind of object cannot +be replayed as another. Changes to signed bytes require a new protocol version rather +than an in-place reinterpretation. + +`fixtures/authorization/receipt-vectors.json` publishes interoperability vectors. An +independent signer should reproduce them before being trusted with a real key. The +TypeScript implementation remains the authoritative verifier. diff --git a/site/src/content/docs/security/guarantees.md b/site/src/content/docs/security/guarantees.md index 5fd71c5..9ff214f 100644 --- a/site/src/content/docs/security/guarantees.md +++ b/site/src/content/docs/security/guarantees.md @@ -1,6 +1,6 @@ --- -title: Guarantees and residual risks -description: What Ziggurat enforces in code, and the risks it explicitly does not remove. +title: Guarantees +description: What Ziggurat enforces in code, with links to the risks it explicitly does not remove. --- ## Enforced boundaries