feat(engram): accumulation layer — new nodes to top of stack, not core-identity #59
Reference in New Issue
Block a user
Delete Branch "feat/accumulation-layer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the accumulation layer (the deferred "engram_save + accumulation layer" work) and points new-node creation at it — the foundation for fixing identity-bleed/customer-isolation. Built from the architecture, not guessed.
What it does
Why
Audit against the patent architecture found the root divergence: new user nodes were defaulting into ENGRAM_LAYER_CORE_IDENTITY (Neuron's identity / originator corpus), with no accumulation layer at all. That's the root of both the persistence and the identity-bleed problems. Per Layered Consciousness (64/064,262) + Will's design — "new nodes → accumulation at the top, the engram the user sees; everything below is hidden" — this is the spec, and it answers the layer_id-5-above-SUIT / migrate question definitively: layer 5, new-nodes-only.
NOT in this PR (follow-on)
The retrieval-side provenance filter — introspection ("what do you know about me") should compile from the accumulation layer, NOT the originator corpus (Persona 64/036,574 provenance-filtered compilation). That's the other half of identity-bleed; holding it for the batch-2 Layered Consciousness + Engram spec docs (Will, where do those live?) so the exact semantics match.
Compiles clean to object. For Will to build via CI. Opened by Neuron on Tim's machine.