Queue selected proposal Modeling work

This commit is contained in:
Meta Vens 2026-08-08 01:58:24 +01:00
commit 16be92f430
5 changed files with 84 additions and 18 deletions

View file

@ -6214,9 +6214,11 @@ pub fn runtime_repo_frontier_planning_eligibility(
})
}
/// Returns the single selected user proposal that has not yet been claimed by
/// a Modeling launch. Selection is already an explicit Self authority; this
/// projection prevents the CLI from becoming a second routing owner.
/// Returns the oldest selected proposal that has not yet been claimed by a
/// Modeling launch. Selection is already explicit Self authority; several
/// Imagination options may therefore form a queue without asking this
/// projection to prefer one proposal over another. Stable request order owns
/// scheduling only and prevents the CLI from becoming a second routing owner.
pub fn runtime_pending_repo_frontier_proposal_modeling_request(
runtime_store: impl AsRef<Path>,
) -> Result<Option<RepoFrontierProposalModelingRequest>> {
@ -6245,12 +6247,7 @@ pub fn runtime_pending_repo_frontier_proposal_modeling_request(
.cmp(&b.selected_at)
.then_with(|| a.request_id.cmp(&b.request_id))
});
if pending.len() > 1 {
return Err(anyhow!(
"Self found multiple unclaimed proposal Modeling requests"
));
}
Ok(pending.pop())
Ok(pending.into_iter().next())
}
/// Read-only Self projection over the existing typed frontier-planning chain.
@ -10847,6 +10844,50 @@ pub(crate) mod tests {
Ok(())
}
#[test]
fn pending_proposal_modeling_requests_are_a_stable_execution_queue() -> Result<()> {
let root = tempdir()?;
let (store, proposal_id) = proposal_selection_fixture(root.path(), "queued")?;
let first = select_repo_frontier_work_proposal_for_modeling(
&store,
&proposal_id,
"2026-07-13T02:02:00Z",
)?;
let mut second = first.clone();
second.request_id = "repo-frontier-proposal-modeling-queued-second".into();
second.proposal_id = "queued-second-proposal".into();
second.proposal_payload_sha256 = "22".repeat(32);
second.selected_at = "2026-07-13T02:03:00Z".into();
validate_repo_frontier_proposal_modeling_request(&second)?;
overwrite_test_entry(&store, &second.request_id, &second)?;
assert_eq!(
runtime_pending_repo_frontier_proposal_modeling_request(&store)?,
Some(first.clone())
);
let first_launch = RepoFrontierProposalModelingLaunchBinding {
schema_version: REPO_FRONTIER_PROPOSAL_MODELING_LAUNCH_BINDING_SCHEMA_VERSION.into(),
binding_record_id: "queued-first-launch".into(),
proposal_modeling_request_id: first.request_id,
proposal_id: first.proposal_id,
proposal_payload_sha256: first.proposal_payload_sha256,
job_id: "queued-first-job".into(),
binding_id: "modeling-checkpoint-worker".into(),
runtime_id: first.runtime_id,
thread_id: first.thread_id,
launched_at: "2026-07-13T02:04:00Z".into(),
worker_launch_document_sha256: "33".repeat(32),
contract: REPO_FRONTIER_PROPOSAL_MODELING_LAUNCH_BINDING_CONTRACT.into(),
};
overwrite_test_entry(&store, &first_launch.binding_record_id, &first_launch)?;
assert_eq!(
runtime_pending_repo_frontier_proposal_modeling_request(&store)?,
Some(second)
);
Ok(())
}
#[test]
fn corrupted_proposal_or_selection_is_fail_closed_without_authority_mutation() -> Result<()> {
let root = tempdir()?;

View file

@ -1266,6 +1266,15 @@ The prepared argv is then the single source for child launch and lease thread
identity. Only plain operator objectives use the resident runtime thread.
`epiphany-swarm` no longer reconstructs a fixed thread after preparation.
An Imagination direction result may contain several option drafts. Autonomous
promotion gives every option its own proposal, provenance binding, and explicit
proposal-Modeling request. These are selected work items, not candidates still
awaiting preference. `runtime_pending_repo_frontier_proposal_modeling_request`
therefore schedules the oldest unclaimed request by `selected_at`, then stable
request ID. A launch binding removes only its exact request from the pending
queue, exposing the next. Self owns queue order; it does not silently discard
or rank Imagination's already-selected options.
## Exact release build cache ownership
Release construction has two serialized cache authorities. The graph cache is

View file

@ -14,6 +14,21 @@ source plus a commit-local target was terminated after 12.8 minutes. Rebuild
the publisher itself after changing release-cache machinery; otherwise the
benchmark measures an obsolete body.
Fresh runtime `live-20260808-v35-request-thread` published that release and ran
under persistent swarm supervision. The resident child completed on exact
thread `shakedown-v31-rupture-closure-implementation-r1`, proving the typed
request owns the launch and lease across the real process boundary. The
accepted Imagination direction result contained several options. Autonomous
promotion correctly persisted each option and its exact provenance as selected
proposal-Modeling work, but status then failed because the pending projection
required exactly one unclaimed request.
The current worktree treats selected proposal-Modeling requests as an
oldest-first execution queue. A launch binding consumes only its exact request
and exposes the next. The focused queue test proves both ordering and
single-request consumption; both native status tests also pass. v35 is sealed
at the cardinality failure boundary.
Fresh runtime `F:\Projects\.epiphany-runtime\shakedown\live-20260808-v31`
accepted initial and proposal-bound Modeling for thread
`shakedown-v31-rupture-closure-implementation-r1`. The generic user proposal
@ -83,11 +98,12 @@ thread.
## Next action
1. Commit and push this build-evidence/Mind refresh.
2. Preserve v31 through v34 as failure evidence; clone the recovered boundary
into a new replay runtime using an approved `.epiphany-dogfood` artifact root.
3. Publish exact `8a9439ca`, re-run heartbeat selection and resident launch,
including exact retry after one deliberate failed launch.
1. Commit, push, package, and authenticate the proposal-Modeling queue repair.
2. Preserve v31 through v35 as failure evidence; clone v35 into v36 and publish
the exact successor release.
3. Run persistent resident supervision from an approved `.epiphany-dogfood`
root and prove the selected Imagination options launch Modeling one at a
time in stable request order.
4. In a fresh runtime, re-run pressure ingestion twice and resident launch.
Prove autonomous direction consideration, proposal-bound Modeling,
canonical Imagination, dedicated Mind adoption, and exact Hands authority.

Binary file not shown.

View file

@ -34,9 +34,9 @@ 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. Exact pushed 8a9439ca packages 21 independently authenticated binaries as sha256-39e12132f829fbb782cc4ba33308e44c641f6bd4a1136850ce9246b1179c3cbd with witness sha256-d57bdeb6e6b14cc3b7500d461fa7ea26455d319b4f1d904cda2fa6e0317407be. Its request-owned resident thread repair passes all 16 resident-Self tests and both swarm binary tests but still needs live v35 proof. The active publisher now uses the stable exact-source/graph cache: the core-change Cargo pass took 6m46s and an identical warm pass took 1.48s (18.669s including package verification/copy). Persona consequence, retention, endurance, and Linux/Yggdrasil cognition remain open.
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact 8a9439ca is authenticated as sha256-39e12132f829fbb782cc4ba33308e44c641f6bd4a1136850ce9246b1179c3cbd with witness sha256-d57bdeb6e6b14cc3b7500d461fa7ea26455d319b4f1d904cda2fa6e0317407be. v35 proved its resident launch preserved the typed request's original implementation thread and completed autonomous Imagination. Status then exposed multiple unclaimed proposal-Modeling requests because one direction result produced several explicitly selected options while the pending projection incorrectly required global singularity. The current worktree schedules those selected requests as a stable oldest-first queue and consumes them by exact launch binding. Focused queue and status tests pass. Persona consequence, retention, endurance, and Linux/Yggdrasil cognition remain open.
operational_state:
local_worktree: clean_at_pushed_8a9439ca
local_worktree: proposal_modeling_queue_verified_pending_commit
operator_wireguard: restored
yggdrasil: canonical_small_public_crossing_body
starfire: temporary_epiphany_cognition_body
@ -52,8 +52,8 @@ current_status:
bifrost_feedback_crossing: authenticated_transport_only
yggdrasil_epiphany_services: absent
resident_physiology: heartbeat_and_self_running
unresolved_authority: v31's generic user proposal produced a lawful direct Hands gate, but the active objective requires the autonomous Imagination-origin path and dedicated Mind adoption, so that gate remains inert. v32 proved producer replay; v33 proved cancellation requeue; v34 proved attempt-qualified retry and then falsified fixed resident thread substitution against the typed request. The exact packaged request-owned thread repair has not yet been proven live. Canonical Imagination, dedicated Mind adoption, exact Hands binding, bounded-worker failure/restart/closure, Persona consequence, retention, endurance, and Linux/Yggdrasil cognition remain open.
next_action: Publish exact 8a9439ca into a fresh v35 clone of the original v31 boundary and prove the retried direction request reaches Imagination on its exact implementation thread. Then continue autonomous proposal Modeling, canonical Imagination, dedicated Mind, Hands, and bounded-worker failure/restart/Soul closure.
unresolved_authority: v31's generic user proposal produced a lawful direct Hands gate, but the active objective requires the autonomous Imagination-origin path and dedicated Mind adoption, so that gate remains inert. v35 proved request-owned Imagination continuation, then exposed that multi-option autonomous promotion and singular pending-request projection disagreed about queue cardinality. The queue repair is locally verified but not packaged/live. Canonical proposal Modeling, dedicated Mind adoption, exact Hands binding, bounded-worker failure/restart/closure, Persona consequence, retention, endurance, and Linux/Yggdrasil cognition remain open.
next_action: Commit, package, and authenticate the proposal-Modeling queue repair; clone sealed v35 into v36 and prove each selected Imagination option receives one Modeling launch in stable order. Then continue canonical Imagination planning, dedicated Mind, Hands, and bounded-worker failure/restart/Soul closure.
active_subgoals:
- Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.