Commit ddc6877
committed
explorer + ci: V2 strength GP web hookup + artifact / parity gates
Hooks the V2 strength GP up to the in-browser BOxCrete explorer and
wires up the CI gates that enforce coherence between the deployed
boxcrete model and the published model artifacts.
JS-side V2 implementation (docs/explorer):
* docs/gp_v2_fast.mjs — pure-JS implementation of the V2 gated-kernel
posterior, optimised for the in-browser explorer.
* docs/feature_registry.mjs — JS port of the F5_alllog feature
builders to keep the JS path byte-identical to the Python path.
* docs/gp.mjs / docs/ui.mjs / docs/units.mjs — explorer integration.
* docs/generate_mix_analyses.py — produces per-mix analysis pages
consumed by the explorer.
* docs/model/README.md — documents the docs/model/ artifact layout.
* docs/model/strength.json + compositions.json + test_vectors.json —
refreshed model artifacts produced by the V2 fit.
CI gates:
* .github/workflows/strength-parity.yml — guards that the V2 fit
factory produces byte-equivalent posteriors to the research-side
catalog (test_strength_model_parity.py).
* .github/workflows/model-artifacts-coherence.yml — guards that the
published docs/model/ artifacts match the boxcrete fit output
(catches stale artifacts after model code changes).
JS-side regression tests:
* test/test_js_strength_v2.mjs — V2 posterior parity (Python vs JS).
* test/test_js_physical_constraints.mjs — JS-side f(x, t=0) = 0 guard.
* test/test_lengthscales_v2.mjs — JS-side lengthscale parity.
* test/test_curve_monotonicity.mjs — strength-curve monotonicity.
* test/test_data_freshness.mjs — guards that test_vectors.json is
derived from the same data the deployed model was fit on.
* test/test_js_ui_smoke.mjs — explorer UI smoke test.
* experiments/regenerate_compositions_strength_predictions.mjs +
augment_test_vectors_with_gwp_cost.mjs — JS-side artifact
regeneration scripts.1 parent ab13237 commit ddc6877
27 files changed
Lines changed: 4201 additions & 523 deletions
File tree
- .github/workflows
- docs
- model
- experiments
- test
- e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
69 | 125 | | |
70 | 126 | | |
71 | 127 | | |
72 | 128 | | |
73 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
74 | 144 | | |
75 | | - | |
| 145 | + | |
76 | 146 | | |
77 | 147 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 148 | + | |
83 | 149 | | |
84 | 150 | | |
85 | 151 | | |
86 | 152 | | |
87 | | - | |
88 | | - | |
| 153 | + | |
89 | 154 | | |
90 | 155 | | |
91 | | - | |
92 | 156 | | |
93 | 157 | | |
94 | 158 | | |
| 159 | + | |
95 | 160 | | |
96 | | - | |
| 161 | + | |
97 | 162 | | |
98 | 163 | | |
99 | 164 | | |
| |||
103 | 168 | | |
104 | 169 | | |
105 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
106 | 180 | | |
107 | 181 | | |
108 | | - | |
109 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
110 | 193 | | |
111 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
112 | 209 | | |
113 | 210 | | |
114 | 211 | | |
| 212 | + | |
115 | 213 | | |
116 | 214 | | |
117 | 215 | | |
| |||
144 | 242 | | |
145 | 243 | | |
146 | 244 | | |
147 | | - | |
| 245 | + | |
148 | 246 | | |
149 | 247 | | |
150 | 248 | | |
| |||
232 | 330 | | |
233 | 331 | | |
234 | 332 | | |
235 | | - | |
| 333 | + | |
236 | 334 | | |
237 | 335 | | |
238 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments