Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 58 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,17 @@ do not choose a new design merely to make a check pass.
## Required verification

Work in approved page/asset batches. During editing, run affected focused checks
and record a preview as an iteration, not a release candidate. Run the complete
`pnpm validate:development` gate for the exact final review candidate before
commit/PR and again on the integrated tree after conflicts. Use the same gate on
contributor and maintainer sides. This comprehensive runner remains an explicit
command; do not add it to ordinary build, development, or commit-hook commands.
Public builds keep their translation and shared-visual checks, and the commit
hook keeps attribution and staged lint checks. Avoid repeating the full gate
immediately before `pnpm build`.
and record a preview as an iteration, not a release candidate. Use the reviewed
combined test engine for the exact final candidate, with repository-owned tests
and supplemental checks discovered for that source revision. Use the same
source-specific scope on contributor and maintainer sides. The retired archived
comprehensive suite is not a second mandatory prebuild run. Compilation follows
passing tests and is a separate action; build guards remain required. Existing
public commands and commit hooks are not changed by these instructions. Inspect
their actual bindings and reconcile obsolete gate instructions explicitly before
integration; do not disable hooks or bypass a failure. Avoid repeating a complete
suite or production compile for an unchanged candidate merely because two stages
invoke it; report any still-required duplicate binding rather than hiding it.
Follow the fix-it audit too: prose instructions are not executable tests.
Inspect the plan/inventory for connected native/source/DOM/style suites; report
actual execution, counts, skips and exclusions separately from discovery.
Expand Down Expand Up @@ -103,6 +106,53 @@ round-trip pass. Perform desktop/narrow and interaction review of changed
roles. Record human review evidence separately from automated checks;
acceptance may be provided by the project owner or an authorized reviewer.

## Test-engine maintenance for contributors and maintainers

Read `tools/validation-engine/README.md` and the extracted engine setup guide
before using the saved engine. This is a preserved reusable implementation and
reference packet, not an automatically installed package command. Extract outside
test discovery paths. Do not copy archived test files over the chosen source.

The engine runs the repository's existing test files through their compatible
runners; tests do not need rewriting into an engine-specific format. On every
preview change or upstream merge:

1. Identify changed behavior and all affected test owners, fixtures, mocks,
selectors and shared contracts. Inspect workflow, package and runner discovery
too; a test not used by GitHub can still be required local coverage.
2. Maintain affected tests and fixtures with the implementation. Preserve valid
canonical GitHub assertions. When an approved behavior supersedes an obsolete
local expectation, document the replacement and retain meaningful positive
and negative coverage. Never change application styling or weaken a test merely
to obtain a pass. Update the Fix-it guide for a proven reusable failure mode.
3. Refresh and review discovery, ownership, expected case identities, dependency
impact mappings and source/lock/runtime/recipe pins for the actual candidate.
Add newly introduced tests; remove duplicates only with proved equivalent
coverage on our supplemental side. Do not reuse reference file counts, pass
receipts or a previous revision's inventory as current acceptance.
4. Run focused affected checks during development. For final verification, queue
independent files concurrently using detected effective CPU capacity and a
sealed worker budget, dependency-aware priorities and staggered setup types.
Preserve timing-sensitive/global-state barriers and per-file disposable
fixtures. Share only proven immutable cached inputs, never mutable databases,
mocks or test state. Unknown setup requirements keep the conservative path.
5. Queue genuine failures for an authorized agent or maintainer to diagnose and
repair. The engine does not itself invent fixes. Coordinate conflicting writes
per file, preserve unrelated edits, verify base/after hashes, then freeze a new
candidate and rerun failed tests plus transitive affected checks. Retain green
results only when complete input closures prove them unchanged; unknown impact
requires broader verification. Record raw failures and actual retest receipts.
6. Compile the unchanged passing candidate once at the authorized build gate.
Keep CSS/i18n/security/network guards and separate browser, CodeQL, platform,
packaging and deployment gates visible. A test-engine pass is not the entire
GitHub pipeline. Report files, cases, failures, skips, elapsed time, worker
budget, repairs and remaining gates; visual approval occurs during development
and review, not an exhaustive visual crawl before every compile.

The saved 3.48.1 reference packet does not establish acceptance of this preview or
a later merge. A version-specific compiler experiment is optional, not authority
to patch dependencies or transplant configuration into a different revision.

## Safe collaboration and records

Recommend a helper when an independent task can proceed while the user reviews
Expand Down
3 changes: 2 additions & 1 deletion bin/local-validation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function validateGovernanceSources(agents, hook) {
'docs/maintainers/ui-style-standard.md',
'docs/maintainers/ui-fix-it.md',
'docs/maintainers/ui-forward-merge-guide.md',
'pnpm validate:development',
'tools/validation-engine/README.md',
]) {
if (!agents.includes(route))
throw new Error(
Expand Down Expand Up @@ -187,6 +187,7 @@ export function preflight(
'docs/maintainers/ui-style-standard.md',
'docs/maintainers/ui-fix-it.md',
'docs/maintainers/ui-forward-merge-guide.md',
'tools/validation-engine/README.md',
])
requireFile(root, file);
validateGovernanceSources(
Expand Down
9 changes: 5 additions & 4 deletions bin/local-validation.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,17 @@ test('the comprehensive gate is an explicit package command while ordinary scrip
);
});

test('agent routes require the manual full gate while the normal hook stays bounded', () => {
test('agent routes require the current engine while the normal hook stays bounded', () => {
const agents =
'Read docs/maintainers/ui-style-standard.md docs/maintainers/ui-fix-it.md docs/maintainers/ui-forward-merge-guide.md and run pnpm validate:development';
'Read docs/maintainers/ui-style-standard.md docs/maintainers/ui-fix-it.md docs/maintainers/ui-forward-merge-guide.md and follow tools/validation-engine/README.md';
const hook =
'[ -n "$HUSKY_BYPASS" ] || pnpm attribution:check || exit $?\npnpm exec lint-staged || exit $?\n';
assert.doesNotThrow(() => validateGovernanceSources(agents, hook));
for (const missing of [
'docs/maintainers/ui-style-standard.md',
'docs/maintainers/ui-fix-it.md',
'docs/maintainers/ui-forward-merge-guide.md',
'pnpm validate:development',
'tools/validation-engine/README.md',
])
assert.throws(
() => validateGovernanceSources(agents.replace(missing, ''), hook),
Expand Down Expand Up @@ -376,7 +376,7 @@ test('runtime preflight rejects unsupported engines, dependency drift, and incom
);
f.write(
'AGENTS.md',
'docs/maintainers/ui-style-standard.md docs/maintainers/ui-fix-it.md docs/maintainers/ui-forward-merge-guide.md pnpm validate:development'
'docs/maintainers/ui-style-standard.md docs/maintainers/ui-fix-it.md docs/maintainers/ui-forward-merge-guide.md tools/validation-engine/README.md'
);
f.write(
'.husky/pre-commit',
Expand All @@ -386,6 +386,7 @@ test('runtime preflight rejects unsupported engines, dependency drift, and incom
'docs/maintainers/ui-style-standard.md',
'docs/maintainers/ui-fix-it.md',
'docs/maintainers/ui-forward-merge-guide.md',
'tools/validation-engine/README.md',
])
f.write(path, '# Required source document');
assert.doesNotThrow(() =>
Expand Down
40 changes: 20 additions & 20 deletions cypress/e2e/discover.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ describe('Discover', () => {
});

it('loads a trending item', () => {
const movie = {
id: 438148,
mediaType: 'movie',
title: 'Minions: The Rise of Gru',
overview: '',
releaseDate: '2022-06-29',
posterPath: null,
};
cy.intercept('GET', '/api/v1/discover/trending*', {
page: 1,
totalPages: 1,
totalResults: 1,
results: [
{
id: 438148,
mediaType: 'movie',
title: 'Minions: The Rise of Gru',
overview: '',
releaseDate: '2022-06-29',
posterPath: null,
},
],
results: [movie],
});
stubTitleDetails('movie', movie);
cy.visit('/');
cy.contains('.slider-header', 'Trending').scrollIntoView();
cy.contains('[data-testid=title-card-title]', 'Minions: The Rise of Gru', {
Expand All @@ -76,21 +76,21 @@ describe('Discover', () => {
});

it('loads popular movies', () => {
const movie = {
id: 438148,
mediaType: 'movie',
title: 'Minions: The Rise of Gru',
overview: '',
releaseDate: '2022-06-29',
posterPath: null,
};
cy.intercept('GET', '/api/v1/discover/movies*', {
page: 1,
totalPages: 1,
totalResults: 1,
results: [
{
id: 438148,
mediaType: 'movie',
title: 'Minions: The Rise of Gru',
overview: '',
releaseDate: '2022-06-29',
posterPath: null,
},
],
results: [movie],
});
stubTitleDetails('movie', movie);
cy.visit('/');
cy.contains('.slider-header', 'Popular Movies').scrollIntoView();
cy.contains('[data-testid=title-card-title]', 'Minions: The Rise of Gru', {
Expand Down
13 changes: 11 additions & 2 deletions cypress/e2e/library-discover-parity.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,18 @@ describe('Books and Music discover parity', () => {
});

themePalettes.forEach((palette) => {
// Palettes now belong to the signed-in account. Save through the real
// preference API before reload; a legacy browser value must not win.
cy.request('/api/v1/auth/me').then(({ body: user }) => {
cy.request('POST', `/api/v1/user/${user.id}/settings/theme`, {
palette,
})
.its('body.themePalette')
.should('eq', palette);
});
cy.visit('/discover/movies', {
onBeforeLoad(win) {
win.localStorage.setItem('seerr-theme-palette', palette);
win.localStorage.setItem('seerr-theme-palette', 'classic');
win.localStorage.setItem('seerr-theme-mode', 'dark');
},
});
Expand All @@ -169,7 +178,7 @@ describe('Books and Music discover parity', () => {

cy.visit('/discover/movies', {
onBeforeLoad(win) {
win.localStorage.setItem('seerr-theme-palette', palette);
win.localStorage.setItem('seerr-theme-palette', 'classic');
win.localStorage.setItem('seerr-theme-mode', 'light');
},
});
Expand Down
126 changes: 126 additions & 0 deletions docs/maintainers/interface-integration-checkpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,66 @@ The contributor and Keith's AI must use the same checked-in instructions and
gate, adapted to the newer target without discarding its valid security/backend
fixes. If the target advances, pin the new head and repeat invalidated checks.

## Preview merge and validation — October 4, 2026

This section supersedes earlier descriptions of the current command bindings and
publication authority; historical receipts above remain unchanged. John selected
the accepted preview and authorized integration with Keith's current main,
scoped Fix-it repairs, source-specific engine validation, separate guarded
compilation, and a laptop preview on port 5071 with an independent copy of the
5070 configuration/database. The final preview is shown only after those checks
complete. John's visual review remains required before any PR.

The pinned upstream base is `a96fafa07c77a2d6d95badeb9f60c32a6b4a47c9`
(3.48.3). The exact accepted working-byte checkpoint is
`d9338138acf269a37018d2fedc7b7daa8dce2d2d`, whose common ancestor with upstream
is `e7305281797cd7527c3b1c0a83ff144218ad506a`. The three-way inventory contains
311 accepted paths and 361 upstream paths, 308 overlapping paths, and eight
manual conflicts. The accepted screen semantics are already present upstream;
MediaSlider retains its newer TMDB stale/error retry notice and poster fallback.
Testing instructions are reconciled to the reviewed engine, while actual public
package commands and hooks preserve their existing bindings.

The reviewed combined engine uses this integrated candidate's existing tests and
supplemental checks with fresh inventory, case ledger and source/environment
pins. The archived comprehensive runner is not an additional mandatory test run.
`pnpm build` runs translation/shared-visual guards and compilation separately.
The saved 3.48.1 engine receipt remains historical and cannot certify this source.
All iterative source, dependencies, evidence, caches, test and compile work remain
in Docker-managed Linux storage. The original accepted preview remains preserved.

Current evidence and the bounded Fix-it repair ledger are being recorded in the
owned Linux evidence volume. Final tests, compile, deployment health and visual
acceptance remain pending until their actual receipts are verified. No live
provider writes are authorized by this validation.

## Theme adoption and publication authority — October 4, 2026

John subsequently requested a one-time switch to SeerrNG for new installations
and existing accounts upgrading to this build or a later build containing this
migration. The stable migration adds an account palette default and clears old
active advanced-theme overrides once. After login, another supported palette
can be selected and saved to that account. Later logins and upgrades retain that
choice; the migration is not a per-version or per-login reset. Appearance mode
and unrelated account preferences are preserved.

John explicitly authorized submission to `snapetech/seerrng` after passing tests,
using his previously approved AI disclosure, and automatic follow-up repairs
for relevant PR failures. This supersedes the earlier pending preview-review
publication gate. It does not certify new physical drag/touch, browser/Cypress,
live-provider or PostgreSQL-service testing. The accepted visual decisions remain
his; no new whole-site visual acceptance is claimed.

The pre-theme integrated tree passed the full reviewed engine (3,994 passed,
four existing conditional PostgreSQL skips, zero failures; 555 files) in
344.227 seconds. Its separate guarded compilation completed in 117.572 seconds,
after 11.150 seconds of prebuild guards. Those are historical receipts for tree
`473af0fd9c7479c9e58c043115e285727691ccd7`, not proof for the theme amendment.
John explicitly waived another compile and requested tests only for the amended
source. A fresh source-bound engine run and static checks must establish that
amendment's actual result before publication. No production deployment or merge
of Keith's PR is authorized by this overnight finalization request.

## Expanded SeerrNG feature candidate — October 4, 2026

The current task supersedes the older bounded-scope publication status above
Expand Down Expand Up @@ -721,3 +781,69 @@ The published release has no live Grimmory, BookOrbit, Steam, QuestarrNG, or
ROMarrNG round-trip claim. The broader Cypress run remains incomplete and is
not recorded as a pass; the prior run entered an unstubbed provider test and
made outbound requests. No further provider tests were run.

## PR #162 forward integration — October 6, 2026

John Cronk's PR #162, “feat(ui): preserve accepted preview and adopt SeerrNG
theme once,” targeted `main` from `JohnCronk79/seerrng` branch
`integration/preview-v3483-20261004`. Its source head was
`8e7d81c6429830ce2143bd243977c3c8e220da81`; the fetched `main` head was
`b46ebfdc6c5e7d7f483f863523f179c1cb27735e`. A rebase produced widespread
historical snapshot conflicts, so the integration followed the maintainer
forward-merge workflow and preserved both published histories. The only
manual source conflict was this checkpoint: the PR's October 4 acceptance and
theme authorization entries were retained with the later `main` entries.
Integration commit: `8c341f4c1d38988b3de1f5775954cbca18e25596`.

The application change is limited to saved-theme migration and account
selection, the Watchlist success state, the documented movie `stale` route,
and corresponding tests and Cypress fixture updates. Existing source-specific
GitHub checks had passed on the PR's original head. Recovery refs preserve the
source and base tips as `recovery/pr162-source-pre-integration-20261006` and
`recovery/main-pre-pr162-20261006`. The work used the isolated worktree
`/tmp/seerrng-pr162-integration-20261006`; unrelated ROMarrNG changes in the
primary checkout were left untouched.

The pinned local toolchain was Node `v24.15.0` and pnpm `10.24.0`. A frozen
dependency install completed without changing the lockfile (SHA-256
`40cb5a6475750b19ec14a381df9ad13ec06b02fa37d9782240cb60da6c877830`). The
comprehensive `pnpm validate:development` run passed translation extraction,
the 569-file current-batch check, inspection of all 397 shared-style
components, formatting, lint, server and client type checks, and all 100
Vitest files (458 tests). The native TypeScript runner completed 2,919 tests:
2,913 passed, four PostgreSQL-only checks were skipped, and two tests in
untouched mainline files failed in this full run. The failures were
`Authenticated metadata resource boundaries` in `server/routes/index.test.ts`
(404 instead of the expected 429) and the hidden-account search case in
`server/routes/user.test.ts` (missing `results`). Both exact cases passed when
rerun alone through the native runner. The full Node JavaScript lane passed
493/493 on rerun after one non-reproducible failure in its first attempt.

The macOS tooling lane could not produce a reliable full pass. Its POSIX
fixtures assume Linux tools: BSD `base64` rejected GNU's `-w0` option, BSD
`stat` rejected `-c`, and the system Bash rejected the `{1,512}` regex bound.
Even with temporary GNU `base64` and Python aliases, 43 tooling tests still
failed on those macOS utility differences. No repository files were changed
to work around the host. Linux CI's tooling job remains required to establish
those results for the integrated head.

The guarded `pnpm build` completed successfully. Translation and current-batch
guards passed, the shared UI style suite passed 68/68, server and client
compilation succeeded, and Next.js generated all 113 static pages. The build
log is `/tmp/seerrng-pr162-build-20261006.log`; validation and lane logs are
under `/tmp/seerrng-pr162-*-20261006.log`. This integration did not run a new
whole-site visual review or live-provider round trip. The PR's documented
preview acceptance remains the visual evidence for its submitted scope.
Fresh Linux CI, including the bundle-budget check, and the PR's required
checks must pass before merging.

After the normal PR-branch push, fresh GitHub checks passed build, bundle
budget, lint, security, i18n, and external-link validation. Cypress exposed one
desktop login smoke failure: a long rotating backdrop title extended beyond
the viewport because the desktop `.page-title` rule permits visible overflow.
The login backdrop now clips that title with an ellipsis in
`src/styles/globals.css`, without changing page titles elsewhere. A fresh
production build passed, including all 68 shared-style tests and all 113
generated pages. The exact `cypress/e2e/public-smoke.cy.ts` file then passed
all four cases locally, including desktop and mobile login. GitHub checks must
rerun against this repair before merge.
Loading
Loading