*Territory · 2 understandings* ## Summary This is the governance doctrine's signing and verification layer: `src/approvals.ts` does Ed25519 through WebCrypto, signing and verifying `/3` and `/1` approvals and rulebooks, with `verifyAndEvaluate` and `verifyAndEvaluatePlan` and zero dependencies. Alongside it, `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format and the verified-approval registry, which works by object identity and never by a flag. What is still open is how an approval gets into that registry, and what the doors do with an approval that fails `verifyApproval`. ## Explanation - `src/approvals.ts` does Ed25519 through WebCrypto: it signs and verifies `/3` and `/1` approvals through `signApproval`, `signGovernanceApproval` and `verifyApproval`, which branches on `spec`, and it signs and verifies rulebooks, provides `verifyAndEvaluate` and `verifyAndEvaluatePlan`, and has zero dependencies. - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branch… - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format, `Accepts: 'any' | 'domain' | 'governance'`, and the verified-approval registry, which works by object identity and never by a flag. - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-appro… - The two entries describe one signing-and-verification layer and one refusal-and-registry layer of the same governance package, and the registry's object-identity rule is the counterpart to the verification functions in `src/approvals.ts`. - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branch… - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-appro… - Neither entry says how an approval enters the verified-approval registry or what the doors do with an approval that fails `verifyApproval`. - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branch… - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-appro… ## Threads - Ed25519 signing and verification of `/3` and `/1` approvals and rulebooks in `src/approvals.ts`, with zero dependencies. - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branch… - The single refusal every door gives another format, and the verified-approval registry that works by object identity. - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-appro… ## Two sides `src/approvals.ts` verifies approvals by signature, while `src/verified.ts` recognizes a verified approval by object identity rather than a flag; the entries do not say how the two meet. - One side - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branch… - The other side - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-appro… ## Consultant **Where it shows up** — `src/approvals.ts` carries the Ed25519 signing and verification for `/3` and `/1` approvals and rulebooks, and `src/version.ts` and `src/verified.ts` carry the one refusal every door gives another format and the verified-approval registry keyed on object identity. **A question to sit with** — When an approval passes `verifyApproval`, what exactly is it that the registry then holds, and who is allowed to put it there? **A way forward** — Keep the object-identity rule for the verified-approval registry and write down, beside `verifyAndEvaluate`, which object the registry is meant to receive. ## Ideas - A verified approval should be recognized by the object that verification returned, not by a flag set on the approval. - A door of one format should refuse an artifact of another format by name rather than reinterpret it. ## Understandings - `src/approvals.ts` does Ed25519 via WebCrypto: it signs and verifies `/3` and `/1` approvals (`signApproval`, `signGovernanceApproval`, `verifyApproval` branching on `spec`) and rulebooks, provides `verifyAndEvaluate` and `verifyAndEvaluatePlan`, and has zero dependencies. — from [[Bevia/World/Sources/AGENTS.md — Neuroverseos-governance|AGENTS.md — Neuroverseos-governance]] — 2026-10-19 - `src/version.ts` and `src/verified.ts` hold the one refusal every door gives another format (`Accepts: 'any' | 'domain' | 'governance'`) and the verified-approval registry (object identity, never a flag). — from [[Bevia/World/Sources/AGENTS.md — Neuroverseos-governance|AGENTS.md — Neuroverseos-governance]] — 2026-10-19 ## Who, where and what Things: [[Bevia/World/Things/Accepts- 'any' - 'domain' - 'governance'|Accepts: 'any' 'domain' 'governance']], [[Bevia/World/Things/Ed25519|Ed25519]], [[Bevia/World/Things/signApproval|signApproval]], [[Bevia/World/Things/signGovernanceApproval|signGovernanceApproval]], [[Bevia/World/Things/spec|spec]], [[Bevia/World/Things/src-verified.ts|src/verified.ts]], [[Bevia/World/Things/src-version.ts|src/version.ts]], [[Bevia/World/Things/verifyAndEvaluate|verifyAndEvaluate]], [[Bevia/World/Things/verifyAndEvaluatePlan|verifyAndEvaluatePlan]], [[Bevia/World/Things/verifyApproval|verifyApproval]], [[Bevia/World/Things/WebCrypto|WebCrypto]]