From 5f09d35aa50061f623bd52eb1e526f13c3f35f7e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 8 Aug 2026 03:00:49 +0100 Subject: [PATCH] Launch proposal Modeling from typed startup --- .../src/bin/epiphany-mvp-coordinator.rs | 49 ++++++++++++++++++ notes/epiphany-current-algorithmic-map.md | 11 ++++ notes/fresh-workspace-handoff.md | 16 ++++++ state/ledgers.msgpack | Bin 565991 -> 566677 bytes state/map.yaml | 8 +-- 5 files changed, 80 insertions(+), 4 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs index d322da8f..d1c1b0bc 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs @@ -478,6 +478,55 @@ fn run_coordinator(args: &Args) -> Result { })); } + if let Some(request_id) = args.proposal_modeling_request_id.as_deref() { + if args.objective.is_some() + || args.imagination_consideration_request_id.is_some() + || args + .admitted_model_direction_consideration_request_id + .is_some() + { + return Err(anyhow!( + "typed proposal Modeling requires exclusive objective-free intake" + )); + } + let state = epiphany_core::EpiphanyCoordinatorService::new(&runtime_store) + .state()? + .ok_or_else(|| anyhow!("proposal Modeling launch requires coordinator state"))?; + let launched = launch_role( + &runtime_store, + &local_verse_store, + &thread_id, + "modeling", + Some(state.revision as i64), + args.max_runtime_seconds, + Some(request_id), + )?; + let worker_job_id = worker_job_id_from_launch(&launched)?; + let worker_run = launch_worker_runtime_detached( + &model_runtime_bin, + &tool_adapter_bin, + &args.model_provider, + &runtime_store, + &codex_home, + &mcp_config, + &cwd, + &worker_job_id, + "modeling", + 0, + &artifact_dir, + args.max_runtime_seconds, + args.auto_tools, + )?; + startup_events.push(json!({ + "type": "proposalModelingLaunch", + "requestId": request_id, + "runtimeJobId": worker_job_id, + "launch": status_cli::sanitize_for_operator(launched), + "worker": worker_run, + "authority": "proposal-modeling-only" + })); + } + let mut manual_regather_approval = args.approve_manual_regather; for index in 0..args.max_steps { let status = collect_coordinator_status(&runtime_store, &thread_id)?; diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 7600ea3f..c3fd9312 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -1291,6 +1291,17 @@ class and the cancellation contract must evolve together; otherwise the runtime errors before the requeue CAS and leaves physiology split across an active resident lease and an uncompleted heartbeat turn. +Typed resident launches run the bounded coordinator in planning mode so an +ordinary operator objective cannot silently become actuation. Request-owned +lanes that already carry their own authority therefore act through exclusive +startup handlers before the generic planning loop: Imagination consideration, +admitted model-direction consideration, and proposal-bound Modeling each load +their exact request and launch only that request's worker. Proposal Modeling +must not depend on the later generic `launchModeling` action loop; planning mode +intentionally stops before that loop actuates. Its startup handler creates the +exact `RepoFrontierProposalModelingLaunchBinding` that resident fulfillment +then verifies. + ## Exact release build cache ownership Release construction has two serialized cache authorities. The graph cache is diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index f9690856..d577c99f 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1,5 +1,21 @@ # Fresh Workspace Handoff +Exact `58f42b6a` packages as +`sha256-562aeb2bf246e27f2b63ed094633b63daff7ca07d5eb5f14dfcb12d47fca6daf` +with witness +`sha256-8d5ad5e2b734679c8b788445f6ad91d31468cc56d001f3d975fa34f373faf0c2`; +its stable-cache core build took 6m50s. Fresh v39 proved `unfulfilled` +cancellation and heartbeat retry repeatedly preserve the exact proposal +pressure. It also exposed why no retry could succeed: resident coordinators run +in safe `plan` mode, and proposal Modeling alone lacked a typed startup launch +handler. Operator-safe coordinator evidence showed `launchModeling`, +`canAutoRun=true`, one planning step, and zero launch events. Raising the step +budget from four to eight did not change the result and is rejected as a fix. +The current worktree gives proposal Modeling the same exclusive objective-free +startup ownership already used by typed Imagination and direction requests. +All 15 coordinator binary tests pass. v39 is sealed at this missing-actuator +boundary. + Exact pushed `88a38987` packages as `sha256-76ed147f0ce86f26bab210534e623ed0a67030c2d8a03a7ad7e5226ffa934059` with witness diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 4f4d4e1bd8b790a020e00677096eac107ac5f028..b3641ebda35b4d5342c23987c6048b1fc9ec86f7 100644 GIT binary patch delta 718 zcmZXRzityj5XLz}aD+rdkrItUo3k9_L`e`uij)z^qJeI1ch0wDy>s3_wnO8Bf)|LD zmI6^DQ6L@w8s2~x;5C@L7z>1Sqg(CneBZaf`Sopg^<($bPIiBA((j)Php)ch+Wz1_ zKgy6$FRRY>=>3DMuY>;JFz+A9_oCnETu*UpXZf*2 zV@dza&dwI7A{-o*!$EO~FnfFqwdWaWNUlt_G*<34TQvu?5R-QSF!IDGwDuA_O%o*o zbXwMm%#5J)6e_3)eJltgj6J#-dho0!FReab1}q5_v)9HoJ3up|$ti+R@mvfoCa0=% z)?|$vgF<(jB9D@L8ojv9O{{<&L2c1Nh*Y-$-jL^Yt0