Consolidate causal identity ownership
This commit is contained in:
parent
80541843ae
commit
868a5be070
12 changed files with 494 additions and 4445 deletions
|
|
@ -1,5 +1,27 @@
|
|||
# Epiphany Current Algorithmic Map
|
||||
|
||||
## Causal work identity and creation provenance
|
||||
|
||||
- Owner: `causal_work_identity` derives durable request identity for Proposal Modeling, Research, frontier Planning, PlanMind, and Admitted Model Direction.
|
||||
- Inputs: runtime identity plus the immutable admitted cause specific to each typed family. Proposal content, model/frontier hashes, accepted result identity, candidate digest, and Mind admission receipts may participate. Coordinator thread and timestamps may not.
|
||||
- Outputs: deterministic typed request IDs consumed by direct and resident launch paths.
|
||||
- Derived state: creation thread and request time are provenance. Job, process, grant, model-execution, and tool IDs identify attempts beneath the request and cannot redefine it.
|
||||
- Forbidden writers: current coordinator thread, resident projection, retry path, launch callback, and worker output cannot fork, invalidate, or restore a request identity.
|
||||
- Shared paths: a request may cross coordinator incarnations while the current admitted thread carries transport. Launch refuses byte-identically if stale provenance attempts to replace that carrier thread.
|
||||
- Cut line: family-local causal hash formulas and downstream thread-restoration behavior are removed. Distinct request structs remain explicit; this is a shared invariant, not a stringly request registry.
|
||||
- Verification layer: full core tests cover direct/resident generation, hostile causal substitution, current-thread transport, and byte-identical stale-thread refusal.
|
||||
|
||||
## Immutable public source identity
|
||||
|
||||
- Owner: `ImmutableGithubSource` owns component validation, composite parsing, lowercase revision canonicalization, repository/source rendering, and round-trip identity.
|
||||
- Inputs: GitHub owner, repository, exact 40-hex commit, and bounded canonical repository path.
|
||||
- Outputs: one typed identity used by Modeling source selection, Eyes provider execution, and Mind receipt authentication.
|
||||
- Derived state: raw-content URL and receipt display fields. Network policy, grant authorization, content bounds, digest verification, and receipt lifecycle remain with their existing owners.
|
||||
- Forbidden writers: provider output and mutually consistent JSON fields cannot define or weaken immutable source identity.
|
||||
- Shared paths: uppercase provider input canonicalizes to the same lowercase source reference that Modeling stores and Mind authenticates.
|
||||
- Cut line: the runtime-only composite parser and provider-local component/path validators are deleted.
|
||||
- Verification layer: typed table tests reject mutable revisions, ambiguous repositories, traversal, empty segments, and invalid characters; governed public-tool tests still prove exact grant and receipt binding.
|
||||
|
||||
## Heartbeat pulse-artifact retention ownership
|
||||
|
||||
- Owner: heartbeat Continuity owns retirement of its own closed `pulse-NNNNNN` artifact directories. Status display limits and Idunn process supervision own no deletion authority.
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,145 +1,62 @@
|
|||
# Perfect Machine audit roadmap
|
||||
|
||||
Updated: 2026-08-11
|
||||
Updated: 2026-08-12
|
||||
|
||||
## Objective
|
||||
## Operating state
|
||||
|
||||
Prove every Epiphany faculty both at its own authority boundary and in live
|
||||
coordination before treating the organism as deployment-ready. Tests prove only
|
||||
the seam they observe. Packaged Linux bodies, copied-state falsification, and
|
||||
the actual braked resident body are the live gates.
|
||||
The live shakedown is paused for architectural consolidation. Source development
|
||||
continues on `codex/epiphany-shakedown-live`; accepted live c011 remains exact
|
||||
`465af24d` on Starfire, braked at revision 384 with no active lease, admitted
|
||||
work, or defunct children. Yggdrasil is the public crossing, never the forge.
|
||||
|
||||
## Current body
|
||||
No new capability surface or live-body replacement is authorized until the
|
||||
consolidation gates below close.
|
||||
|
||||
- Source branch: `codex/epiphany-shakedown-live`.
|
||||
- Current pushed source: exact `8fb61ac2`.
|
||||
- Accepted live runtime implementation: exact `465af24d` through resident PID 1
|
||||
reaping across genuine Modeling and Imagination worker families.
|
||||
- Audited/live release:
|
||||
`sha256-089e000511f0420bfaab1136952b8cf94677a72d5c30a3fb3e6a26996bd3726f`;
|
||||
witness
|
||||
`sha256-20ca293589b33d3b2e6ea5a7411db544741fe18360ecbd4423cdfa000d1ad7c6`.
|
||||
- Actual c011: both owners are alive under the engaged cognitive brake at
|
||||
resident revision 384, with no active lease, no admitted work, and zero
|
||||
defunct children. Exact claimed worker PIDs 152 and 275 terminalized through
|
||||
Modeling and Imagination respectively, settled once, and were reaped by the
|
||||
resident PID 1 owner.
|
||||
- Build body: Starfire. Yggdrasil is the small public crossing and never builds
|
||||
this graph.
|
||||
## Architectural consolidation
|
||||
|
||||
## Live authority matrix
|
||||
|
||||
| Faculty | Owner | Accepted proof | Remaining live gate |
|
||||
| Invariant | Owner | Current evidence | Remaining gate |
|
||||
|---|---|---|---|
|
||||
| Self | resident Self state machine | single-consumption Heartbeat grants, typed fulfillment, exact recovery/requeue, cooldown and brake behavior; actual c007h superseded one overtaken unlaunched continuation and accepted the recovered proposal-Modeling result exactly once | autonomous turnover from a genuinely new typed frontier; current `awaitFrontierProposal` is correctly idle |
|
||||
| Substrate Gate | `substrate_gate` | immutable scoped grants now bind every advertised Eyes, Modeling, and Soul source operation through the outer worker launch; canonical brake covers direct daemon lifecycle actuation; non-repository process utilities retain explicit owners | packaged negative proof that an ungranted public request creates no network consequence |
|
||||
| Eyes | Eyes gateway and authenticated source tools | challenged-claim Windows circuit, governed Linux tool circuit, and exact immutable GitHub reader with typed receipt derivation | package and adopt one broader public source through Eyes into Mind |
|
||||
| Modeling | runtime-owned typed Modeling contracts | causal Eyes-to-Modeling acceptance, direct proposal Modeling, archived fulfillment | broader Body-map coverage across a changing live repository |
|
||||
| Imagination | typed proposal/consideration producers | genuine packaged multi-option generation, proposal-only candidates, exact fulfillment, no Hands adoption leak | autonomous turnover from the next genuine eligible frontier |
|
||||
| Hands | Hands gateway | bounded patch, command, commit, push, and changed-path receipts; Idunn, crossing, forge, IDE, repo-birth, and model-runtime processes retain separate owners; Unity method override is structurally refused | audit the next Soul verifier boundary rather than adding Hands gates around non-Hands owners |
|
||||
| Soul | Soul gateway | consequence-bound verdict, causal Modeling route, retention and replay | collapse remaining verifier-specific broad projections into narrow receipt reads |
|
||||
| Mind | canonical transactions and specialized admission | atomic RepoModel admission, launch-owned adjudication, semantic/runtime retention | audit remaining state families for legacy writers and run longer memory behavior |
|
||||
| Persona | Persona turn, speech audit, public mouth | cross-host request/permit/receipt, signed failure and unknown no-repost behavior, conversation retention | one completed public consequence; currently blocked by absent Yggdrasil Discord credential |
|
||||
| Continuity | runtime/resident recovery and retention | graceful shutdown, exact process-death recovery, session closure/archive, lifecycle retention, non-resurrection, bounded endurance, and receipt-derived recovery on the current body | later deployed restart supervision |
|
||||
| Nervous system | Heartbeat, runtime spine, Idunn, CultMesh | detached scheduling, typed jobs, provider readiness, active/warming transitions across PID namespaces, bounded endurance, narrow local-Verse decision reads, bounded Docker logs, and causal grant turnover | audit non-repository actuator publication and command ownership |
|
||||
| Body | Rust binaries, named-volume CultCache stores, model transport | deterministic 24-binary packaging, fast warm replay, named-volume interruption proof, and exact PID 1 reaping across two adopted worker kinds | deployment-sized endurance and remaining inspection surfaces |
|
||||
| Durable request identity excludes mutable transport provenance | `causal_work_identity` | Proposal Modeling, Research, Planning, PlanMind, and Admitted Model Direction use one pure derivation owner; stale thread restoration refuses byte-identically | replay packaged coordinated circuits after worker-attempt extraction |
|
||||
| Immutable GitHub identity has one grammar | `ImmutableGithubSource` | Modeling selection, Eyes execution, and Mind authentication share one parser/canonicalizer; malformed identities fail at Mind | copied packaged public success and no-grant denial |
|
||||
| One worker attempt has one process/result/archive authority | planned `runtime_worker_attempt` | current lifecycle and archive proofs remain accepted | extract typed status predicates and request association from `runtime_spine` without schema migration |
|
||||
| Canonical state admission has one writer | coordinator state transaction / Mind | CAS companions and negative source guards accepted | continue legacy-writer audit only when source evidence finds a live seam |
|
||||
|
||||
## Accepted coordinated circuits
|
||||
## Worker-attempt extraction boundary
|
||||
|
||||
1. Substrate Gate -> Eyes -> Mind evidence admission.
|
||||
2. Heartbeat -> Self -> coordinator -> runtime worker -> typed fulfillment ->
|
||||
exact resident settlement.
|
||||
3. Eyes acceptance -> causal Modeling launch -> Modeling acceptance -> route
|
||||
consumption.
|
||||
4. Imagination proposal -> Modeling -> Mind admission -> new direction pressure,
|
||||
without accidental Hands authority.
|
||||
5. Hands consequence -> Soul verdict -> Modeling update -> Mind transaction.
|
||||
6. Process death -> Continuity recovery -> canonical requeue or fulfilled
|
||||
settlement -> archive/retention without resurrection.
|
||||
7. Persona feedback crossing -> bounded consideration -> speech audit -> signed
|
||||
permit/refusal/no-repost boundary.
|
||||
- Owner: `runtime_worker_attempt` owns immutable launch, exact process claim,
|
||||
semantic result terminality, authenticated fulfillment, and archive tombstone.
|
||||
- Inputs: typed launch, runtime job, exact process identity/activation token,
|
||||
semantic result, exact OS observation, Mind admission evidence, and the
|
||||
resident-live request set.
|
||||
- Outputs: typed attempt projection, allowed transitions, fulfillment evidence,
|
||||
and failed/fulfilled tombstones.
|
||||
- Derived state: runtime job/result/event are audit projections; resident
|
||||
grant/ack are scheduling projections; coordinator receipt closes an
|
||||
incarnation. None independently owns attempt success.
|
||||
- Forbidden writers: Heartbeat, coordinator receipt, generic job status,
|
||||
process liveness without exact identity, retention, and archived tombstones
|
||||
cannot synthesize semantic fulfillment.
|
||||
- Cut line: remove process-status string matching and repeated typed-request
|
||||
family arrays from `runtime_spine`, `resident_self`, and `coordinator_launch`.
|
||||
Do not merge stores or create a universal lifecycle service.
|
||||
|
||||
## Accepted endurance and current-body recovery
|
||||
## Shakedown acceptance matrix
|
||||
|
||||
Historical c006 completed the detached plateau from iteration 572 to
|
||||
1496. Thirty samples observed a 923-pulse delta with zero authority violations,
|
||||
exact-zero state/workspace growth, Heartbeat RSS 28.63-28.88 MiB, resident RSS
|
||||
54.11-55.50 MiB, both role owners alive, and final authenticated readiness
|
||||
`active` under the engaged brake. Receipts:
|
||||
`.epiphany-run/c006-endurance-16407f7e`.
|
||||
| Circuit | Positive | Negative | Timeline/restart | Status |
|
||||
|---|---|---|---|---|
|
||||
| Heartbeat -> Self -> coordinator -> worker -> settlement | packaged genuine workers | no dual grant/process authority | endurance, SIGTERM, restart, receipt-order skew | accepted on c011 ancestry |
|
||||
| Eyes immutable public source -> Mind | provider source proof and source tests | malformed identity rejected by Mind; missing grant source test | copied packaged success/denial pair | source complete, live gate open |
|
||||
| Proposal/Planning causal identity | deterministic shared owner | stale carrier cannot restore thread | cross-incarnation replay | source complete |
|
||||
| Hands -> Soul -> Modeling -> Mind -> Self | bounded adjacent circuits | bypass/substitution refusals | fresh-repository full loop | capstone open |
|
||||
| Persona -> Bifrost -> public consequence | signed failure/unknown/no-repost | private-state and permit refusal | successful receipted consequence | blocked by external credential |
|
||||
| Worker process -> result/death -> archive | genuine Linux workers and zero-zombie reaping | resurrection and competing retry refused | both receipt orderings and restart | accepted; physical extraction pending |
|
||||
| Eve/CultUI operator interface | typed state surfaces | renderer cannot own truth | load/transition/settled/re-entry probes | open |
|
||||
|
||||
Exact `c9a2a979` then completed two consecutive receipt-bound causal grants on
|
||||
actual c006. The first performed one exact Modeling failure-review supersession;
|
||||
the second refused stale action before consequence and settled on
|
||||
`awaitFrontierProposal`. Both grants terminalized, resident state returned idle
|
||||
at revision 34, protected consequence families stayed byte-identical, and the
|
||||
cognitive brake was re-engaged. Receipts:
|
||||
`.epiphany-run/c006-continuation-c9a2a979`.
|
||||
## Immediate order
|
||||
|
||||
Actual c007h runs exact `3a5d2b5e`. It atomically superseded the preserved
|
||||
unlaunched `launchModeling` continuation without starting a process, issued the
|
||||
recovered `reviewModelingResult` route, accepted
|
||||
`result-worker-8ddf57c1-96b4-4a60-ae8b-b24404e9ce2f` exactly once, and returned
|
||||
to idle at revision 312. The cognitive brake is engaged; no pending proposal,
|
||||
Imagination frontier, active lease, or Hands consequence exists.
|
||||
|
||||
Exact candidate `3fdff19f` retains `daemon.lifecycle_poke` whenever the
|
||||
canonical all-scope brake is engaged. Its 24-binary Linux release completed in
|
||||
30.66s; an identical warm replay took 0.82s. The packaged Verse smoke passes.
|
||||
A forced supervisor reconciliation with operator-supplied `/bin/sh` against
|
||||
quarantined copied state refused exit 1, preserved the exact CultCache hash,
|
||||
and created no command marker. Receipts:
|
||||
`.epiphany-run/forge-crosscommit-3fdff19f*` and
|
||||
`.epiphany-run/brake-actuator-proof-3fdff19f`.
|
||||
|
||||
## Completed narrow local Verse consumer audit
|
||||
|
||||
Lifecycle and single-target commands read only the state families that own
|
||||
their decisions. Managed-task install/control, generic service-runbook
|
||||
construction, and repo-work service audit read only the canonical brake.
|
||||
Single-daemon restart-policy writing reads exact daemon status. Direct
|
||||
reconciliation reads exact status, exact policy, and brake. Single-target
|
||||
`poke-daemon` reads exact status, brake, topology-family display metadata, and
|
||||
its exact written intent.
|
||||
|
||||
Every surviving production aggregate context read has an aggregate output:
|
||||
|
||||
| Consumer | Why the aggregate is owned |
|
||||
|---|---|
|
||||
| coordinator launch context | assembles the bounded multi-organ prompt packet |
|
||||
| supervisor scheduler tick | enumerates restart policies, daemon statuses, and brake scope |
|
||||
| cluster daemon runbook | enumerates topology and matching status rows |
|
||||
| `seed` and `query` | explicitly emit the complete local Verse projection |
|
||||
| receipt directory | joins several receipt families into one operator report |
|
||||
| bulk poke and swarm triage | enumerate non-ready daemons and topology |
|
||||
| quarantined smokes/tests | falsify the aggregate projection itself without production authority |
|
||||
|
||||
No remaining single-family decision reads the full context. Do not decompose
|
||||
these legitimate aggregates into ad hoc query piles.
|
||||
|
||||
## Selected next bounded cut
|
||||
|
||||
Keep c011 alive and braked. Source now binds every governed model-derived tool
|
||||
intent to its outer worker launch and exact Substrate Gate grant. Eyes alone can
|
||||
see the bounded `github_file` provider, which accepts only one GitHub repository,
|
||||
exact 40-hex commit, repository path, 64 KiB UTF-8 body, no redirects, and no
|
||||
proxy. Runtime recomputes its identity and bytes before a typed
|
||||
`EyesSourceLookupReceipt` can share the Mind acceptance transaction. Focused
|
||||
hostile substitution is byte-identical and the exact upstream README reader is
|
||||
already proven from Starfire.
|
||||
|
||||
Package this source once on Starfire. On copied named-volume state, launch an
|
||||
actual Research lane that cites the returned `sourceRef` and
|
||||
`evidenceReceiptId`, accept it into Mind, and inspect the typed lookup plus Eyes
|
||||
packet in the committed snapshot. Then exercise an otherwise exact worker whose
|
||||
grant lacks `publicSourceRead`; require refusal before adapter/network execution
|
||||
and byte-identical runtime state. Only after both gates pass may c011 be replaced.
|
||||
Generic MCP transport remains transport and arbitrary URL fetching remains
|
||||
absent. Do not build on Yggdrasil.
|
||||
|
||||
## Completion standard
|
||||
|
||||
The shakedown is complete only when every matrix row has current authoritative
|
||||
evidence, every explicit remaining gate is either proven or recorded as an
|
||||
operator-owned external dependency, the live coordinated circuit survives
|
||||
endurance and restart, and no stale roadmap claim is being mistaken for state.
|
||||
1. Commit and push the causal/public-source identity consolidation.
|
||||
2. Extract `runtime_worker_attempt` without changing persisted contracts.
|
||||
3. Replay source tests and the accepted worker settlement/archive circuits.
|
||||
4. Resume shakedown with the packaged public Eyes success/denial pair.
|
||||
5. Run the fresh-repository full-organ capstone before any deployment-ready
|
||||
claim.
|
||||
|
|
|
|||
Reference in a new issue