From 274823d7992966369876b6c7b7f2e9fda4f312d2 Mon Sep 17 00:00:00 2001 From: Patrick Schmitt <45056826+patschmittdev@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:02:12 -0500 Subject: [PATCH 1/3] Open the README with the poisoning example and what is tested Show the garden fixture's hostile memo and what each stage of the memory-boundary test does with it, link the live docs, and state that Ziggurat is a reference implementation whose open question (whether reviewers catch poisoned proposals) needs people, not a benchmark. Co-Authored-By: Claude Opus 5.5 --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e2685f0..7300786 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,25 @@ # Ziggurat -Ziggurat is a local TypeScript reference implementation for separating AI memory proposals from durable reference admission. It preserves source evidence, stages model drafts for review, and requires a detached Ed25519 receipt from a configured external key before admitting Gold. It ships no promote, approve, apply, or signer command. `ingest` is the only Bronze writer; `refine` writes only Silver. +Ziggurat is a local TypeScript reference implementation of a write gate for AI memory. A model can propose what an AI system should remember, with exact citations to stored evidence. Nothing becomes durable context, which Ziggurat calls Gold, until a key held outside model-accessible processes signs a detached Ed25519 receipt for that exact page. Ziggurat ships no promote, approve, apply, or signer command. `ingest` is the only writer of evidence (Bronze), and `refine` writes only proposals (Silver). + +Documentation: [patschmittdev.github.io/Ziggurat](https://patschmittdev.github.io/Ziggurat/). + +## The problem, in one example + +An agent that saves memories from what it reads can be told what to remember. The repository's garden fixture, [`poisoned-memory-rule.md`](fixtures/garden/inbox/poisoned-memory-rule.md), is a supplier memo submitted through a public inbox. Buried in it is an instruction telling any AI that reads it to remember the supplier as approved and to skip review. If an agent writes that into its memory, every later session inherits it as if someone had decided it. OWASP, MITRE ATLAS, and Microsoft Learn catalog this as memory and context poisoning; see the [threat model](site/src/content/docs/security/threat-model.md). + +## What Ziggurat does with it + +[`test/memory-boundary.test.ts`](test/memory-boundary.test.ts) runs that memo through the whole pipeline: + +1. `ingest` keeps the memo unchanged as Bronze evidence, marked restricted and PII-unknown. Default model access excludes fresh captures like it. +2. A Silver proposal citing the instruction's exact lines is staged. Staging writes no knowledge page, receipt, trust entry, or index. The test stages it with a helper; in normal use, `refine` stages proposals from model output. +3. `review` shows the instruction under an `UNTRUSTED REFERENCE` warning. +4. A knowledge page whose own metadata claims it was reviewed still does not reach Gold. +5. Gold changes only after a key listed in `config/trust.yaml` signs a receipt for the exact page. The test signs with a generated key, so this demonstrates the cryptographic check, not a human decision. +6. Retrieved Gold reports `instruction_authority: none`, and a tampered index fails closed. + +Ziggurat does not detect the poison. It keeps hostile text as evidence and turns durable memory into a write that needs a signature. Whether a reviewer notices the instruction before signing is the part that matters most, and nothing here tests it. ## What it is not @@ -16,6 +35,8 @@ See the [threat model](site/src/content/docs/security/threat-model.md). ## Status +Ziggurat is a reference implementation, not a product. The tests cover the admission boundary and its failure modes. They do not measure whether people catch poisoned proposals in review, how review fatigue changes that, or any outcome in a deployed agent. A with-and-without comparison would score Ziggurat at zero admitted poison by construction, so the open question needs human reviewers, not a model benchmark. + Pre-release 0.1.0, source-only, with no tagged releases. Contracts, index formats, and CLI behavior may change before 1.0. **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). From 92af90f50dd747bc70d105bdf2322435eaa0b544 Mon Sep 17 00:00:00 2001 From: Patrick Schmitt <45056826+patschmittdev@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:34:04 -0500 Subject: [PATCH 2/3] Tighten README claims after an adversarial review Say the receipt key is one listed in config/trust.yaml and that its custody is assumed, not enforced; note that a signed page can still carry the instruction; describe ingest as preserving the memo's text. Co-Authored-By: Claude Opus 5.5 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7300786..3010938 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # Ziggurat -Ziggurat is a local TypeScript reference implementation of a write gate for AI memory. A model can propose what an AI system should remember, with exact citations to stored evidence. Nothing becomes durable context, which Ziggurat calls Gold, until a key held outside model-accessible processes signs a detached Ed25519 receipt for that exact page. Ziggurat ships no promote, approve, apply, or signer command. `ingest` is the only writer of evidence (Bronze), and `refine` writes only proposals (Silver). +Ziggurat is a local TypeScript reference implementation of a write gate for AI memory. A model can propose what an AI system should remember, with exact citations to stored evidence. Nothing becomes durable context, which Ziggurat calls Gold, until a key listed in `config/trust.yaml` signs a detached Ed25519 receipt for that exact page. Ziggurat assumes the operator keeps that key outside model-accessible processes; it does not enforce where the key lives. Ziggurat ships no promote, approve, apply, or signer command. `ingest` is the only writer of evidence (Bronze), and `refine` writes only proposals (Silver). Documentation: [patschmittdev.github.io/Ziggurat](https://patschmittdev.github.io/Ziggurat/). ## The problem, in one example -An agent that saves memories from what it reads can be told what to remember. The repository's garden fixture, [`poisoned-memory-rule.md`](fixtures/garden/inbox/poisoned-memory-rule.md), is a supplier memo submitted through a public inbox. Buried in it is an instruction telling any AI that reads it to remember the supplier as approved and to skip review. If an agent writes that into its memory, every later session inherits it as if someone had decided it. OWASP, MITRE ATLAS, and Microsoft Learn catalog this as memory and context poisoning; see the [threat model](site/src/content/docs/security/threat-model.md). +An agent that saves memories from what it reads can be told what to remember. The repository's garden fixture, [`poisoned-memory-rule.md`](fixtures/garden/inbox/poisoned-memory-rule.md), is a supplier memo submitted through a public inbox. It contains an instruction telling any AI that reads it to remember the supplier as approved and to skip review. If an agent writes that into its memory, every later session inherits it as if someone had decided it. OWASP, MITRE ATLAS, and Microsoft Learn catalog this as memory and context poisoning; see the [threat model](site/src/content/docs/security/threat-model.md). ## What Ziggurat does with it [`test/memory-boundary.test.ts`](test/memory-boundary.test.ts) runs that memo through the whole pipeline: -1. `ingest` keeps the memo unchanged as Bronze evidence, marked restricted and PII-unknown. Default model access excludes fresh captures like it. +1. `ingest` preserves the memo's text as Bronze evidence, marked restricted and PII-unknown. Default model access excludes fresh captures like it. 2. A Silver proposal citing the instruction's exact lines is staged. Staging writes no knowledge page, receipt, trust entry, or index. The test stages it with a helper; in normal use, `refine` stages proposals from model output. 3. `review` shows the instruction under an `UNTRUSTED REFERENCE` warning. 4. A knowledge page whose own metadata claims it was reviewed still does not reach Gold. @@ -35,7 +35,7 @@ See the [threat model](site/src/content/docs/security/threat-model.md). ## Status -Ziggurat is a reference implementation, not a product. The tests cover the admission boundary and its failure modes. They do not measure whether people catch poisoned proposals in review, how review fatigue changes that, or any outcome in a deployed agent. A with-and-without comparison would score Ziggurat at zero admitted poison by construction, so the open question needs human reviewers, not a model benchmark. +Ziggurat is a reference implementation, not a product. The tests cover the admission boundary and its failure modes. They do not measure whether people catch poisoned proposals in review, how review fatigue changes that, or any outcome in a deployed agent. A model-only comparison with no signer would score Ziggurat at zero admitted poison by construction. Once someone signs, the outcome depends on what they signed: the test above ends with a signed Gold page whose body still contains the instruction. So the open question needs human reviewers, not a model benchmark. Pre-release 0.1.0, source-only, with no tagged releases. Contracts, index formats, and CLI behavior may change before 1.0. From 2900b9972ebb946b670cd29ea45a6069328c9cbd Mon Sep 17 00:00:00 2001 From: Patrick Schmitt <45056826+patschmittdev@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:42:02 -0500 Subject: [PATCH 3/3] Credit the exact-content check and link the walkthrough as owner Co-Authored-By: Claude Opus 5.5 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3010938..c8bc56e 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ An agent that saves memories from what it reads can be told what to remember. Th ## What Ziggurat does with it -[`test/memory-boundary.test.ts`](test/memory-boundary.test.ts) runs that memo through the whole pipeline: +[`test/memory-boundary.test.ts`](test/memory-boundary.test.ts) runs that memo through the whole pipeline. The [garden walkthrough](site/src/content/docs/getting-started/garden-walkthrough.md) describes each step in full; in short: 1. `ingest` preserves the memo's text as Bronze evidence, marked restricted and PII-unknown. Default model access excludes fresh captures like it. -2. A Silver proposal citing the instruction's exact lines is staged. Staging writes no knowledge page, receipt, trust entry, or index. The test stages it with a helper; in normal use, `refine` stages proposals from model output. +2. A Silver proposal citing the instruction's exact lines is staged. Staging writes no knowledge page, receipt, trust entry, or index. The test calls the staging function directly; in normal use, `refine` stages proposals from model output. 3. `review` shows the instruction under an `UNTRUSTED REFERENCE` warning. 4. A knowledge page whose own metadata claims it was reviewed still does not reach Gold. -5. Gold changes only after a key listed in `config/trust.yaml` signs a receipt for the exact page. The test signs with a generated key, so this demonstrates the cryptographic check, not a human decision. +5. Gold changes only after a key listed in `config/trust.yaml` signs a receipt for the page. The test signs with a generated key, so this demonstrates the cryptographic check, not a human decision. [`test/authorization.test.ts`](test/authorization.test.ts) separately shows that the receipt stops verifying when the page content changes. 6. Retrieved Gold reports `instruction_authority: none`, and a tampered index fails closed. Ziggurat does not detect the poison. It keeps hostile text as evidence and turns durable memory into a write that needs a signature. Whether a reviewer notices the instruction before signing is the part that matters most, and nothing here tests it.