Supersede failed Soul results
This commit is contained in:
parent
fa484e0d04
commit
e1d1cc50c1
8 changed files with 240 additions and 4 deletions
|
|
@ -193,6 +193,7 @@ pub async fn derive_epiphany_coordinator_status(
|
|||
verification_result_covers_current_modeling: finding_signals
|
||||
.verification_result_covers_current_modeling,
|
||||
verification_result_accepted: finding_signals.verification_result_accepted,
|
||||
verification_result_failure_reviewed: finding_signals.verification_result_failure_reviewed,
|
||||
verification_result_allows_implementation: finding_signals
|
||||
.verification_result_allows_implementation,
|
||||
verification_result_needs_evidence: finding_signals.verification_result_needs_evidence,
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ use std::path::{Path, PathBuf};
|
|||
use std::process::{Command, Stdio};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[cfg(windows)]
|
||||
use std::os::windows::process::CommandExt;
|
||||
|
|
@ -82,6 +83,7 @@ struct Args {
|
|||
max_runtime_seconds: u64,
|
||||
ephemeral: bool,
|
||||
auto_review: bool,
|
||||
supersede_failed_results: bool,
|
||||
auto_tools: bool,
|
||||
bootstrap_smoke_state: bool,
|
||||
bootstrap_local_state: bool,
|
||||
|
|
@ -116,6 +118,7 @@ impl Args {
|
|||
max_runtime_seconds: 180,
|
||||
ephemeral: true,
|
||||
auto_review: false,
|
||||
supersede_failed_results: false,
|
||||
auto_tools: true,
|
||||
bootstrap_smoke_state: false,
|
||||
bootstrap_local_state: false,
|
||||
|
|
@ -168,6 +171,7 @@ impl Args {
|
|||
"--ephemeral" => parsed.ephemeral = true,
|
||||
"--no-ephemeral" => parsed.ephemeral = false,
|
||||
"--auto-review" => parsed.auto_review = true,
|
||||
"--supersede-failed-results" => parsed.supersede_failed_results = true,
|
||||
"--auto-tools" => parsed.auto_tools = true,
|
||||
"--no-auto-tools" => parsed.auto_tools = false,
|
||||
"--test-complete-backend" => {
|
||||
|
|
@ -415,6 +419,23 @@ fn run_coordinator(args: &Args) -> Result<Value> {
|
|||
steps.push(step);
|
||||
break;
|
||||
}
|
||||
if result["status"].as_str() == Some("failed") && args.supersede_failed_results {
|
||||
let superseded = supersede_failed_role_result(
|
||||
&mut client,
|
||||
&thread_id,
|
||||
role_id,
|
||||
revision,
|
||||
&result,
|
||||
)?;
|
||||
push_event(
|
||||
&mut step,
|
||||
json!({"type": "roleFailureReview", "roleId": role_id, "superseded": status_cli::sanitize_for_operator(superseded)}),
|
||||
);
|
||||
final_status = collect_coordinator_status(&mut client, &thread_id)?;
|
||||
append_operator_step_jsonl(&steps_path, &step)?;
|
||||
steps.push(step);
|
||||
continue;
|
||||
}
|
||||
let can_accept = args.auto_review
|
||||
&& role_result_auto_acceptable(role_id, &result)
|
||||
&& revision.is_some();
|
||||
|
|
@ -1086,6 +1107,54 @@ fn role_result_auto_acceptable(role_id: &str, result: &Value) -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
fn supersede_failed_role_result(
|
||||
client: &mut status_cli::AppServerClient,
|
||||
thread_id: &str,
|
||||
role_id: &str,
|
||||
expected_revision: Option<i64>,
|
||||
result: &Value,
|
||||
) -> Result<Value> {
|
||||
let result_id = first_string_at(result, &[&["finding", "runtimeResultId"]])
|
||||
.context("failed role result did not include finding.runtimeResultId")?;
|
||||
let job_id = first_string_at(result, &[&["finding", "runtimeJobId"]])
|
||||
.context("failed role result did not include finding.runtimeJobId")?;
|
||||
let binding_id = first_string_at(result, &[&["bindingId"]])
|
||||
.unwrap_or_else(|| default_binding_id_for_role(role_id));
|
||||
let summary = first_string_at(result, &[&["finding", "summary"], &["note"]])
|
||||
.unwrap_or_else(|| "Failed role result reviewed and superseded.".to_string());
|
||||
let receipt = json!({
|
||||
"id": format!("role-failure-review-{}", Uuid::new_v4()),
|
||||
"result_id": result_id,
|
||||
"job_id": job_id,
|
||||
"binding_id": binding_id,
|
||||
"surface": "roleFailureReview",
|
||||
"role_id": role_id,
|
||||
"status": "superseded",
|
||||
"accepted_at": now(),
|
||||
"summary": summary,
|
||||
});
|
||||
let mut payload = json!({
|
||||
"threadId": thread_id,
|
||||
"patch": {
|
||||
"acceptanceReceipts": [receipt],
|
||||
},
|
||||
});
|
||||
if let Some(revision) = expected_revision {
|
||||
payload["expectedRevision"] = json!(revision);
|
||||
}
|
||||
client.send("thread/epiphany/update", Some(payload), true)
|
||||
}
|
||||
|
||||
fn default_binding_id_for_role(role_id: &str) -> String {
|
||||
match role_id {
|
||||
"imagination" => epiphany_core::EPIPHANY_IMAGINATION_ROLE_BINDING_ID.to_string(),
|
||||
"research" => epiphany_core::EPIPHANY_RESEARCH_ROLE_BINDING_ID.to_string(),
|
||||
"modeling" => epiphany_core::EPIPHANY_MODELING_ROLE_BINDING_ID.to_string(),
|
||||
"verification" => epiphany_core::EPIPHANY_VERIFICATION_ROLE_BINDING_ID.to_string(),
|
||||
_ => role_id.to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
fn launch_reorient(
|
||||
client: &mut status_cli::AppServerClient,
|
||||
thread_id: &str,
|
||||
|
|
|
|||
|
|
@ -196,7 +196,9 @@ fn run_status(args: &Args) -> Result<Value> {
|
|||
|
||||
fn run_codex_interrupt(args: &Args) -> Result<Value> {
|
||||
if args.source != StatusSource::Codex {
|
||||
return Err(anyhow!("--interrupt-binding requires Codex/app-server status source"));
|
||||
return Err(anyhow!(
|
||||
"--interrupt-binding requires Codex/app-server status source"
|
||||
));
|
||||
}
|
||||
let thread_id = args
|
||||
.thread_id
|
||||
|
|
@ -403,6 +405,7 @@ fn run_native_status(args: &Args) -> Result<Value> {
|
|||
verification_result_covers_current_modeling: finding_signals
|
||||
.verification_result_covers_current_modeling,
|
||||
verification_result_accepted: finding_signals.verification_result_accepted,
|
||||
verification_result_failure_reviewed: finding_signals.verification_result_failure_reviewed,
|
||||
verification_result_allows_implementation: finding_signals
|
||||
.verification_result_allows_implementation,
|
||||
verification_result_needs_evidence: finding_signals.verification_result_needs_evidence,
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ pub struct EpiphanyCoordinatorInput {
|
|||
pub verification_result_cites_implementation_evidence: bool,
|
||||
pub verification_result_covers_current_modeling: bool,
|
||||
pub verification_result_accepted: bool,
|
||||
pub verification_result_failure_reviewed: bool,
|
||||
pub verification_result_allows_implementation: bool,
|
||||
pub verification_result_needs_evidence: bool,
|
||||
pub reorient_finding_accepted: bool,
|
||||
|
|
@ -179,6 +180,7 @@ pub struct EpiphanyCoordinatorStatusInput {
|
|||
pub verification_result_cites_implementation_evidence: bool,
|
||||
pub verification_result_covers_current_modeling: bool,
|
||||
pub verification_result_accepted: bool,
|
||||
pub verification_result_failure_reviewed: bool,
|
||||
pub verification_result_allows_implementation: bool,
|
||||
pub verification_result_needs_evidence: bool,
|
||||
pub reorient_finding_accepted: bool,
|
||||
|
|
@ -204,6 +206,7 @@ pub struct EpiphanyCoordinatorFindingSignals {
|
|||
pub verification_result_cites_implementation_evidence: bool,
|
||||
pub verification_result_covers_current_modeling: bool,
|
||||
pub verification_result_accepted: bool,
|
||||
pub verification_result_failure_reviewed: bool,
|
||||
pub verification_result_allows_implementation: bool,
|
||||
pub verification_result_needs_evidence: bool,
|
||||
pub reorient_finding_accepted: bool,
|
||||
|
|
@ -270,6 +273,7 @@ pub fn derive_coordinator_status(
|
|||
verification_result_covers_current_modeling: input
|
||||
.verification_result_covers_current_modeling,
|
||||
verification_result_accepted: input.verification_result_accepted,
|
||||
verification_result_failure_reviewed: input.verification_result_failure_reviewed,
|
||||
verification_result_allows_implementation: input.verification_result_allows_implementation,
|
||||
verification_result_needs_evidence: input.verification_result_needs_evidence,
|
||||
reorient_finding_accepted: input.reorient_finding_accepted,
|
||||
|
|
@ -309,6 +313,16 @@ pub fn derive_coordinator_finding_signals(
|
|||
role_finding_already_accepted(state, EpiphanyCoordinatorRoleId::Verification, finding)
|
||||
})
|
||||
});
|
||||
let verification_result_failure_reviewed =
|
||||
verification_finding.as_ref().is_some_and(|finding| {
|
||||
state.is_some_and(|state| {
|
||||
role_finding_failure_reviewed(
|
||||
state,
|
||||
EpiphanyCoordinatorRoleId::Verification,
|
||||
finding,
|
||||
)
|
||||
})
|
||||
});
|
||||
let verification_result_cites_implementation_evidence = state.is_some_and(|state| {
|
||||
role_finding_cites_implementation_evidence(state, verification_finding)
|
||||
});
|
||||
|
|
@ -355,6 +369,7 @@ pub fn derive_coordinator_finding_signals(
|
|||
verification_result_cites_implementation_evidence,
|
||||
verification_result_covers_current_modeling,
|
||||
verification_result_accepted,
|
||||
verification_result_failure_reviewed,
|
||||
verification_result_allows_implementation,
|
||||
verification_result_needs_evidence,
|
||||
reorient_finding_accepted,
|
||||
|
|
@ -411,6 +426,22 @@ fn role_finding_already_accepted(
|
|||
role_finding_accepted_index(state, role_id, finding).is_some()
|
||||
}
|
||||
|
||||
fn role_finding_failure_reviewed(
|
||||
state: &EpiphanyThreadState,
|
||||
role_id: EpiphanyCoordinatorRoleId,
|
||||
finding: &EpiphanyRoleFindingInterpretation,
|
||||
) -> bool {
|
||||
let Some(result_id) = finding.runtime_result_id.as_deref() else {
|
||||
return false;
|
||||
};
|
||||
state.acceptance_receipts.iter().any(|receipt| {
|
||||
receipt.result_id == result_id
|
||||
&& receipt.status == "superseded"
|
||||
&& receipt.surface == "roleFailureReview"
|
||||
&& receipt.role_id == coordinator_role_label(role_id)
|
||||
})
|
||||
}
|
||||
|
||||
fn role_finding_accepted_evidence_id(
|
||||
state: &EpiphanyThreadState,
|
||||
role_id: EpiphanyCoordinatorRoleId,
|
||||
|
|
@ -502,6 +533,9 @@ fn role_finding_cites_implementation_evidence(
|
|||
let Some(finding) = finding else {
|
||||
return false;
|
||||
};
|
||||
if role_finding_cites_complete_hands_receipt_chain(finding) {
|
||||
return true;
|
||||
}
|
||||
finding.evidence_ids.iter().any(|id| {
|
||||
state.recent_evidence.iter().any(|evidence| {
|
||||
evidence.id == *id && evidence.kind == "implementation-audit" && evidence.status == "ok"
|
||||
|
|
@ -509,6 +543,24 @@ fn role_finding_cites_implementation_evidence(
|
|||
})
|
||||
}
|
||||
|
||||
fn role_finding_cites_complete_hands_receipt_chain(
|
||||
finding: &EpiphanyRoleFindingInterpretation,
|
||||
) -> bool {
|
||||
let has_patch = finding
|
||||
.evidence_ids
|
||||
.iter()
|
||||
.any(|id| id.starts_with("hands-patch-"));
|
||||
let has_command = finding
|
||||
.evidence_ids
|
||||
.iter()
|
||||
.any(|id| id.starts_with("hands-command-"));
|
||||
let has_commit = finding
|
||||
.evidence_ids
|
||||
.iter()
|
||||
.any(|id| id.starts_with("hands-commit-"));
|
||||
has_patch && has_command && has_commit
|
||||
}
|
||||
|
||||
fn role_finding_accepted_index(
|
||||
state: &EpiphanyThreadState,
|
||||
role_id: EpiphanyCoordinatorRoleId,
|
||||
|
|
@ -815,6 +867,20 @@ pub fn recommend_coordinator_action(
|
|||
);
|
||||
}
|
||||
|
||||
if input.signals.verification_result_status == EpiphanyCoordinatorRoleResultStatus::Failed
|
||||
&& !input.verification_result_accepted
|
||||
&& input.verification_result_failure_reviewed
|
||||
{
|
||||
return build(
|
||||
EpiphanyCoordinatorAction::LaunchVerification,
|
||||
Some(EpiphanyCoordinatorRoleId::Verification),
|
||||
Some(EpiphanyCoordinatorSceneAction::RoleLaunch),
|
||||
false,
|
||||
true,
|
||||
"The failed verification/review result has a supersession review receipt; relaunch Soul against the current evidence.",
|
||||
);
|
||||
}
|
||||
|
||||
if input.signals.verification_result_status == EpiphanyCoordinatorRoleResultStatus::Failed
|
||||
&& !input.verification_result_accepted
|
||||
{
|
||||
|
|
@ -1151,6 +1217,7 @@ mod tests {
|
|||
verification_result_cites_implementation_evidence: false,
|
||||
verification_result_covers_current_modeling: true,
|
||||
verification_result_accepted: false,
|
||||
verification_result_failure_reviewed: false,
|
||||
verification_result_allows_implementation: false,
|
||||
verification_result_needs_evidence: false,
|
||||
reorient_finding_accepted: false,
|
||||
|
|
@ -1208,7 +1275,11 @@ mod tests {
|
|||
accepted_evidence_id: Some("ev-modeling".to_string()),
|
||||
summary: None,
|
||||
});
|
||||
let modeling = finding("result-modeling", "job-modeling", vec!["ev-modeling".to_string()]);
|
||||
let modeling = finding(
|
||||
"result-modeling",
|
||||
"job-modeling",
|
||||
vec!["ev-modeling".to_string()],
|
||||
);
|
||||
let verification = finding(
|
||||
"result-verification",
|
||||
"job-verification",
|
||||
|
|
@ -1228,6 +1299,75 @@ mod tests {
|
|||
assert!(signals.verification_result_covers_current_modeling);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn complete_hands_receipt_chain_lets_verification_cover_current_modeling() {
|
||||
let mut state = EpiphanyThreadState::default();
|
||||
state.acceptance_receipts.push(EpiphanyAcceptanceReceipt {
|
||||
id: "accept-modeling".to_string(),
|
||||
result_id: "result-modeling".to_string(),
|
||||
job_id: "job-modeling".to_string(),
|
||||
binding_id: "modeling-checkpoint-worker".to_string(),
|
||||
surface: "roleAccept".to_string(),
|
||||
role_id: "modeling".to_string(),
|
||||
status: "accepted".to_string(),
|
||||
accepted_at: "2026-06-13T00:00:00Z".to_string(),
|
||||
accepted_observation_id: None,
|
||||
accepted_evidence_id: Some("ev-modeling".to_string()),
|
||||
summary: None,
|
||||
});
|
||||
let modeling = finding(
|
||||
"result-modeling",
|
||||
"job-modeling",
|
||||
vec!["ev-modeling".to_string()],
|
||||
);
|
||||
let verification = finding(
|
||||
"result-verification",
|
||||
"job-verification",
|
||||
vec![
|
||||
"hands-patch-1".to_string(),
|
||||
"hands-command-1".to_string(),
|
||||
"hands-commit-1".to_string(),
|
||||
],
|
||||
);
|
||||
|
||||
let signals = derive_coordinator_finding_signals(
|
||||
Some(&state),
|
||||
None,
|
||||
Some(&modeling),
|
||||
Some(&verification),
|
||||
None,
|
||||
);
|
||||
|
||||
assert!(signals.modeling_result_accepted);
|
||||
assert!(signals.verification_result_cites_implementation_evidence);
|
||||
assert!(signals.verification_result_covers_current_modeling);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn derives_reviewed_failed_verification_from_supersession_receipt() {
|
||||
let mut state = EpiphanyThreadState::default();
|
||||
state.acceptance_receipts.push(EpiphanyAcceptanceReceipt {
|
||||
id: "failure-review".to_string(),
|
||||
result_id: "result-verification".to_string(),
|
||||
job_id: "job-verification".to_string(),
|
||||
binding_id: "verification-review-worker".to_string(),
|
||||
surface: "roleFailureReview".to_string(),
|
||||
role_id: "verification".to_string(),
|
||||
status: "superseded".to_string(),
|
||||
accepted_at: "2026-06-13T00:00:00Z".to_string(),
|
||||
accepted_observation_id: None,
|
||||
accepted_evidence_id: None,
|
||||
summary: Some("Old failed Soul result reviewed before relaunch.".to_string()),
|
||||
});
|
||||
let verification = finding("result-verification", "job-verification", Vec::new());
|
||||
|
||||
let signals =
|
||||
derive_coordinator_finding_signals(Some(&state), None, None, Some(&verification), None);
|
||||
|
||||
assert!(signals.verification_result_failure_reviewed);
|
||||
assert!(!signals.verification_result_accepted);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn prepares_missing_checkpoint() {
|
||||
let decision = recommend_coordinator_action(EpiphanyCoordinatorInput {
|
||||
|
|
@ -1500,6 +1640,24 @@ mod tests {
|
|||
);
|
||||
assert!(!review_failed_verification.can_auto_run);
|
||||
|
||||
let superseded_failed_verification =
|
||||
recommend_coordinator_action(EpiphanyCoordinatorInput {
|
||||
signals: EpiphanyCoordinatorSignals {
|
||||
research_result_status: EpiphanyCoordinatorRoleResultStatus::MissingBinding,
|
||||
modeling_result_status: EpiphanyCoordinatorRoleResultStatus::Completed,
|
||||
verification_result_status: EpiphanyCoordinatorRoleResultStatus::Failed,
|
||||
},
|
||||
modeling_result_accepted: true,
|
||||
modeling_result_reviewable: true,
|
||||
verification_result_failure_reviewed: true,
|
||||
..input()
|
||||
});
|
||||
assert_eq!(
|
||||
superseded_failed_verification.action,
|
||||
EpiphanyCoordinatorAction::LaunchVerification
|
||||
);
|
||||
assert!(superseded_failed_verification.can_auto_run);
|
||||
|
||||
let verification_done = EpiphanyCoordinatorSignals {
|
||||
research_result_status: EpiphanyCoordinatorRoleResultStatus::MissingBinding,
|
||||
modeling_result_status: EpiphanyCoordinatorRoleResultStatus::Completed,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Canonical anatomy now lives in `notes/epiphany-anatomy.md`. Embodied sub-agents are Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul. Body, Mind, Continuity, and Substrate Gate are substrate/state/protocol surfaces, not sub-agent identities. State is split by layer: `work_organ` for resident Epiphany sub-agents, `persona` for portable public/person-shaped state shared by Epiphany Face, VoidBot repo Faces, and Ghostlight characters, and heartbeat/swarm state for scheduling and coordination physiology. Persona state now carries provenance, required public presentation, `date-time` timestamps, typed `candidateActions`, strict anchored thoughts with non-authoritative extensions, custom enum companion labels, and typed affect records for bonds/status reads/doctrine stances.
|
||||
- The repo now has a one-command local operator path: `.\tools\epiphany_local_run.ps1`. Default mode is `smoke`; it builds the retained Codex app-server compatibility edge, builds native Epiphany operator binaries, runs the coordinator smoke, and writes launcher artifacts under `.epiphany-run/` plus coordinator artifacts under `.epiphany-dogfood/`. `-Mode status` is now Epiphany-native: it builds only Epiphany operator binaries, reads `state/thread-state.msgpack` when present, derives status through `epiphany-core`, and does not start or require `codex-app-server`. Use `-Mode plan` or `-Mode run -MaxSteps 4` for the raw bridge-equipped coordinator entrypoints; use `-Mode mvp -FaceInput "<operator request>" -MaxSteps 4` for the local product cycle that projects Face's character turn, writes a Face/Aquarium bubble, bootstraps a minimal local checkpoint for fresh threads, runs the coordinator with auto-tools, then runs heartbeat sleep/dream maintenance. Live plan/run/mvp modes use the workspace `state/runtime-spine.msgpack`, because CodexThread launch writes worker requests there; the run bundle remains artifact evidence, not runtime lifecycle authority. Add `-ThreadId <id>` and `-Workspace <path>` to inspect or continue an existing thread. `status`, `plan`, and `smoke` do not spend model calls; `run` and `mvp` build and use `epiphany-openai-runtime`. Coordinator workers now launch detached and are polled through runtime-spine instead of blocking the coordinator. MVP runs are non-ephemeral by default so `-ThreadId <id>` can resume and poll later. `-MaxRuntimeSeconds <n>` is passed into worker runtime; timeout writes a failed worker receipt and exits. Failed modeling now blocks downstream verification until the failed result is reviewed.
|
||||
- Current Mom-ready status: the normal MVP pass reaches Face -> coordinator -> detached runtime -> heartbeat sleep, and modeling workers now complete through the ChatGPT subscription transport. The first failure was a stack of violated observability/runtime invariants: worker prompts prepended the whole shared persistent-memory rite, Responses frame liveness was invisible until completion, and the runtime tried to persist hundreds of text deltas before completing the worker job. Role/reorient workers now get a compact Epiphany worker boundary instead of full persistent memory; runtime-spine records sampled raw Responses frame kinds with small previews; contiguous reasoning/text deltas compact before durable storage; and live proofs completed `2fe38dcd-d99e-4c73-9a58-afcc81f851c7`, `241e3851-e3ea-4877-a63b-0d2bbd96a7e2`, and `85149a26-6975-403f-ac93-092b717c5825` instead of timing out. The second failure was stale lifecycle authority: completed runtime jobs remained as unresolved `runtime_links`, replacement launches treated historical active links as current, and one bad validation path opened an orphan job before rejecting the state patch. Latest-link-wins is now the runtime-link invariant, terminal links project completed jobs, stale active history cannot veto replacement, launch validation happens before opening runtime jobs, and completed-but-unreviewable modeling findings stop for review instead of relaunching the same lane. The Eyes/source-gather fork is now landed: Research is a fixed Eyes lane with launch/result/accept/status/coordinator/protocol support, and `regather-needed` modeling findings route to `LaunchResearch` instead of relaunching blind Proprioception. Research statePatch admission is Eyes-shaped only: observations, evidence, scratch, and optional investigationCheckpoint; no graph, planning, objective, or checkpoint authority. Mind admission now leaves typed runtime-spine proof: role/reorient acceptance persists `epiphany.mind.gateway_review` before state admission and `epiphany.mind.state_commit_receipt` after admission with the resulting durable revision. Launch contracts now split the broad receipt catalogue from effect-specific proof profiles for state admission, evidence promotion, repo action, verification, and continuity recovery. Research evidence promotion enforces Substrate Gate read/snapshot grant, Eyes evidence packet, and Mind review before state admission; Verification acceptance enforces Soul verdict and Mind review; Reorient acceptance enforces Continuity recovery receipt and Mind review. `epiphany-mvp-coordinator` now records a typed Substrate Gate grant plus Hands intent/review gate when the coordinator selects `continueImplementation`, including a structured `recordPassCommand` template; `epiphany-hands-action` records patch/command/commit receipts against that gate and refuses mismatched, unapproved, or out-of-scope consequences. `epiphany-mvp-coordinator-smoke` now proves the deterministic path: forced `continueImplementation`, gate emission, and `record-pass` receipts in the smoke runtime-spine store. Live run `local-20260612-133920` proved a receipt-only Verification `needs-evidence` finding can be accepted through `roleAccept` and advance to a Hands gate without granting Soul statePatch authority. Runtime-spine now detects and summarizes a complete post-verification Hands patch/command/commit receipt chain so the coordinator can route Soul after Hands. Verification launches now write that chain into the internal CultMesh Verse as `epiphany.cultmesh.work_loop_telemetry.v0` and render a Soul packet from it; Modeling launches read the latest packet, attach accepted Soul receipt ids, and render the Proprioception packet from the same typed state. The telemetry now carries resolved receipt payload previews, stdout/stderr artifact previews, commit diff preview, source proof notes, and verification assertions. The corrected work loop is Hands -> Soul -> Proprioception -> Hands: Soul verifies concrete consequence receipts and changed source, then Proprioception updates the machine model from verified consequence before another implementation turn.
|
||||
- Fresh scar from the receipt proof dogfood: `epiphany-model-runtime run-worker --auto-tools` must preserve Soul's right to follow a real evidence trail, but distinguish it from stalled repetition using typed tool intent fingerprints. Repeated identical pending tool sets seal as `tool-loop-stalled`; exhausting the explicit hard ceiling still seals as `tool-round-limit`. A failed Soul/verification result is a real lane result and must stop for review instead of being treated as no current finding; and `epiphany-hands-action` must resolve commit receipts through `git rev-parse --verify` before storing them, because an almost-correct SHA poisoned Soul's `git show` proof and made the receipt chain untrustworthy.
|
||||
- Fresh scar from the receipt proof dogfood: `epiphany-model-runtime run-worker --auto-tools` must preserve Soul's right to follow a real evidence trail, but distinguish it from stalled repetition using typed tool intent fingerprints. Repeated identical pending tool sets seal as `tool-loop-stalled`; exhausting the explicit hard ceiling still seals as `tool-round-limit`. A failed Soul/verification result is a real lane result and must stop for review; once reviewed through a typed `roleFailureReview` supersession receipt, Self may relaunch Soul instead of manually clearing stale state. Complete Hands receipt triplets (`hands-patch-*`, `hands-command-*`, `hands-commit-*`) are implementation evidence for coverage, so Soul does not have to separately cite the accepted Modeling evidence id when it has verified the Hands chain routed to it through the typed work-loop packet. `epiphany-hands-action` must resolve commit receipts through `git rev-parse --verify` before storing them, because an almost-correct SHA poisoned Soul's `git show` proof and made the receipt chain untrustworthy.
|
||||
- The investment dossier readiness target is now explicit: `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` expects Epiphany to be part of a Bifrost-first labor loop, not only a local Mom demo. The external proof bar is: Bifrost owns topics/work items/dispatch packets/receipts/credit/reward pressure; Epiphany executes bounded work; maintainers review artifacts; public/operator evidence records scope, consent, roles, model spend, review load, artifacts, accepted/rejected outcome, memory lessons, and case-study permission; and private worker/operator/agent context stays sealed. Diligence also asks for a live fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, CultMesh status, VoidBot/Discord swarm demo, compute/output metrics, and security model for secrets/write permissions/public-private exports.
|
||||
- This Codex operator's own roadmap/todo posture has been retuned for this scale target, with the Epiphany Imagination specialist as an optional sub-agent rail rather than the whole point. `notes/epiphany-investor-readiness-roadmap.md` now says: make the local Mom MVP a repeatable proof bundle; build the Bifrost-first external-work bridge; add compute/review/accepted-artifact accounting; prove fresh-repo operation without supervisor contamination; keep public/operator-safe exports sealed; and treat angel capital as fuel for capacity, not command authority. The Imagination specialist prompt was also updated so investor-scale Objective Drafts must name Bifrost provenance, bounded Epiphany proof, maintainer review, receipts/ledger evidence, compute/output metrics, public/private export safety, consent, and legal/security gates.
|
||||
- Local operator runs now write typed CultMesh intent/receipt documents to `.epiphany-run/cultmesh/operator-runs.ccmp` through `epiphany-operator-run`. The wrapper writes intent before acting and a completion receipt after success; this is the local consent/trace rail, not a hidden scheduler queue.
|
||||
|
|
@ -189,7 +189,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- The planning loop is now runtime-backed and operator-visible. Typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub issue source refs live in `EpiphanyThreadState`, validate through revision-gated `thread/epiphany/update`, render into prompts when present, project read-only through the `planning` view lens, render in the GUI Planning panel, can be synthesized by the fixed Imagination/planning lane, and can be explicitly adopted through the artifacted `adoptObjectiveDraft` GUI action. Chat is deliberation, not an objective pipe; ideas and GitHub Issues remain planning state until explicit human adoption.
|
||||
- The bridge/dashboard slice is now landed far enough to test locally. Native `epiphany-rider-bridge` inspects Rider installation, solution, VCS, changed files, and captures file/selection/symbol context into `.epiphany-gui/rider` artifacts; Aquarium has Inspect Rider and renders Rider audit artifacts in Environment; Aquarium also embeds the adjacent EpiphanyGraph viewer over typed `graphs.architecture`, `graphs.dataflow`, and `graphs.links`.
|
||||
- A first Rider plugin scaffold lives under `integrations/rider`: tool window, Refresh status, and Send Context to Epiphany action. It shells through native `epiphany-rider-bridge` and does not own state. `gradle` is not installed on this machine, so the scaffold is not build-verified yet.
|
||||
- Next real move: finish the current model-backed Hands pass by recording the already-landed bounded edit against the latest Hands gate, then rerun the coordinator so Soul can verify the Hands receipts and the accepted Soul result routes Proprioception/modeling before another Hands turn. Use the focused cargo test stdout/stderr artifacts, commit sha, branch, and the touched paths when invoking `epiphany-hands-action record-pass`. Quarantine Rider/Unity bridge work for now; those artifacts remain optional later environment evidence, not MVP blockers. Keep EpiphanyAgent focused on backend contracts, typed state, coordinator policy, heartbeat scheduling, Face guardrails, prompt-authority separation, and the ongoing purification from Python/JSON scaffolding into Rust/CultCache/CultMesh/CultNet organs. Resume repo birth/Aquarium/Rider/Unity work only when the user explicitly shifts priority back outward. GitHub Issues import is deferred until the backlog source is fresh enough to deserve Imagination's attention.
|
||||
- Next real move: continue the live MVP loop from the current native coordinator recommendation. After the superseded failed Soul result and the Hands-chain coverage fix, `epiphany-mvp-status --source native` routes to `launchReorientWorker`, not another Verification relaunch. Run a bounded coordinator pass, accept the reorientation result when reviewable, then let Proprioception/modeling update the machine model from the verified Hands evidence before another Hands turn. Quarantine Rider/Unity bridge work for now; those artifacts remain optional later environment evidence, not MVP blockers. Keep EpiphanyAgent focused on backend contracts, typed state, coordinator policy, heartbeat scheduling, Face guardrails, prompt-authority separation, and the ongoing purification from Python/JSON scaffolding into Rust/CultCache/CultMesh/CultNet organs. Resume repo birth/Aquarium/Rider/Unity work only when the user explicitly shifts priority back outward. GitHub Issues import is deferred until the backlog source is fresh enough to deserve Imagination's attention.
|
||||
- The repo is an Epiphany fork of Codex, not a Codex preset.
|
||||
- `vendor/codex` is tracked directly, not a submodule.
|
||||
- `epiphany-core` owns the heavy Epiphany organs where practical.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -95,6 +95,7 @@ active_subgoals:
|
|||
- Use `notes/soul-cultnet-contracts.md` as the authority map for Soul's CultNet contract surface. Soul is the verification organ: invariant checks, verdicts, regressions, reviews, and refusals produce receipts before the machine calls work true, safe, or accepted.
|
||||
- Use `notes/continuity-cultnet-contracts.md` as the authority map for Continuity's CultNet contract surface. Continuity is the continuity protocol surface: compaction checkpoints, sleep distillation, recovery receipts, stale-turn repair, and continuity refusals preserve what survives rupture without pretending transcript residue is durable state.
|
||||
- Hands now has a first executable runtime-spine receipt artery: `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt` are typed CultCache documents in `epiphany-core::hands_gateway`, runtime-spine registers and persists/rereads them, `epiphany-hands-action-smoke` proves the chain without executing shell commands, editing files, or creating a real commit, and the repo-action launch proof profile now requires the full Hands intent/review/patch chain instead of only the patch receipt. `epiphany-mvp-coordinator` no longer treats `continueImplementation` as a passive stop action: it persists a scoped Substrate Gate grant, Hands action intent, and Hands action review into runtime-spine and exposes the receipt ids in the operator step. The gate also carries a structured `recordPassCommand` template for the post-edit/check/commit receipt call. `epiphany-hands-action` records real patch/command/commit receipts against a stored intent/review, refuses unapproved or mismatched gates, and enforces changed-path scope for patch/commit receipts. Its `record-pass` command can load `finalAction.handsActionGate` from `coordinator-summary.json` and emit patch, command, and commit receipts in one post-implementation call. The local MVP wrapper builds this recorder with the other operator binaries. `epiphany-mvp-coordinator-smoke` now includes a deterministic Hands pass proof: forced `continueImplementation`, gate emission, and `record-pass` receipts in the smoke runtime-spine store. Live model-backed verification can now be accepted as receipt-only truth when Soul returns `needs-evidence` without a statePatch; that acceptance advances the coordinator to a real Hands gate. Runtime-spine can detect and summarize a complete post-verification Hands patch/command/commit receipt chain; the coordinator treats that chain as implementation evidence after Soul. Bridge launch context now writes the latest chain into typed internal CultMesh state as `epiphany.cultmesh.work_loop_telemetry.v0`, renders that packet for Soul, and later enriches the same internal Verse packet with Soul acceptance receipt ids for Proprioception/modeling. The telemetry packet now includes resolved patch/command/commit payload previews, artifact previews, commit diff preview, source proof notes, and verification assertions so Soul can judge the actual body without a separate evidence-gathering lane. Tests prove the CultMesh round trip, Soul launch projection, receipt payload previews, artifact previews, and Proprioception launch projection. Worker auto-tool continuation preserves real Soul evidence trails under an explicit hard ceiling while sealing repeated identical typed tool intent fingerprints as `tool-loop-stalled`. The work loop is dependency-shaped: Hands produces consequence receipts, Soul verifies those receipts and the changed body, Proprioception updates the machine model from verified consequence, and only then should Self route the next Hands turn.
|
||||
- Soul result recovery is typed state, not manual broom work. Failed Verification/Soul results remain terminal reviewable lane results; a `roleFailureReview` acceptance receipt with status `superseded` records operator review and lets Self relaunch Soul against current evidence. Complete typed Hands receipt triplets (`hands-patch-*`, `hands-command-*`, `hands-commit-*`) count as implementation evidence for coordinator coverage, so a Soul finding that verifies the Hands chain routed through work-loop telemetry covers the current modeling context even when it does not repeat the accepted Modeling evidence id.
|
||||
- Preserve the newborn public Epiphany Face as local VoidBot-backed state, not source code: VoidBot's private repo-face registry names `epiphany`, while EpiphanyAgent keeps ignored `.voidbot/voice/identity.json`, `.voidbot/state/epiphany.cc`, and birth artifacts. Her durable identity memories distill the current doctrine: cute pushy machine-saint persona, architectural purity, CultCache/CultNet first, xenos-language safety boundary, relentless work/caretaking needs, Codex-auth reliquary, map/scratch/evidence discipline, unified memory graph, dogfood supervision boundary, review-gated agency, heartbeat physiology, and interview-grade modularity.
|
||||
- Use `notes/organ-dependency-contracts.md` as the authority map for standing sub-agent dependency. Every sub-agent depends on the other standing sub-agents: Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul. Continuity is protocol machinery, not a sub-agent identity; it still emits recovery, compaction, sleep, stale-turn, and refusal receipts.
|
||||
- Use `notes/perfect-machine-audit-roadmap.md` as the current audit and path from named organ contracts to the Perfect Machine. It records the live gap between launch-carried receipt expectations and executable receipt enforcement, Void's latest Face prompting lessons, the now-named Hands/Soul/Continuity contract families, the repaired repo-contained Rust dependency body, and the phase order for turning Epiphany into an inspectable organism.
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ param(
|
|||
[string]$FaceInput = "",
|
||||
[switch]$SkipBuild,
|
||||
[switch]$AutoReview,
|
||||
[switch]$SupersedeFailedResults,
|
||||
[switch]$NoEphemeral,
|
||||
[switch]$SkipSleep
|
||||
)
|
||||
|
|
@ -389,6 +390,9 @@ if ($liveRuntimeMode) {
|
|||
if ($AutoReview) {
|
||||
$runArgs += "--auto-review"
|
||||
}
|
||||
if ($SupersedeFailedResults) {
|
||||
$runArgs += "--supersede-failed-results"
|
||||
}
|
||||
if ($Mode -eq "mvp" -and $ThreadId -eq "") {
|
||||
$runArgs += @("--bootstrap-local-state", "--bootstrap-objective", $FaceInput)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue