Commit Graph

12197 Commits

Author SHA1 Message Date
Sam Dornan
03b8a02fdc style(frontend): sort the fallback import into place
trunk_check failed on three player views. Renaming the module specifier
to useFullscreenFallback changed where it sorts, but the import stayed
where the old name belonged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 16:19:25 +00:00
Sam Dornan
68fee9dce5 fix(frontend): exit the fullscreen fallback when its element leaves the document
PlayerShell renders the stage in a v-else on `running`, so releaseGame
unmounts it while the view stays mounted. The fallback held that element
in a closure and only cleared it on exit, leaving document.fullscreenElement
and the legacy alias pointing at a detached node, with no fullscreenchange
to correct vueuse's state.

The real API exits when its element is removed, so the fallback now does
too, watching only while it holds an element. That keeps the fix in the
polyfill rather than asking every caller to clear fullscreen before it
tears its stage down.

Moves useFullscreenFallback to its own module: v2 composables are one
named export per composables/useFoo/index.ts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 16:11:12 +00:00
Sam Dornan
2be9eb4aea fix(frontend): report a failed fullscreen exit instead of swallowing it
Entry and exit failures are not the same. A rejected request is a denial
and the stage just stays windowed, but callers exit before opening a
body-teleported dialog, so a failed exit leaves that dialog painted over
by the stage with nothing said. The shared wrapper discarded both.

Uses console.error rather than the console.warn this replaced, which v2
does not allow to ship.

Also drops indexdb-monitor.ts from the frontend architecture doc's source
tree, which still listed the deleted file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 16:05:55 +00:00
Sam Dornan
ba0d861c49 polish(frontend): trim fullscreen comments, give the fallback attribute one home
Comments cut to the repo's two-line limit, and the fallback's background
keeps a `black` fallback value so it does not depend on the `.r-v2` token
scope being present, as the v1 shim's literal did not.

The attribute name was written three times across the stylesheet and the
enter/exit pair, where a rename in one would silently stop the CSS
matching.

Verified the fallback in Chromium: it stands aside where the native API
exists, and where it does not the stage computes to position fixed,
z-index 99999, filling the viewport, opaque in both themes and with no
token scope, reverting to static on exit and leaving the prototype clean
on dispose.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 15:57:25 +00:00
Sam Dornan
a6e267e63a refactor(frontend): split the fullscreen fallback out of the player controller
usePlayerFullscreen took an optional target so three library-driven
players could call it bare, purely to install the prototype patch, and
throw the controller away. That discarded controller was not free:
vueuse defaults the target to documentElement and still registers its
fullscreenchange listeners on both it and document.

Split the side effect into useFullscreenFallback and make the target
required. The three call sites now say what they mean without a comment
apologising for an unused return value.

Refcount the install. The patch is process-global while its callers are
scoped, so overlapping consumers would otherwise stack private patch
layers and restore them in teardown order. Probing HTMLElement.prototype
rather than Element.prototype lets an installed fallback see itself.

Drops v2's writes to playing.fullScreen, which no longer had a reader in
either tree. The field stays because v1 still destructures it.

Also: hoist swallow to module scope, annotate the return inline rather
than exporting an unused interface mirroring vueuse's shape, cover the
document.fullScreen alias at the layer that defines it, dispose test
fallbacks in afterEach so a failed assertion cannot leak a patched
document into the next test, and drop test cases that re-covered the
util through the composable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 15:40:29 +00:00
Sam Dornan
c779765f45 refactor(frontend): use native fullscreen where it exists, fall back only where it does not
The fallback that emulates the Fullscreen API gated on a user-agent
sniff for iOS. Both branches of that check also match iPad, where the
API genuinely works behind the webkit prefix, so the fallback was
replacing a working native implementation with a fixed-position div:
iPad players lost real fullscreen and kept the browser chrome.

Gate on capability instead. iPhone has no element fullscreen at all
(caniuse note 5, still current for iOS 27), iPad has the prefixed API,
everything else has the standard one, so probing Element.prototype puts
each platform on the best implementation it has and retires the fallback
by itself if iPhone ever ships the real thing.

Centralise the rest behind usePlayerFullscreen. Fullscreen was reaching
the five players five different ways, and the fallback was installed by
only one of them, so the shared "start in fullscreen" toggle did nothing
on iPhone in the other four. The composable installs the fallback for
the scope and wraps vueuse's useFullscreen, which brings the webkit
prefix handling that Stream's hand-rolled version lacked. Players whose
library drives fullscreen itself call it without a target: the fallback
patches the same prototype the library reaches for.

The fallback also has to expose document.fullScreen. It is the
deprecated alias support probes read to decide the API is usable, and
without it vueuse treats the polyfilled API as unsupported and enter()
silently does nothing.

Drops playing.setFullScreen, which had no callers. The fullScreen state
it wrote is still referenced by v1 and cannot go until that tree does.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 15:28:16 +00:00
Sam Dornan
d49194f11f fix(frontend): drop the v1 deprecation note to satisfy the freeze check
CI's check-v1-frozen fails any diff touching
frontend/src/{views,components,console,layouts} without the
allow-v1-changes label, which is reserved for sanctioned critical bug
fixes. A deprecation comment is not one, so the annotation comes out
rather than bypassing the guard. The divergence is documented on the v2
fork instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 14:39:16 +00:00
Sam Dornan
352a2d4805 refactor(frontend): fork the iOS fullscreen shim into v2, drop dead util
v2's EmulatorJS player reached into the frozen v1 tree for
installIOSFullscreenShim. The v1 implementation hides app chrome via
Vuetify selectors (.v-app-bar, .v-bottom-navigation, .v-navigation-drawer),
which match nothing in v2: that UI uses no Vuetify, and the player already
unmounts AppNav/BottomNav through useStageActive. The nav-hiding half was
silently inert on iOS in v2.

Fork the shim to src/v2/utils/playerFullscreen.ts with the nav handling
dropped and the hardcoded black swapped for --r-color-canvas-bg, per the
v2 zero-hex-literal policy. The v1 export is marked @deprecated rather
than changed, as the v2 constitution prescribes for coexistence forks.
Adds the test coverage the shim never had.

Also removes src/utils/indexdb-monitor.ts, which has had no importer in
either UI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
2026-09-15 14:37:34 +00:00
Georges-Antoine Assi
d053767e68 Merge pull request #4469 from rommapp/claude/bump-uv-0.12.13
chore(uv): bump to 0.12.13 and make pyproject the single source for the version
2026-09-15 09:51:55 -04:00
Georges-Antoine Assi
c5071c3b42 chore(uv): trim the required-version comment to one line
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 09:45:49 -04:00
Georges-Antoine Assi
3bafae8286 Merge remote-tracking branch 'origin/master' into claude/bump-uv-0.12.13
# Conflicts:
#	docker/Dockerfile
2026-09-15 09:30:31 -04:00
Georges-Antoine Assi
827aef4221 Merge pull request #4490 from rommapp/fix/trigger-ddl-privilege-guard-3932
fix(migrations): name the fix when the server denies trigger DDL
2026-09-15 09:25:37 -04:00
Georges-Antoine Assi
78ba4c4721 fix(migrations): give the trigger-DDL probe a name no schema can hold
Trigger names are schema-wide, so the fixed probe name could name an
operator's own trigger, and DROP TRIGGER IF EXISTS would really remove it.
A fresh uuid per call makes the statement a guaranteed no-op, so the only
error it can raise is the refusal it is looking for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 09:20:54 -04:00
Georges-Antoine Assi
d74d6b27a5 Merge pull request #4480 from rommapp/claude/stale-scan-stats-meta
fix(tasks): fill the scan counters a job's stored stats predate
2026-09-15 08:36:25 -04:00
Georges-Antoine Assi
a0aba1f51d Merge pull request #4478 from LoneAngelFayt/feat/streaming-webstation
fix(streaming): prefer the emulator's own screenshot for save-state thumbnails
2026-09-15 08:35:43 -04:00
renovate[bot]
cf770354a2 chore(deps): update github actions (#4513) 2026-09-15 06:54:07 -05:00
Georges-Antoine Assi
f2291a225f Merge pull request #4472 from kylebenzo/fix/zip-rom-patching
fix(patcher): apply patches to ROMs inside ZIP archives
2026-09-15 07:47:17 -04:00
Georges-Antoine Assi
62b6a7596b docs(streaming): trim the state-screenshot comments
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 07:41:22 -04:00
Georges-Antoine Assi
ef9983fc02 refactor(streaming): one home for the PNG check, one deadline for the frame
The magic-byte test moves behind `_is_png`, so the two places that need it (the
broker body, where the answer decides whether the embedded frame is tried, and
the filesystem sink) read as one rule instead of two. Narrowing the extract
catch back to the failures a savestate archive can raise keeps a programming
error loud rather than logging it as a missing thumbnail.

The frame fetch gets its own 10s deadline: it runs while the claim is still
held and the player waits on the exit screen, and a thumbnail does not need the
archive-transfer budget.

From the pr-ready simplify pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 07:37:33 -04:00
Georges-Antoine Assi
63129edb30 fix(streaming): reject a non-PNG broker frame and inflate off the loop
The broker's screenshot now shadows the frame PCSX2 embeds in its own state,
so a 200 that is not a PNG has to read as no frame rather than as an unusable
one, or the state lands with no thumbnail at all. Extraction moves onto a
thread alongside the fetch it falls back from, since the body it inflates runs
to hundreds of megabytes.

From the pr-ready code-review pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 07:30:06 -04:00
Georges-Antoine Assi
4d36cfd513 fix(v2): stop the RProgressLinear ticker story outliving its test
The live ticker rescheduled itself through requestAnimationFrame with no
stop condition, so the loop kept running after the story unmounted. Once
the suite tore the environment down, a pending callback fired against a
gone requestAnimationFrame and failed the run with an unhandled
ReferenceError, even with every test passing.

Drive it from an interval started on mount and cleared on unmount, the
way the RProgressCircular and RImg animated stories already do.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 21:59:42 -04:00
Georges-Antoine Assi
0f4db4dfc2 Merge pull request #4471 from rommapp/claude/precompress-static-assets
perf(frontend): precompress built assets and serve them with gzip_static
2026-09-14 21:56:28 -04:00
Georges-Antoine Assi
60e4e385b5 Merge remote-tracking branch 'origin/master' into fix/zip-rom-patching
# Conflicts:
#	frontend/src/locales/zh_CN/patcher.json
2026-09-14 18:44:46 -04:00
Georges-Antoine Assi
4f6532500d fix(patcher): label the archive-member select and cover it with tests
The member picker reused patcher.select-file, so a ROM with several base
files rendered two dropdowns both labelled "Select file". Add
patcher.select-archive-member across all 18 locales and use it.

Treat an empty archive_member_name form field as "not specified" rather
than as a member name that matches nothing.

Fold getZipMembers into the archiveMembers computed and watch that, so
the selection also resets when the member list itself changes.

Add PatcherTab coverage for sending the selected member, typed against
RomArchiveMember so the fixture cannot drift from the schema.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 18:41:56 -04:00
Georges-Antoine Assi
ff335ea2c0 fix(patcher): keep zipfile errors matchable and stop forcing ZIP64
A module-level exception tuple freezes zipfile.BadZipFile, but seven test
modules reload the zipfile module, which rebinds the class. After any of
them runs, a corrupt archive escaped the handler and surfaced as a raw
BadZipFile instead of a 400. Look the class up at raise time instead.
NotImplementedError goes with it, being a RuntimeError subclass.

Declare each rebuilt entry's final size instead of passing force_zip64,
so zipfile marks an entry ZIP64 only when it needs to; a patched ROM
handed to a basic unzip implementation was otherwise rejected even though
the unpatched archive loaded fine.

Drop the extracted and patched intermediates once they are consumed,
rather than holding three full-size copies for the life of the download.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 18:41:47 -04:00
Sam Dornan
c4a36aa023 ci: gate the preview-build report job on the build-preview label (#4475)
The workflow triggers on `pull_request: types: [labeled]`, so adding any
label starts a run. `prepare`, `build` and `merge` are each gated on the
`build-preview` label and are skipped without it, but `report` was gated
only on the event type, so it ran and read `needs.merge.result` of
`skipped` as a failure. Every PR that received any other label got a
false "Preview build failed" sticky comment.


Claude-Session: https://claude.ai/code/session_01YBBbdsDv9BiYJnKwcCGE6A

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:19:37 -05:00
Zurdi
d4f81f097f Merge pull request #4487 from rommapp/claude/graphql-api-migration-vu20z2
refactor(roms): give the ROM filters a single home, and match them against the facets mirror
2026-09-14 23:46:48 +02:00
Zurdi
522d15f1b4 Merge pull request #4482 from rommapp/claude/zealous-sagan-qlvox0
fix(v2): dismiss tooltips when an overlay opens over them
2026-09-14 23:46:39 +02:00
Zurdi
fc75bbb722 Merge pull request #4500 from rommapp/feat/steam-cover-provider
feat: offer Steam as a cover art provider
2026-09-14 23:40:57 +02:00
Kyle Benzo
d8a32ab7dd fix(patcher): preserve output filesystem errors 2026-09-14 13:01:53 -07:00
Kyle Benzo
fad8b2943d fix(patcher): use archive fallback for zip extraction 2026-09-14 12:55:08 -07:00
kylebenzo
3e73579614 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-14 12:49:58 -07:00
Zurdi
7e774e3049 Merge pull request #4489 from wolfg1969/master
Translate the remaining untranslated zh_CN strings
2026-09-14 20:45:55 +02:00
Zurdi
a4005539dd Merge pull request #4474 from rommapp/claude/ui-framework-identification-sajda8
docs: correct stale Vuetify claims in v2 skills and architecture doc
2026-09-14 20:45:07 +02:00
Zurdi
c2690c1a1e Merge pull request #4468 from rommapp/claude/nginx-alternatives-pwxq1p
perf(docker): upgrade nginx to 1.29.8 and tune the serving layer
2026-09-14 20:43:58 +02:00
Georges-Antoine Assi
13b073dc4b Merge pull request #4501 from rommapp/perf/roms-single-rebuild-migration
perf(migrations): add the 5.3.0 roms columns in one table copy
2026-09-14 07:45:06 -04:00
Georges-Antoine Assi
07f5a1d005 refactor(migrations): tighten the roms catalog (simplify)
- `rebuild_generated_columns` owns the index drop, since it is the one
  place a column is dropped, so 0123's downgrade gets it too.
- `ensure_roms_columns` builds its action list first and runs on it, and
  no longer re-reflects the table to re-test a column it just added.
- One list behind `STEAM_FED_COLUMNS`, and `INHERITED_COLUMNS` says what
  the set difference at the use site used to.
- 0112 builds the view through `roms_metadata_view_sql`, and 0126 drops
  the add-column branch the shared copy made unreachable.
- Tests share one generated-expression helper and read index and column
  names off the module that owns them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 07:29:28 -04:00
Georges-Antoine Assi
e3f34a4562 fix(migrations): harden the roms catalog replays (code-review)
- `drop_roms_columns` drops a composite index that still spans a column
  it removes before the ALTER: MariaDB and MySQL would otherwise keep the
  index over the remaining columns, so 0126's unique index left by a run
  that died before its stamp would become UNIQUE (platform_id).
- `ensure_roms_columns` recreates `roms_metadata` whenever it is absent,
  so a run that died between its ALTER and the CREATE VIEW gets the view
  back on the replay instead of only when a rebuild is pending.
- A generated column the engine does not reflect as computed counts as
  not reading Steam and is rebuilt, rather than raising a KeyError.
- One home for the `steam_metadata` column name, imported by 0123.
- Tests pin the lost view, the leftover MariaDB default and the surviving
  unique index; the ALTER recorder matches `roms` as a whole word.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 07:14:10 -04:00
Zach Clendenen
a9aef8a8e9 fix(streaming): take state thumbnails from the broker's frame
The browser capture read #videoCanvas by id, but the default path routes
frames through a MediaStreamTrackGenerator into a hidden #videoStream, so
drawImage returned a transparent bitmap. That still carries PNG magic, so
the backend accepted it and filed a blank thumbnail against a good state.

pull_state_to_library now asks the broker for the container's own capture
first, which is the same route for every emulator, and falls back to an
embedded frame (PCSX2) only when the broker answers 404. The browser
capture, its Redis stash, and the /state-frame endpoint are gone.
2026-09-13 21:33:09 -05:00
Georges-Antoine Assi
fa402ba234 fix(migrations): drop every front-loaded roms column on 0108's downgrade
0108 adds every column of the 5.3.0 catalog, so a chain that stopped
before a later revision and then downgrades to 0107 used to keep that
revision's columns, including a NOT NULL full_path_hash on MariaDB that
5.2.0 could no longer insert around. `drop_roms_columns()` now removes
whatever of the catalog is still there in one ALTER TABLE, restores the
pre-Steam expressions on the 0098 columns, recreates the view over what
remains and drops the PostgreSQL enum type.

The plain column list no longer needs a connection, so the enum type is
created just before the ALTER that needs it and dropped through one
helper shared with 0116.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 22:17:12 -04:00
Georges-Antoine Assi
f18ee70281 perf(migrations): add the 5.3.0 roms columns in one table copy
Every ALTER TABLE roms copies the whole table: the FULLTEXT index from
0084 rules out ALGORITHM=INSTANT (its hidden FTS_DOC_ID column survives
even a DROP INDEX), and a STORED generated column takes ALGORITHM=COPY on
every engine. The 5.2.0 -> 5.3.0 chain issued 21 such ALTERs, one per
revision, so a library with a JSON blob per provider on every row paid
for 21 copies.

`utils/roms_columns.py` now declares every column the chain puts on
`roms`, plain and generated, and `ensure_roms_columns()` adds whatever
the table lacks in a single ALTER TABLE. Each revision that used to add
its own columns calls it instead, so the first one to run on a database
does the copy and the rest find their columns in place. A table whose
generated columns predate 0123 is recognised by the provider they do not
read yet and rebuilt at the current definition in the same statement.

On MariaDB the copy also fills `full_path_hash` through a column
referencing DEFAULT that is dropped right after, so 0126 no longer runs a
whole-table UPDATE through the roms_facets triggers followed by a NOT NULL
rebuild.

Measured on a 73k-ROM copy of the dev library (MariaDB 11.3.2, 128 MB
buffer pool): 168.5s -> 48.9s for 5.2.0 -> head, with one 16s copy where
there were 21 rebuilds. The resulting schema is identical to the old
chain's on MariaDB and PostgreSQL, and a fresh install lands on the same
schema on MariaDB 10.11.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 19:17:49 -04:00
zurdi
03d986bd55 fix: address the cover provider review
The providers row dropped a grid provider's match cover whenever that
provider was configured, even when its grid came back empty, so a
timed-out CDN probe hid the one Steam capsule the match had found. The
row now only drops a provider whose result set is actually in the grid.

A source listed twice in the cover priority handed the picker its
covers twice; the priority helper now keeps a source's first position
only, for every caller. The v1 cover dialog keys its panels by
provider as well as name, since both providers can return the same
title. The provider chips grow to the touch target on touch and
gamepad input.

The invalid-key regression test now raises the adapter's own exception
class, and the endpoint gate is covered with Steam as the only enabled
provider. A component test drives the dialog wiring: chips filter the
grid, Steam covers are handed off untouched, and the providers row
keeps a match cover whose grid is empty.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Untv32z88QMZ2yRSsTgGcC
2026-09-14 01:00:34 +02:00
zurdi
1afa59d9de feat: offer Steam as a cover art provider
The cover search dialog only reached SteamGridDB, so a PC game whose
capsule lives on Steam had no way to pick it up short of a full
re-match. Steam now joins SteamGridDB behind `GET /search/cover`,
ordered by the configured cover priority, and each result carries its
provider so the dialog can filter by source and credit the artwork.

The Steam handler builds the picker from the store search alone and
probes the CDN for the portrait capsule and the landscape header under
the same budget the match picker uses, so a slow CDN costs thumbnails
rather than the dialog. Hits with no artwork are dropped.

A failing provider costs only its own covers; a rejected SteamGridDB
key is still reported, since that is the user's to fix. The "search
cover" action in the edit dialog now opens whenever either provider is
enabled, and the game overview credits Steam-hosted covers.

The resource shape the picker consumes moves to the shared base handler
as `CoverResource` / `CoverResult`, since it is no longer SteamGridDB's
alone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Untv32z88QMZ2yRSsTgGcC
2026-09-14 00:35:08 +02:00
Sam Dornan
4912f8d071 feat: offer Steam as a match provider for PC platforms (#4498) 2026-09-13 16:30:19 -05:00
Georges-Antoine Assi
2770846f44 Merge pull request #4470 from rommapp/feature/reading-progress-bar
feat(v2): show a reading-progress bar in the manual and walkthrough viewers
2026-09-13 13:39:06 -04:00
Georges-Antoine Assi
d978054591 fix(v2): keep a user's page turn when the PDF restore lands late
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 13:34:34 -04:00
Georges-Antoine Assi
f1f39c4561 feat(v2): place the anniversaries widget next to random pick
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 10:14:28 -04:00
Georges-Antoine Assi
18f4a7581e Merge pull request #4491 from rommapp/chore/remove-docs-website-trigger
chore(ci): drop the docs and website release triggers
2026-09-13 08:34:38 -04:00
Georges-Antoine Assi
8c1ea8c083 review(pr-ready step 4): sharpen the gate name and trim the guard prose
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 07:58:48 -04:00
Georges-Antoine Assi
c4e9f1c934 review(pr-ready step 3): one predicate, one test home, real command names
The gate tested command names alembic never passes: it hands its environment
the per-command `fn` name, so `do_stamp` and `display_version` are what reach
it. Pin that with a canary over the closure the gate matches.

Probe before reading the applied heads, so only a server that refuses pays for
the lookup and the other dialects pay nothing, and fold the tests into the
module they mirror.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 07:56:55 -04:00