Make operator status build-free

This commit is contained in:
Meta Vens 2026-08-09 07:38:57 +01:00
commit f00c8279c9
7 changed files with 131 additions and 30 deletions

View file

@ -33,11 +33,11 @@ ed25519-dalek = "2"
epiphany-core = { path = "epiphany-core" }
epiphany-model-adapter = { path = "epiphany-model-adapter" }
epiphany-openai-adapter = { path = "epiphany-openai-adapter" }
epiphany-openai-runtime = { path = "epiphany-openai-runtime" }
epiphany-openai-runtime = { path = "epiphany-openai-runtime", optional = true }
epiphany-self-policy = { path = "epiphany-self-policy", optional = true }
epiphany-state-model = { path = "epiphany-state-model" }
epiphany-tool-adapter = { path = "epiphany-tool-adapter" }
epiphany-tool-mcp-runtime = { path = "epiphany-tool-mcp-runtime" }
epiphany-tool-mcp-runtime = { path = "epiphany-tool-mcp-runtime", optional = true }
http = "1"
ignore = "0.4.23"
postgres = "0.19"
@ -59,6 +59,9 @@ zeroize = "1"
semantic-recovery-smoke = []
workspace-coverage-recovery-smoke = []
coordinator-runtime = ["dep:epiphany-self-policy"]
openai-runtime = ["dep:epiphany-openai-runtime"]
tool-mcp-runtime = ["dep:epiphany-tool-mcp-runtime"]
release-runtime = ["coordinator-runtime", "openai-runtime", "tool-mcp-runtime"]
[profile.release]
incremental = true
@ -138,6 +141,7 @@ path = "epiphany-core/src/bin/epiphany-persona-feedback-ingress.rs"
[[bin]]
name = "epiphany-persona-service"
path = "epiphany-openai-runtime/src/bin/epiphany-persona-service.rs"
required-features = ["openai-runtime"]
[[bin]]
name = "epiphany-persona-mouth-identity"
@ -156,6 +160,11 @@ name = "epiphany-mvp-coordinator"
path = "epiphany-core/src/bin/epiphany-mvp-coordinator.rs"
required-features = ["coordinator-runtime"]
[[bin]]
name = "epiphany-mvp-status"
path = "epiphany-core/src/bin/epiphany-mvp-status.rs"
required-features = ["coordinator-runtime"]
[[bin]]
name = "epiphany-frontier-proposal"
path = "epiphany-core/src/bin/epiphany-frontier-proposal.rs"
@ -167,7 +176,9 @@ path = "epiphany-core/src/bin/epiphany-hands-action.rs"
[[bin]]
name = "epiphany-model-runtime"
path = "epiphany-openai-runtime/src/bin/epiphany-model-runtime.rs"
required-features = ["openai-runtime"]
[[bin]]
name = "epiphany-tool-mcp-runtime"
path = "epiphany-tool-mcp-runtime/src/main.rs"
required-features = ["tool-mcp-runtime"]

View file

@ -166,6 +166,7 @@ struct Args {
stderr: PathBuf,
interrupt_binding: Option<String>,
interrupt_reason: Option<String>,
include_auxiliary_status: bool,
}
impl Args {
@ -187,6 +188,7 @@ impl Args {
.join("epiphany-mvp-status-server.stderr.log"),
interrupt_binding: None,
interrupt_reason: None,
include_auxiliary_status: true,
};
while let Some(arg) = args.next() {
match arg.as_str() {
@ -205,6 +207,7 @@ impl Args {
"--interrupt-reason" => {
parsed.interrupt_reason = Some(take_string(&mut args, "--interrupt-reason")?)
}
"--coordinator-only" => parsed.include_auxiliary_status = false,
_ => return Err(anyhow!("unknown argument: {arg}")),
}
}
@ -216,7 +219,7 @@ fn run_status(args: &Args) -> Result<Value> {
if args.interrupt_binding.is_some() {
return run_native_interrupt(args);
}
run_native_status(args, true)
run_native_status(args, args.include_auxiliary_status)
}
fn run_native_interrupt(args: &Args) -> Result<Value> {
@ -271,6 +274,7 @@ pub fn native_coordinator_json(runtime_store: &Path, thread_id: &str) -> Result<
.join("epiphany-mvp-status-server.stderr.log"),
interrupt_binding: None,
interrupt_reason: None,
include_auxiliary_status: false,
},
false,
)
@ -687,7 +691,15 @@ fn native_auxiliary_status(root: &Path) -> Result<NativeAuxiliaryStatus> {
"--limit",
"8",
],
)?;
)
.unwrap_or_else(|error| {
json!({
"status": "unavailable",
"surface": "heartbeat",
"reason": error.to_string(),
"authority": "auxiliary projection is optional and cannot summon a build"
})
});
let latest_discord_persona = native_json(
"epiphany-persona-discord",
&[
@ -1427,22 +1439,16 @@ pub fn native_json(bin_name: &str, args: &[&str]) -> Result<Value> {
.join("debug")
.join(format!("{bin_name}.exe"));
let exe = sibling.filter(|path| path.exists()).unwrap_or(configured);
let output = if exe.exists() {
Command::new(&exe).args(args).output()
} else {
let mut command = Command::new("cargo");
command
.arg("run")
.arg("--quiet")
.arg("--manifest-path")
.arg("epiphany-core/Cargo.toml")
.arg("--bin")
.arg(bin_name)
.arg("--")
.args(args)
.output()
if !exe.exists() {
return Err(anyhow!(
"optional projection executable is absent: {}",
exe.display()
));
}
.with_context(|| format!("failed to run {bin_name}"))?;
let output = Command::new(&exe)
.args(args)
.output()
.with_context(|| format!("failed to run {bin_name}"))?;
if !output.status.success() {
return Err(anyhow!(
"{} failed: {}{}",
@ -1469,6 +1475,21 @@ mod native_interrupt_tests {
use super::*;
use epiphany_state_model::{EpiphanyJobBinding, EpiphanyJobKind};
#[test]
fn operator_projection_has_no_build_authority() {
let source = include_str!("epiphany-mvp-status.rs");
let native_json = source
.split("pub fn native_json")
.nth(1)
.expect("native_json source");
let native_json = native_json
.split("fn take_string")
.next()
.expect("native_json boundary");
assert!(!native_json.contains("Command::new(\"cargo\")"));
assert!(source.contains("\"--coordinator-only\""));
}
#[test]
fn native_operator_contract_has_one_store_and_no_codex_state_field() {
let source = include_str!("epiphany-mvp-status.rs");
@ -1514,6 +1535,7 @@ mod native_interrupt_tests {
stderr: PathBuf::new(),
interrupt_binding: Some("modeling-worker".to_string()),
interrupt_reason: Some("native status proof".to_string()),
include_auxiliary_status: false,
};
let result = run_status(&args)?;
assert_eq!(result["source"], "native");

View file

@ -120,6 +120,7 @@ pub fn required_packaged_release_binaries(target_triple: &str) -> Vec<(&'static
file_name("epiphany-persona-discord-permit-identity"),
),
("coordinator", file_name("epiphany-mvp-coordinator")),
("coordinator-status", file_name("epiphany-mvp-status")),
("frontier-proposal", file_name("epiphany-frontier-proposal")),
("hands-action", file_name("epiphany-hands-action")),
("model-runtime", file_name("epiphany-model-runtime")),
@ -515,7 +516,7 @@ fn release_build_command(
.arg("--package")
.arg("epiphany-release-bundle")
.arg("--features")
.arg("epiphany-release-bundle/coordinator-runtime");
.arg("epiphany-release-bundle/release-runtime");
for (_, file_name) in required {
let binary_name = Path::new(file_name)
.file_stem()
@ -592,6 +593,7 @@ fn required_release_build_target(role: &str) -> Result<(&'static str, &'static s
Ok(("epiphany-core", "epiphany-persona-discord-permit-identity"))
}
"coordinator" => Ok((".", "epiphany-mvp-coordinator")),
"coordinator-status" => Ok((".", "epiphany-mvp-status")),
"frontier-proposal" => Ok(("epiphany-core", "epiphany-frontier-proposal")),
"hands-action" => Ok(("epiphany-core", "epiphany-hands-action")),
"model-runtime" => Ok(("epiphany-openai-runtime", "epiphany-model-runtime")),
@ -1154,7 +1156,7 @@ mod tests {
.collect::<BTreeMap<_, _>>();
assert_eq!(envs.get("CARGO_INCREMENTAL"), Some(&Some("0".to_string())));
assert_eq!(args.iter().filter(|arg| *arg == "--bin").count(), 23);
assert_eq!(args.iter().filter(|arg| *arg == "--bin").count(), 24);
assert_eq!(args.iter().filter(|arg| *arg == "--package").count(), 1);
assert!(
args.windows(2)
@ -1163,12 +1165,16 @@ mod tests {
assert!(!args.iter().any(|arg| arg == "epiphany-core"));
assert!(
args.windows(2)
.any(|pair| pair == ["--features", "epiphany-release-bundle/coordinator-runtime"])
.any(|pair| pair == ["--features", "epiphany-release-bundle/release-runtime"])
);
assert!(
args.windows(2)
.any(|pair| pair == ["--bin", "epiphany-mvp-coordinator"])
);
assert!(
args.windows(2)
.any(|pair| pair == ["--bin", "epiphany-mvp-status"])
);
assert!(
args.windows(2)
.any(|pair| pair == ["--bin", "epiphany-state"])
@ -1298,6 +1304,9 @@ mod tests {
let core_manifest = fs::read_to_string(core.join("Cargo.toml")).expect("core manifest");
assert!(root_manifest.contains("coordinator-runtime = [\"dep:epiphany-self-policy\"]"));
assert!(root_manifest.contains(
"release-runtime = [\"coordinator-runtime\", \"openai-runtime\", \"tool-mcp-runtime\"]"
));
assert!(root_manifest.contains("required-features = [\"coordinator-runtime\"]"));
assert!(core_manifest.contains("autobins = false"));
assert!(!core_manifest.contains("name = \"epiphany-mvp-coordinator\""));

View file

@ -1985,3 +1985,28 @@ local Verse without stopping its resident process. Publication changes release
availability; it does not own executable replacement. Continuity now owns the
next boundary: supervised stop, authenticated body replacement, restart on the
same typed stores, and proof that Self resumes the existing frontier.
### Operator projection and resident topology ownership
`epiphany-mvp-status` owns read-only coordinator projection. It may execute an
already-present optional projection helper, but it cannot construct one.
Missing Heartbeat, Persona, or Void helpers therefore derive an unavailable
auxiliary panel. `--coordinator-only` omits those panels and reads the accepted
coordinator state directly; observation can no longer summon Cargo. The status
binary is an explicit release sibling so deployed operator sight is part of the
authenticated body rather than a workstation accident.
Resident Self has four distinct store roles. `release_store` authenticates the
running body; `runtime_store` owns nervous-system and coordinator state;
`local_verse_store` owns the coordination providers and brake; and
`agent_memory_store` owns Mind material. These paths may share a directory, but
they are not interchangeable. In c005, the accepted Eyes-to-Hands chain owns
the `/state/eyes-tools/` runtime, local Verse, and Mind. The main local Verse
still owns release publication. The old `/state/runtime.cc` is no longer a
resident cognition owner; it is retained evidence only.
Docker SIGTERM currently reaches `epiphany-swarm` PID 1, but `serve` owns an
unconditional loop followed by blocking `thread::sleep` and installs no signal
observer. Docker therefore escalates to SIGKILL and records exit 137. Graceful
shutdown work must assign one signal owner, make sleep interruptible, and define
how an active exact child is drained or terminalized before claiming closure.

View file

@ -1,5 +1,39 @@
# Fresh workspace handoff
## Resident continuity, topology repair, and build-free status — 2026-08-09
Authenticated release `sha256-d1392730...` is now the running c005 body. The
old body and the first replacement container are retained as rollback receipts.
Both Docker stops sent SIGTERM and ended in exit 137 after timeout, proving that
`epiphany-swarm serve` has no graceful signal owner even while idle.
The first replacement preserved resident Self revision 6, sleeping state, no
active turn, and no prepared recovery, but native status exposed a live topology
fault: resident Self used `/state/runtime.cc`, whose next action was
`launchResearch`, while the accepted coordinated cognition chain lives in
`/state/eyes-tools/runtime.cc`. The resident was rebound without copying or
merging state. Release authentication remains `/state/local-verse.cc`; runtime,
coordination Verse, and Mind now use the established `/state/eyes-tools/`
stores. The current container ID begins `f0303137`; rollback container
`epiphany-linux-resident-self-c005-wrong-runtime-0934` preserves the bad binding.
Post-rebind operator projection derives `awaitFrontierProposal`, terminal
frontier planning, accepted Research, and `modelingResultAcceptedAfterResearch`.
Route `817bf422...` appears only as the route named by relinquishment receipt
`repo-frontier-relinquishment-7b846272...`; it is not actionable or recreated.
The obsolete root runtime hash remained
`c10caa321322632111a4e8f69550be4c799d78c92a78780a3066bbf6ad0a7c7c`.
The diagnostic itself exposed hidden build authority: standalone
`epiphany-mvp-status` invoked Cargo whenever optional Heartbeat/Persona/Void
helpers were absent. That fallback is deleted. Optional panels now report
unavailable, `--coordinator-only` performs the exact routing read, and status is
the 24th explicit packaged binary. Heavy OpenAI and MCP runtime dependencies are
feature-admitted so coordinator/status iteration does not compile them. Focused
proof passes 19/19 release tests and 3/3 status tests; warm runs complete in
about 1-4 seconds. Exact 24-binary packaging remains next, followed by graceful
shutdown ownership, restart proof, retention, logs, and endurance.
## Deterministic warm release published — 2026-08-09
Exact pushed source `9b8df0b487eaae12e35dbe53a82faae1a1e39954`

Binary file not shown.

View file

@ -35,16 +35,16 @@ invariants:
- Evidence and git retain history; this map retains only state that changes future decisions.
current_status:
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. The persistent c005 Linux body proves heartbeat, Self coordination, governed Eyes-to-Modeling cognition, causal routing, native Imagination, dedicated Mind adoption, and typed Hands relinquishment without external consequence. Self causally demotes pre-relinquishment CRRC history while preserving raw operator sight. One root Cargo workspace, lock, process, graph, and release-bundle package now own deterministic construction of all 23 required binaries. Exact source 9b8df0b4 packages identically warm in about 11 seconds and is published to the resident local Verse. Resident crash/restart, long-duration plateau, log ownership, and stable Starfire firewall ownership remain open. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Exact 9b8df0b487eaae12e35dbe53a82faae1a1e39954 packaging completed without Cargo output collisions in 12m46s after the ownership cut and produced native-inspected 23-binary release sha256-d13927303c957db6799135a61ce6a2899235c397b525968be0bffc3b5ad2a831 with witness sha256-d07277cb5f142a4cc90e9364da0bd058eeba8c524eaf8c00bd9d55f088c78de0. Its identical warm replay completed in 10.73s total with Cargo at 0.97s and reproduced both identifiers exactly. Native publication added the authenticated release to the resident local Verse while c005 stayed running; the store changed from 43849 bytes / sha256-60872eb9222485c00ccb0c423776f85bacaf2521ed9b80d1bcceccfb319b8eaf to 51311 bytes / sha256-d88bb300f8db589f3f82fcba6781b9eb1e9828f22a55684fdaaba0e8a68dcf0d.
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. The persistent c005 Linux body proves heartbeat, Self coordination, governed Eyes-to-Modeling cognition, causal routing, native Imagination, dedicated Mind adoption, typed Hands relinquishment, and authenticated hard-stop/body-replacement recovery without external consequence. The active 9b8df0b4 body is now bound to the authoritative eyes-tools runtime, Mind, and local Verse and derives awaitFrontierProposal; the old root runtime is retained but no longer owns resident cognition. Warm release packaging is about 11 seconds. Graceful shutdown, exact packaging of the new build-free status projector, retention, long-duration plateau, log ownership, and stable Starfire firewall ownership remain open. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Resident c005 stopped twice under Docker SIGTERM and required SIGKILL both times, exiting 137; each prior container remains recoverable as an exact configuration receipt. The authenticated 9b8df0b4 body restarted against the existing stores and preserved resident Self revision 6 with no active turn or prepared recovery. Native status then exposed a topology fault: resident Self was bound to stale /state/runtime.cc, while the proven coordinated chain lives in /state/eyes-tools/runtime.cc. The resident was rebound without copying state to the authoritative eyes-tools runtime, Mind, and local Verse while release authentication remains on the published main Verse. Post-rebind status derives awaitFrontierProposal, terminal frontier planning, accepted Research, consumed causal Modeling, and route 817bf422 only through relinquishment receipt 7b846272. The status projector no longer invokes Cargo for absent optional helpers, gains a coordinator-only read path, and becomes the 24th explicit release binary. Focused tests pass 19/19 release contracts and 3/3 status contracts; warm status tests take about 1-4 seconds.
operational_state:
local_worktree: deterministic_release_published_evidence_pending_commit
local_worktree: status_projector_and_continuity_receipts_pending_commit
operator_wireguard: restored
yggdrasil: canonical_small_public_crossing_body
starfire: temporary_epiphany_cognition_body
starfire_runtime_identity: epiphany-starfire
starfire_swarm_brake: released
starfire_release: exact_bd96305e_sha256_01dbed4b_published_to_resident_c005
starfire_release: exact_9b8df0b4_sha256_d1392730_active_on_resident_c005
starfire_repository_body: bound_and_observed
starfire_verse_topology: bound_to_current_repository_body
starfire_native_status: supervised_shakedown_active
@ -67,9 +67,9 @@ current_status:
starfire_linux_role_cognition: eyes_and_modeling_tools_results_and_acceptance_proven_zero_consequence
starfire_linux_modeling_peak: 109887488_bytes_resident_body_plus_modeling_circuit
yggdrasil_epiphany_service_contract: repaired_in_gamecult_ops_812b427_not_installed
resident_physiology: c005_swarm_with_217dd_and_bd96305e_worker_helpers_running
unresolved_authority: The authenticated 9b8df0b4 release is published but c005 still executes the older pinned release body; continuity across deliberate stop, authenticated-body replacement, restart, and resumed awaitFrontierProposal state is unproven. The Docker contract still depends on explicit target and Cargo-home bindings, though the native release packager owns them correctly. Repository Body observation still performs two authenticated full-tree Git index/manifest passes; exact 217dd packaged observer evidence improved the same unchanged Body boundary to 94.521 seconds. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential. Resident stdout/stderr logs remain an unbounded supervisor-owned surface.
next_action: Commit and push the deterministic release proof, then perform a receipt-backed supervised c005 stop, replace its pinned executable body with published release sha256-d13927303c957db6799135a61ce6a2899235c397b525968be0bffc3b5ad2a831, restart against the existing typed stores, and prove continuity resumes from awaitFrontierProposal without recreating relinquished route 817bf422. Continue retention, log ownership, and long-duration plateau afterward.
resident_physiology: authenticated_9b8df0b4_c005_bound_to_eyes_tools_nervous_system_with_217dd_and_bd96305e_helpers_running
unresolved_authority: SIGTERM is not observed by epiphany-swarm; serve owns an unconditional loop and blocking sleep, so Docker stops end in exit 137 even while idle. The new 24-binary release contract is source-tested but not yet exact-packaged or published. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential. Resident stdout/stderr logs remain an unbounded supervisor-owned surface.
next_action: Commit and push the build-free status projector plus c005 continuity/topology receipts. Exact-package and inspect the 24-binary release, then map and implement one signal owner for idle and active resident shutdown, prove zero-exit closure and restart on the authoritative eyes-tools stores, and continue retention, log ownership, and long-duration plateau.
active_subgoals:
- Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.
@ -86,7 +86,7 @@ organ_readiness:
hands: proven for bounded consequences; native patch, command, commit, push, and typed receipts bind reviewed path ceilings to exact changed-path subsets.
soul: proven for the current bounded route-chain consequence; exact d3bfbda0 launched Verification through typed plan-decision provenance, result f23fe2b6 was accepted at revision 57, and Self then derived Modeling before any repeated Hands authority.
mind: proven for launch-owned resident frontier adjudication; two historical attempts failed closed, exact bd96305e derived immutable identity from authenticated launch, authorized retry 2d2a3e8b completed, and Self atomically committed terminal adopt decision e7d7f3c7. Broader memory retention and long-duration behavior remain open.
continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 Continuity closes only all-terminal sessions, emits one deterministic event, refuses post-close jobs, and moved the disposable v28 copy from four active sessions to zero. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 independently repeated open-job closure refusal, terminal completion, idempotent session closure, and post-close refusal on Yggdrasil. Long-duration plateau and full resident crash/restart behavior remain open.
continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 closes only all-terminal sessions, emits one deterministic event, and refuses post-close jobs. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 repeated closure invariants on Yggdrasil. Authenticated c005 now proves typed resident state survives hard exit, executable-body replacement, runtime-topology correction, and restart while preserving awaitFrontierProposal. Graceful SIGTERM closure and long-duration plateau remain open.
nervous_system: partial; detached scheduling, runtime jobs, typed feedback, ordinary Windows coverage-store identity, and operator projection work. Exact c0055772 proves Linux heartbeat acknowledgement/regrant, Self single-consumption launch, authenticated plan coordinator completion, and a persistent resident body. It also proves detached model workers cannot survive a one-shot container PID 1 exit. The accepted Linux Eyes-to-Modeling circuit proves detached role workers, native read-only tool loops, typed admission, and causal next-organ routing at a measured 109887488-byte peak. Modeling job commit spent 160183ms in two cold Repository Body scans. A source cut now reuses one private index across both equality scans; 25 focused observer tests pass and a live-worktree mechanism benchmark reduced the pair from 3832ms to 1537ms. Packaged coordinator timing remains open. Authenticated d910158f isolates Self policy behind one root-graph optional coordinator feature; warm policy invalidation is 6.02s. Root Linux packaging is 12m33s cold and 9.08s warm with persistent caches. Long-duration pressure and resource plateau remain open. Yggdrasil is not a release forge at its current memory budget.
forbidden_actions: