Stage Redview v2 on Lyra alongside v1 for migration acceptance #255
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#255
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Stage pinned Redview v2 dev.110 (f3da970abcdf78b32b1fc0ec0f39f7a0855f5a5c) on Lyra alongside v1. Keep the production v1 input, database and service. All sudo commands are performed by the user.
Checklist
Operator sequence
Initial staging is browser-only: do not enable workers or release the hold until the agent and user review acceptance. This issue remains open until target-host evidence exists; a prepared configuration is not a deployment.
Preparation committed locally at 9e38c90 on feat/255-redview-v2-lyra-staging; transferred via Git bundle to Lyra's isolated ~/redview-v2-staging/nixos-config checkout (not published, normal checkout unchanged). Full nix flake check passed, including formatting and existing VM/config checks; shellcheck and bash syntax checks passed. Evaluated safety assertions passed. V1 locked input unchanged. Existing upstream stdenv.isLinux/isDarwin deprecation warnings are unrelated to this module and do not affect evaluation. Target RTX4070 detected; copied Python imports NumPy/Pillow and lists CUDAExecutionProvider (inference not yet tested). Full system build is underway. Fresh source snapshot awaits the user-run sudo helper; no activation or production DB/media change performed.
Exact committed staging system built successfully and was copied to Lyra, with GC root ~/redview-v2-staging/system. nvd diff --selected against /run/current-system shows +153 MiB, 20 paths added and 12 removed; only curl's set of installed outputs differs, without unrelated application version upgrades. Production redview.service is byte-for-byte unchanged. Fresh snapshot ownership corrected by user; migration is running as nimmo against source.db into a separate redview.db. All 955,212 media rows copied; tag mappings are still copying. No sudo or activation performed by agent.
Fresh Lyra migration completed on 2026-10-02 using dev.110. Full-field verifier returned ok:true and zero missing/changed rows across all copied tables and 22,634,296 tag mappings. Preserved 955,212 media, 245,025 deleted-media records, 79,519 users and 4,604 subreddits. SQLite quick_check=ok; foreign_key_check=0 violations. State audit has no invalid/new-with-prior-mark states; preserved existing unknown seen timestamps (141 users) and audited 375 stale subreddit mirror flags without overriding valid current states. Evidence: ~/redview-v2-staging/migration.json and verification.json. Target-side staged-flake evaluation resolves to the exact prebuilt derivation aqjmi0rrvr0ygz7v6z5aaim4l8gcwx9k. No activation performed; user sudo installation and just test remain next. Production v1 continued writing, so this is a point-in-time staging rehearsal, not a cutover image.
User completed sudo verified-database installation and just test activation on 2026-10-02. Running system matches llwknhs45awsjs37h2hcc30f0ch9wkjh; redview.service and redview-v2.service both active. V2 runs as redview with DB /var/lib/redview-v2/redview.db, HOST=127.0.0.1, PORT=3211, scheduler=false and zero v2 worker units. Actual /proc//mountinfo confirms production media ro,nosuid,noatime. Health/spec 200 (dev.110), browser shell/app.js/index.css 200; in-memory browser-session requests returned gallery 200 with five rows, users/subreddits unblocked views 200 and original-media byte range 206 with 1024 bytes. No keys/cookies logged or stored. These are HTTP/service acceptance checks, not a full UI/filter matrix, writable job acceptance or permanent boot deployment. User browser review and later worker/cutover acceptance remain open; keep auto-update hold for this test window.
Prepared update at local nixos-config
3475a0a, transferred to Lyra's isolated staging-dev111 branch. Four workers enabled, one slot each; API and all worker namespaces protect the entire /var/lib/redview tree read-only, including production DB/config/media. Scheduler remains disabled. Red-before-green four protected-worker assertions, full flake check and exact system build/copy passed. Retained previous staging host input versions following upstream pull to keep this activation bounded; nvd shows no version/selection changes, +205.4MiB for worker dependencies/dev.111. Dev.111/f524355 fixes Settings reading only residual blocked records: eight focused tests and package gate pass; disposable migrated-copy API lists exactly 1,318 blocked users and 1,295 blocked subs, matching states with zero duplicates. Temporary check API stopped. User must run just test from ~/redview-v2-staging/nixos-config; current live staging remains dev.110 with no workers until then. Do not claim worker/GPU live acceptance yet.User dev.111 activation revealed SQLITE_BUSY in deferred schema-upgrade transactions; all four workers recovered on systemd retry and v1/API stayed active. Live /api/blocked now correctly reports 1,318 users and 1,295 subs. Dev.112/e0a3572 acquires BEGIN IMMEDIATE before schema reads: deterministic held-writer WAL regression first fails with the same stack then passes. NVIDIA package and final flake gates pass. Four disposable dev.112 workers on Lyra's migrated copy all active, NRestarts=0, ExecMainStatus=0; rehearsal stopped afterward. Prepared system and isolated staging checkout updated to nixos-config
e4c32e8. User must run just test again for production-unit acceptance; original data stays protected read-only. No agent sudo performed.Prepared the next Lyra staging checkpoint at nixos-config
cb489b6, pinning Redview 2ad380f / 2.0.0-dev.113. The isolated ~/redview-v2-staging/nixos-config checkout is updated; the complete system closure is built and copied to Lyra, and target-side evaluation matches /nix/store/m9zb6q2kypsgkw8ir6f6zk2nlkhsxaxs-nixos-system-lyra-26.11.20260928.f45c6f0.At the user's request, the disposable staging DB remains writable and all API/worker units now permit writable media via ReadWritePaths=/var/lib/redview/media. ReadOnlyPaths=/var/lib/redview still protects the original v1 DB/config outside that nested mount. Scheduling remains disabled; the operator will avoid actions changing media on disk. Automatic review rejected removing the broader protection entirely, so this scoped configuration implements the authorized media/test-DB permissions while retaining v1 state protection.
Dev.113 restores every v1 slideshow keyboard action, a collapsible shortcut reference, media info, and continued deletion across pagination. Lowercase f sets gender F; uppercase F toggles only the image/video favourite. Focused Chromium first failed then passed; the wider gallery smoke passes. The NVIDIA package gate passes 129 Node/27 Python tests, and full NixOS flake check and built-unit permission assertions pass. Only redview-v2 changed in the lockfile; v1's built unit is byte-for-byte unchanged. BROWSE-04 is reopened for the expanded user's live keyboard acceptance in the KiwiFS round-2 checklist.
Last live check: dev.112 API and all four workers active. User activation remains: ssh -t lyra 'cd ~/redview-v2-staging/nixos-config && just test'. After activation, check health/spec/version, all four worker units, namespace media permissions and browser keyboard behavior. No remigration or database replacement is needed. Shared deployment/cutover/rollback acceptance remains open.
Prepared dev.114 at nixos-config
05ca847, pinning Redview 6b6f53e. Full flake check and system build/copy passed; the isolated Lyra checkout is updated, and target evaluation matches the copied system. Only redview-v2 changed in the lockfile. Four-worker configuration and scoped writable media settings are retained; v1's built service is unchanged.The user's tagging report had two confirmed causes: tag-result transactions failed on WAL read-to-write promotion under a competing writer, and Resume tagging declared JSON with an empty body (live 400 FST_ERR_CTP_EMPTY_JSON_BODY). Dev.114 acquires BEGIN IMMEDIATE before the result transaction's media read, and fixes empty-body request headers in tagging and visual-dedup panels. Held-writer scan/retag regressions first failed with SQLITE_BUSY then passed; Chromium resume/cancel first failed then passed; wider gallery smoke passes. NVIDIA package gate passes 131 Node and 27 Python tests.
Live dev.113 API and all four workers remain healthy. Mountinfo confirms media writable with original v1 state/config protected. Failed tag job #1 and its saved checkpoint/history are retained. User activation is the remaining sudo step: ssh -t lyra 'cd ~/redview-v2-staging/nixos-config && just test'. Then reload the browser and Resume tagging, rather than start a new job. OPS-07/OPS-08 are reopened as Awaiting live test in the trace/Kiwi checklist for target UI and sustained four-worker regression acceptance; earlier Passes are preserved. No database replacement is needed.
Dev.115 (
redview@c545ab9) is prepared for Lyra activation at staging config08d7851. Dev.114 is already live, with all four real workers active. The user's new tagging job #2 initially reported zero despite GPU activity; it later reported 1,451 completed units and an advanced checkpoint. The code only published progress after a 10,000-row selection finished and discarded Python status messages.Dev.115 reports each saved result and provider/model activity in both Settings panels, with a contiguous safe resume cursor and completed results ahead of it. Ordered/reversed and zero-tag cancellation/resume regressions first failed then passed; Chromium activity assertions first failed then passed, retaining resume/cancel controls. NVIDIA package gate: 133 Node and 27 Python tests pass. Full host flake check and NixOS system build pass; only the redview-v2 lock input changed and the v1 systemd unit is byte-for-byte unchanged. The closure is copied to Lyra and its isolated staging checkout has been fast-forwarded.
User sudo activation is the remaining step:
This leaves the disposable migrated DB in place; tagging should resume from its existing checkpoint. Target visible progress, sustained concurrency/recovery, and the remaining cutover/rollback gates are still pending. KiwiFS checklist/workflow and the repository requirement trace are updated without marking new live tests passed.
User confirmed the dev.115 Lyra activation/update working on 2026-10-02. The live /api/spec reports 2.0.0-dev.115. Tag job #2 retained its pre-activation progress and advanced from 1,451 to 1,973 completed units with zero errors; its checkpoint reports tagging phase, CUDAExecutionProvider and remaining batch units. All four real worker services are active with NRestarts=0.
Acceptance documentation committed/pushed as redview d6f4950. OPS-07/OPS-08's reopened regressions are now Verified, retaining the earlier user workflow Passes. Trace/checklist: 38 Verified, 17 Awaiting live test, no known missing implementation. Remaining functional, scale/latency, full mounted-workload recovery/filesystem, authenticated BDFR/VPN, authentication/contract and migration/cutover/rollback gates remain open; Q-08 still prevents promotion before full parity acceptance. No release tag or production cutover was performed.
Initial release acceptance is complete within the user's explicit decisions and recorded test scope. Redview e736a63 (dev.116) is committed/pushed; live Lyra remains dev.115 and application/worker code is unchanged.
User waived further 2M/3.5M checks and accepted remaining migrated UI and existing BDFR/VPN configuration. These are Accepted, not measured Passes. Trace: 44 Verified, 10 Accepted, one pending release/version action Q-08. Accepted/Verified close a release gate; unknown/unresolved statuses still block promotion, with a red-then-green regression.
On Lyra's deployed package and only temporary files/DBs: 43 targeted tests passed; scan/move/purge/exact/visual dedup/tag/rip recovered after worker SIGKILL with correct counts, zero errors and clean SQLite integrity; unsafe deletion returned 403 and preserved the outside file/row. None/password/OIDC and contract responses passed through a disposable loopback proxy, using a controlled RS256/PKCE issuer. Live staging session/API-key reads passed. NixOS default/override/disabled worker evaluation passed. Full dev.116 package gate passed 133 Node/28 Python tests. A temporary-copy promotion dry run aligned 2.0.0 metadata without releasing it.
Evidence/scope: v2/acceptance/release-2026-10-02/README.md and linked JSONs. Crash-rehearsal tag/BDFR/hash processes are stand-ins; no personal production OIDC/TLS login, new real Reddit/VPN rip, full scale rerun or production-media mutation is claimed. Temporary harness removed; real API/workers remain healthy. Actual production stop-write snapshot/cutover/rollback remains a separate deployment action requiring user sudo, so this host issue stays open. No stable tag/release or production cutover was performed.