This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/notes/hands-cultnet-contracts.md

77 lines
3.5 KiB
Markdown
Raw Normal View History

2026-05-27 16:00:41 +01:00
# Hands CultNet Contracts
2026-08-23 13:05:16 +02:00
Objective: make Hands the action organ. Commands, patches, and commits are
consequences, not thoughts. They enter as bounded action intents and leave
receipts that can be verified or admitted into Mind state.
2026-05-27 16:00:41 +01:00
## Authority Map
- Owner: Hands owns execution of bounded actions.
- Inputs: typed action intents, Substrate Gate access grants, requested commands or
2026-05-27 16:00:41 +01:00
patches, current repo policy, Soul verification requirements, and coordinator
authority.
- Outputs: Hands action reviews, command receipts, patch receipts, commit
2026-08-23 13:05:16 +02:00
receipts, and action refusal receipts.
- Derived state: diffs, command logs, and commits are action receipts. They are
not durable Mind state until Mind admits them.
- Forbidden writers: raw workers, Persona, Eyes, Imagination, Self, compatibility
2026-05-27 16:00:41 +01:00
JSON-RPC routes, and bridge tools must not execute repo-affecting commands,
2026-08-23 13:05:16 +02:00
edit files, commit, or publish without the Hands path after Body
2026-05-27 16:00:41 +01:00
access.
2026-08-23 13:05:16 +02:00
- Shared path: file edits, shell commands, and commits share Hands action
intent/review/receipt semantics.
- Deletion line: Substrate Gate grants access; it does not execute. Soul verifies; it
2026-05-27 16:00:41 +01:00
does not execute. Mind records durable state; it does not execute.
## Contract Families
- `epiphany.hands.action_intent`: request for bounded action.
- `epiphany.hands.action_review`: Hands decision and execution plan.
- `epiphany.hands.command_receipt`: proof of command execution.
- `epiphany.hands.patch_receipt`: proof of file mutation.
- `epiphany.hands.commit_receipt`: proof of commit creation.
- `epiphany.hands.action_refusal_receipt`: proof that Hands refused to act.
## Neighboring Gates
2026-08-23 13:05:16 +02:00
Substrate Gate grants substrate access before Hands touches the repo. Hands
consumes the adopted plan and exact current route directly. Eyes is requested
only when that reasoning needs evidence outside the Body. Soul verifies action
results and invariants. Mind admits durable state after the action and
verification receipts exist.
2026-05-27 16:00:41 +01:00
Hands is not a permission organ. It is the actuator. The wrench does not bless
itself.
2026-06-02 14:31:41 +01:00
2026-08-23 12:14:18 +02:00
Pull-request or other remote publication is not an Epiphany-owned Hands receipt.
The remote provider/Bifrost crossing owns its exact publication evidence;
Epiphany may consume that provider-owned receipt after the local commit exists.
2026-06-02 14:31:41 +01:00
## Executable Slice
The first runtime-spine proof chain now exists:
```text
HandsActionIntent
-> HandsActionReview
-> HandsPatchReceipt
2026-06-02 14:42:47 +01:00
-> HandsCommandReceipt
-> HandsCommitReceipt
2026-06-02 14:31:41 +01:00
```
`epiphany-core::hands_gateway` owns the typed document bodies and constructors.
2026-06-02 14:42:47 +01:00
`epiphany-core::runtime_spine` can persist and reread the intent, review, patch,
command, and commit receipts from the runtime-spine CultCache store.
2026-06-02 14:36:40 +01:00
The launch organ contract's repo-action proof profile now requires the full
Hands chain, not only the final patch receipt.
`epiphany-mvp-coordinator` now turns `continueImplementation` into a persisted
Substrate Gate grant plus Hands intent/review gate and exposes the receipt ids in
the operator step.
2026-06-12 12:08:14 +01:00
`epiphany-hands-action` is the first native consequence recorder for that gate:
`record-patch`, `record-command`, and `record-commit` load the stored
intent/review, reject mismatches, require an approved review, enforce allowed
operations, and keep patch/commit changed paths inside the requested scope.
Focused `epiphany-hands-action` tests prove that the live packaged recorder
refuses wrong authority, scope escape, and substituted consequence cargo. The
separate main-only smoke executables were deleted; they were compiled by Cargo
but did not participate in the Rust test harness.