feat: type PNCC organ contracts

GuangHu-Human-Responsibility: ICE-GL∞ / 冰朔
GuangHu-Persona-Cognitive-Author: ICE-P-ZY001 / 铸渊
GuangHu-Execution-Runtime: Codex thread 019febf6-3902-70f3-9d82-74c9680b0c7e
GuangHu-Development-ID: DEV-20260810-014
GuangHu-Authorization-Scope: LOCAL_PNCC_RUNTIME_DEVELOPMENT_AND_PUBLICATION
This commit is contained in:
铸渊 / ICE-P-ZY001 2026-08-11 01:39:09 +08:00
commit c3e7dbff10
10 changed files with 375 additions and 10 deletions

View file

@ -0,0 +1,42 @@
# GH-PNCC typed organ contract and manifest inspection receipt
- Development ID: `DEV-20260810-014`
- Persona cognitive author: `ICE-P-ZY001 / 铸渊`
- Human responsibility subject: `ICE-GL∞ / 冰朔`
- State: `LOCAL_SOURCE_IMPLEMENTED_AND_FULL_RUST_ROUTING_TESTED`
## Implemented facts
The persona manifest can now declare one of three typed organ kinds with a fixed mode and explicit input and
output schemas:
- `FACT_SENSE / read-only`: implemented and activatable; may read declared paths, call only the
manifest-pinned model, and emit structured facts. It cannot perform reality actions.
- `MEMORY_METABOLISM / checkpoint-write`: contract declared but not independently activatable. The existing
fact-cycle checkpoint promotion remains kernel-owned.
- `EXECUTION_LIMB / bounded-execution`: contract declared but executor not implemented. A declaration never
grants shell access or a reality action.
`inspect_persona_code_channel_manifest` validates the exact Git repository and head, persona identity, brain,
checkpoint, Git identity, model binding, every organ path, kind/mode pair, and schema identifier. It returns a
normalized machine receipt without acquiring a primary lease or starting inference. Wake still accepts only
the implemented fact sense; declared but unimplemented organs fail closed.
## Current verification
- PNCC focused Rust tests: `12 passed, 0 failed`.
- Rust full suite: `1152 passed, 0 failed, 2 ignored`; integration test `1 passed`.
- Rust clippy for all targets: `PASS` with `-D warnings`.
- HoloLake architecture routing: `29 passed, 0 failed`.
- Tests prove normalized inspection, explicit fact-sense activation boundaries, execution-limb refusal, path
containment, safe recovery and persona Git attribution.
## Remaining acceptance
- GHNQG pre-push quality gate;
- repository commit, publication and fresh-clone readback;
- durable event/receipt query API for a later same-source human projection;
- independent memory-metabolism and bounded-execution executors;
- UI, packaged desktop, installation, deployment and online health.
This receipt proves local source behavior only.