Release 2.4.0: remote workers and AMD runtime support #17
Loading…
Reference in a new issue
No description provided.
Delete branch "release/2.4.0"
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?
Release 2.4.0 adds remote workers with identical shared media paths and a server-local SQLite database, plus AMD tagging and transactional retry corrections validated during the candidate cycle. RC3 preserves visual-dedup checkpoints on shutdown.
The user accepted stable publication with the limits recorded in acceptance/release-2.4.0.md. Actual NFS outage testing is waived; sustained production remote ownership, broad GPU retrieval parity and library-scale throughput remain unverified. Lyra's RC3 API, NVIDIA encoder and four workers are healthy with advancing vectorization. Nova passed isolated GPU/HTTP workloads, supervised execution and writable NFS checks; its temporary services remain stopped until stable Lyra deployment.
Promotion changes metadata and acceptance/setup documentation only. Local stable CPU and NVIDIA package builds pass (189 Node tests, 60 Python tests and installation checks), together with both module assertion checks. Required CI must pass before merge. Preserve the release branch for development synchronization; tag the actual accepted main merge commit.
Automated code review
Reviewed commit:
44b242e09778e60a34373690af68bba87343672eVerdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
This PR introduces remote workers for Redview v2, allowing trusted workers on separate hosts to execute database commands against a central SQLite instance via an HTTP protocol. It also adds AMD GPU runtime support and fixes SQLite contention issues that previously caused worker crashes. The release is versioned as 2.4.0 with explicit acceptance limits regarding NFS outage testing and production scale validation.
Blocking findings
None.
Important findings
The worker key grants full read/write and schema access to the application database, including configuration and authentication records. Protect it like direct database access... This protocol does not sandbox a compromised worker.
Impact: If the remote worker's API key is compromised or the worker host is breached, an attacker gains full administrative access to the Redview database, including user credentials and system configuration.
Suggested fix: Document this risk prominently in deployment guides. Consider implementing network-level isolation (e.g., private subnets) and strict firewall rules to limit exposure of the API endpoint.
Suggestions
Transaction Conflict Retry Logic May Mask Data Issues (src/remote-db.ts:75; medium confidence)
if (!(error instanceof RemoteCommandError && error.statusCode === 409 && /Transaction conflict/.test(error.message)) || attempt >= 2) throw error;
Impact: The retry logic for transaction conflicts is limited to 3 attempts. While bounded, this might not be sufficient under high contention, potentially leading to job failures that could be resolved with more retries.
Suggested fix: Consider making the retry count configurable or increasing the default if production load testing indicates higher contention than expected.
Shared Memory Buffer Size Hardcoded (src/remote-db.ts:18; medium confidence)
const shared = new SharedArrayBuffer(MAX_COMMAND_BYTES + 12);
Impact: The shared memory buffer size is tied to MAX_COMMAND_BYTES (8 MiB). If a single statement or result set approaches this limit, it could cause issues or waste memory.
Suggested fix: Ensure that the protocol limits are well-documented and that clients are aware of the 8 MiB constraint for individual commands.
AMD Runtime Validation Limited (AMD-WORKERS.md:10; high confidence)
Nova's Fedora 44 / Radeon 8060S (gfx1151) passed isolated GPU tagging... Electra's gfx1150 target is included in the Torch wheel but remains unvalidated.
Impact: AMD support is validated only on specific hardware (Radeon 8060S). Other AMD GPUs may not work correctly, and users should be aware of this limitation.
Suggested fix: Clearly document the tested AMD hardware configurations and explicitly state that other GPUs are untested.
Tests and validation
Questions
Review limitations
Diff coverage
AGENTS.md: reviewed — included in a context-limited batchAMD-WORKERS.md: reviewed — included in a context-limited batchCHANGELOG.md: reviewed — included in a context-limited batchENCODER.md: reviewed — included in a context-limited batchREADME.md: reviewed — included in a context-limited batchREMOTE-WORKERS.md: reviewed — included in a context-limited batchREQUIREMENTS-TRACE.md: reviewed — included in a context-limited batchREQUIREMENTS.md: reviewed — included in a context-limited batchVERSION: reviewed — included in a context-limited batchVERSIONING.md: reviewed — included in a context-limited batchacceptance/amd-remote-worker-2026-10-05.md: reviewed — included in a context-limited batchacceptance/lyra-rc3-2026-10-05.md: reviewed — included in a context-limited batchacceptance/release-2.3.0.md: reviewed — included in a context-limited batchacceptance/release-2.4.0.md: reviewed — included in a context-limited batchacceptance/remote-worker-rc2-2026-10-05.md: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchnix/package.nix: reviewed — included in a context-limited batchnix/redview-v2.nix: reviewed — included in a context-limited batchnix/remote-worker.nix: reviewed — included in a context-limited batchnix/tests/remote-worker-module.nix: reviewed — included in a context-limited batchpackage.json: reviewed — included in a context-limited batchsrc/app.ts: reviewed — included in a context-limited batchsrc/auth.ts: reviewed — included in a context-limited batchsrc/jobs.ts: reviewed — included in a context-limited batchsrc/remote-db.ts: reviewed — included in a context-limited batchsrc/remote-worker-thread.ts: reviewed — included in a context-limited batchsrc/remote-worker.ts: reviewed — included in a context-limited batchsrc/server.ts: reviewed — included in a context-limited batchsrc/similar.ts: reviewed — included in a context-limited batchsrc/sqlite-contention.ts: reviewed — included in a context-limited batchReview metadata
Reviewed automated feedback on
44b242e. No blocking findings or failed deterministic checks were reported. The important worker-key finding describes the intentional trusted database facade: REMOTE-WORKERS.md already prominently documents full read/write/schema access including configuration/authentication records, lack of compromised-worker isolation, protected key provisioning, and loopback SSH/private encrypted transport. Nova uses a loopback SSH tunnel. Restricting this facade is an architectural follow-up, not an undisclosed release risk.The other suggestions are already documented limits: three bounded transaction retries and the 8 MiB/5,000-statement caps are stated in the protocol guide; AMD-WORKERS.md names tested gfx1151 hardware and explicitly unvalidated gfx1150. High-latency/scale validation remains open; use low-latency private networks. Multiple workers are supported through workerCount and per-worker concurrency, with existing conflict serialization; mixed GPU resource contention remains unmeasured. Lease timestamps use host clocks, so synchronised clocks are a documented requirement, not a claimed skew-tolerant protocol.
All four CI status contexts now pass. Local stable CPU/NVIDIA builds, 189 Node/60 Python tests, installation checks and both module checks pass. User acceptance and remaining deployment limits are recorded in the release acceptance file.