diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 997f0eee..7e6e5976 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -358,6 +358,7 @@ interface authority. | coordinator policy/status | keyed Mind presence, exact current work, and the accepted continuity decision | one action/reason pair plus operator-readable role lanes | Coordinator presence is derived; no mutable coordinator head, pressure tableau, or duplicate policy wrapper exists. | | runtime worker attempt owner | immutable launch, exact process claim, typed result, job result, archival evidence | one terminal attempt authority | Scheduling, process liveness, and semantic admission remain distinct authorities. | | model-provider boundary | sealed native model request plus explicit provider configuration and injected credential | exact internally derived provider request and transport result | Provider selection cannot author a second request truth or admit Mind state. | +| model-provider connector | one configured caller's encrypted expiring native request over bounded loopback CultNet | ordered public model events, terminal receipt, and redacted CultMesh capability status | A consumer may borrow Codex transport and physical concurrency without borrowing Epiphany's Mind, credentials, swarm lifecycle, or state-admission authority. | | OpenAI Responses schema projector | full native typed output schema | one provider-legal strict generation schema | Provider formatting preserves useful supported constraints but never replaces native decoding or Mind admission. | | model-pass terminal owner | sealed reasoning basis/context and typed failure class | exact transport closure plus `EpiphanyModelPassFailure` and terminal session/job result in one batch CAS | The caller cannot nominate a job/session; the context-derived binding closes role, reorient, and Persona failures without granting generic transport results decision authority. | | Substrate Gate | exact worker/job authority and requested operation | scoped grant or refusal | Access permission does not admit Mind state. | diff --git a/state/map.yaml b/state/map.yaml index 0e0339be..10b6c6eb 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -25,6 +25,7 @@ architecture: cultmesh: Projects typed state without becoming its owner. brokkr: Owns Unity editor inspection and actuation; Epiphany consumes its typed CultMesh/Eve capabilities and receipts. model_provider: Owns explicit provider selection and exact provider lowering; OpenRouter/Ox is the admitted Yggdrasil provider, while Codex-derived transport remains an optional OpenAI boundary rather than Epiphany authority. + model_connector: Owns a loopback-only encrypted CultNet crossing that lends the admitted Codex transport, physical concurrency, and redacted capability status to one configured runtime without lending Epiphany Mind, credentials, swarm scheduling, or application commit authority. codex: Retained only where an OpenAI provider needs its earned authentication or transport capability. invariants: @@ -35,6 +36,7 @@ invariants: - CultMesh and Eve are projections, never owners of project truth. - Editor integration is provider-owned. Epiphany carries no Rider or Unity command organ; Brokkr owns Unity, and a future Rider daemon owns Rider. - Native model requests are canonical. Provider requests are derived internally through the selected typed provider dialect; credentials are injected by the deployment substrate and never become Mind authority. + - The model connector accepts only the configured caller and model, carries no tools or reasoning, persists no prompts or results, and cannot admit Epiphany or consumer state. Its daemon lifecycle is independent of the braked Epiphany swarm. - Nobody owns a shared dependency edge; providers own offers, consumers own claims, Soul owns exact verification evidence, and the Atlas projector owns only deterministic derivation. - Atlas may wake local Modeling or Soul through consumer Self, but it never grants Hands authority or writes a foreign repository Mind. - The canonical swarm brake blocks Epiphany cognition and Epiphany-authored external consequences while preserving Epiphany read-only physiology and operator sight. It does not gate Idunn startup, Idunn self-bootstrap, or same-release daemon recovery: the persisted brake remains engaged across restart. A target brake may gate deployment mutation of that target, never Idunn itself or unrelated service lifecycle. @@ -43,6 +45,7 @@ invariants: - Evidence and git retain history; this map retains only state that changes future decisions. current_status: + model_connector_cut: Exact 6bc64e77 adds one independently supervised `epiphany-model-connector` binary. It owns a one-MiB bounded TCP-framed CultNet listener on loopback, AES-GCM MessagePack invocation/result cargo, expiry and replay refusal, an eight-request physical semaphore, Codex credential custody, prompt-cache/output-token forwarding, cached-token receipts, and a redacted Odin/CultMesh status. Exact CultNet 6bf659b rejects oversized framed payload declarations before allocation. Ghostlight remains the first consumer and owns all prompts, schemas, interpretation, retries, and world commits; the connector opens no Epiphany Mind or runtime store and cannot wake the swarm. Focused connector tests pass 5/5, Codex spine 15/15, OpenAI adapter 1/1, and the release-owned connector target compiles. Idunn deployment and live consumer proof remain open. decision_audit_cut: Exact f8412b69 adds a read-only context-ID audit projection over the sealed basis, decoded reasoning projection, exact terminal native/provider requests, governed tool observations, structured terminal records, and exact Mind commit receipts. Exact 5f66d6c9 adds deterministic read-only discovery of fully auditable terminal context IDs through the existing packaged model runtime; sealed but nonterminal contexts remain physiology and are omitted. Worker archive v1 retains the typed role and generic result family; runtime schema v2 refuses the prior digest-only writable archive shape. Yggdrasil CI then falsified five portable-test assumptions and accepted their source repairs through exact ebc0ffe4. Its sealed Linux package predates the operator-control-plane deletion and is now historical package evidence, not a deployable current release. provider_schema_cut: Exact 553f79d9 makes one OpenAI Responses dialect compiler own every role and Persona output schema. Provider-illegal conditional and parent-relative structure is removed, literal-only schemas receive explicit types, supported standard-model constraints remain generation guidance, and UUID formats lower to exact patterns. Full native decoding and family Mind admission remain final authority. Preserved packaged falsifications at 55fb4cf8, edd664db, and 1e01c339 prove refusal before inference, typed failure without Mind writes, successful concurrent Persona cognition, and transcript-free failure audit. repo_model_body_cut: Exact a8f3c1f0 makes the authenticated runtime Body route own initial keyed RepoModel binding. Bootstrap derives the digest from the admitted RepositoryBodyObservationBasis, initialization reauthenticates runtime, swarm, workspace, and Body binding before any write, and a hostile seed refuses with the whole store byte-identical. The exact 553f79d9 package exposed this root after concurrent Persona and terminal Modeling cognition; its result is not transplanted. Exact 79292fe3 makes one authenticated Repository Body snapshot load own runtime route, Body binding, historical observation, and manifest validation. Basis validation, Mind admission, Modeling projection, and manifest consumers no longer validate, reopen, and reconstruct the same head against a second store read.