Ingest into canonical memory
- Determine the active zone and project. Do not inspect another zone.
- Acquire
bash scripts/wiki-lock.sh acquire .vault-meta/write/ZONE --ttl 3600. Save, ingest and evolution share this exact zone lock. Retain the token. After every long phase and before later writes, build and checkpoint, runrenewthencheck. Release in afinallypath on success or failure; never reacquire over expired partial work. - Copy the original source without rewriting it. Project evidence goes in the project's
sources/. Non-project work evidence goes towiki/resources/incoming/; personal and Client non-project evidence goes to that zone'sinbox. Evidence is always L0, regardless of its frontmatter. - Verify the copied bytes or hash. Create a separate L1 page with
memory_provenance, or L2 synthesis when the source clearly changes canonical project state. If the claim is inferred, conflicting or uncertain, create an L0 memory candidate instead and wait for review. - Update project and zone indexes, append-only log, then hot cache.
- Run zone
scan, check the token,build --zone ZONE --lock-token TOKEN, andvalidate --zone ZONE --lock-token TOKEN. Check again, create a scoped local Git checkpoint and never push. - Release in the
finallypath, then run a relevant retrieval query and inspect its current-state snippet. Do not call the plugin repository'swiki-mode.py.
Stop, release the token, and report the exact failure if provenance, zone, source immutability, validation, checkpoint, or retrieval acceptance cannot be established.
