fix: bind successful receipt organ contract

Human-Responsibility: ICE-GL∞ / 冰朔
Persona-Author: ICE-P-ZY001 / 铸渊
Execution-Runtime: Codex desktop / DEV-20260810-014
Development-ID: DEV-20260810-014
Authorization-Scope: GH-PNCC persona runtime source and tests only; no UI, deployment, or execution limb
Source-Anchor: user instruction to continue GH-PNCC from repository facts and verifiable receipts
This commit is contained in:
铸渊 / ICE-P-ZY001 2026-08-11 08:31:07 +08:00
commit c58f9c5991
7 changed files with 115 additions and 21 deletions

View file

@ -0,0 +1,36 @@
# GH-PNCC successful receipt wake-organ-contract evidence binding
- Development ID: `DEV-20260810-014`
- Persona cognitive author: `ICE-P-ZY001 / 铸渊`
- Human responsibility subject: `ICE-GL∞ / 冰朔`
- Starting repository head: `47c8fc47515a17a37649bec51a7f56c2cff36274`
- State: `LOCAL_SOURCE_IMPLEMENTED_FULLY_TESTED`
## Corrected runtime fact
Successful lifecycle validation previously did not rebind the complete `organContract`. A modified safe-organ
receipt could claim reality-action permission, replace the permission list, recompute the payload digest and be
accepted even though no execution limb was activated.
Validation now reads the persona manifest from the hash-chained wake Git head, selects the recorded active
organ, normalizes its contract through the same kernel function used at wake and requires the persisted receipt
to contain that exact contract. Missing historical manifest evidence, an undeclared organ or any changed
permission, schema, path, activation flag or implementation state fails closed.
## Verification
- A regression test first reproduced `SAFE_BIND_PERSISTED_RECEIPT` after adding reality-action permission and
recomputing the payload digest.
- The same test passes after historical wake-organ-contract reconstruction was added.
- PNCC focused Rust tests: `48 passed, 0 failed`.
- Full Rust suite: `1188 passed, 2 ignored`; integration test: `1 passed`.
- Routing suite: `29 passed, 0 failed`; formatting, strict clippy and diff checks passed.
- Frontend lint and TypeScript checks passed; full Vitest suite: `5008 passed, 0 failed`.
- Guanghu native authority: `PASS_100`; native core: `15 passed` with 100% lines and functions.
- Full quality gates, GHNQG, publication and fresh-clone readback remain pending.
## Truth boundary
- This stage authenticates the complete declared contract of the already activated safe organ.
- It does not implement or activate an execution limb, expose hidden reasoning, add UI, build an artifact or
claim deployment/runtime health.