dev #14

Open
xavier wants to merge 13 commits from dev into main
Owner
No description provided.
Answers the architect question posed by the backlog item: GET-only,
client-side (WebCrypto SigV4, no AWS SDK in web), proxy uninvolved,
informed-consent UX. Feature remains unscoped; spec divergence anchor
for object-operations.md at promotion time.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Captures the Principal Q&A durably: recipient GETs the endpoint
directly, never touching the deployment; proxy-target and
frontend-target URLs weighed and rejected inline (house style per
ADR #42's clarification precedent).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Principal-ratified rejection of accounts/SSO/RBAC: native gate stack
(basic auth + TLS + rate limit + allowlist) or identity-aware
forward-auth gateway; app stays zero-identity BYO. Deployment view
records the boundary.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
- Accounts/SSO/RBAC -> rejected.md (ADR #56; per-user entry's
  delegated-auth branch annotated as closed)
- Presigned share URLs: refined per ADR #55 (client-side, GET-only,
  direct-to-S3 recipient flow) — [raw] dropped
- Cross-tab sharing: mechanism chosen (BroadcastChannel adoption
  probe, never localStorage)
- HTTP/2 listener: verification-pass checklist appended (ADR #42 path)

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
AGENTS.md now states that any agent or human, in any role, may
append to or refine backlog items (PM stays structural owner), and
that only the Analyst or the Architect may reject an item into
rejected.md (product/scope vs architectural split; Principal may
always direct). backlog.md's Convention + Lifecycle mirror updated to
match — no contradiction left between the two files.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
First phase of the staged dependency upgrade: clear every pnpm
audit finding reachable from a runtime dependency. Shipped findings
38 -> 0; the 34 that remain are dev-only and fall in later phases.

- fastify 5.11.2 -> 5.12.8 — GHSA-667r-xxjv-c9mm,
  GHSA-p68q-wchp-6fh7, GHSA-hwr6-493r-vm6h, GHSA-9q9j-q6p8-xq58
  (high) and GHSA-w2qp-rph6-63g4, GHSA-3m5p-2c4r-xxw2,
  GHSA-4mh8-r7rc-xpvc (moderate). None of the vulnerable
  configurations is in use: no route schemas (validation is
  handler-side Zod), trustProxy in array form only, HTTP/1.1 only,
  no setNotFoundHandler, no handlerTimeout.
- zod 4.4.3 -> 4.6.7 — GHSA-mrhx-c7xc-m3w5 (high). Collection
  bounds (.max/.length/.size) now run before element parsing.
- @fastify/static 10.1.2 -> 10.1.11 — glob ^13 -> ^14, carrying
  the patched glob, minimatch and brace-expansion.
- Transitive refresh inside existing ranges: fast-uri 3.1.5 -> 3.1.9
  and 4.1.2 -> 4.2.3; ip-address 10.4.0 -> 10.7.6.

zod-config.ts: the module doc's zod internals references re-verified
against 4.6.7 — the eager allowsEval read at schema construction and
its jitless short-circuit are unchanged; line references updated.

Gate: pnpm check, typecheck, lint, build and the unit suites (3012
tests) are green, and the Docker image builds. Integration and E2E
suites not run: the MinIO fixture image is no longer publicly
pullable (quay.io/minio/minio returns unauthorized).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Fastify 5.12.2 (GHSA-p68q-wchp-6fh7) answers a URL the router cannot
decode before any handler runs. The existing web-static tests pin
relay-vs-fallback priority for well-formed URLs only, so add the
malformed case on both sides of the invariant: /s3/% (relay) and /%
(client-side route) must both answer 400 and never carry index.html.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Second phase of the staged dependency upgrade: every remaining
non-major exact pin moves to the newest release past the 7-day
release-age gate. pnpm audit: 34 -> 1 finding, none reachable from a
runtime dependency (the one left is minimatch 10.2.6 under
typescript-eslint 8.72.2; 8.73.0 drops it and clears the age gate on
2026-11-23).

Runtime (proxy): @aws-sdk/client-s3 3.1169.0, @fastify/helmet 13.2.0,
@fastify/rate-limit 11.2.2, pino 10.4.0.
Runtime (web): react / react-dom 19.3.1, react-router 8.5.1,
@tanstack/react-query 5.107.1, @tanstack/react-virtual 3.14.26,
zustand 5.1.0, hyparquet 1.33.0, @codemirror/autocomplete 6.20.4,
@codemirror/state 6.7.6, @codemirror/view 6.43.15 (with the matching
pnpm override), @uiw/react-codemirror 4.25.12.
Dev tooling: vite 8.3.8, @vitejs/plugin-react 6.3.0, tailwindcss and
@tailwindcss/vite 4.3.5, vitest 4.1.12 (patch level; 5.x is a later
phase), @testing-library/dom 10.4.2, @testing-library/react 16.3.3,
@formatjs/cli 6.19.0, @types/react and @types/react-dom 19.3.0,
eslint-plugin-react-refresh 0.5.8. Range dependencies refreshed in the
lockfile only: eslint 10.15.0, prettier 3.10.1, typescript-eslint
8.72.2, @types/node 24.19.2.
Transitives refreshed inside existing ranges to clear advisories:
undici 8.12.4, nanoid 3.3.20, source-map-js 1.2.2, brace-expansion
5.0.13. `pnpm dedupe` then collapsed three older duplicates onto
versions already in the lockfile (@codemirror/state 6.7.1 -> 6.7.6,
@jridgewell/sourcemap-codec 1.5.5 -> 1.6.0, picomatch 4.0.5 -> 4.0.7).

Two adaptations the upgrade required:
- list-view-helpers.tsx: the ResizeObserver polyfill now patches
  clientWidth/clientHeight as well as offsetWidth/offsetHeight.
  virtual-core 3.19 changed getRect from offset* to client*, so the
  real-virtualizer tests rendered zero rows in jsdom. Test-only; real
  browsers report both.
- pnpm-workspace.yaml: the @codemirror/view override comment no
  longer claims @codemirror/state 6.7.1 is latest.

Held back: @playwright/test stays at 1.62.1 — each minor bumps the
browser build and the viewport-layout E2E specs cannot be run until
the MinIO fixture is available again.

Gate: clean frozen install, pnpm check, typecheck, lint, build and
the unit suites (3014 tests) green; the Docker image builds.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Third phase of the staged dependency upgrade (majors, one per
commit). vitest 5.1.0 in shared, proxy and web. No config change is
required: the repo uses no API the 5.0 migration guide retires, and
vitest 5.1.0 accepts the installed vite 8.3.8 and Node 24.19.

One default changed: vitest 5 sets `clearMocks` to true (vitest 4:
false). web already set it explicitly; proxy and shared inherit it.
All 3014 unit tests pass under the new default, so no suite relied on
mock call history surviving between tests; the proxy config's doc
comment records the change.

Gate: clean frozen install, pnpm check, typecheck, lint, build, unit
suites green.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Third phase of the staged dependency upgrade (majors, one per
commit). jsdom is the vitest environment of the web component tests;
nothing in the repo uses what 31.0.0 changes (no canvas backend, no
getComputedStyle assertions, no direct jsdom import), and its Node
floor (^24.15.0) is met by 24.19. 31.0.1 also moves its undici
requirement to ^8.12.3, which locks in the patched line.

Gate: clean frozen install, pnpm check, typecheck, lint, build, unit
suites green.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Third phase of the staged dependency upgrade (majors, one per commit).
Crosses react-intl 11 and 12. No runtime behaviour change is expected
(upstream: 11 and 12 are type-level and additive) and all 3014 unit
tests pass with unchanged assertions.

From 12.0.2 an unannotated `defineMessages` descriptor carries an EMPTY
ICU argument contract, so every `formatMessage(desc, values)` call
failed typecheck (160 errors in 25 files). Each catalog now declares
its contract — one entry per message id, derived from the ICU syntax
of each defaultMessage with formatjs's own parser: `number` for plural
and number arguments, `number | Date` for date and time, `string |
number` for plain and select arguments, `MessageTag` for rich-text
tags, `NoMessageValues` for argument-less messages.

Shape: the contract is a named type per catalog, written once and used
for both the explicit annotation and the `defineMessages` generic:

  type XMessagesContract = { copied: { count: number }; title: NoMessageValues };
  export const xMessages: MessageCatalog<XMessagesContract> = defineMessages<XMessagesContract>({ ... });

The annotation is what upstream's own migration emits: the type a
catalog infers reaches into intl-messageformat (a transitive
dependency), which the compiler cannot name for an exported binding
under `declaration: true` (TS2883). `MessageCatalog`
(src/i18n/message-catalog.ts) is spelled only in types react-intl
exports. The catalogs keep calling `defineMessages` directly because
`formatjs extract` — the source of the fr-FR catalog and of the
locale-catalog gate — recognises descriptors by that call. Eight
catalogs annotated (511 ids). Left untouched: the four without any
argument-taking message and the three annotation-widened catalogs in
metadata/field-messages.ts. Each declaration stays on one line so the
catalog bodies keep their indentation (these files are not
Prettier-formatted).

Call-site typing only, no behaviour change:
- SourcePickerSizeIndicator.tsx: the two value bags get named shapes
  instead of `Record<string, ...>` index signatures, which cannot
  satisfy named contract properties.
- Three tests: the rich-text stand-in callbacks accept
  `string | ReactNode` chunks, the chunk type a typed contract hands to
  tag callbacks.

Gate: clean frozen install, pnpm check (including the locale-catalog
extraction drift gate), typecheck, lint, build, unit suites green.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
Four items, three of them direct residue of the 2026-11 dependency
upgrade:

- [bug] S3 test fixture: MinIO images are no longer anonymously
  pullable from quay.io or Docker Hub, so the integration and E2E
  stacks cannot start. Principal direction: replace MinIO with RustFS
  or SeaweedFS.
- [improvement] Charset detector: load jschardet on first use, then
  upgrade to 4.x (held at 3.1.4 by Principal decision — 4.1.0 doubles
  the gzipped main bundle as bundled today).
- [improvement] [raw] Dependency refresh, second pass: versions the
  7-day release-age gate or the missing E2E run held back.
- [improvement] [raw] Toolchain: Node 24.19.0 is two security releases
  behind; pnpm 11.20.0 lags.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
docs(architecture): sync tech-stack and component versions to the upgraded pins; ADR #34 clarification on @codemirror/state
All checks were successful
CI / pnpm gate (typecheck, lint, build, test) (push) Successful in 1m41s
release / build + scan + publish (push) Successful in 1m25s
CI / pnpm gate (typecheck, lint, build, test) (pull_request) Successful in 1m23s
bbe0bbfe39
- ARCHITECTURE.md: every tech-stack version cell matches the manifests
  and the lockfile again; react-intl is 12. The date-stamped "verified"
  asides become a standing instruction, so the table cannot go quietly
  false between refreshes.
- COMPONENTS.md: the Fastify, rate-limit, helmet and autocomplete
  version mentions; the i18n layer's typed ICU argument contracts
  (MessageCatalog, one contract type per catalog); the SQL Runner
  dependency line notes that @codemirror/state is single by lockfile
  resolution only.
- DECISIONS.md: a dated clarification inside ADR #34 (original text
  untouched). Its premise that @codemirror/state cannot split held
  only while the explicit pin equalled the locked transitive
  resolution. The 2026-11 refresh split it — two state copies, 86 unit
  tests failing, check:codemirror-dedupe green throughout — and
  `pnpm dedupe` collapsed it. The clarification recommends extending
  both the gate and the override to @codemirror/state and leaves the
  decision to the Principal.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
All checks were successful
CI / pnpm gate (typecheck, lint, build, test) (push) Successful in 1m41s
release / build + scan + publish (push) Successful in 1m25s
CI / pnpm gate (typecheck, lint, build, test) (pull_request) Successful in 1m23s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'dev:dev'
git switch 'dev'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
xavier/s3-vedrfolnir!14
No description provided.