chore(memory): V1-2.1 final decisions evidence, BDR-085, TODO, journal
This commit is contained in:
1 parent
7eca44167b
commit
12816671e4
4 files changed
+60
-20
No files matched your search
@@ -56,40 +56,65 @@ files of this pass:
|
||||
|
||||
## 4. Real-stack results on the corrected HEAD
|
||||
|
||||
| Run | Fresh stack | Upgraded stack (M3 + drawing object, then M4+M5) |
|
||||
Final decisions pass (owner brief « V1-2.1 : décisions finales du propriétaire »), code at
|
||||
`7eca441` (M6 option A, text size measure, pgTAP 015/017). Earlier figures (1 333 pgTAP) were
|
||||
the `2af61e7` state.
|
||||
|
||||
| Run | Fresh stack | Upgraded stack (M3 + Git fixture, then M4+M5) |
|
||||
|---|---|---|
|
||||
| pgTAP (`test-db`) | 1 333/1 333 | 1 333/1 333 |
|
||||
| pgTAP (`test-db`) | 1 352/1 352 | 1 352/1 352 |
|
||||
| sandbox suite, run 1 | 86/86 | 86/86 |
|
||||
| sandbox suite, run 2 (same stack) | 86/86 | 86/86 |
|
||||
| pgTAP again after both suite runs | 1 333/1 333 | 1 333/1 333 |
|
||||
| `types --check` | | types match |
|
||||
| of which two-session concurrency (`sheets-concurrency`) | 16/16 each run | 16/16 each run |
|
||||
| pgTAP again after both suite runs | 1 352/1 352 | 1 352/1 352 |
|
||||
| `types --check` | types match | types match |
|
||||
|
||||
PGlite: 127/127 (packages/supabase: the 17 pgTAP files and the closed-code census).
|
||||
|
||||
New in 017: M6 (owner self-grants `sheet_reviewer`; owner-reviewer acknowledges and approves a
|
||||
version written by E, E publishes; owner refused on a round it authored, `review.separation`;
|
||||
publication after an author's approval refused, `publish.approval.invalid`) and the document
|
||||
size (cap − 1 and cap saved and measured, cap + 1 refused, a 2 MiB document of 3-byte
|
||||
characters saved, cap + 1 in 4-byte characters refused, a dense document within the cap as text
|
||||
and over it as binary jsonb saved whole, creation over the cap refused, the table CHECK
|
||||
definition). Every refusal answers `document.too_large` (23514), never a raw constraint error.
|
||||
|
||||
## 5. Timing at the caps (§15, budget 2 000 ms for save, submit, publish)
|
||||
|
||||
Synthetic document: 64 views, 1 024 annotations, 8 192 finding nodes (depth 8), 1 089 review
|
||||
groups, 4 drawings of 2 000 000 bytes; text 1 807 583 bytes, stored jsonb 2 057 488 bytes
|
||||
(the binding measure, cap 2 097 152). HTTP wall-clock through PostgREST on the development
|
||||
machine, milliseconds (min / median / max):
|
||||
groups, 4 drawings of 2 000 000 bytes. Since the size measure follows the contract, the labels are
|
||||
calibrated on the text alone: text 2 076 707 bytes (cap 2 097 152), binary jsonb 2 346 648 bytes,
|
||||
over the cap and accepted, as the contract's measure requires. HTTP wall-clock through PostgREST
|
||||
on the development machine, milliseconds (min / median / max):
|
||||
|
||||
| Stack, run | save (7) | submit (5) | approve (3) | publish (3) |
|
||||
|---|---|---|---|---|
|
||||
| fresh, 1 | 97 / 102 / 111 | 3 / 4 / 4 | 278 / 283 / 286 | 272 / 285 / 288 |
|
||||
| fresh, 2 | 95 / 110 / 119 | 5 / 6 / 6 | 200 / 283 / 297 | 192 / 274 / 287 |
|
||||
| upgraded, 1 | 107 / 144 / 374 | 6 / 9 / 17 | 197 / 303 / 304 | 209 / 294 / 330 |
|
||||
| upgraded, 2 | 98 / 108 / 114 | 4 / 6 / 7 | 198 / 282 / 286 | 193 / 281 / 290 |
|
||||
| fresh, 1 | 118 / 123 / 137 | 4 / 6 / 7 | 189 / 284 / 303 | 198 / 289 / 300 |
|
||||
| fresh, 2 | 114 / 125 / 139 | 5 / 6 / 6 | 196 / 281 / 292 | 210 / 297 / 307 |
|
||||
| upgraded, 1 | 123 / 128 / 131 | 5 / 6 / 10 | 286 / 292 / 302 | 208 / 291 / 299 |
|
||||
| upgraded, 2 | 118 / 123 / 129 | 4 / 6 / 7 | 198 / 285 / 295 | 211 / 292 / 310 |
|
||||
|
||||
The core's at-caps fixture is V1-2.2 work; the contract fixes the budgets at the V1-2.3
|
||||
checkpoint and measures verification (120 s) there.
|
||||
|
||||
## 6. M7: upgrade rehearsal with the drawing object
|
||||
## 6. M7: upgrade rehearsal with a Git fixture of the drawing object
|
||||
|
||||
DEV path: `up upgrade 20261028100000` from a copy whose migrations stop at M3, the historical
|
||||
drawing placed as the operator tool placed it on DEV (the Git file
|
||||
`supabase/seed/anatomical-sheets/equine/draft/assets/horse.svg`, 132 997 bytes, sha256
|
||||
`0ea5202f…08541` = the seeded row's; service-key upload, pre-M4 confirmation RPC), then M4+M5 by
|
||||
`supabase migration up`.
|
||||
Accepted by the owner for V1-2.1 (brief « V1-2.1 : décisions finales du propriétaire »,
|
||||
2026-10-28; contract §12.3, §17.3). What this rehearsal is, and is not:
|
||||
|
||||
- It uses a representative Git fixture, not a copy of the DEV object: the committed file
|
||||
`supabase/seed/anatomical-sheets/equine/draft/assets/horse.svg` (132 997 bytes), whose sha256
|
||||
`0ea5202f…08541` equals the sha256 referenced by the DEV metadata (the asset row
|
||||
`7f767f74…` of the historical sheet, seeded from `equine_draft.sql`).
|
||||
- Its bytes, its Storage metadata and its relations (asset row, historical sheet, version) are
|
||||
compared before and after the migration.
|
||||
- No file was read from the real Storage of DEV, and nothing on DEV was read or written in
|
||||
V1-2.1. The current integrity of the live DEV object is therefore **not demonstrated**; it is
|
||||
checked when the owner applies M4 to M6 on DEV (contract §16.11).
|
||||
|
||||
DEV path: `up upgrade 20261028100000` from a copy whose migrations stop at M3, the fixture
|
||||
placed as the operator tool placed the drawing on DEV (service-key upload, pre-M4 confirmation
|
||||
RPC), then M4+M5 by `supabase migration up`.
|
||||
|
||||
- `storage.objects` row (id, owner, metadata, version, timestamps), the asset row, the
|
||||
historical sheet row and its version (content md5, updated_at): identical before and after.
|
||||
@@ -100,7 +125,8 @@ drawing placed as the operator tool placed it on DEV (the Git file
|
||||
bytes (sha256 equal to the key); the same editor at aal1, a catalogue reader and an anonymous
|
||||
caller are refused (the historical sheet has no published version).
|
||||
|
||||
The rehearsal is reproducible from the repository, re-run at the final HEAD with the same
|
||||
results: `bash .claude/audits/2026-10-28-v1-2-1-m7/m7-rehearsal.sh [work dir]` (sandbox only; it applies
|
||||
The rehearsal is reproducible from the repository, re-run on `7eca441` (final decisions pass)
|
||||
with the same results, the only diff lines being the bucket limit and the service_role
|
||||
privileges: `bash .claude/audits/2026-10-28-v1-2-1-m7/m7-rehearsal.sh [work dir]` (sandbox only; it applies
|
||||
M4+M5 with `supabase migration up --db-url` on the sandbox port, a step `scripts/db-sandbox.sh`
|
||||
has no subcommand for) and `m7-read.mjs` (the reads with real tokens).
|
||||
Reference in new issue
Block a user