Bind frontier planning launches atomically

This commit is contained in:
Meta Vens 2026-07-15 01:03:59 +01:00
commit 6cbe47313c
13 changed files with 675 additions and 27 deletions

View file

@ -948,3 +948,20 @@ embedded receipt binds back to the artifact target and audit; forged
cardinality: Epiphany inherits a CultMesh command id, so the coordinator must
ensure one typed command id per crossing rather than letting multiple posts share
one canonical `crossing_<command>` receipt.
## Repo frontier planning launch artery (2026-07-15)
Self's planning request is now v1 and binds the exact current RepoModel,
admission receipt, actionable Imagination frontier, runtime identity, and
authoritative thread. Coordinator launch commit replays that entire chain from
one transaction snapshot, forbids caller-authored planning projection and
mixed Modeling/repair/planning authority, injects the typed Imagination context,
and atomically persists a request-keyed
`RepoFrontierPlanningLaunchBinding`. Its SHA-256 covers the exact launch bytes
stored for the worker. Hostile tests cover swapped model/admission/frontier/
scope/organ/runtime/thread fields, wrong role/binding, prepopulated projection,
dual authority, single-use replay, and two concurrent launches; only one wins
and the loser leaves no job, worker launch, or opened event. Full core proof:
322 passed, 1 ignored. Next build the exclusive immutable Imagination result
echo carrying the typed candidate, then Mind-only Adopt/Refuse/Hold admission
and the narrow Adopt model transition that makes Hands routing true.

View file

@ -1,18 +1,24 @@
# Repo Frontier Planning Authority Map
## Current wound
## Current state
The planning family has typed documents but not a live organ chain. Self can
persist an exact `RepoFrontierPlanningRequest`. Nothing launches Imagination
from it. `RepoFrontierPlanCandidate` and `RepoFrontierPlanAdoption` were exposed
through public persistence functions, allowing callers to author documents in
Imagination and Mind namespaces without either organ participating. Adopt then
blocked duplicate planning requests but changed no model bytes and affected no
Hands route. The type names were substituting for cognition.
The planning family now has a real Self-to-Imagination launch artery. Self's
`RepoFrontierPlanningRequest` binds the uniquely admitted current model, exact
actionable frontier, runtime, and authoritative thread. Coordinator commit
replays those bytes, injects the exact typed Imagination projection, and
atomically persists a request-keyed launch binding whose hash covers the stored
worker launch document. Caller-authored projections, mixed authority carriers,
stale requests, causal substitutions, and duplicate/racing launches are
refused without loser artifacts.
The public candidate/adoption writers are removed. The existing internal
functions remain temporarily as test scaffolding while the real nerve replaces
them; they are not production authority.
The downstream nerve is still incomplete. Imagination has no exclusive
immutable result carrying the candidate; Mind has no correlated admission; the
old internal candidate/adoption fixture writers still exist; and Adopt still
changes no RepoModel bytes or Hands truth.
The public candidate/adoption writers remain removed. The existing internal
functions are test scaffolding only and die when result correlation and Mind
admission replace them.
## Target authority