PHASE_PRODUCE_MANA_ABSENCE_LEGACY · branch loop/it9 · base 4ec0b9ef1 · candidate · took 3h 34mMechanism. At game/replacement.rs::replace_event, return the unchanged ProduceMana event when no object or floating definition can replace it. Maintain a conservative object-definition presence summary inside ObjectStore: mutable access records touched IDs, the next query refreshes those objects, and bulk mutable iteration requires a full refresh. Initial and deserialized stores are unknown. Check pending_damage_replacements live on every query. This avoids broad replacement-index preparation without trusting state_revision or layer cleanliness.
Evidence. Memo xn5.67, L4904: prepare_replacement_index_for_pipeline is 4.3% inclusive process CPU, with mana production its leading caller. Memo xn5.69, L5379: active scan/staging costs 322.749/309.324 ms at 4,000 actions; complete builds cost 435.396/415.626 ms. Affordability attribution, L5242, observed no active ProduceMana/Tap replacements on either reference seed. Already overlaps open edh-play-xn5.78, but replaces its proposed layer-refreshed bit with mutation tracking. Cache refresh frequency remains unmeasured.
Counter and kill threshold. Existing replacement_index_build_ns and replacement_index_active_scan_ns bound the affected family; xn5.67 supplies its 4.3% CPU ceiling. Expected instruction reduction: 1–2% per action at 4,000 actions, as a prediction rather than a measured result. Mutation bookkeeping and refreshes may reduce that benefit; the loop's existing tiers decide.
Invariant. Absence is a superset proof: inspect all object-carried ProduceMana definitions regardless of zone, phase status or condition, and all floating definitions. Every ObjectStore mutation surface must invalidate the affected contribution before exposing mutable access. Preserve record_proposed_event and pipeline cleanup. Permanent differential regressions compare production results, emitted events, pip IDs and serialized state across direct same-revision writes, IndexMut, insertion/removal, bulk iteration, face-up changes, floating replacements, deserialization and divergent forks.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 9m 29s | 0 | 2,044,926 / 10,578 | |
| executor | codex / gpt-6-luna | 1h 44m | 0 | 28,847,980 / 36,168 | |
| reviewer | codex / gpt-6.1-sol | 1m 19s | 0 | 24,934 / 1,323 | |
| executor | codex / gpt-6-luna | 1h 38m | 0 | 18,310,525 / 33,850 | |
| reviewer | codex / gpt-6.1-sol | 1m 10s | 0 | 25,290 / 1,225 |
| Gate | Result | Exit | Detail |
|---|
Status: deferred (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PRODUCE_MANA_ABSENCE_LEGACY, mechanism class compute. Mechanism: At game/replacement.rs::replace_event, return the unchanged ProduceMana event when no object or floating definition can replace it. Maintain a conservative object-definition presence summary inside ObjectStore: mutable access records touched IDs, the next query refreshes those objects, and bulk mutable iteration requires a full refresh. Initial and deserialized stores are unknown. Check pending_damage_replacements live on every query. This avoids broad replacement-index preparation without trusting state_revision or layer cleanliness. Invariant: Absence is a superset proof: inspect all object-carried ProduceMana definitions regardless of zone, phase status or condition, and all floating definitions. Every ObjectStore mutation surface must invalidate the affected contribution before exposing mutable access. Preserve record_proposed_event and pipeline cleanup. Permanent differential regressions compare production results, emitted events, pip IDs and serialized state across direct same-revision writes, IndexMut, insertion/removal, bulk iteration, face-up changes, floating replacements, deserialization and divergent forks.
| gate | passed | detail |
|---|
Wall-clock confirmation on the workstation is required before this counts as a speedup; instruction count is a screen, not a time prediction.
generated 2026-11-28 18:17:11 · read-only · refreshes every 30 s