fsanyoto commited on
Commit
e58541f
·
verified ·
1 Parent(s): c7794d8

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
Dockerfile CHANGED
@@ -23,13 +23,17 @@ WORKDIR /web
23
  # The lockfile is the audited supply-chain boundary. It now resolves entirely from the public
24
  # registry; discarding it here made every image an unreviewed dependency upgrade.
25
  #
26
- # 2026-09-13: the Windows-resolved lockfile failed `npm ci` with
27
- # `Missing: @emnapi/runtime@1.11.3 from lock file`, so this stage temporarily used `npm install`
28
- # to repair the platform gap. W59-T35 regenerated from the committed lock with node_modules
29
- # absent on Linux x64 (Node 22.23.2 / npm 10.9.8), then proved a fresh `npm ci` succeeds.
30
- # Restore the frozen install: future lockfile gaps must fail the build, not resolve during it.
31
- # Windows execution still needs its own proof. --engine-strict makes the Node/npm engines a
32
- # build failure on a mismatched toolchain; npm otherwise only warns.
 
 
 
 
33
  COPY web/package.json web/package-lock.json ./
34
  RUN npm ci --no-audit --no-fund --ignore-scripts --engine-strict
35
  # Keep the resolved build tree: the final image has the bundle but no Node installation.
 
23
  # The lockfile is the audited supply-chain boundary. It now resolves entirely from the public
24
  # registry; discarding it here made every image an unreviewed dependency upgrade.
25
  #
26
+ # ⛔⛔ THE LOCKFILE IS GENERATED ON LINUX, NEVER ON WINDOWS (W-170, 2026-09-13). A Windows-resolved
27
+ # lockfile fails `npm ci` in this stage (`Missing: @emnapi/runtime@1.11.3 from lock file`): npm
28
+ # records the platform closure of the box that ran it, and `npm ci` treats an absent entry as a
29
+ # fatal mismatch. A lockfile resolved natively on Linux (no `--os`/`--cpu`) passes `npm ci` on
30
+ # BOTH Linux and Windows -- measured the same day, 198 packages in 52s on the laptop. Regenerate
31
+ # ONLY with `python .claude/skills/deploy/scripts/lockfile_linux.py` (one small HF job that runs
32
+ # `npm ci` there first and writes `web/package-lock.linux.sha256`); `verify_lockfile.py` reddens
33
+ # the battery when the lockfile on disk is not the one that receipt attests.
34
+ # W59-T35 reached the same Linux resolve independently in the wave-59 container (Node 22.23.2 /
35
+ # npm 10.9.8) and added `--engine-strict`, which makes the `engines` pin in package.json a build
36
+ # failure on a mismatched toolchain rather than a warning.
37
  COPY web/package.json web/package-lock.json ./
38
  RUN npm ci --no-audit --no-fund --ignore-scripts --engine-strict
39
  # Keep the resolved build tree: the final image has the bundle but no Node installation.
RELEASES.json CHANGED
@@ -1,4 +1,437 @@
1
  {
2
- "current": "71f6176",
3
- "releases": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
 
1
  {
2
+ "current": "40dceba",
3
+ "releases": [
4
+ {
5
+ "version": "v73",
6
+ "sha": "bb94de5",
7
+ "date": "2026-09-13",
8
+ "subject": "release v73"
9
+ },
10
+ {
11
+ "version": "v71",
12
+ "sha": "96143dc",
13
+ "date": "2026-09-04",
14
+ "subject": "release v71 - wave 51, QA'd 24 PASS / 6 FAIL / 5 UNPROVEN"
15
+ },
16
+ {
17
+ "version": "v70",
18
+ "sha": "eedfb6a",
19
+ "date": "2026-09-03",
20
+ "subject": "release v70 - wave 50 (grid analytics, the Sheet as a spreadsheet, view trash and audit)"
21
+ },
22
+ {
23
+ "version": "v69",
24
+ "sha": "8598f56",
25
+ "date": "2026-09-02",
26
+ "subject": "release v69: wave48-continuation validated + hotfixes v67/v68/d4e3e31 + go-live QA repairs (Supplier option limit, optio"
27
+ },
28
+ {
29
+ "version": "v68",
30
+ "sha": "62b065a",
31
+ "date": "2026-09-01",
32
+ "subject": "release v68: unified holiday date offsets"
33
+ },
34
+ {
35
+ "version": "v67",
36
+ "sha": "3b22419",
37
+ "date": "2026-09-01",
38
+ "subject": "release v67"
39
+ },
40
+ {
41
+ "version": "v66",
42
+ "sha": "73c94f0",
43
+ "date": "2026-08-31",
44
+ "subject": "release v66"
45
+ },
46
+ {
47
+ "version": "v65",
48
+ "sha": "9f6cfed",
49
+ "date": "2026-08-31",
50
+ "subject": "release v65"
51
+ },
52
+ {
53
+ "version": "v64",
54
+ "sha": "bb8985c",
55
+ "date": "2026-08-31",
56
+ "subject": "release v64"
57
+ },
58
+ {
59
+ "version": "v63",
60
+ "sha": "ec75cb8",
61
+ "date": "2026-08-31",
62
+ "subject": "release v63"
63
+ },
64
+ {
65
+ "version": "v62",
66
+ "sha": "2c8f702",
67
+ "date": "2026-08-31",
68
+ "subject": "release v62"
69
+ },
70
+ {
71
+ "version": "v61",
72
+ "sha": "bbc4c07",
73
+ "date": "2026-08-30",
74
+ "subject": "v61 - wave 46 hotfix: D-590 schema overlay reaches the grid read (all three assemblies), D-599 route to zone association"
75
+ },
76
+ {
77
+ "version": "v60",
78
+ "sha": "dd1b062",
79
+ "date": "2026-08-30",
80
+ "subject": "v60 - wave 46"
81
+ },
82
+ {
83
+ "version": "v59",
84
+ "sha": "3cb73ce",
85
+ "date": "2026-08-29",
86
+ "subject": "release v59"
87
+ },
88
+ {
89
+ "version": "v58",
90
+ "sha": "c526ced",
91
+ "date": "2026-08-29",
92
+ "subject": "release v58"
93
+ },
94
+ {
95
+ "version": "v57",
96
+ "sha": "4859c03",
97
+ "date": "2026-08-29",
98
+ "subject": "release v57"
99
+ },
100
+ {
101
+ "version": "v56",
102
+ "sha": "2970b72",
103
+ "date": "2026-08-28",
104
+ "subject": "release v56"
105
+ },
106
+ {
107
+ "version": "v55",
108
+ "sha": "b766b90",
109
+ "date": "2026-08-28",
110
+ "subject": "release v55"
111
+ },
112
+ {
113
+ "version": "v54",
114
+ "sha": "6a8e99a",
115
+ "date": "2026-08-27",
116
+ "subject": "release v54"
117
+ },
118
+ {
119
+ "version": "v53",
120
+ "sha": "89ed2cb",
121
+ "date": "2026-08-24",
122
+ "subject": "release v53"
123
+ },
124
+ {
125
+ "version": "v52",
126
+ "sha": "8263493",
127
+ "date": "2026-08-23",
128
+ "subject": "release v52"
129
+ },
130
+ {
131
+ "version": "v51",
132
+ "sha": "5740d20",
133
+ "date": "2026-08-23",
134
+ "subject": "release v51"
135
+ },
136
+ {
137
+ "version": "v50",
138
+ "sha": "8027c83",
139
+ "date": "2026-08-23",
140
+ "subject": "release v50"
141
+ },
142
+ {
143
+ "version": "v49",
144
+ "sha": "9a14c01",
145
+ "date": "2026-08-23",
146
+ "subject": "release v49"
147
+ },
148
+ {
149
+ "version": "v48",
150
+ "sha": "3c69fd9",
151
+ "date": "2026-08-23",
152
+ "subject": "release v48"
153
+ },
154
+ {
155
+ "version": "v47",
156
+ "sha": "917f9a0",
157
+ "date": "2026-08-23",
158
+ "subject": "release v47"
159
+ },
160
+ {
161
+ "version": "v46",
162
+ "sha": "a8dc531",
163
+ "date": "2026-08-23",
164
+ "subject": "release v46"
165
+ },
166
+ {
167
+ "version": "v45",
168
+ "sha": "0b2b501",
169
+ "date": "2026-08-23",
170
+ "subject": "release v45"
171
+ },
172
+ {
173
+ "version": "v44",
174
+ "sha": "a7877aa",
175
+ "date": "2026-08-23",
176
+ "subject": "Hotfix: allow renaming the active Map view"
177
+ },
178
+ {
179
+ "version": "v43",
180
+ "sha": "e2ba461",
181
+ "date": "2026-08-23",
182
+ "subject": "release v43"
183
+ },
184
+ {
185
+ "version": "v42",
186
+ "sha": "25b885e",
187
+ "date": "2026-08-23",
188
+ "subject": "release v42"
189
+ },
190
+ {
191
+ "version": "v41",
192
+ "sha": "1d6adcc",
193
+ "date": "2026-08-22",
194
+ "subject": "v41 vertical route navigation"
195
+ },
196
+ {
197
+ "version": "v40",
198
+ "sha": "1451837",
199
+ "date": "2026-08-22",
200
+ "subject": "release v40 route UI correction"
201
+ },
202
+ {
203
+ "version": "v39",
204
+ "sha": "a78bdf0",
205
+ "date": "2026-08-21",
206
+ "subject": "W39 clean stale migration targets"
207
+ },
208
+ {
209
+ "version": "v38",
210
+ "sha": "a556631",
211
+ "date": "2026-08-21",
212
+ "subject": "W39 reversible Live store cutover"
213
+ },
214
+ {
215
+ "version": "v37",
216
+ "sha": "1ddd8cf",
217
+ "date": "2026-08-21",
218
+ "subject": "W39: coalesce derived workspace reads"
219
+ },
220
+ {
221
+ "version": "v36",
222
+ "sha": "51db3b7",
223
+ "date": "2026-08-21",
224
+ "subject": "W39 share-field oid repair"
225
+ },
226
+ {
227
+ "version": "v35",
228
+ "sha": "0f64212",
229
+ "date": "2026-08-21",
230
+ "subject": "W39 visual QA fixture"
231
+ },
232
+ {
233
+ "version": "v34",
234
+ "sha": "cb4caa1",
235
+ "date": "2026-08-21",
236
+ "subject": "W39 Staging PostgreSQL egress controls"
237
+ },
238
+ {
239
+ "version": "v33",
240
+ "sha": "2b115e5",
241
+ "date": "2026-08-21",
242
+ "subject": "W39: stop nonproduction Postgres background egress"
243
+ },
244
+ {
245
+ "version": "v32",
246
+ "sha": "b47b27c",
247
+ "date": "2026-08-21",
248
+ "subject": "W39: repair Staging Postgres projection"
249
+ },
250
+ {
251
+ "version": "v31",
252
+ "sha": "8880a49",
253
+ "date": "2026-08-21",
254
+ "subject": "v31: Wave 39 staging candidate"
255
+ },
256
+ {
257
+ "version": "v30",
258
+ "sha": "71776ca",
259
+ "date": "2026-08-20",
260
+ "subject": "v30: W39-T29 Member-owned View first-share hotfix"
261
+ },
262
+ {
263
+ "version": "v29",
264
+ "sha": "55ced50",
265
+ "date": "2026-08-18",
266
+ "subject": "v29: the build staging has been running since 2026-08-18 (55ced50)."
267
+ },
268
+ {
269
+ "version": "v28",
270
+ "sha": "2793e4b",
271
+ "date": "2026-08-18",
272
+ "subject": "release v28"
273
+ },
274
+ {
275
+ "version": "v27",
276
+ "sha": "c05a794",
277
+ "date": "2026-08-18",
278
+ "subject": "release v27"
279
+ },
280
+ {
281
+ "version": "v25",
282
+ "sha": "bc24829",
283
+ "date": "2026-08-14",
284
+ "subject": "v25 - wave 32's LIVE build (deployed 2026-08-13, bc24829)"
285
+ },
286
+ {
287
+ "version": "v26",
288
+ "sha": "6a642e1",
289
+ "date": "2026-08-14",
290
+ "subject": "v26 - wave 33's build (deployed 2026-08-14, 6a642e1)"
291
+ },
292
+ {
293
+ "version": "v24",
294
+ "sha": "514d829",
295
+ "date": "2026-08-09",
296
+ "subject": "release v24"
297
+ },
298
+ {
299
+ "version": "v23",
300
+ "sha": "44cc283",
301
+ "date": "2026-08-09",
302
+ "subject": "release v23"
303
+ },
304
+ {
305
+ "version": "v22",
306
+ "sha": "f14e199",
307
+ "date": "2026-08-09",
308
+ "subject": "release v22"
309
+ },
310
+ {
311
+ "version": "v21",
312
+ "sha": "5fdffce",
313
+ "date": "2026-08-09",
314
+ "subject": "release v21"
315
+ },
316
+ {
317
+ "version": "v20",
318
+ "sha": "442e4a1",
319
+ "date": "2026-08-09",
320
+ "subject": "release v20"
321
+ },
322
+ {
323
+ "version": "v19",
324
+ "sha": "94cb4a4",
325
+ "date": "2026-08-09",
326
+ "subject": "release v19"
327
+ },
328
+ {
329
+ "version": "v18",
330
+ "sha": "0106ef9",
331
+ "date": "2026-08-09",
332
+ "subject": "release v18"
333
+ },
334
+ {
335
+ "version": "v17",
336
+ "sha": "308240c",
337
+ "date": "2026-08-09",
338
+ "subject": "release v17"
339
+ },
340
+ {
341
+ "version": "v16",
342
+ "sha": "a804df5",
343
+ "date": "2026-08-09",
344
+ "subject": "release v16"
345
+ },
346
+ {
347
+ "version": "v15",
348
+ "sha": "6b84d72",
349
+ "date": "2026-08-09",
350
+ "subject": "release v15"
351
+ },
352
+ {
353
+ "version": "v14",
354
+ "sha": "bee5eaf",
355
+ "date": "2026-08-07",
356
+ "subject": "release v14"
357
+ },
358
+ {
359
+ "version": "v13",
360
+ "sha": "314c0e3",
361
+ "date": "2026-08-06",
362
+ "subject": "release v13"
363
+ },
364
+ {
365
+ "version": "v12",
366
+ "sha": "4908f39",
367
+ "date": "2026-08-06",
368
+ "subject": "release v12"
369
+ },
370
+ {
371
+ "version": "v11",
372
+ "sha": "3126617",
373
+ "date": "2026-08-05",
374
+ "subject": "release v11"
375
+ },
376
+ {
377
+ "version": "v10",
378
+ "sha": "43f8042",
379
+ "date": "2026-08-05",
380
+ "subject": "release v10"
381
+ },
382
+ {
383
+ "version": "v9",
384
+ "sha": "2e26f57",
385
+ "date": "2026-08-05",
386
+ "subject": "release v9"
387
+ },
388
+ {
389
+ "version": "v8",
390
+ "sha": "8073b3e",
391
+ "date": "2026-08-05",
392
+ "subject": "release v8"
393
+ },
394
+ {
395
+ "version": "v7",
396
+ "sha": "b1c5a7e",
397
+ "date": "2026-08-05",
398
+ "subject": "release v7"
399
+ },
400
+ {
401
+ "version": "v6",
402
+ "sha": "a344020",
403
+ "date": "2026-08-05",
404
+ "subject": "release v6"
405
+ },
406
+ {
407
+ "version": "v5",
408
+ "sha": "c0b0fbb",
409
+ "date": "2026-08-05",
410
+ "subject": "release v5"
411
+ },
412
+ {
413
+ "version": "v4",
414
+ "sha": "de5037f",
415
+ "date": "2026-08-05",
416
+ "subject": "release v4"
417
+ },
418
+ {
419
+ "version": "v3",
420
+ "sha": "6b9fa62",
421
+ "date": "2026-08-05",
422
+ "subject": "release v3"
423
+ },
424
+ {
425
+ "version": "v2",
426
+ "sha": "fd05861",
427
+ "date": "2026-08-04",
428
+ "subject": "release v2"
429
+ },
430
+ {
431
+ "version": "v1",
432
+ "sha": "5b4e2c4",
433
+ "date": "2026-08-04",
434
+ "subject": "release v1"
435
+ }
436
+ ]
437
  }
VERSION CHANGED
@@ -1 +1 @@
1
- 71f6176
 
1
+ 40dceba
api/routes_auth.py CHANGED
@@ -31,6 +31,24 @@ def _audit_unresolved(identifier):
31
  ("aios-security-event-identity-v1\0" + normalised).encode("utf-8")).hexdigest()
32
 
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  #: THE SERVER OWNS BACKOFF: the login page never paces itself. The budget lives in the shared
35
  #: tenant-0 auth store, not this process, so worker rotation or a deploy cannot buy ten more tries.
36
  #: Username and email aliases resolve to one canonical account key; only a SHA-256 digest of that
@@ -38,9 +56,8 @@ def _audit_unresolved(identifier):
38
  def _throttle_key(identifier):
39
  try:
40
  return users.canonical_login_identifier(identifier)
41
- except Exception:
42
- raise err(503, "auth_state_unavailable",
43
- "sign in protection is temporarily unavailable. Try again later")
44
 
45
 
46
  def _throttled(key, now=None):
@@ -48,9 +65,8 @@ def _throttled(key, now=None):
48
  return 0
49
  try:
50
  return users.login_lockout_remaining(key, now=now)
51
- except Exception:
52
- raise err(503, "auth_state_unavailable",
53
- "sign in protection is temporarily unavailable. Try again later")
54
 
55
 
56
  def _note_failure(key, now=None):
@@ -58,9 +74,8 @@ def _note_failure(key, now=None):
58
  return 0
59
  try:
60
  return users.note_login_failure(key, now=now)
61
- except Exception:
62
- raise err(503, "auth_state_unavailable",
63
- "sign in protection is temporarily unavailable. Try again later")
64
 
65
 
66
  def _clear_failures(key):
@@ -68,9 +83,8 @@ def _clear_failures(key):
68
  return
69
  try:
70
  users.clear_login_failures(key)
71
- except Exception:
72
- raise err(503, "auth_state_unavailable",
73
- "sign in protection is temporarily unavailable. Try again later")
74
 
75
 
76
  def _public_user(user):
 
31
  ("aios-security-event-identity-v1\0" + normalised).encode("utf-8")).hexdigest()
32
 
33
 
34
+ #: ⛔⛔ W-171 - FAILING CLOSED IS RIGHT; FAILING CLOSED SILENTLY IS NOT. On 2026-09-13 staging
35
+ #: answered 503 `auth_state_unavailable` to every sign-in, *including a correct password*, and the
36
+ #: container printed NOTHING: each helper below caught `Exception` and raised the generic 503 with
37
+ #: no trace of what it had caught. The cause (`core.data_binding.StoreWriteRefused`, because the
38
+ #: deploy's `AIOS_SANDBOX_TENANTS` omitted `royal-imports` and the lockout counter is a WRITE into
39
+ #: tenant #0's store on BOTH the failure and the success path) could only be found by reproducing
40
+ #: the call locally against the staging database. One line per helper now names the type and the
41
+ #: message on the way out. It goes to stdout in `api/main.py`'s `[aios-api] ...` shape because that
42
+ #: is what this service uses and what the Space's log collects; the CLIENT message is unchanged,
43
+ #: so nothing about the diagnosis reaches the browser.
44
+ def _auth_store_down(where, exc):
45
+ """Print the swallowed cause, then return the 503 every caller raises."""
46
+ print(f"[aios-api] auth lockout store unavailable in {where}: "
47
+ f"{type(exc).__name__}: {exc}")
48
+ return err(503, "auth_state_unavailable",
49
+ "sign in protection is temporarily unavailable. Try again later")
50
+
51
+
52
  #: THE SERVER OWNS BACKOFF: the login page never paces itself. The budget lives in the shared
53
  #: tenant-0 auth store, not this process, so worker rotation or a deploy cannot buy ten more tries.
54
  #: Username and email aliases resolve to one canonical account key; only a SHA-256 digest of that
 
56
  def _throttle_key(identifier):
57
  try:
58
  return users.canonical_login_identifier(identifier)
59
+ except Exception as exc:
60
+ raise _auth_store_down("_throttle_key", exc)
 
61
 
62
 
63
  def _throttled(key, now=None):
 
65
  return 0
66
  try:
67
  return users.login_lockout_remaining(key, now=now)
68
+ except Exception as exc:
69
+ raise _auth_store_down("_throttled", exc)
 
70
 
71
 
72
  def _note_failure(key, now=None):
 
74
  return 0
75
  try:
76
  return users.note_login_failure(key, now=now)
77
+ except Exception as exc:
78
+ raise _auth_store_down("_note_failure", exc)
 
79
 
80
 
81
  def _clear_failures(key):
 
83
  return
84
  try:
85
  users.clear_login_failures(key)
86
+ except Exception as exc:
87
+ raise _auth_store_down("_clear_failures", exc)
 
88
 
89
 
90
  def _public_user(user):
platform/procurement_suppliers.json ADDED
The diff for this file is too large to render. See raw diff
 
web/package-lock.linux.sha256 ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 3875e749397966dc170a4f83ae04cddc47a2989828cd5c46970cad69dedb255a package-lock.json
2
+ # resolved on linux/x64 by HF job 6aa6bba021047bf1b0384360 on 2026-09-13, npm ci passed there before upload. Regenerate ONLY with lockfile_linux.py (W-170).