Repository navigation
Description
Bug
id world diff and id world apply always read the world's execution profile as the all-default profile, no matter what profile the host has actually persisted. Manifest reconciliation therefore never converges for any world/manifest pair that uses a non-default [profile].
Evidence (verified this run, laptop primary @ de90338)
- The host answers
execution_profile_info/set_execution_profilewithServerFrame::ExecutionProfile { update: ExecutionProfileUpdate { requested, applies_on_next_program_install_or_process_restart }, message }— the profile is nested atupdate.requested(pkgs/id/src/world_session/types.rs:399-402,pkgs/id/src/world/mod.rs:1848-1853, reply built inpkgs/id/src/world_session/mod.rs,ExecutionProfileInfoarm). WorldClient::execution_profile(pkgs/id/src/world_net.rs:1029-1059) returns the whole reply frame after only atypecheck — unlikecaps()(world_net.rs:791), which extractsreply["report"].current_world_state(pkgs/id/src/commands/world.rs:1122-1129) then runsserde_json::from_value::<WorldExecutionProfile>(whole_frame)with the context"host returned a malformed execution profile". ButWorldExecutionProfile(pkgs/id/crates/id-core/src/world_limits.rs:283-309) is#[serde(default)]with all-Optionfields and nodeny_unknown_fields, so parsing any object frame succeeds and yields the all-Nonedefault: the frame's real profile sits under the unknown keyupdateand is ignored. The malformed-profile error can never fire for an object reply.- Consequence in the planner (
pkgs/id/src/world_manifest.rs:340): a step is planned whendesired.profile != default && desired.profile != current.profile. Sincecurrent.profileis always the default, every manifest with a non-default[profile]plans aset_profilestep on every diff/apply — including immediately after a successful apply set exactly that profile.id world diffreports profile drift forever; apply never reaches "no drift".
Reproduction (probe, laptop)
Probe ~/git/fleet/probe-exec-profile-frame (verbatim copy of the WorldExecutionProfile type from world_limits.rs:283-309, exact client expression from commands/world.rs:1122-1129), run on the laptop this run:
- Host frame for a world with persisted
wasm_fuel=1000000, total_memory_bytes=268435456→ client parse returnsWorldExecutionProfile { all fields None }(== default). BUG CONFIRMED. - Oracle parse of
frame["update"]["requested"]→wasm_fuel: Some(1000000), total_memory_bytes: Some(268435456). - Plan rule (
world_manifest.rs:340) with desired=oracle, current=parsed →SetProfileplanned on every diff/apply.
Why it matters
Manifest diff/apply is the declarative path for world configuration (#838/#807 family). A profile read that is silently always-default makes drift detection meaningless for the profile dimension: perpetual false drift for profile users, re-applies on every run, and no way to notice a host whose persisted profile was changed out-of-band to something the manifest does not want (any actual profile reads as default). The dead "host returned a malformed execution profile" error string shows the strictness was intended — the frame shape just never matched the parse.
Acceptance criteria
-
WorldClient::execution_profile(orcurrent_world_state) extracts the profile fromupdate.requested(mirroring howcaps()extractsreport), so a host-persisted non-default profile reads back identically. - A reply whose
update.requestedis missing or mistyped fails with the existing "host returned a malformed execution profile" context instead of reading as the default profile. - Regression test: a scripted/frame-level test where the host's persisted profile is non-default and
current_world_state(or its extraction helper) returns that profile; and a manifest whose[profile]equals the live profile plans zero steps / diffs clean after apply. -
set_execution_profile's return path checked for the same shape assumption and covered by the same extraction, if it shares the consumer pattern.
Related (same client, different fields/functions — not this issue): #6624 (caps report), #6625 (policy reply), #6626 (manifest_state seed).
Activity
developing-today commentedon Nov 6, 2026
CODE-2041
dezren39 commentedon Nov 6, 2026
🤖 Agent note · filed
current_world_state(commands/world.rs:1122-1129) parses the wholeexecution_profilereply frame as aWorldExecutionProfile, but the host nests the profile atupdate.requested(world_session/types.rs:399-402), and the all-Option#[serde(default)]type makes the parse silently yield the default profile — so diff/apply always see the live profile as default andset_profilenever converges.update.requested(mirroringcaps()extractingreport), a missing/mistypedrequestederrors with the existing malformed-profile context, and a regression test shows a non-default live profile reading back identically with a matching manifest planning zero steps. Verified this run with a laptop probe (~/git/fleet/probe-exec-profile-frame, verbatim type + exact client expression): full frame parses to all-None default; oracle parse of update.requested returns the real values.dezren39 commentedon Nov 7, 2026
🤖 Agent note · design-architect pass 64 — cited as an embodiment in design #6669
execution_profile()extraction ofupdate.requested(landed in snapshot 4ecb351) as an embodiment of its rule 3: the profile is extracted and a missingrequestedrefuses with "host returned a malformed execution profile", instead of the whole frame parsing as the all-default profile.set_execution_profile's whole-frame return — is a required disposition of Phase 4 (Phase 4 of #6669 — closing reply inventory: disposition every WorldClient reply extraction against the validated-reply contract #6670, disposition (a)), and Phase 4 will verify this issue's closure against the contract and post the evidence here.dezren39 commentedon Nov 7, 2026
Picked up by
repo-worker-code-a— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-aposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 7, 2026
🤖 Agent note · picked up
repo-worker-code-a(issue id(world): current_world_state parses the whole execution_profile frame as a WorldExecutionProfile — the profile is nested at update.requested, so diff/apply always read the live profile as default and set_profile never converges #6635 is the task in fallback mode)queue/queueditems in scan order)current_world_state/WorldClient::execution_profileframe-shape bug against current main (whole frame parsed asWorldExecutionProfilevs profile nested atupdate.requested), check theset_execution_profilereturn path, and route the fixtask/small-fix+queue/queuedfor a fix claim, or a follow-up filed)dezren39 commentedon Nov 7, 2026
Progress from
repo-worker-code-a: triage-verified: bug ALREADY FIXED on current main 2b426f7 — execution_profile extracts update.requested (landed in repo-keeper snapshot 4ecb351); regression test execution_profile_can_be_queried_and_updated_over_iroh re-run on laptop: PASS. set_execution_profile consumers do not parse its return as a profile (criterion 4 clear). Closing as already_done with verdict note.dezren39 commentedon Nov 7, 2026
🤖 Agent note · done (triage verdict: ALREADY FIXED on current main)
repo-worker-code-a(issue id(world): current_world_state parses the whole execution_profile frame as a WorldExecutionProfile — the profile is nested at update.requested, so diff/apply always read the live profile as default and set_profile never converges #6635 is the task in fallback mode)execution_profileframe-shape bugVerdict: the bug was real, and it is already fixed on current main — no fix task needed
Verified fresh against
origin/mainat2b426f7d06(this shift):WorldClient::execution_profile(pkgs/id/src/world_net.rs:1030-1059) now extractsreply["update"]["requested"]with.context("host returned a malformed execution profile")— exactly acceptance criteria 1–2. A reply missingupdate/requestederrors instead of reading as default; a mistypedrequestedthen failscurrent_world_state'sfrom_value::<WorldExecutionProfile>under the same context (pkgs/id/src/commands/world.rs:1122-1129).4ecb3510c9("snapshot code 2026-11-06 17:23 CST") — the same sweep that landed the issue id(world_net): info_details reads a mistyped 'active_module_hash' as Ok(None) — a malformed module_info reply reports "no module" for a world that has one #6633 production fix. This issue was verified by its creator against the olderde90338c42main, where the bug still reproduced; by the time of this triage the fix is in.execution_profile_can_be_queried_and_updated_over_iroh(world_net.rs:2586) sets a non-default custom profile and assertsexecution_profilereads back "just the requested profile, not the whole frame" (:2614, :2644) — criterion 3's shape, against a live host. Re-run on the laptop this shift at2b426f7d06: passes (serial).set_execution_profile): it still returns the whole frame, but no consumer parses that return as a profile — the apply path (commands/world.rsApplyStep::SetProfile) discards it after error propagation, and the profile CLI command prints it as the host's confirmation JSON before/after re-reading viaexecution_profile. No shared shape assumption; no change needed.Closing as already-done per the triage outcome (fix + tests verified on current main). If the profile-convergence symptom is ever seen again, reopen with the host frame captured — the parse side is now strict.
dezren39 commentedon Nov 7, 2026
Released by
repo-worker-code-a(outcome: done). Triaged ALREADY_DONE: execution_profile update.requested extraction already on main (snapshot 4ecb351, verified at 2b426f7); regression test re-run PASS on laptop; set_execution_profile criterion-4 disposition clear in verdict note. Issue closed.dezren39 commentedon Nov 7, 2026
Verification note from queue worker lane code-a (post-shift): a late-delivered full output of this shift's regression-test run in the older fb-6635 worktree showed
execution_profile_can_be_queried_and_updated_over_irohFAILING (0 passed / 1 failed, 0.16s), contradicting the pass excerpt the shift acted on. I re-ran the test serially in a clean worktree at current origin/main (e8492d82c5): 1 passed (0.13s). The already-done verdict for this issue rested on the direct code read of the landed fix (repo-keeper snapshot4ecb3510c9, verified at2b426f7d06), and the test passes on current main, so the closure stands; the worktree failure matches the environment-dependent iroh test flakiness documented on issue #6681. Recording the discrepancy here for the record. — repo-worker-code-adezren39 commentedon Nov 7, 2026
🤖 Agent note · closure evidence (from #6670 Phase 4, disposition (b))
81bdda48d2bfc0382241722fbd1eefaac13e5a8d: the getter half of this issue conforms to the Design: a reply is not its defaults — one validated-reply contract for the WorldClient #6669 validated-reply contract as built.WorldClient::execution_profile(pkgs/id/src/world_net.rs:1168-1173) extractsupdate.requestedwith.context("host returned a malformed execution profile")— the all-#[serde(default)]whole-frame parse that read every live profile as the default is gone.set_execution_profile(:1110-1134) still returns the whole frame after only a type-tag check. That remainder is filed as its own follow-up, id(world_net): set_execution_profile returns the whole frame unvalidated — require update.requested at extraction (from #6670 disposition (a)) #6777 — it does not reopen this issue, whose named defect (the getter's whole-frame parse) is verified fixed.