7.4 KiB
M27 Battle Result Controller Pilot
Status
- Plan:
M27_BATTLE_RESULT_CONTROLLER_PILOT - Status:
COMPLETE - Activated: 2026-08-25
- Baseline:
653d040(M26_BATTLE_LIVE_CONTROLLER_PILOT_COMPLETE) - Owner authorization: the Owner requested continuation after M26 closure and authorized the next bounded first-cycle architecture seam.
Objective
Move the OUT-001 Battle Result view-data boundary onto an explicit, UI-independent controller while preserving the accepted result composition, causal diagnosis, knockout identity, reward/recovery continuation and duplicate-safe settlement semantics. This is a structural Controller/View migration, not an outcome, reward or visual redesign.
Player/System Stopping Point
- Battle Result opens only from the authoritative settled result receipt and keeps the same outcome, decisive-event, Coin/XP, knockout and causal-chain facts;
- the controller owns copied Company/Contract facts, battle/result identity, decisive event, causal events, reward draft, knockout identities, diagnosis state and Continue eligibility;
- the existing OUT-001 View keeps its accepted composition, node names, hit areas, focus order, localization helpers, tooltips and callbacks;
BattleServicesettlement, reward, knockout review and recovery services remain the only transaction and route authorities;- no accepted page, route, visual, input, economy, Save or Battle rule changes.
Architecture Contract
BattleService settled result snapshot
-> BattleResultPageController (view-data assembly)
-> BattleResultViewData (deep-copied snapshot)
-> Existing Godot OUT-001 View composition
-> Existing diagnosis / knockout / reward / recovery commands
The controller receives Company, Battle, result, diagnosis-open and notice
facts. It validates the settled-result boundary, deep-copies returned facts
and exposes only view state and command eligibility. It never loads, saves or
mutates persistence and never accesses Godot nodes, current_screen, facade
or Entry Shell globals. It does not duplicate settlement, reward, recovery or
route rules.
Ordered Steps
M27-A — Plan and boundary (COMPLETE)
- Record the OUT-001 stopping point, invariants and forbidden scope.
- Inventory settled-result, decisive-event, diagnosis, knockout, reward-draft and recovery branches before product code.
- Commit and push this activation boundary before Result product code.
Closure: the plan/checkpoint activation is pushed at source 26fa8b7. The
settled-result, diagnosis, knockout, reward-draft, recovery and duplicate-safe
receipt invariants are now frozen for the additive controller step.
M27-B — Additive controller (COMPLETE)
Add runtime/entry/battle_result_page_controller.gd and a focused test
covering:
- missing/invalid Company, settled Battle and result boundaries;
- copied result, decisive event, causal events, Coin/XP, reward draft and knockout identities;
- diagnosis-open/closed and Continue eligibility;
- deep-copy isolation and duplicate-safe receipt identity.
Closure: source d26a03e adds ABGBattleResultPageController and the focused
ABG_M27_BATTLE_RESULT_CONTROLLER_OK test. The controller validates the
settled result boundary and one matching settlement receipt, copies Company,
Contract, Battle, result, decisive event, causal journal, Coin/XP, knockout
identity and reward draft facts, classifies diagnosis state and Continue
targets, and has no Godot-node, persistence or BattleService transaction
dependency. The source-bound focused attempt is
/private/tmp/aetherbound-guild-test-evidence/m27-battle-result-controller-focused/20260825T103930Z-89285;
the marker appears exactly once, strict diagnostics are 0, and the owned
workspace/process cleanup passes.
M27-C — View integration (COMPLETE)
- Inject one controller through Entry Shell/AppServices.
- Make OUT-001 rendering and summary/diagnosis facts consume controller output.
- Preserve the accepted composition, node names, focus, touch targets, localization and callbacks.
- Keep all BattleService settlement/reward/recovery calls unchanged.
Closure: source a3f31e2 injects ABGBattleResultPageController through
Entry Shell/AppServices, refreshes copied BattleResultViewData at the Result
entry boundary and makes the accepted OUT-001 outcome, decisive event, Coin/XP,
knockout, causal chain, diagnosis and Continue route consume controller-owned
facts. Existing Result/Knockout/Reward/Recovery composition, node names,
focus, touch targets, localization and BattleService calls remain unchanged.
The source-bound DEV-5 candidate suite passes the Result/Recovery route,
controller boundary assertions, strict diagnostics 0 and 24 normal capture
frames.
M27-D — Verification and handoff (COMPLETE)
- Run focused controller, Result, Recovery, BAT-002, BAT-003/004, Risk Commitment, Risk, Readiness, Party, Guild, Market and Hire regressions.
- Run normal
100%Result captures at the required landscape fixtures. - Run the full MVP first-cycle audit and require strict diagnostics
0. - Close with a focused pushed commit and update the checkpoint.
Closure: source-bound verification closes at c3b9d19. The focused
controller attempt
/private/tmp/aetherbound-guild-test-evidence/m27-battle-result-controller-source-bound/20260825T104832Z-98094
passes ABG_M27_BATTLE_RESULT_CONTROLLER_OK exactly once with strict
diagnostics 0. The final DEV-5 candidate attempt
/private/tmp/aetherbound-guild-test-evidence/m27-battle-result-candidate-final/20260825T105228Z-2392
passes ABG_DEV5_CANDIDATE_SUITE_OK exactly once with strict diagnostics
0, 24 normal capture frames and owned workspace/process cleanup. The full
first-cycle audit
/private/tmp/aetherbound-guild-test-evidence/m27-mvp-audit/20260825T104853Z-98420
passes ABG_MVP_FIRST_CYCLE_AUDIT_OK exactly once with 180 evidence files,
128 normal 100% frames across zh_CN/en and 760x360, 844x390,
1280x720, strict diagnostics 0, parsed touch coverage, restart-to-Market
and owned workspace/process cleanup. M27 closes without changing accepted
OUT-001 composition, settlement/reward/recovery semantics or any frozen
neighboring page.
Frozen Scope
- No visual redesign or new assets/audio/animation.
- No changes to settlement, reward, recovery, battle receipts, BattleService, Risk Commitment, FormationRiskService, Company, Contract, Save or economy semantics.
- No migration of Knockout Review, Reward Choice or Recovery pages in this plan.
- No new result/outcome/reward policy or automatic route.
- No mass rewrite or deletion of compatibility/history files.
- No packaging, signing, store or release work.
Acceptance Checks
ABG_M27_BATTLE_RESULT_CONTROLLER_OKexactly once.- Existing
ABG_DEV5_RESULT_OK,ABG_DEV5_RECOVERY_OK, BAT-002, BAT-003/004, Risk Commitment, Risk, Readiness, Party, Guild, Market and Hire markers remain green. - Normal
100%Result captures, diagnosis expansion, knockout identity and explicit continuation remain green. ABG_MVP_FIRST_CYCLE_AUDIT_OKremains green.
Commit Boundaries
M27-A: plan/checkpoint activation.M27-B: controller and focused unit test.M27-C: Entry Shell integration.M27-D: evidence and closure.
Each boundary must pass its narrowest focused checks and be pushed before the
next step becomes IN_PROGRESS; a failed check keeps the current step active.
Final Handoff
ABG M27 BATTLE RESULT CONTROLLER MIGRATION READY