Skip to content

Commit f332a92

Browse files
committed
gpt-6.1-sol-max: Add phase strategy archives and pass Extra Native target
Expose immutable per-card proposal controls, actual phase boundaries, and a C++ strategy-diverse frontier. Preserve strict gameplay defaults and carry each original-entry world through full route composition. Publish three freshly verified Scarlet Extra records through 3,179,193,860 NMNB 14/14, exceeding the all-shot reference by 733,030. Retail replay validation is qualified and pending. Validation: normal run passes 60/62; both remaining scripts pass clean recovery on identical binaries, with exact legacy search hashes and fresh Native execution. Preserve failures, memory aborts, and all costs. Documentation check passes; 33 selected and 272 historical payload hashes agree.
1 parent c4c798d commit f332a92

29 files changed

Lines changed: 1296 additions & 46 deletions

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ __pycache__/
7272
!/reports/native/replays/scarlet/lunatic/story-scarlet-native-nmnb-4a-finalb-6291093190-seed32796.rpy
7373
!/reports/native/replays/scarlet/lunatic/story-scarlet-native-nmnb-4a-finalb-6439636250-seed32796.rpy
7474
!/reports/native/replays/scarlet/lunatic/story-scarlet-native-nmnb-4a-finalb-6512532100-seed32796.rpy
75+
76+
!/reports/native/replays/scarlet/extra/extra-scarlet-native-nmnb-3164667710-seed9098.rpy
77+
78+
!/reports/native/replays/scarlet/extra/extra-scarlet-native-nmnb-3170906200-seed9098.rpy
79+
80+
!/reports/native/replays/scarlet/extra/extra-scarlet-native-nmnb-3179193860-seed9098.rpy

‎AGENTS.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ owner-selected eight-byte `ysopwnab`; preserve historical replay bytes.
147147
`gpt-6.1-sol-max: <English summary>`. Do not rewrite older commits solely for their prefix
148148
- The owner requires low process concurrency on the shared host. The October26
149149
continuation authorizes cumulative budget extensions while bounding memory;
150-
the active window is1280 total campaign tasks, without resetting the ledger.
150+
the active window is1344 total campaign tasks, without resetting the ledger.
151+
The October28 extension1280→1344 was recorded at1276 before1281; all failed
152+
regression, canary, selection and composition costs remain charged.
151153
The October27 continuation records successive64-task extensions from640,704,768,832 and896
152154
before use, under that standing authorization.
153155
Record further extensions before using them; this authorization does not raise
@@ -198,3 +200,9 @@ owner-selected eight-byte `ysopwnab`; preserve historical replay bytes.
198200
- The owner requested direct main progress commits, not feature branches/PRs.
199201
Fetch first, preserve others' work, never force an unrelated change, and publish
200202
only tested scope. Do not infer permission to continue beyond the latest request
203+
- The October28 continuation raises the next complete Lunatic milestone to7B
204+
after the verified6.512B result and explicitly requests issue12 for parallel
205+
checkpoint archives, strategy diversity and stage/spell composition. The latest
206+
steering tests that method on Extra first, using the existing original9098
207+
episode. Preserve NMNB/optional captures, full-route acceptance and the all-shot
208+
retail gates;7B alone is below the7,053,332,460 story gate.

‎CMakeLists.txt‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ option(TH08_WINE_SHADOW "Build the pinned 32-bit Wine observer and owned launche
99
if(TH08_WINE_SHADOW)
1010
include(cmake/WineShadow.cmake)
1111
endif()
12-
add_library(th08_online_policy src/online.cpp src/online_model.cpp src/online_value.cpp)
12+
add_library(th08_online_policy src/online.cpp src/online_model.cpp src/online_value.cpp src/phase_strategy.cpp)
1313
target_compile_features(th08_online_policy PUBLIC cxx_std_17)
1414
target_include_directories(th08_online_policy PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
1515
set(TH08_ONLINE_ARCH "" CACHE STRING "Optional online-policy CPU target: native or x86-64-v3")
@@ -32,6 +32,11 @@ if(MSVC)
3232
else()
3333
target_compile_options(th08_online_policy PRIVATE -ffp-contract=off)
3434
endif()
35+
add_library(th08_phase_search src/phase_archive.cpp)
36+
target_compile_features(th08_phase_search PUBLIC cxx_std_17)
37+
target_include_directories(th08_phase_search PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
38+
add_executable(th08_phase_frontier tools/phase_frontier.cpp)
39+
target_link_libraries(th08_phase_frontier PRIVATE th08_phase_search)
3540
add_executable(th08_planner_report tools/planner_report.cpp)
3641
target_compile_features(th08_planner_report PRIVATE cxx_std_17)
3742
target_include_directories(th08_planner_report PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
@@ -58,6 +63,13 @@ else()
5863
target_compile_options(th08_value_train PRIVATE -ffp-contract=off)
5964
endif()
6065
if(BUILD_TESTING)
66+
add_executable(phase_strategy_tests tests/phase_strategy_tests.cpp)
67+
target_link_libraries(phase_strategy_tests PRIVATE th08_online_policy th08_phase_search)
68+
add_test(NAME phase_strategy_archive_contract COMMAND phase_strategy_tests)
69+
add_test(NAME phase_frontier_cli COMMAND ${CMAKE_COMMAND}
70+
-DSELECTOR=$<TARGET_FILE:th08_phase_frontier>
71+
-DWORK=${CMAKE_CURRENT_BINARY_DIR}/phase-frontier-regression
72+
-P ${CMAKE_CURRENT_SOURCE_DIR}/tests/phase_frontier_cli.cmake)
6173
add_executable(shadow_protocol_tests tests/shadow_protocol_tests.cpp)
6274
target_link_libraries(shadow_protocol_tests PRIVATE th08_geometry)
6375
target_include_directories(shadow_protocol_tests PRIVATE include)

‎README.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
> [!NOTE]
44
> **Lunatic NMNB story clear: 1 → 2 → 3 → 4A → 5 → Final B (Kaguya).**
55
> Marisa/Alice, played online in Wine with game audio. Extra also clears NMNB online.
6-
> **Native NMNB scores: Extra 3,087,585,240 (Scarlet, 14/14); Lunatic story 6,512,532,100 (Scarlet, 36/37).**
7-
> Selected progress: [Extra 3.088B replay](reports/native/replays/scarlet/extra/extra-scarlet-native-nmnb-3087585240-seed9098.rpy) · [Story 6.513B replay](reports/native/replays/scarlet/lunatic/story-scarlet-native-nmnb-4a-finalb-6512532100-seed32796.rpy) · [All replays and provenance](reports/native/README.md) · [Videos](https://drive.google.com/drive/folders/11x9m65sysbsQZZYyHvNJS0-LQ3u2cOAu?usp=drive_link)
6+
> **Native NMNB scores: Extra 3,179,193,860 (Scarlet, 14/14); Lunatic story 6,512,532,100 (Scarlet, 36/37).**
7+
> Selected progress: [Extra 3.179B replay](reports/native/replays/scarlet/extra/extra-scarlet-native-nmnb-3179193860-seed9098.rpy) · [Story 6.513B replay](reports/native/replays/scarlet/lunatic/story-scarlet-native-nmnb-4a-finalb-6512532100-seed32796.rpy) · [All replays and provenance](reports/native/README.md) · [Videos](https://drive.google.com/drive/folders/11x9m65sysbsQZZYyHvNJS0-LQ3u2cOAu?usp=drive_link)
88
99
![Wine and Native shadow planning loop, animated schematic by Claude.](docs/media/shadow-mpc-online.gif)
1010

@@ -33,11 +33,15 @@ are achieved. The owner now targets the highest human scores across all12 shots:
3333
Extra above3,178,460,830 and Lunatic above7,053,332,460. The first complete
3434
Lunatic6.5B milestone is achieved at6,512,532,100. These October27 [all-shot records](https://maribelhearn.com/wr#IN)
3535
are both solo Youmu; the table above preserves the earlier Magic Team references.
36+
The next [composition experiment](https://github.com/N0zoM1z0/th08-solver/issues/12)
37+
tests parallel, diverse checkpoint strategies on Extra first, then targets7B Lunatic.
3638
All shots may now be explored, with the owner's preferred **Scarlet Team
3739
(Sakuya/Remilia)** taking priority. Its verified Native results are
38-
**Extra3,087,585,240 (14/14)** and **complete Lunatic6,512,532,100 (36/37)**,
40+
**Extra3,179,193,860 (14/14)** and **complete Lunatic6,512,532,100 (36/37)**,
3941
both No Miss/No Bomb, at their own original retail seeds9098/32796.
4042
Scarlet now owns both overall Native records; its story times out10.
43+
Extra exceeds the all-shot reference by733,030 in Native; retail replay validation
44+
is now qualified and remains pending.
4145
¹ [Human score-attack records](https://maribelhearn.com/wr#IN), 2026-10-25 snapshot;
4246
ASL's replay uses one bomb. [Status](docs/STATUS.md) owns the
4347
results, failed trials, costs, unresolved problems and proposed next steps.

‎cmake/Headless.cmake‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ if(BUILD_TESTING AND TH08_HEADLESS_DAT)
175175
-DDAT=${TH08_HEADLESS_DAT}
176176
-DWORK=${CMAKE_CURRENT_BINARY_DIR}/shadow-style-regression
177177
-P ${CMAKE_CURRENT_SOURCE_DIR}/tests/shadow_style_real_data.cmake)
178-
set_tests_properties(headless_shadow_style PROPERTIES TIMEOUT 330)
178+
# Complete offline fixture plus phase/profile continuations; this is a
179+
# correctness budget, independent of the production 110ms search default.
180+
set_tests_properties(headless_shadow_style PROPERTIES TIMEOUT 900)
179181
set_tests_properties(headless_shadow_style PROPERTIES FIXTURES_SETUP native_score_incumbent)
180182
add_test(NAME headless_score_refine COMMAND ${CMAKE_COMMAND}
181183
-DREFINER=$<TARGET_FILE:th08_score_refine>
@@ -196,7 +198,7 @@ if(BUILD_TESTING AND TH08_HEADLESS_DAT)
196198
-DINCUMBENT=${CMAKE_CURRENT_BINARY_DIR}/shadow-style-regression
197199
-DWORK=${CMAKE_CURRENT_BINARY_DIR}/bomb-scoring-regression
198200
-P ${CMAKE_CURRENT_SOURCE_DIR}/tests/bomb_scoring_real_data.cmake)
199-
set_tests_properties(headless_bomb_scoring PROPERTIES TIMEOUT 180
201+
set_tests_properties(headless_bomb_scoring PROPERTIES TIMEOUT 900
200202
FIXTURES_REQUIRED native_score_incumbent)
201203
endif()
202204
set_source_files_properties(src/shadow_recorded.cpp PROPERTIES

‎docs/PLANNER.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,30 @@ offline edit/replan/complete-score loop without requiring a serialized checkpoin
141141
or reusing one future across different actions. Final full-entry fresh execution
142142
and natural replay checks still apply.
143143

144+
Offline `--phase-plan` supplies immutable proposal strategies keyed by actual
145+
stage and one-based card. Each entry defines a source-pixel row band, a reserve
146+
in gameplay updates, feedback/continuous fire and human/youkai capture form.
147+
It requires attack pacing. Only the proposal goal and fire/focus bits change;
148+
Native input sampling, damage, option lifecycles, gauge and RNG remain source
149+
owned. Ordinary safety recovery uses its independent policy without the plan.
150+
Reports separate actual targeted inputs from newly planned inputs after the
151+
literal prefix, and record actual fire/focus use and signed entry/exit gauge.
152+
An absent plan and explicit `none` preserve the original path.
153+
154+
`--stop-after-card` stops after the actual audit closes that card. Its
155+
`phase_boundary` outcome is incomplete for route acceptance and never exports
156+
a replay. Resume by reexecuting its exact actions from the same original entry;
157+
do not splice another world's suffix or treat the41-word projection as a snapshot.
158+
159+
`th08_phase_frontier` selects a bounded archive from completed NMNB segments.
160+
It retains one representative per declared strategy family before admitting a
161+
second, rotating admission across generations when capacity is smaller than the
162+
number of families. It deduplicates only identical request/checkpoint identities;
163+
score/PIV dominance never establishes world equivalence. The campaign owner must
164+
hash-bind the episode, source/binary/DAT/receipt, exact actions and controls.
165+
The selector validates evidence structure, but cannot certify a world or restore
166+
Native pointers. Phase selection and replayed prefixes cost additional work.
167+
144168
### Source economics and capture boundaries
145169

146170
The restored [Spellcard.cpp](../third_party/th08/src/Spellcard.cpp) distinguishes

‎docs/STATUS.md‎

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# Current handoff status
22

3-
The owner's latest October27 instruction resumes Native exploration after the
4-
old goal was cleared and its remote services stopped. The requested complete
5-
Lunatic6.5B milestone is **achieved:6,512,532,100**, using stage/spell strategy composition.
3+
The owner's latest October28 steering tests parallel checkpoint archives and
4+
diverse stage/spell strategies on **Extra first**, then targets **7B complete
5+
Lunatic**, tracked in [issue12](https://github.com/N0zoM1z0/th08-solver/issues/12).
6+
The preceding complete Lunatic6.5B milestone is **achieved:6,512,532,100**, using stage/spell strategy composition.
67
Optimize phases at explicit checkpoints of the fixed original32796 episode,
78
preserve the carried gameplay world/RNG and verify the complete combined route.
9+
Extra uses its existing original9098 episode; retain No Miss/No Bomb with optional
10+
captures. Partial phase gains remain selection evidence until complete verification.
11+
The all-shot retail gates remain3,178,460,830/7,053,332,460;7B is a Native milestone.
812
The [experiment journal](experiments/2026-10-27-vps.md) preserves the intervening
913
completed/failed/cancelled tasks; resume with new IDs rather than restarting
1014
cancelled owners. The new verified6,512,532,100 composition record is detailed below.
1115

16+
The new phase-plan/archive implementation is covered by normal1277 (60/62)
17+
and nonaborted recovery1331 (2/2), using unchanged binaries and an explicitly
18+
hash-bound reused legacy repair search with fresh execution. Earlier failures
19+
and the host-memory abort remain charged in the phase journal.
20+
1221
Updated 2026-10-28. Public scoring controls include the optional timeout-farm,
1322
drop-follow, revision2 parent-chain, bounded gauge preparation, upper stream
1423
proposals and default-off spell search profiles;
@@ -49,11 +58,13 @@ separate; new Scarlet entries require new original retail seed receipts.
4958

5059
### Scarlet priority, new retail receipts and4GiB resources
5160

52-
Current verified Scarlet bests are **Extra3,087,585,240,NMNB14/14**, task786,
61+
Current verified Scarlet bests are **Extra3,179,193,860,NMNB14/14**, task1314,
5362
and **complete Lunatic6,512,532,100,NMNB36/37**, task1225 (10 times out).
54-
Fresh832/1229 and natural833/1230 pass exact41-word terminal, score, outcomes,
63+
Fresh1329/1229 and natural1330/1230 pass exact41-word terminal, score, outcomes,
5564
zero-miss/bomb and name checks. Scarlet now owns both overall Native records.
56-
The6.5B milestone is achieved; both all-shot human references remain above our scores. Selected replays are now published;
65+
The6.5B milestone is achieved. Extra exceeds its all-shot reference by733,030
66+
in Native and qualifies for retail replay validation; playback remains pending.
67+
The story reference remains above our score. Selected replays are now published;
5768
[Validation](VALIDATION.md#scarlet-team-verified-native-baselines) owns hashes.
5869

5970
The owner's later October27 request publishes all17 selected verified improvements
@@ -64,7 +75,7 @@ retain exact SHA-256 values in `archive/relocations.tsv`; frozen JSON and tapes
6475
are not rewritten. [The evidence index](../reports/native/README.md) and
6576
`replays/progress.tsv` bind published scores, constraints, tasks and hashes.
6677
Earlier prose describing those17 selections as local-only records the state
67-
before this explicit publication request. Thirteen subsequent verified overall
78+
before this explicit publication request. Sixteen subsequent verified overall
6879
records are also published; future retention requires an overall project record,
6980
as the owner later requested. Other experiment artifacts stay local.
7081

@@ -77,7 +88,7 @@ measurements. Local normal803 was resource-aborted below8GiB at1032.186s;
7788
retry831 passes60/60 in731.053s with two independent CTests, unchanged binaries,
7889
peak tree RSS1108312064 and minimum host available18922889216 bytes.
7990
The four later record exports pass local checks829/830,832/833,843/844 and
80-
845/846. Current gaps are90,875,590 Extra and540,800,360 to the global story reference.
91+
845/846. Extra exceeds its reference by733,030; the story gap remains540,800,360.
8192
The story exceeds6.5B by12,532,100. The5.784B record retains task794's
8293
first51253 actual inputs through47, then uses H128/publication64/replan32/cash4/
8394
movement4. Task930 retains its first142675 actual inputs to171, then switches
@@ -639,7 +650,7 @@ Later sections preserve chronological/component evidence, not a second active pl
639650
| --- | --- |
640651
| Workspace / publication | `/home/yann/yann/touhou/th08-solver`, direct `main`; fetch first and preserve others' work. English `gpt-6.1-sol-max: ...` commits and push tested progress |
641652
| Concurrency | Local: at most4 owned solver/test/probe drivers including verification; build with `--parallel 2`. The owner's later VPS request separately authorizes up to32 remote Native owners, CPU quota32 cores, low priority. Fork children belong to their owner; do not add extra uncounted test drivers |
642-
| Campaign ledger | `reports/local/shadow-runtime-v1/tasks.tsv`, **1233/1280 allocated task IDs**, including build/setup failures and verification. Successive64-task extensions640→704→768→832→896→960→1024→1088→1152→1216→1280 were recorded before use; the latest was recorded at1210. Failures, cancellations and verification remain charged; never reset or reuse IDs |
653+
| Campaign ledger | `reports/local/shadow-runtime-v1/tasks.tsv`, **1332/1344 allocated task IDs**, including build/setup failures and verification. Successive64-task extensions640→704→768→832→896→960→1024→1088→1152→1216→1280→1344 were recorded before use; the latest was recorded at1276 before1281. Failures, cancellations and verification remain charged; never reset or reuse IDs |
643654
| Extensions | Further cumulative windows are owner-authorized under the same memory bounds; record an extension before using it. The later explicit VPS authorization raises remote concurrency only |
644655
| Memory | The owner raises the entire phase to **4 GiB address space per process and 4 GiB summed RSS per owned tree** on October27, effective for new owners from665. Already-running663 retains its frozen2GiB limits. Admit only at12GiB host MemAvailable; abort below8GiB or above the tree limit. Concurrency remains4; resource aborts cannot certify |
645656
| Episode | Preserve Magic Extra46997/story1805. Scarlet Extra9098/story32796 are the first valid owned retail seeds in `retail-seed-episodes-20261027/scarlet-extra-entry-v6/` and `scarlet-story-4a-finalb-entry-v1/`, captured before Native search. Never reroll after seeing score. Regression fixtures/historical seeds stay separate |
@@ -651,8 +662,8 @@ Later sections preserve chronological/component evidence, not a second active pl
651662
| Verification | Release timing; Native CPU excludes I/O. Relevant tests plus normal CTest before code publication. Freeze binaries during CTest; never relink concurrently. Documentation-only cleanup reruns the documentation test |
652663
| Artifacts | New JSON/CSV/actions/replays stay in ignored `reports/local/`; publish only explicitly selected progress replays with exact provenance. Preparations, raw DAT/EXE/assets, original GIF bundle/generator and videos stay local |
653664

654-
The active local launcher is
655-
`reports/local/global-score-20261027/run-guarded.cjs`, using
665+
The active Scarlet local launcher is
666+
`reports/local/global-score-20261027/run-scarlet-guarded.cjs`, using
656667
`reports/local/retail-score-offline-20261026/memory-guard.cjs` and the optional-
657668
capture checker `reports/local/score-continue-20261027/verify-no-bomb.cjs`. Use the current
658669
guarded driver and fresh output names; do not use the older interrupted queue.
@@ -1896,7 +1907,9 @@ references3,178,460,830 Extra and7,053,332,460 Lunatic. Reuse the fixed episodes
18961907
Current trials require No Miss and No Bomb, allow missing captures, and accept
18971908
only higher complete score. Restore all captures explicitly when requested.
18981909
Keep independent options for later ablations; the owner has not requested an
1899-
ablation matrix now. The following are proposals, not verified gains.
1910+
ablation matrix now. The following are historical proposals from before the
1911+
Scarlet6.512B result, not the active targets or verified gains; current work is
1912+
near the top.
19001913

19011914
| Current problem / evidence | Next bounded investigation | Acceptance |
19021915
| --- | --- | --- |
@@ -1928,8 +1941,8 @@ or active episode. Preserve useful history without using it as the next command.
19281941

19291942
## Validation and preserved historical work
19301943

1931-
Current public scoring code passes **59/59 in1191.44s**; see the current local
1932-
test inventory above and [Validation](VALIDATION.md#selected-native-progress-replays).
1944+
An earlier public scoring checkpoint passes **59/59 in1191.44s**; see the current
1945+
local test inventory above and [Validation](VALIDATION.md#selected-native-progress-replays).
19331946
The remaining paragraphs retain earlier component checkpoints, not the current
19341947
test count or active campaign limits.
19351948

@@ -1956,7 +1969,7 @@ unchanged; no new reports, tapes, videos or experiment replays are published.
19561969

19571970
At `667597f`, Release Native/DAT CTest passes 56/56 in 889.37 s and core 36/36
19581971
in 8.47 s. The 56-test local configuration includes two private retained-trace
1959-
regressions; the then-normal DAT build had54. There are 36 core CTests without private
1972+
regressions; the then-normal DAT build had54. There are 38 core CTests without private
19601973
data, plus two optional pinned-source checks. Fresh handoff verification is
19611974
recorded in [Validation](VALIDATION.md#selected-extra-score-replay).
19621975
The October26 cleanup reruns both suites: **56/56 in933.85s**, **36/36 in8.49s**,

0 commit comments

Comments
 (0)