hash_node = SHA256(content || child_hashes)
Formal statement
hash_node = SHA256(content || child_hashes)
Thesis
Source lineage and mutability detection are prerequisites to trusted memory promotion.
Executable interpretation
Hash immutable content chunks; record source URL/version before indexing. Where state is unknown, return UNKNOWN rather than inventing an observation. Every mutation must have a defined authorization tier, observability plan, budget and failure path.
Operational preconditions
- A signed-or-recorded mission contract exists with a clear operator, scope and success tests.
- All relevant sources carry stable IDs and provenance; generated conclusions are not silently promoted to source facts.
- Cost/risk gates are hard constraints; optimization is secondary to permitted effects.
Discriminating experiment
Tamper detection and duplicate elimination ratio. Evaluate on at least a frozen baseline and a controlled ablation; document task mix, environment, seeds, costs, failure traces and counterexamples. No benchmark claim may be promoted solely from this card.
Evidence & exit criteria
- Record observed
before, proposed change, and observedafterstate separately. - Reject unsupported success; choose
blocked,partialorverifiedbased on receipts. - Log unsatisfied preconditions and stop conditions. Reattempt only within approved budget.
Failure modes
- False confidence from a readable but stale RAG source.
- Ambiguous permissions or excessive capability authority.
- Using an internal simulation result as an external production or official evaluation score.
Closure contract
Pass only when the experiment has reproducible evidence, expected failure path is observed, the implementation is regression-safe and the operator has approved any high-risk action.
Repository Binding & Production Application
Theory T13 (Merkle Provenance and Hash Integrity) binds directly to alrazzi/cognition/ in the Al-Razzi OS Closure repository. Rather than treating LLM outputs as authoritative truth, engineering teams pair this control invariant with signed mission contracts and replayable regression suites.
Teams implementing T13 in production environments typically combine the open reference code with The 2026 Agentic Engineering Guide and the deployable MOUSSAIF XT Sovereign OS runtime.