Make frontier plan adoption canonical
This commit is contained in:
parent
05300c8add
commit
f72228fe61
26 changed files with 2272 additions and 505 deletions
|
|
@ -45,6 +45,11 @@ embodiment titles, role-memory diaries, or Persona state.
|
|||
|
||||
- Body is sensed and changed; it does not decide.
|
||||
- Mind admits durable state; it is not a chatty lane.
|
||||
- Mind may invoke a bounded, stateless admission-review procedure when a typed
|
||||
proposal requires model judgment. That procedure serves Mind; it is not an
|
||||
embodied sub-agent, has no heartbeat or lane memory, cannot `roleAccept` or
|
||||
`selfPatch`, and its immutable judgment has no consequence until Mind replays
|
||||
the causal chain and admits it.
|
||||
- Continuity preserves/rebuilds context across rupture; it is protocol
|
||||
machinery, not an embodied identity.
|
||||
- Substrate Gate grants substrate access; it does not inspect evidence, mutate
|
||||
|
|
|
|||
|
|
@ -982,3 +982,54 @@ missing/adjacent/escaped candidate, wrong role, generic patch smuggling, exact
|
|||
retry, and immutable collision checks pass. Next implement Mind-only terminal
|
||||
decision plus the dedicated Adopt RepoModel transition from Imagination to
|
||||
Hands, then delete the old internal candidate/adoption fixture writers.
|
||||
|
||||
## Prompted frontier admission review and canonical adoption (2026-07-15)
|
||||
|
||||
The repo-frontier planning nerve is complete and the preceding “Next implement
|
||||
Mind” sentence is superseded. Self binds one exact admitted model/frontier
|
||||
request; coordinator atomically binds the Imagination launch; Imagination
|
||||
persists one immutable result with its sole embedded candidate; the runtime
|
||||
derives a CAS-bound Mind review request; coordinator atomically launches a
|
||||
bounded non-embodied admission-review procedure; that procedure returns one
|
||||
immutable typed Adopt/Refuse/Hold judgment; and Mind's admission transaction
|
||||
replays the entire chain before consequence.
|
||||
|
||||
Refuse and Hold are inert terminal receipts. Adopt atomically installs the exact
|
||||
candidate and provenance on the canonical frontier, emits specialized review
|
||||
and admission receipts, and alone changes Imagination to Hands. Self derives the
|
||||
route from that model. Hands intent binds route, candidate hash, plan action,
|
||||
and safe paths; Soul admission requires the exact plan command and receives the
|
||||
checks, stop conditions, rollback steps, and commit message. Modeling may close
|
||||
the frontier after Soul verdict only while preserving adopted execution anatomy.
|
||||
There is no standalone candidate/adoption truth and no caller-authored decision.
|
||||
|
||||
Mind remains persistent state and admission authority, not an embodied chatty
|
||||
lane. The prompted model call is explicitly a bounded admission-review
|
||||
procedure serving Mind, with no heartbeat, lane memory, `roleAccept`,
|
||||
`selfPatch`, or foreign organ patch mouths.
|
||||
|
||||
Hostile coverage includes swapped causal ids/hashes/jobs, failed worker output,
|
||||
foreign cargo, duplicate/racing launch and terminal claims, generic adoption
|
||||
bypass, post-adoption execution-anatomy mutation, and same-path command
|
||||
substitution. The composed happy path proves Adopt through exact Hands command,
|
||||
Verification/Soul, accepted Modeling incorporation, Resolved closure, and
|
||||
byte-identical plan survival. Final proof: core 330 passed with one intentional
|
||||
cross-process helper ignored; OpenAI runtime library 10 passed, both runtime
|
||||
binary suites passed 6 each, and all core binaries check. Soul's final landing
|
||||
audit passed. Exact concurrent admission retries are forced through a two-party
|
||||
pre-CAS barrier in test builds; the loser reloads and authenticates the winner's
|
||||
entire immutable decision/admission chain. The synchronization hook is compiled
|
||||
only for tests, so production exposes no executable seam at the commit boundary.
|
||||
The next organ is the production semantic index over typed graph claims so
|
||||
Modeling owns a live persistent searchable Body map instead of making Hands
|
||||
rediscover the repository.
|
||||
|
||||
The selected semantic substrate is Qdrant: available locally in Docker and
|
||||
intended on the new Yggdrasil host (64 GB RAM, GTX 1080 for embedding/model
|
||||
workers). It is a rebuildable projection, never canonical Mind or Modeling
|
||||
truth. CultCache/CultMesh remains authoritative. Use separate typed Mind and
|
||||
Modeling namespaces/collections or equivalently hard query partitions so
|
||||
private doctrine/memory cannot leak into Hands Body retrieval and repository
|
||||
claims cannot silently become doctrine. Every point must retain source document
|
||||
id, schema version, canonical hash, provenance, authority/visibility scope, and
|
||||
embedding-model version.
|
||||
|
|
|
|||
|
|
@ -1,87 +1,77 @@
|
|||
# Repo Frontier Planning Authority Map
|
||||
|
||||
## Current state
|
||||
## Current authority
|
||||
|
||||
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.
|
||||
|
||||
Imagination's output is now a v2 immutable runtime result with an exclusive
|
||||
planning-request echo and one dedicated canonical MessagePack candidate. Result
|
||||
persistence replays the current request, launch binding, stored launch bytes,
|
||||
projection, runtime/thread, model, admission, frontier, candidate identity, and
|
||||
safe-path scope before its absent-only write. Generic state, Self, RepoModel,
|
||||
Verification, and Modeling authority cargo are forbidden on this path. The
|
||||
candidate remains inside the immutable result until Mind admission; no
|
||||
independent candidate writer participates in production.
|
||||
|
||||
The downstream nerve is still incomplete. Mind has no correlated admission;
|
||||
the old internal candidate/adoption fixture writers still exist for the legacy
|
||||
test chain; 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
|
||||
|
||||
- Owner — Self selects one dependency-ready, unchallenged, active Imagination
|
||||
frontier from the uniquely admitted current RepoModel and emits one immutable
|
||||
planning request.
|
||||
- Inputs — current RepoModel envelope and hash, its unique Mind admission
|
||||
receipt, exact frontier item and serialized hash, source scope, current claim
|
||||
challenges, runtime identity, and authoritative thread.
|
||||
- Coordinator output — one typed Imagination context projection and one
|
||||
request-keyed immutable launch binding inside the atomic coordinator launch
|
||||
transaction.
|
||||
- Imagination output — one immutable worker result that exclusively echoes the
|
||||
planning request and contains one typed candidate. It proposes; it does not
|
||||
route Hands or mutate RepoModel.
|
||||
- Mind output — one fully correlated Adopt, Refuse, or Hold receipt. Mind alone
|
||||
constructs and persists the decision after replaying request, launch binding,
|
||||
worker launch document, immutable result, candidate, current model, and exact
|
||||
frontier bytes.
|
||||
- Adopt effect — a narrow RepoModel transition must make the selected frontier
|
||||
executable without allowing the adoption receipt to become a shadow model.
|
||||
The downstream Hands route remains derived from admitted model bytes and may
|
||||
reference the exact adopted plan for bounded action/check/rollback cargo.
|
||||
- Refuse/Hold effect — immutable decision receipts only. They do not mutate the
|
||||
model, claim the deterministic Adopt identity, or grant Hands authority.
|
||||
- Self selects one dependency-ready, unchallenged, active Imagination frontier
|
||||
from the uniquely admitted current RepoModel. It writes one immutable
|
||||
`RepoFrontierPlanningRequest` binding the model revision/hash, admission,
|
||||
frontier bytes, source scope, runtime, and thread.
|
||||
- Coordinator commit replays that request, injects the exact typed Imagination
|
||||
projection, and atomically writes a request-keyed launch binding whose hash
|
||||
covers the stored worker launch document.
|
||||
- Imagination writes one immutable runtime result with an exclusive planning
|
||||
request echo and one embedded canonical `RepoFrontierPlanCandidate`. It does
|
||||
not route Hands or mutate RepoModel.
|
||||
- The runtime derives one `RepoFrontierPlanMindRequest` from the immutable
|
||||
Imagination result and candidate hash. Its insert is CAS-bound to the exact
|
||||
current model envelope.
|
||||
- Coordinator commit launches one bounded, non-embodied admission-review
|
||||
procedure serving Mind. It injects the exact request/planning/candidate
|
||||
projection and atomically writes the request-keyed launch binding. This
|
||||
procedure is not an embodied Mind lane; Mind remains persistent state and
|
||||
admission authority.
|
||||
- The admission reviewer writes one immutable typed Adopt, Refuse, or Hold
|
||||
judgment. Result persistence replays the request, both worker results, both
|
||||
launch bindings, stored launch bytes, runtime/thread, candidate identity, and
|
||||
current model/frontier while rejecting foreign organ cargo.
|
||||
- `commit_repo_frontier_plan_decision` consumes only that immutable review
|
||||
result. Refuse and Hold write one inert terminal receipt. Adopt atomically
|
||||
writes the next canonical RepoModel, its specialized Mind review/admission,
|
||||
and the terminal decision receipt.
|
||||
- The dedicated Adopt transition installs the exact candidate cargo and
|
||||
provenance on `RepoFrontierItem.adopted_plan` and alone changes
|
||||
Imagination to Hands. Generic frontier writers cannot author or rewrite it.
|
||||
- Self derives the Hands route from the admitted model. The route copies the
|
||||
exact plan and safe paths; Hands intent binds route, candidate hash, and plan
|
||||
action; verification requires the exact admitted command and shows Soul the
|
||||
checks, stop conditions, rollback steps, and commit message.
|
||||
- Modeling may incorporate Soul's verdict by changing lifecycle/gap/evidence
|
||||
fields while preserving the adopted execution anatomy byte-for-byte.
|
||||
|
||||
## Derived state
|
||||
|
||||
- Planning readiness is derived from current admitted model plus absence of a
|
||||
current terminal Mind decision.
|
||||
- Planning readiness is current admitted Imagination frontier plus absence of a
|
||||
terminal decision receipt.
|
||||
- Candidate visibility is a projection of the immutable Imagination result.
|
||||
- Hands readiness is derived from the post-Adopt admitted model and its exact
|
||||
plan provenance, never from a candidate or adoption document alone.
|
||||
- Hands readiness and execution cargo derive only from the post-Adopt canonical
|
||||
model, never from a candidate or decision shadow store.
|
||||
- Completion remains Soul verdict followed by Modeling verdict incorporation;
|
||||
adoption is not completion.
|
||||
|
||||
## Forbidden writers and substitutions
|
||||
|
||||
- No external or generic caller may persist an Imagination candidate or Mind
|
||||
decision directly.
|
||||
- Generic Imagination `statePatch.planning.objective_drafts` is not repo
|
||||
frontier planning authority.
|
||||
- Schema namespace, prompt prose, result metadata, evidence coincidence, or
|
||||
"the only current request" cannot substitute for an exact request echo and
|
||||
launch binding.
|
||||
- Adopt cannot merely suppress future planning while leaving the frontier and
|
||||
Hands route unchanged.
|
||||
- Candidate persistence must share a CAS with the current model expectation;
|
||||
validation followed by an unrelated absent-only insert is stale-authority
|
||||
leakage.
|
||||
- No generic work-order registry or mode router. This is one explicit organ
|
||||
nerve with one owner at each transition.
|
||||
- No standalone candidate or adoption store exists in the production path.
|
||||
- No caller supplies Mind's decision, rationale, or timestamp.
|
||||
- No prompted admission reviewer may emit state, Self, RepoModel, Verification,
|
||||
Modeling, or implementation authority cargo.
|
||||
- Prompt prose, namespaces, metadata, evidence coincidence, or “the current
|
||||
request” cannot substitute for exact typed echoes and launch bindings.
|
||||
- Generic Upsert/Revise cannot create an adopted plan or perform
|
||||
Imagination-to-Hands. Verdict incorporation cannot rewrite execution anatomy.
|
||||
- Same-path Hands work cannot substitute a different action, candidate, or
|
||||
command while retaining route authority.
|
||||
- Mind is not a chatty embodied lane. The bounded admission-review procedure
|
||||
serves Mind and has no heartbeat, lane memory, `roleAccept`, or `selfPatch`.
|
||||
|
||||
## Deletion line before build
|
||||
## Verification layer
|
||||
|
||||
1. Public candidate/adoption persistence exports are gone.
|
||||
2. Direct internal fixture writers die when result correlation and Mind
|
||||
admission land.
|
||||
3. Any Adopt path that does not change the model or downstream executable
|
||||
truth is removed rather than retained as compatibility behavior.
|
||||
- Hostile proofs cover stale/swapped model, frontier, request, result, job,
|
||||
launch binding, projection, candidate hash, escaped paths, failed worker
|
||||
output, foreign cargo, duplicate/racing launches, competing terminal writes,
|
||||
generic adoption bypass, post-adoption anatomy mutation, and same-path command
|
||||
substitution.
|
||||
- Exact retry authenticates immutable terminal decision plus its historical
|
||||
review/admission chain without requiring later canonical model revisions to
|
||||
remain frozen.
|
||||
- The next organ is the production semantic index over typed graph claims so
|
||||
Modeling can maintain a live persistent searchable Body map.
|
||||
|
|
|
|||
Reference in a new issue