feat(pncc): close memory failures safely
GuangHu-Human-Responsibility: ICE-GL∞ / 冰朔 GuangHu-Persona-Cognitive-Author: ICE-P-ZY001 / 铸渊 GuangHu-Execution-Runtime: Codex macOS / DEV-20260810-014 GuangHu-Development-ID: DEV-20260810-014 GuangHu-Authorization-Scope: GH-PNCC local runtime development and registered REPO-014 publication GuangHu-Source-Language-Anchor: continue PNCC persona runtime; UI and human projection aesthetics remain deferred
This commit is contained in:
parent
962ea26db7
commit
18944f5362
9 changed files with 270 additions and 22 deletions
|
|
@ -73,6 +73,12 @@ chain head into a new checkpoint, commits with the persona Git identity, release
|
|||
`DORMANT`. It cannot accept arbitrary hidden reasoning or an older/non-current session as memory. An
|
||||
`EXECUTION_LIMB` remains declarative and non-activatable; declaration never grants a shell or reality action.
|
||||
Manifest inspection reads and validates all contracts without acquiring a runtime lease or starting inference.
|
||||
The public memory command runs its filesystem and Git work in the blocking task pool instead of occupying the
|
||||
Tauri command thread. Rejected memory candidates must durably append the failure, organ-release, and dormancy
|
||||
events, persist `DORMANT_AFTER_FAILURE`, and release the exact primary lease. If any closure step fails, the
|
||||
command returns `MEMORY_FAILURE_CLOSURE_INCOMPLETE_REQUIRES_RECOVERY`; it never reports only the original
|
||||
candidate error while silently losing the closure failure. An incomplete closure preserves the lease for the
|
||||
existing evidence-bound session inspection and recovery path.
|
||||
|
||||
`PersonaRuntimeQueryReceipt` is a bounded projection of the durable runtime files, not another truth store.
|
||||
It filters by the caller's expected persona and canonical repository, validates each matching event chain,
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ schemas, derived permissions, inference/reality-action boundaries, and the actua
|
|||
sense and verified-checkpoint memory metabolism organs can wake. Memory metabolism runs no model inference
|
||||
and promotes only the current structured checkpoint of a distinct same-persona, same-repository, dormant
|
||||
session after verifying its event chain; the new checkpoint binds both source checkpoint and event hashes.
|
||||
The registered Tauri memory command executes the Git/filesystem transaction on the blocking task pool. A
|
||||
rejected candidate closes through a checked failure transaction that records the failure, organ release and
|
||||
dormancy before releasing the exact lease. If event persistence, session persistence, or lease release fails,
|
||||
the command returns an explicit recovery-required error and retains the lease whenever closure cannot be
|
||||
proven complete; it does not swallow the secondary failure.
|
||||
The execution limb remains visible but non-activatable, so declaring it does not grant a shell or reality action.
|
||||
|
||||
`query_persona_code_channel_runtime` is the bounded read model for later projection surfaces. The caller must
|
||||
|
|
|
|||
Loading…
Reference in a new issue