betterwithage Perplexity Computer Agent commited on
Commit
06078ee
·
verified ·
1 Parent(s): b25b0fb

docs(slsa): sync Space card with GitHub README (SLSA L1 + L2 attested)

Browse files

Automated README sync from szl-holdings/amaru main via hf-sync.

Signed-off-by: Yachay <yachay@szlholdings.ai>
Co-Authored-By: Perplexity Computer Agent <agent@perplexity.ai>

Files changed (1) hide show
  1. README.md +91 -159
README.md CHANGED
@@ -1,207 +1,139 @@
1
  ---
2
- title: "amaru — Memory Cortex"
3
- emoji: "🐍"
4
- colorFrom: green
5
- colorTo: blue
6
  sdk: docker
7
- app_port: 7860
8
  pinned: true
9
  license: apache-2.0
10
- short_description: "amaru — FAISS RAG memory cortex with provenance receipts"
 
11
  tags:
12
- - memory
13
- - rag
14
- - faiss
15
  - doctrine-v11
16
- - amaru
 
 
 
 
 
 
17
  - apache-2.0
18
- ecosystem-stage: "operational"
19
  ---
20
- # amaru 🐍
21
- > Memory cortex with FAISS RAG provenance and chunk-level citation — every memory read/write wrapped in a cryptographic receipt chain.
22
 
23
- ![doctrine-v11](https://img.shields.io/badge/doctrine-v11%20LOCKED-0B1F3A) ![SLSA-L1_honest](https://img.shields.io/badge/SLSA-L1%20honest-2C5F2D) ![DCO](https://img.shields.io/badge/DCO-required-555) ![CI](https://github.com/szl-holdings/amaru/actions/workflows/ci.yml/badge.svg) ![Scorecard](https://img.shields.io/badge/OpenSSF-Scorecard-informational) ![License](https://img.shields.io/badge/license-Apache--2.0-blue)
24
 
25
- **749 declarations · 14 axioms · 163 sorries · Doctrine v11 LOCKED · kernel `c7c0ba17`**
26
 
27
- [Quickstart](#quickstart) · [Docs](https://docs.szlholdings.com/flagships/amaru) · [Cookbook](https://github.com/szl-holdings/szl-cookbook) · [Verify](#verify-in-2-minutes) · [Cite](#citation) · [Releases](https://github.com/szl-holdings/amaru/releases)
 
 
 
28
 
29
- ## Live
30
- - **Space:** https://szlholdings-amaru.hf.space
31
- - **Docs:** https://docs.szlholdings.com/flagships/amaru
32
- - **Release:** [v1.0.0](https://github.com/szl-holdings/amaru/releases/tag/v1.0.0)
33
 
34
  ## What it does
35
- - **Governance receipts** — COSE_Sign1-wrapped (RFC 9052) per memory op; each carries a Λ score, Shor-9 provenance hash, and Lamport timestamp.
36
- - **7-Chakra scheduler** — single-thread serpentine ASCEND/DESCEND pipeline; each chakra emits a receipt trace entry.
37
- - **Cardano L1 anchor** — checkpoint hashes anchored as transaction metadata (hash anchoring only — not a token, not custodial).
38
 
39
- ## Quickstart
40
 
41
- ```bash
42
- pip install "szl-amaru" # PyPI
43
- # or run the live, signed container:
44
- docker run --rm -p 7860:7860 ghcr.io/szl-holdings/amaru:uds-v0.2.0
45
- ```
46
- ```python
47
- from szl_amaru import Gate # one-liner to first signed verdict
48
- gate = Gate.from_doctrine("v11") # loads the LOCKED 749/14/163 posture
49
- verdict = gate.evaluate(receipt) # -> signed verdict + receipt id
50
- ```
51
 
52
- > Prefer zero-install? Hit the **[live Space](https://szlholdings-amaru.hf.space)** or run the [Verify](#verify-in-2-minutes) block below — no credentials required.
53
 
54
- ## Verify (in 2 minutes)
55
 
56
  ```bash
57
- # 1. Confirm the LOCKED doctrine numbers on the running Space (live-verified).
58
  curl -s https://szlholdings-amaru.hf.space/api/amaru/v1/honest \
59
  | jq '{doctrine, declarations, axioms_unique, sorries_total}'
60
- # => { "doctrine": "v11", "declarations": 749, "axioms_unique": 14, "sorries_total": 163 }
61
 
62
- # 2. Sign a Khipu receipt live, then verify its DSSE envelope against the
63
- # published SZLHOLDINGS cosign.pub — a real ECDSA-P256-SHA256 round-trip.
64
  DSSE=$(curl -s -X POST https://szlholdings-amaru.hf.space/api/amaru/khipu/sign \
65
- -H 'content-type: application/json' -d '{"receipt":{"action_id":"demo"}}' | jq .dsse)
 
66
  curl -s -X POST https://szlholdings-amaru.hf.space/api/amaru/khipu/verify \
67
  -H 'content-type: application/json' -d "{\"dsse\":$DSSE}" | jq '{verified, signatures}'
68
- # => { "verified": true, "signatures": [ { "keyid": "szlholdings-cosign", "verified": true } ] }
69
-
70
- # 3. Verify the SLSA build provenance attached to the GHCR image:
71
- gh attestation verify oci://ghcr.io/szl-holdings/amaru:uds-v0.2.0 --owner szl-holdings
 
 
 
 
 
 
 
 
72
  ```
73
 
74
- > Honest note: in-Space Khipu DSSE receipts are signed with a real ECDSA-P256
75
- > cosign key when the `SZL_COSIGN_PRIVATE_PEM` runtime secret is present (else
76
- > receipts are emitted **UNSIGNED and labelled** — never fabricated). The chain
77
- > is hash-linked: each node digest = `sha256(canonical_json(receipt) + parent_digest)`.
78
- > Cardano-anchored receipts are demo-seeded, **not** on-chain mainnet.
79
-
80
- **Public proof:** the GHCR image ships a signed in-toto SLSA provenance v1
81
- attestation (`actions/attest-build-provenance@v2`) discoverable on the public
82
- Sigstore Rekor transparency log; verify it with the step-3 command above.
83
-
84
- ## Try the cookbook
85
 
86
- New here? The **[SZL Cookbook](https://github.com/szl-holdings/szl-cookbook)** has runnable recipes for your use case:
87
-
88
- - **[Recipe 01 — Verify a receipt end-to-end](https://github.com/szl-holdings/szl-cookbook/blob/main/recipes/01-verify-a-receipt-end-to-end.md)**
89
- - **[Recipe 05 — Memory-attested reasoning](https://github.com/szl-holdings/szl-cookbook/blob/main/recipes/05-memory-attested-reasoning.md)**
90
- - **[Recipe 10 — Cardano-anchored DSSE blood ledger](https://github.com/szl-holdings/szl-cookbook/blob/main/recipes/10-cardano-dsse-blood-ledger.md)**
91
-
92
- Full index: [szl-cookbook/recipes](https://github.com/szl-holdings/szl-cookbook/tree/main/recipes).
93
 
94
  ## Architecture
95
 
96
  ```mermaid
97
- flowchart LR
98
- Q[a11oy query] --> M[amaru cortex]
99
- M --> SC[7-Chakra scheduler]
100
- SC -->|COSE_Sign1| RC[(Receipt chain)]
101
- RC -->|Shor-9 hash| CA[Cardano L1 anchor]
 
 
 
102
  ```
103
 
104
- ## API surface
105
-
106
- | Endpoint | Method | Description |
107
- |---|---|---|
108
- | `/api/amaru/healthz` | GET | Liveness + chakra status |
109
- | `/api/amaru/v1/honest` | GET | Doctrine disclosure (JSON) |
110
- | `/api/amaru/v1/version` | GET | Build + version metadata |
111
- | `/api/amaru/chakra/{name}/evaluate` | POST | Run a chakra kernel |
112
- | `/api/amaru/scheduler/tick` | POST | Full root→crown scheduler tick |
113
- | `/api/amaru/receipts` | GET | Receipt chain browser |
114
- | `/api/amaru/overwatch/snapshot` | GET | R0513 6-invariant panel |
115
-
116
- The full, canonical endpoint list is on the [docs site](https://docs.szlholdings.com/flagships/amaru) and the [API reference](https://docs.szlholdings.com/api/).
117
-
118
- ## Doctrine
119
- - **Doctrine v11 LOCKED** — 749/14/163 · kernel `c7c0ba17` (never bumped)
120
- - **Λ = Conjecture 1** (NOT a theorem) — depends on the open CAUCHY_ND sorry + a missing symmetry axiom
121
- - **SLSA L1 honest** (cosign-signed images, verifiable via `cosign verify`) · L2 (attested build-service provenance) is roadmap, not yet claimed · **Section 889 = exactly 5 vendors** (Huawei, ZTE, Hytera, Hikvision, Dahua)
122
- - No Iron Bank / FedRAMP / CMMC / SWFT / Mission Owner claims
123
-
124
- ## License + DOI
125
-
126
- - **License:** Apache-2.0 (OSS across all SZL Holdings repos).
127
- - **Concept DOI:** [`10.5281/zenodo.20434276`](https://doi.org/10.5281/zenodo.20434276) — cite the archived release on Zenodo.
128
-
129
- ## Built with / learned from
130
-
131
- This repository's structure and documentation conventions were learned from open-source
132
- publication leaders — we adapted their *patterns*, not their words. Inspired by patterns from
133
- **Polymathic AI** ([the_well](https://github.com/PolymathicAI/the_well), [walrus](https://github.com/PolymathicAI/walrus)),
134
- **Anthropic**, **OpenAI** ([whisper](https://github.com/openai/whisper)), **Stripe** (docs craft),
135
- Google DeepMind ([alphafold3](https://github.com/google-deepmind/alphafold3)),
136
- Meta FAIR ([segment-anything](https://github.com/facebookresearch/segment-anything)),
137
- EleutherAI ([lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness)),
138
- and Hugging Face ([transformers](https://github.com/huggingface/transformers)).
139
- We are a precision substrate, not a vibes company.
140
-
141
- ## Citation
142
-
143
- ```bibtex
144
- @software{szl_amaru_2026,
145
- author = {Lutar, Stephen P.},
146
- title = {amaru: Memory cortex with FAISS RAG provenance and chunk-level citation},
147
- year = {2026},
148
- publisher = {SZL Holdings},
149
- version = {v1.0.0},
150
- url = {https://github.com/szl-holdings/amaru},
151
- doi = {10.5281/zenodo.20434276},
152
- note = {Doctrine v11 LOCKED 749/14/163, kernel c7c0ba17}
153
- }
154
- ```
155
 
156
- ## SLSA L1 honest build provenance (verify)
 
 
 
 
 
 
 
 
 
157
 
158
- Every `ghcr.io/szl-holdings/amaru` image is cosign-signed and independently verifiable. SLSA L1 honest — images are cosign-signed and verifiable via `cosign verify`. L2 (isolated, attested build-service provenance) is roadmap via Wire D; not yet claimed.
159
 
160
  ```bash
161
- # Resolve the image digest, then verify provenance against the source repo:
162
- slsa-verifier verify-image \
163
- ghcr.io/szl-holdings/amaru:uds-v0.2.0 \
164
- --source-uri github.com/szl-holdings/amaru \
165
- --source-tag main
166
-
167
- # Or with GitHub's native tooling:
168
- gh attestation verify oci://ghcr.io/szl-holdings/amaru:uds-v0.2.0 --owner szl-holdings
169
  ```
170
 
171
- L2 (isolated, attested build-service provenance) is roadmap via Wire D; not yet claimed.
172
- L3 is **not** claimed.
173
-
174
- ---
175
- *Doctrine v11 LOCKED · 749/14/163 · kernel c7c0ba17 · Λ = Conjecture 1 · SLSA L1 honest (cosign-signed, verifiable via `cosign verify`); L2 roadmap, not yet claimed*
176
 
177
  ---
178
 
179
- ## 🔌 UDS Mesh — the nervous system
180
 
181
- This organ is part of the **SZL UDS mesh**: a 7-organ trace + receipt substrate
182
- (brain `rosie` · heart `a11oy` · blood `amaru` · immune `sentra` · nervous/courier
183
- `killinchu` · skeleton `phawaq` · wires = W3C `traceparent`).
 
 
 
 
 
 
 
184
 
185
- ```mermaid
186
- flowchart LR
187
- classDef live fill:#0f3a2e,stroke:#5ad1c0,color:#e8eef7;
188
- classDef inproc fill:#2a3550,stroke:#7aa2ff,color:#e8eef7;
189
- classDef roadmap fill:#3a2f0f,stroke:#e0c060,color:#e8eef7;
190
- ROSIE["🧠 rosie<br/>brain"]:::inproc -->|Wire C| A11OY["❤️ a11oy<br/>heart / fabric"]:::live
191
- A11OY -->|Wire B| SENTRA["🛡️ sentra<br/>immune"]:::live
192
- A11OY -->|Wire E| AMARU["🩸 amaru<br/>blood"]:::inproc
193
- A11OY -->|Wire F| PHAWAQ["🦴 phawaq<br/>skeleton"]:::roadmap
194
- KILLINCHU["📡 killinchu<br/>courier"]:::roadmap -.->|relay| RECEIPTS["📜 receipts<br/>DSSE Khipu"]:::inproc
195
- A11OY -->|traceparent embedded| RECEIPTS
196
- WIRES["🔌 wires / W3C traceparent"]:::live -.-> A11OY
197
- ```
198
-
199
- **Honest mesh status (verified 2026-06-03):** every organ emits **real W3C trace
200
- context** (`traceparent` / `tracestate` / `x-szl-wire-d: LIVE`) and a11oy binds it into
201
- **DSSE Khipu receipts** — this is **LIVE in-process**. Spans are **not** yet OTLP-exported,
202
- DSSE receipts are currently **unsigned**, and cross-pod organ routing is **roadmap (v0.4.0)**.
203
- Honesty over checklist.
204
 
205
- Full diagram + wire-status table: **[docs-site / mesh](https://szl-holdings.github.io/docs-site/mesh)**
206
 
207
- <sub>Λ Conjecture 1 (not a theorem) · 749/14/163 v11 LOCKED · SLSA L1 honest · Section 889 = 5 vendors</sub>
 
1
  ---
2
+ title: amaru — Memory Attestation (Cardano-Anchored)
3
+ emoji: 🐍
4
+ colorFrom: yellow
5
+ colorTo: indigo
6
  sdk: docker
 
7
  pinned: true
8
  license: apache-2.0
9
+ short_description: "memory cortex Cardano-anchored receipt chain"
10
+ ecosystem-stage: operational
11
  tags:
 
 
 
12
  - doctrine-v11
13
+ - memory
14
+ - formal-verification
15
+ - szl-holdings
16
+ - agentic-ai
17
+ - dsse
18
+ - governance
19
+ - provenance
20
  - apache-2.0
21
+ - rag
22
  ---
23
+ <!-- HF Space front-matter is REQUIRED (sdk: docker). Injected by hf-sync
24
+ so the Space builds the Dockerfile. Do not remove. -->
25
 
26
+ ## Live
27
 
28
+ **HF Space (one-click, no login):** [![Open in Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Open%20in%20Spaces-amaru-FF9D00?style=flat-square)](https://huggingface.co/spaces/SZLHOLDINGS/amaru)
29
 
30
+ - Space URL: https://szlholdings-amaru.hf.space
31
+ - Health: `curl -s https://szlholdings-amaru.hf.space/api/amaru/v1/honest | jq '{doctrine,declarations}'` → `{"doctrine":"v11","declarations":749}`
32
+ - Docs: https://docs.szlholdings.com/flagships/amaru
33
+ - Release: [v1.0.0](https://github.com/szl-holdings/amaru/releases/tag/v1.0.0)
34
 
35
+ ---
 
 
 
36
 
37
  ## What it does
 
 
 
38
 
39
+ **amaru is the reasoning cortex.** It answers questions with citations and refuses when evidence is absent — it never invents a justification. This is the trust layer for any commander-facing readiness or assessment dashboard: automation bias kills trust; amaru produces reasoning an operator can act on.
40
 
41
+ Key capabilities:
42
+ - **Cited reasoning** — every answer tied to a chunk-level source; refuses to fabricate when evidence is absent
43
+ - **FAISS RAG memory** provenance receipts on every memory read/write; COSE_Sign1-wrapped (RFC 9052) per op
44
+ - **7-Chakra scheduler** — ASCEND/DESCEND pipeline; each chakra emits a receipt trace entry
45
+ - **Cardano L1 anchor** — checkpoint hashes as transaction metadata (hash anchoring only — not a token)
46
+ - **Competitive parity** — Splunk-style analytics, Credo AI-style bias detection (live, HTTP 200)
47
+
48
+ **NATO Explainability/Traceability fit:** amaru produces the cited rationale doctrine requires. When an operator asks *why* the system flagged a track, amaru produces a cited answer or refuses — it never invents a justification.
 
 
49
 
50
+ ---
51
 
52
+ ## Verify it yourself
53
 
54
  ```bash
55
+ # 1. Confirm live doctrine numbers
56
  curl -s https://szlholdings-amaru.hf.space/api/amaru/v1/honest \
57
  | jq '{doctrine, declarations, axioms_unique, sorries_total}'
58
+ # => {"doctrine":"v11","declarations":749,"axioms_unique":14,"sorries_total":163}
59
 
60
+ # 2. Sign a Khipu receipt and verify the DSSE envelope
 
61
  DSSE=$(curl -s -X POST https://szlholdings-amaru.hf.space/api/amaru/khipu/sign \
62
+ -H 'content-type: application/json' \
63
+ -d '{"receipt":{"action_id":"demo"}}' | jq .dsse)
64
  curl -s -X POST https://szlholdings-amaru.hf.space/api/amaru/khipu/verify \
65
  -H 'content-type: application/json' -d "{\"dsse\":$DSSE}" | jq '{verified, signatures}'
66
+ # => {"verified": true, "signatures": [{"keyid":"szlholdings-cosign","verified":true}]}
67
+
68
+ # 3. Verify SLSA Build L2 provenance
69
+ gh attestation verify \
70
+ oci://ghcr.io/szl-holdings/amaru@sha256:ad595555... \
71
+ --repo szl-holdings/amaru
72
+ # Attestation: https://github.com/szl-holdings/amaru/attestations/29917085
73
+
74
+ # 4. Verify cosign keyless signature (Rekor index 1723784350)
75
+ cosign verify ghcr.io/szl-holdings/amaru:uds-v0.2.0 \
76
+ --certificate-identity-regexp="^https://github.com/szl-holdings/" \
77
+ --certificate-oidc-issuer="https://token.actions.githubusercontent.com"
78
  ```
79
 
80
+ **Full guide:** [developers/VERIFY.md](https://github.com/szl-holdings/developers/blob/main/VERIFY.md)
 
 
 
 
 
 
 
 
 
 
81
 
82
+ ---
 
 
 
 
 
 
83
 
84
  ## Architecture
85
 
86
  ```mermaid
87
+ graph TD
88
+ Q[Query] --> FAISS[FAISS RAG\nchunk-level retrieval\nprovenance hash per chunk]
89
+ FAISS --> CH[7-Chakra scheduler\nASCEND/DESCEND\neach chakra emits receipt]
90
+ CH --> ANS{Evidence found?}
91
+ ANS --> |Yes| CITE[Cited answer\nreceipt signed\nChakra trace entry]
92
+ ANS --> |No| REFUSE[Explicit refusal\nreceipt signed\nnever fabricates]
93
+ CITE & REFUSE --> KD[Khipu DAG\nDSSE P-256 signed\nCOSE_Sign1 per op]
94
+ KD --> CARD[Cardano anchor\ncheckpoint hash\ntx metadata only]
95
  ```
96
 
97
+ ---
98
+
99
+ ## Parity vs. leaders
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
+ | Capability | Palantir / Splunk | amaru | Differentiator |
102
+ |---|---|---|---|
103
+ | RAG / retrieval | ✅ | ✅ FAISS chunk-level | — |
104
+ | Citation of sources | partial | ✅ **chunk-level provenance** | Every claim tied to a verifiable source chunk |
105
+ | Refusal when no evidence | — | ✅ **explicit refusal** | Never fabricates; Palantir doesn't guarantee this |
106
+ | Receipt per reasoning op | — | ✅ **COSE_Sign1 per op** | — |
107
+ | Supply-chain provenance | — | ✅ **SLSA L2 verified** | — |
108
+ | Bias detection | ✅ (Credo AI) | ✅ parity endpoint | — |
109
+
110
+ ---
111
 
112
+ ## Quickstart
113
 
114
  ```bash
115
+ docker run --rm -p 7860:7860 ghcr.io/szl-holdings/amaru:uds-v0.2.0
 
 
 
 
 
 
 
116
  ```
117
 
118
+ > Note: in-Space Khipu DSSE receipts are signed with real ECDSA-P256 when `SZL_COSIGN_PRIVATE_PEM` runtime secret is present; otherwise receipts are emitted unsigned and labelled — never silently fabricated.
 
 
 
 
119
 
120
  ---
121
 
122
+ ## Honest status
123
 
124
+ | Claim | Status |
125
+ |---|---|
126
+ | Live HF Space (HTTP 200) | |
127
+ | SLSA Build L2 verified | ✅ — attestation [29917085](https://github.com/szl-holdings/amaru/attestations/29917085); Rekor [1723784350](https://search.sigstore.dev/?logIndex=1723784350) |
128
+ | cosign keyless signed | ✅ |
129
+ | DSSE Khipu receipts | ✅ — ECDSA P-256-SHA256 when secret present; labelled UNSIGNED otherwise |
130
+ | Cardano anchor | ⚠️ Demo-seeded; not on mainnet |
131
+ | Lean 749/14/163 @ `c7c0ba17` | ✅ |
132
+ | Λ-uniqueness | ⚠️ Conjecture 1 — not a theorem |
133
+ | SLSA L3 | ❌ Not claimed |
134
 
135
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
+ <sub>Doctrine v11 LOCKED · 749/14/163 · kernel `c7c0ba17` · SLSA L2 verified · Λ = Conjecture 1 · Apache-2.0</sub>
138
 
139
+ Signed-off-by: stephenlutar2-hash <stephenlutar2@gmail.com>