docs(runtime): activate p9.6 persistence

This commit is contained in:
2026-08-14 21:32:09 +08:00
parent 68c4dbd87a
commit d82ed2ed89
3 changed files with 47 additions and 29 deletions
+10 -9
View File
@@ -6,7 +6,7 @@ Active implementation plan: `docs/runtime/p9_6/IMPLEMENTATION_PLAN.md`
Project process protocol: `docs/runtime/PLAN_DRIVEN_DEVELOPMENT_PROTOCOL.md`
Post-P9.1 roadmap: `docs/runtime/p9_1/POST_P9_1_ROADMAP.md`
Active ledger: `docs/reviews/PHASE9_GODOT_VERTICAL_SLICE_LEDGER.md`
Current implementation step: `P9.6-STEP-1 DOMAIN IN_PROGRESS`
Current implementation step: `P9.6-STEP-2 PERSISTENCE IN_PROGRESS`
Current pushed runtime baseline: `7e1fc75`
Current pushed test/evidence source: `7e5d82a`
P9.1 TaskGraph batch: `abg-p9-1-continuous-development-01`
@@ -40,14 +40,15 @@ P9.0R10 Gallery item: `gHS8jEZdGa2x`
P9.2R Gallery item: `KITQfwLYLK6R`
Stage: `P9_6_RISK_RECOVERY_PERSISTENCE_ACTIVE`
The Owner accepts the P9.5 H5 acceleration and authorizes continued game
development. P9.6 owns one post-Bell state-dependent decision and truthful
persistence only. Exact probes show that a carried-HP two-wave Rift Tide makes
Wayrunner Companies require `6 Coin` pre-recovery while healthy Kindhand
Companies can rationally press on. Defeat recovery costs `8`, removes no
Recruit/equipment and cannot dominate pre-recovery. Step 1 owns only atomic
risk/two-wave/recovery domain behavior. Save files, runtime presentation, H5,
content expansion, native packaging, release and other games remain frozen.
P9.6 Step 1 source `68c4dbd` proves eight exact risk routes across both Companies,
both items and both plans. Wayrunner press-on loses wave two, Kindhand press-on
wins, every recovered path wins, and `0/4/6/8` Coin recovery boundaries preserve
all Recruits/items with reward/XP once. P9.5 domain and five-profile regressions
remain strict-clean at `/private/tmp/abg-p96-68c4dbd-step1-r1/`; inventory
SHA-256 is `e1ddacc7b4cfca0cdc4fa796924f876c351909adf03d056d7f7a5a5980c68780`.
Step 2 now owns versioned stable-state persistence and pre-battle interruption
checkpointing only. Runtime UI, H5, content expansion, native packaging,
release and other games remain frozen.
The Owner-reported H5 repeat-download problem is repaired without changing the
Gallery item or signed URL. Runtime assets now use a one-year private immutable
@@ -79,3 +79,4 @@ separate.
| 2026-08-14 | Owner H5 repeat-load report; baseline `5e15dbd` | `P9_5_H5_CACHE_ACCELERATION_ACTIVE` | Public HTTPS diagnostics show that the immutable P9.5 runtime serves about 58 MB of WASM/PCK with only `private, max-age=300`, no ETag/304 response and no compression. A bounded delivery task now owns long-lived runtime-asset caching and conditional requests, followed by a separate first-load compression assessment. Game behavior, evidence, Gallery identity, native packaging, release and other games remain frozen. |
| 2026-08-14 | Existing Gallery `YbptaxfasrjY`; cache/gzip delivery repair | `P9_5_H5_REPEAT_LOAD_ACCELERATION_READY` | The unchanged signed item now returns one-year private immutable caching, representation ETags and conditional 304 for runtime assets. Deterministic sidecars gzip JS from 315,759 to 78,637 bytes and WASM from 37,685,705 to 9,431,387; PCK stays identity because gzip saves only 0.6%. Principal first-load transfer falls 49.2% from 57,909,159 to 29,417,719 bytes. Public headers and decoded WASM SHA pass. An isolated Chrome 151 cold profile renders the real 844x390 Chinese Title; repeat open produces the identical frame in five seconds. Cookie/profile cleanup is complete. Human phone timing, gameplay understanding/fun/listening, device, packaging and release remain open. Exact legal terminal: `Aetherbound Guild P9.5 H5 repeat-load acceleration ready`. |
| 2026-08-14 | P9.6 contract baseline `7ca0302`; owner continuation | `P9_6_RISK_RECOVERY_PERSISTENCE_ACTIVE` | Owner authorizes continued single-session development. A temporary unchanged-rule probe proves one fixture is too permissive, while two carried-HP waves at positions 60/72 create the required state-dependent decision: both wounded Wayrunner paths lose wave two without recovery and win after a 6-Coin full recovery; both Kindhand paths win directly. Failure recovery costs 8, preserves every Recruit/item and yields less final Coin than correct pre-recovery. P9.6 Step 1 owns only the atomic risk/two-wave/defeat/recovery/reward domain. Persistence, runtime UI, H5, content expansion, packaging and release remain frozen. |
| 2026-08-14 | P9.6 Step 1 source `68c4dbd`; `abg-p96-68c4dbd-step1-r1` | `P9_6_STEP_1_DOMAIN_COMPLETE` | Eight exact paths cover both Companies, both items and press-on/recover. Wounded Wayrunner press-on loses wave two at tick 1/27; Kindhand press-on and every recovered path win. Recovery costs 0/4/6/8, fourth reward 20 and living-member XP 18 commit once; no Recruit/item is lost and invalid mutations are zero. P9.5 domain/five-profile regressions pass strict-clean. Evidence inventory SHA-256 is `e1ddacc7b4cfca0cdc4fa796924f876c351909adf03d056d7f7a5a5980c68780`. Step 2 now owns versioned persistence and interruption checkpointing only. |
+36 -20
View File
@@ -1,7 +1,7 @@
# P9.6 Risk, Recovery And Persistence Implementation Plan
> Status: `IN_PROGRESS`
> Active step: `P9.6-STEP-1`
> Active step: `P9.6-STEP-2`
> Baseline: `7ca0302`
> Goal: `docs/goals/PHASE9_6_RISK_RECOVERY_PERSISTENCE_GOAL.md`
> Contract: `docs/runtime/PHASE9_6_RISK_RECOVERY_PERSISTENCE_CONTRACT.md`
@@ -17,31 +17,35 @@ Company, and can close and continue the stable run without duplicate progress.
| Step | Status | Outcome | Gate |
|---|---|---|---|
| P9.6-STEP-0 Contract | `COMPLETE` | Four entry states, two plans, exact two-wave results and save boundaries are frozen. | Goal, contract, plan, checkpoint and ledger agree. |
| P9.6-STEP-1 Domain | `IN_PROGRESS` | Risk choice, two waves, defeat, recovery, retry, reward and XP are atomic. | Exact contract matrix and negative mutations pass with P9.5 regressions. |
| P9.6-STEP-2 Persistence | `PENDING` | Stable state survives refresh/interruption without duplicate progress. | Version, migration, checksum, backup, corruption, rollback, offline cap and battle checkpoint tests pass. |
| P9.6-STEP-1 Domain | `COMPLETE` | Risk choice, two waves, defeat, recovery, retry, reward and XP are atomic. | Source `68c4dbd`; exact contract matrix and P9.5 domain/five-profile regressions pass strict-clean. |
| P9.6-STEP-2 Persistence | `IN_PROGRESS` | Stable state survives refresh/interruption without duplicate progress. | Version, migration, checksum, backup, corruption, rollback, offline cap and battle checkpoint tests pass. |
| P9.6-STEP-3 Runtime | `PENDING` | Direct world touches expose HP, risk, waves, defeat/recovery and the changed return. | Parsed touch routes, 44px bounds, normal frames and strict diagnostics pass. |
| P9.6-STEP-4 Pacing and H5 | `PENDING` | Five profiles preserve the counterfactual and the Owner can play the cached build. | Explicit timestamps, interruption scenarios, runtime-only export and Gallery delivery pass. |
## Active Step Contract
```text
ID: P9.6-STEP-1 DOMAIN
PLAYER OUTCOME: The current Company's real HP makes press-on versus recovery a
different rational decision, and defeat has an understandable recovery path.
IN SCOPE: P9.3 state/service extensions; one P9.6 domain test and UID; P9.6
durable status documents.
OUT OF SCOPE: persistence files/UI, runtime presentation, assets, audio, H5,
native packages, content expansion, release and other games.
OWNED FILES: runtime/p9_3/core_loop_state.gd,
runtime/p9_3/core_loop_service.gd, runtime/tests/p9_6/* and P9.6 docs.
ACCEPTANCE CHECKS: four exact entry states; both plans; two waves; exact
victory/defeat results; pre/post-failure recovery costs; reward/XP once;
invalid actions inert; P9.5 domain/five-profile regressions strict-clean.
ID: P9.6-STEP-2 PERSISTENCE
PLAYER OUTCOME: A stable run can be closed and continued truthfully; an
interrupted battle restarts from its pre-battle decision without free
progress, lost state or duplicate rewards.
IN SCOPE: state snapshot restoration; one P9.6 save service and UID; one
persistence matrix test and UID; P9.6 durable status documents.
OUT OF SCOPE: controller/UI integration, runtime presentation, assets, audio,
H5, native packages, content expansion, release and other games.
OWNED FILES: runtime/p9_3/core_loop_state.gd, runtime/p9_6/save_service.gd,
runtime/tests/p9_6/persistence_test.gd and P9.6 docs.
ACCEPTANCE CHECKS: v1 save/load; v0 migration; unknown-version rejection;
checksum/malformed/state corruption; valid backup fallback; atomic temp
cleanup; clock rollback; 24-hour cap with zero offline rewards; stable Hall
and Encounter restore; Battle/Result pre-battle checkpoint; duplicate reward,
XP, recovery and plan commands remain inert after reload; Step 1 and P9.5
domain regressions strict-clean.
EVIDENCE LEVEL EXPECTED: automated_verified.
COMMIT BOUNDARY: focused pushed domain commit before persistence begins.
LEGAL TERMINAL: P9.6 Step 1 domain complete, or redesign required at the
earliest state-dependent choice/failure/recovery boundary.
NEXT STEP: versioned persistence over the accepted stable state.
COMMIT BOUNDARY: focused pushed persistence commit before runtime integration.
LEGAL TERMINAL: P9.6 Step 2 persistence complete, or redesign required at the
earliest save/migration/interruption boundary.
NEXT STEP: bind the accepted state and save authority to the landscape runtime.
```
## Issue Register
@@ -49,5 +53,17 @@ NEXT STEP: versioned persistence over the accepted stable state.
| ID | Status | Finding |
|---|---|---|
| P96-I01 | `RESOLVED_IN_CONTRACT` | A single extra fixture lets every Company win and teaches no recovery decision. Two carried-HP waves produce the required state-dependent counterfactual. |
| P96-I02 | `OPEN_STEP_2` | Current runtime has no persistence authority; stable snapshot restore must be validated before lifecycle integration. |
| P96-I02 | `ACTIVE_STEP_2` | Current runtime has no persistence authority; stable snapshot restore must be validated before lifecycle integration. |
| P96-I03 | `RESOLVED_STEP_1` | Exact waves leave two Wayrunner members at 0 HP after victory. Accepted living-member XP remains unchanged; a 2-Coin-per-fallen-member victory recovery prevents a stranded terminal state. |
## Current Evidence
- Step 1 source: `68c4dbd`.
- Root: `/private/tmp/abg-p96-68c4dbd-step1-r1/`.
- Marker: `ABG_P9_6_RISK_RECOVERY_DOMAIN_OK paths=8 waves=2
press_wayrunner=defeat press_kindhand=victory recover_all=victory
costs=0,4,6,8 reward=20 xp=18 recruits_lost=0 items_lost=0
invalid_mutations=0`.
- P9.5 domain and five-profile regressions pass; strict diagnostics are zero.
- Evidence inventory SHA-256:
`e1ddacc7b4cfca0cdc4fa796924f876c351909adf03d056d7f7a5a5980c68780`.