Release 2.4.0: remote workers and AMD runtime support #17

Merged
nimmo merged 8 commits from release/2.4.0 into main 2026-10-06 13:11:51 +01:00
Owner

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.

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.
Sync 2.3.0 release corrections into 2.3.1-dev1
Some checks failed
Build and Push Attic Cache / build (pull_request) Successful in 35s
Branch and package checks / check (pull_request) Successful in 10s
AI pull-request review / review (pull_request) Failing after 1m34s
be83a24321
Sync 2.3.0 release fixes into dev
All checks were successful
Branch and package checks / check (push) Successful in 10s
3ec1050485
Retain accepted release corrections and dependencies; begin 2.3.1-dev1 maintenance after protected branch/package checks passed.
Add remote workers, AMD validation and SQLite contention recovery
All checks were successful
Build and Push Attic Cache / build (pull_request) Successful in 1m1s
Branch and package checks / check (pull_request) Successful in 5s
AI pull-request review / review (pull_request) Successful in 4m3s
c4bfbd7dd4
Merge remote workers and AMD support into dev
All checks were successful
Branch and package checks / check (push) Successful in 19s
092b2496a7
Prepare 2.4.0-rc.1 for remote-worker acceptance
All checks were successful
Branch and package checks / check (push) Successful in 42s
04ad6d1393
Preserve remote SQLite busy codes and record RC2 host recovery tests
All checks were successful
Branch and package checks / check (push) Successful in 46s
38055a956d
Fix visual dedup shutdown recovery for 2.4.0-rc.3
All checks were successful
Branch and package checks / check (push) Successful in 43s
7758390c08
Release 2.4.0 with accepted remote-worker validation limits
All checks were successful
Branch and package checks / check (push) Successful in 46s
Build and Push Attic Cache / build (pull_request) Successful in 15s
Branch and package checks / check (pull_request) Successful in 13s
AI pull-request review / review (pull_request) Successful in 3m3s
44b242e097
Author
Owner

Automated code review

Reviewed commit: 44b242e09778e60a34373690af68bba87343672e

Verdict: 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

  • Remote Worker Key Grants Full Database Access (REMOTE-WORKERS.md:12; high confidence)
    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

  • package-checks: success

Questions

  • Has the remote worker protocol been tested under high network latency conditions to ensure transaction previews do not cause excessive delays?
  • Are there any plans to support multiple remote workers on the same host, and if so, how is resource contention managed?
  • How does the system handle clock skew between the main server and remote workers, given that job leases rely on time synchronization?

Review limitations

  • The review is based on provided diff and documentation; live testing of remote worker functionality under production-like conditions was not performed.
  • AMD GPU validation is limited to specific hardware; broader AMD support is unverified.
  • NFS outage testing was explicitly waived, so file system safety during mount failures is not fully validated.

Diff coverage

  • AGENTS.md: reviewed — included in a context-limited batch
  • AMD-WORKERS.md: reviewed — included in a context-limited batch
  • CHANGELOG.md: reviewed — included in a context-limited batch
  • ENCODER.md: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • REMOTE-WORKERS.md: reviewed — included in a context-limited batch
  • REQUIREMENTS-TRACE.md: reviewed — included in a context-limited batch
  • REQUIREMENTS.md: reviewed — included in a context-limited batch
  • VERSION: reviewed — included in a context-limited batch
  • VERSIONING.md: reviewed — included in a context-limited batch
  • acceptance/amd-remote-worker-2026-10-05.md: reviewed — included in a context-limited batch
  • acceptance/lyra-rc3-2026-10-05.md: reviewed — included in a context-limited batch
  • acceptance/release-2.3.0.md: reviewed — included in a context-limited batch
  • acceptance/release-2.4.0.md: reviewed — included in a context-limited batch
  • acceptance/remote-worker-rc2-2026-10-05.md: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • nix/package.nix: reviewed — included in a context-limited batch
  • nix/redview-v2.nix: reviewed — included in a context-limited batch
  • nix/remote-worker.nix: reviewed — included in a context-limited batch
  • nix/tests/remote-worker-module.nix: reviewed — included in a context-limited batch
  • package.json: reviewed — included in a context-limited batch
  • src/app.ts: reviewed — included in a context-limited batch
  • src/auth.ts: reviewed — included in a context-limited batch
  • src/jobs.ts: reviewed — included in a context-limited batch
  • src/remote-db.ts: reviewed — included in a context-limited batch
  • src/remote-worker-thread.ts: reviewed — included in a context-limited batch
  • src/remote-worker.ts: reviewed — included in a context-limited batch
  • src/server.ts: reviewed — included in a context-limited batch
  • src/similar.ts: reviewed — included in a context-limited batch
  • src/sqlite-contention.ts: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: qwen3.6:35b-a3b-q8_0
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, README.md
  • Commits considered: 8
  • Previous automated review: none found
  • Findings: 4
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `44b242e09778e60a34373690af68bba87343672e` ## Verdict: 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 - **Remote Worker Key Grants Full Database Access** (REMOTE-WORKERS.md:12; high confidence) 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 - package-checks: **success** ### Questions - Has the remote worker protocol been tested under high network latency conditions to ensure transaction previews do not cause excessive delays? - Are there any plans to support multiple remote workers on the same host, and if so, how is resource contention managed? - How does the system handle clock skew between the main server and remote workers, given that job leases rely on time synchronization? ### Review limitations - The review is based on provided diff and documentation; live testing of remote worker functionality under production-like conditions was not performed. - AMD GPU validation is limited to specific hardware; broader AMD support is unverified. - NFS outage testing was explicitly waived, so file system safety during mount failures is not fully validated. ### Diff coverage - `AGENTS.md`: **reviewed** — included in a context-limited batch - `AMD-WORKERS.md`: **reviewed** — included in a context-limited batch - `CHANGELOG.md`: **reviewed** — included in a context-limited batch - `ENCODER.md`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `REMOTE-WORKERS.md`: **reviewed** — included in a context-limited batch - `REQUIREMENTS-TRACE.md`: **reviewed** — included in a context-limited batch - `REQUIREMENTS.md`: **reviewed** — included in a context-limited batch - `VERSION`: **reviewed** — included in a context-limited batch - `VERSIONING.md`: **reviewed** — included in a context-limited batch - `acceptance/amd-remote-worker-2026-10-05.md`: **reviewed** — included in a context-limited batch - `acceptance/lyra-rc3-2026-10-05.md`: **reviewed** — included in a context-limited batch - `acceptance/release-2.3.0.md`: **reviewed** — included in a context-limited batch - `acceptance/release-2.4.0.md`: **reviewed** — included in a context-limited batch - `acceptance/remote-worker-rc2-2026-10-05.md`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `nix/package.nix`: **reviewed** — included in a context-limited batch - `nix/redview-v2.nix`: **reviewed** — included in a context-limited batch - `nix/remote-worker.nix`: **reviewed** — included in a context-limited batch - `nix/tests/remote-worker-module.nix`: **reviewed** — included in a context-limited batch - `package.json`: **reviewed** — included in a context-limited batch - `src/app.ts`: **reviewed** — included in a context-limited batch - `src/auth.ts`: **reviewed** — included in a context-limited batch - `src/jobs.ts`: **reviewed** — included in a context-limited batch - `src/remote-db.ts`: **reviewed** — included in a context-limited batch - `src/remote-worker-thread.ts`: **reviewed** — included in a context-limited batch - `src/remote-worker.ts`: **reviewed** — included in a context-limited batch - `src/server.ts`: **reviewed** — included in a context-limited batch - `src/similar.ts`: **reviewed** — included in a context-limited batch - `src/sqlite-contention.ts`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: qwen3.6:35b-a3b-q8_0 - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, README.md - Commits considered: 8 - Previous automated review: none found - Findings: 4 </details>
Author
Owner

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.

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.
nimmo merged commit 81a247f0b3 into main 2026-10-06 13:11:51 +01:00
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
nimmo/redview!17
No description provided.