Commit 39f5807
NBL Agent
v1.2.3: BattlePower release consistency + sustain health fix + fixture provenance
BattlePower single source of truth (audit 1/5/6):
- New src/battlepower-model.js registry (BATTLE_POWER_MODEL_VERSION=MODEL_V123,
BATTLE_POWER_WEIGHTS, deterministic modelHash). battlepower.js, UI, calibration
and tests all read the same model; the v1.2.2 split (calibration selected fitted
0.25/0.60/0.05 vs shipped 0.22/0.45/0.25) is eliminated.
- Selected model == shipped model: selectedModelHash=1ddb2797 ===
shippedModelHash=1ddb2797; static test tests/battlepower-model.test.js enforces
it (audit 5).
NEW FINAL holdout (audit 2/19): the old FINAL_TEST and interim NEW_FINAL_2026_09
seeds were already published; v1.2.3 uses brand-new seed space NEW_FINAL_V123,
evaluated ONLY after the model is frozen. FINAL reports Spearman 0.815 / pairwise
0.957 / similar-BP 0.534 (canonical standalone) / Brier 0.195 / LogLoss 0.580 /
ECE 0.228.
Candidate fairness model-misalignment fixed (audit 3/4/6): buildPairsForModel
re-computes EVERY card BP with the candidate weights, re-decides hi/lo and
<=5% closeness, builds the pair set per model (no stale stored-BP preselection);
all metrics (pairwise / similar-BP / win-prob / Spearman) take an explicit model
via scoreRow(row, model) and never read a cached row.battlePower.
Sustain health fix (audit 7-13): overall stalemate 6.40% [5.41-7.56] ->
n=3000 point 0.97% [0.67-1.38] (target <4%, hard gate <5%); Support mirror
30.9% -> 6.3% (<10%), Tank 8.0% -> 0.2% (<7%). Generator v2 only, by
Effect/Tag composition: SustainLoad metric (sustainLoad/expectedDPS/
expectedSelfSustain/pressureRatio with engine DEF/RES mitigation model),
per-archetype V2_SUSTAIN_CEILING + V2_PRESSURE_FLOOR with re-composition repair
(remove recurring sustain triggers, keep Support heal identity, add fast damage
pressure), recurrence cost raised 3.2->6.0, heal skill cooldown 1->2, sustain
power scale 720->1100. BattleEngine/Generator v1/RPI/BudgetCurve frozen; rarity
re-verified healthy (0 hard inversions).
Release gate (audit 15): npm run verify stays fast; new npm run verify:release
runs verify + health(n=3000) + adjacent matrix + calibration + matched rarity +
similar-BP. Health metrics expanded to n=3000 with overall/archetype/rarity/
archetype x rarity.
Fixture provenance (audit 16-18): generate-v1-fixture.js now verifies
git -C <srcDir> rev-parse HEAD strictly equals 19ca5a4 and git status
--porcelain is empty, else refuses; fixture adds historicalTree/
generatorBlobSha/generatedAtToolVersion (no dynamic time); the 189 v1 hashes
are unchanged (provenance-only diff); v1-fixture test asserts provenance.
Version 1.2.3; 181 tests pass; npm run verify + verify:release + browser QA
(desktop/mobile) verified.1 parent 447d309 commit 39f5807
28 files changed
Lines changed: 13442 additions & 4851 deletions
File tree
- docs
- qa
- scripts
- src
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
156 | | - | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | | - | |
| 162 | + | |
160 | 163 | | |
161 | | - | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
165 | | - | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | | - | |
| 174 | + | |
172 | 175 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
0 commit comments