Add Body repo access contracts
This commit is contained in:
parent
232d33a7f7
commit
ca2575aff3
10 changed files with 415 additions and 0 deletions
48
notes/body-cultnet-contracts.md
Normal file
48
notes/body-cultnet-contracts.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Body CultNet Contracts
|
||||
|
||||
Objective: make Body the repository access guardian. The repo is substrate, not
|
||||
a free-for-all evidence buffet. Organs may request reads, indexing, commands,
|
||||
edits, and bridge operations, but Body decides the scoped access to the repo.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: Body owns repository access.
|
||||
- Inputs: typed repo access requests, workspace identity, requested paths,
|
||||
requested operations, command/bridge intent, current repo policy, coordinator
|
||||
authority, operator approvals, and relevant safety/evidence context.
|
||||
- Outputs: Body access reviews, access grant receipts, access refusal receipts,
|
||||
repo snapshot receipts, and repo mutation receipts.
|
||||
- Derived state: retrieved snippets, search hits, index manifests, diffs, build
|
||||
logs, Unity/Rider bridge artifacts, and source maps are evidence projections,
|
||||
not permission to touch more substrate.
|
||||
- Forbidden writers/readers: Hands, Eyes, Face, public Verse ingress, raw worker
|
||||
launches, compatibility JSON-RPC routes, and bridge tools must not directly
|
||||
read, index, execute against, or mutate the repo without a scoped Body grant.
|
||||
- Shared path: source reads, semantic indexing, file edits, command execution,
|
||||
and editor/runtime bridge operations should all be expressible as Body-gated
|
||||
repo access requests with receipts.
|
||||
- Deletion line: worker launch `authority_scope` is not repo access authority.
|
||||
It may describe role/task scope, but Body must grant substrate access.
|
||||
|
||||
## Contract Families
|
||||
|
||||
- `epiphany.body.repo_access_request`: request for scoped repository access.
|
||||
- `epiphany.body.repo_access_review`: Body's decision and scope explanation.
|
||||
- `epiphany.body.repo_access_grant_receipt`: proof of scoped access.
|
||||
- `epiphany.body.repo_access_refusal_receipt`: proof of refusal.
|
||||
- `epiphany.body.repo_snapshot_receipt`: proof of source inspection/indexing
|
||||
performed under Body access.
|
||||
- `epiphany.body.repo_mutation_receipt`: proof that mutation or repo-affecting
|
||||
command execution had a prior Body grant.
|
||||
|
||||
## Verse Boundary
|
||||
|
||||
Body access contracts live in `epiphany-internal`. Operator-safe projections may
|
||||
appear in `gamecult-local` after review, but raw repo access requests, private
|
||||
paths, command cargo, diffs, and mutation receipts stay internal unless another
|
||||
explicit export policy says otherwise. `epiphany-global` never gains repository
|
||||
access authority.
|
||||
|
||||
Mind and Body are neighboring gates, not aliases. Body decides whether the
|
||||
machine may touch the repo. Mind decides whether resulting thought or evidence
|
||||
mutates persistent state.
|
||||
|
|
@ -1397,6 +1397,13 @@ persistent state guardian over CultNet/CultMesh. The code surface now names
|
|||
contracts, and CultMesh stores Verse-scoped `EpiphanyCultMeshMindContractEntry`
|
||||
policy docs so `epiphany-internal` owns private state flow while
|
||||
`epiphany-global` remains thought weather plus adoption receipts.
|
||||
`notes/body-cultnet-contracts.md` is the matching substrate gate: Body owns repo
|
||||
access. The code surface now names `epiphany.body.repo_access_request`,
|
||||
`epiphany.body.repo_access_review`, grant/refusal receipts, snapshot receipts,
|
||||
and mutation receipts; runtime-spine advertises those contracts, and CultMesh
|
||||
stores Verse-scoped `EpiphanyCultMeshBodyContractEntry` policy docs. Hands, Eyes,
|
||||
Face, workers, and bridge tools should touch the repo only through scoped Body
|
||||
access receipts; Mind remains the separate durable-state gate after the touch.
|
||||
|
||||
## Not Yet
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ Objective: make Mind the persistent state guardian. The state is the Mind; every
|
|||
sub-agent output is a thought or proposal until Mind admits it into durable
|
||||
state.
|
||||
|
||||
Body is the neighboring gate. Body decides whether an organ may touch the repo;
|
||||
Mind decides whether the resulting thought, evidence, or proposal mutates
|
||||
persistent state. Do not collapse these into one throne. That is how the machine
|
||||
starts lying with excellent posture.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: Mind owns the decision to mutate persistent Epiphany state.
|
||||
|
|
|
|||
Reference in a new issue