From 7e3299d7f2ae6f8cc629b94fad009337bf68bebb Mon Sep 17 00:00:00 2001 From: tyronechrisharris <142608718+tyronechrisharris@users.noreply.github.com> Date: Tue, 24 Nov 2026 10:58:57 -0500 Subject: [PATCH 1/2] chore(v3.11.12): synchronize OSCAR 3.11.12 metadata, changelog, and upstream submodule pins Synchronizes OSCAR 3.11.12 (Amber) release metadata, changelog, and submodule pointers across osh-core, osh-addons, osh-oakridge-modules, oscar-viewer, and oscar-video-guides: 1. osh-core: Ignore SensorHub's default empty InMemoryObsStore (systemStateDb) alongside EmptyObsStore in FederatedObsStore offset pushdown, and interrupt timed-out/errored read-only GET/HEAD async tasks in RestApiServlet so DuckDbResourcePolicy waiters release promptly. 2. osh-addons: Fix OscarTieredObsStore shallow-offset non-cold completeness (MIN_SUMMARY_SKIP_OFFSET = 15L, EAGER_NON_COLD_COMPLETE_FLOOR = 1,024L), preserve hotBoundaryTime whenever nonCold.size() >= filter.getLimit(), evaluate interior timeContainedSummarySpec generations directly against oscar_obs_overlay.base_summary_mask via JsonCqlEvaluator.extractSummaryMaskConjuncts (0 DuckDB sessions), and scope unsummarized cold count exclusions strictly to parquetCandidates with zero growing SQL indexes. 3. oscar-viewer: Remove redundant client-side visitedPagesCacheRef / navigationDirectionRef (-122 net lines) in favor of disjointPriorityPlans + 120 ms settled debounce + AbortController, retain live MQTT invalidatePrefetch() suppression, and bound all unhydrated live event UUID lookups via buildEventBoundedPhenomenonTime. 4. osh-oakridge-modules & oscar-video-guides: Synchronize 3.11.12 version metadata and localized manuals/guides (en, es, fr, el). Verified with validate-release-metadata.js, verify_oscar_docs.py, validate:locales, and full 27-scenario end-to-end regression (271/271 checks passed, 0 runtime errors). --- .github/workflows/release.yml | 2 +- README.md | 12 ++--- build.gradle | 2 +- changelog.md | 24 +++++++++ dist/config/standard/config.json | 2 +- dist/release/.env.example | 2 +- dist/release/DEPLOYMENT.md | 28 +++++------ dist/release/QUICKSTART.md | 10 ++-- .../release/ubuntu/create-autoinstall-usb.ps1 | 2 +- dist/release/ubuntu/create-autoinstall-usb.sh | 2 +- docs/ARCHIVE_FORMAT.md | 2 +- docs/BACKUP_RESTORE.md | 22 ++++---- docs/CARGO_UFF_INTEGRATION.md | 4 +- docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md | 6 +-- docs/DATA_LIFECYCLE.md | 8 +-- docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md | 4 +- docs/EML_INTEGRATION.md | 4 +- docs/LANE_WEBRELAY_GUIDE.md | 6 +-- docs/LIVE_VIDEO.md | 4 +- docs/PLUGGABLE_EXTENSIONS_GUIDE.md | 6 +-- docs/REGRESSION_AND_RELEASE_CERTIFICATION.md | 12 ++--- docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md | 50 +++++++++---------- docs/RPM_EDGE_PROXY_GUIDE.md | 8 +-- docs/STATUS_OF_HEALTH.md | 6 +-- docs/STORAGE_ARCHITECTURE.md | 16 +++--- docs/STORAGE_OPERATIONS.md | 24 ++++----- docs/TRAINING_SANDBOX_GUIDE.md | 10 ++-- docs/UBUNTU_FIELD_SETUP_GUIDE.md | 40 +++++++-------- docs/VIDEO_GUIDES.md | 18 +++---- docs/video-guides | 2 +- include/osh-addons | 2 +- include/osh-core | 2 +- include/osh-oakridge-modules | 2 +- web/oscar-viewer | 2 +- 34 files changed, 185 insertions(+), 161 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dec5a17..4131b5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - 'v*' env: - RELEASE_VERSION: '3.11.11' + RELEASE_VERSION: '3.11.12' JAVA_VERSION: '21' NODE_VERSION: '22' OSCAR_DIR: 'web/oscar-viewer' diff --git a/README.md b/README.md index 0f50400..49028b5 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The configured HTTPS port and a port 80 HTTPS redirect are published. PostgreSQL ## Installation and user guides -- **What's New, Architectural Rationale & Upgrade Guide:** Start with the [OSCAR 3.11.11 (Amber) Release Overview and User Guide](docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md) for a complete walkthrough of all new capabilities, why each architectural change was made, and step-by-step instructions for **new installations**, **`pre-3.11.0` upgrades/migrations**, and **`3.11.11+` zero-login GUI (`Users & Access -> System Update`) or CLI (`oscar update`) clean-directory upgrades**. +- **What's New, Architectural Rationale & Upgrade Guide:** Start with the [OSCAR 3.11.12 (Amber) Release Overview and User Guide](docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md) for a complete walkthrough of all new capabilities, why each architectural change was made, and step-by-step instructions for **new installations**, **`pre-3.11.0` upgrades/migrations**, and **`3.11.12+` zero-login GUI (`Users & Access -> System Update`) or CLI (`oscar update`) clean-directory upgrades**. - **Side-by-Side Central Alarm Station (CAS) Rapiscan RPM Real-Time Edge Proxy (`oscar-rpm-proxy`):** At sites installing OSCAR alongside an existing Central Alarm Station across `1–50+` Rapiscan RPMs, enable the optional isolated `oscar-rpm-proxy` service (`sudo ./oscar.sh rpm-proxy configure --from-csv --start`) to fan out `\n`-framed `1 Hz` radiation telemetry in real time to both systems simultaneously with cached `SG1..SG3` / `SN1..SN2` setup replay, **`<= 4.0 s` upstream-gated disconnect & cable-pull propagation** (`zero` `SYN-ACK` flapping while an RPM is offline), Port-Mapped (`11601..11650`) or Ubuntu 24.04 Transparent Virtual-IP (`:1600` per lane) addressing, and zero CAS interruption during `oscar restart` / `upgrade`; see [Side-by-Side CAS Rapiscan RPM Edge Proxy Guide](docs/RPM_EDGE_PROXY_GUIDE.md). - **Per-Lane Physical RPM Lights & Sound (`WebRelay-Quad`):** Optionally connect **ControlByWeb WebRelay-Quad** Ethernet relay modules per lane (`enabled = false` by default) to suppress physical red beacons and audible sirens on benign `Code 9999: EML Non-Threat` and `Code 9998: Extended Occupancy Gamma Alarm` events while pulsing `R3` (Gamma Red + Siren) and/or `R4` (Neutron Blue) on actionable threats with `0,0,0,0` fail-safe pass-through and live Administrator control on `/health`, `/lane-view`, and `/sensorhub/admin`; see [Per-Lane Physical RPM Lights & Sound Guide](docs/LANE_WEBRELAY_GUIDE.md). - **Anytime Guided Walkthrough Refresher (`:443`) & Ephemeral Hands-On Training Sandbox (`oscar-sandbox` `:8444`):** Open **Guided Walkthrough** (*graduation-cap icon* in the top bar) anytime on the live console (`:443`) in safe **Read-Only Refresher Mode** across 13 role-based labs (complete with interactive **`Highlight [Page / Tool] Icon`** spotlights and inline visual symbol introductions), or launch the isolated `:8444` Practice Sandbox in **1 click directly from the GUI** (automatically enabled during `oscar init` / `upgrade` on both Ubuntu 24.04 and Windows 11, or via `sudo bash oscar.sh sandbox start` / `.\oscar.bat sandbox start`) with built-in loopback Rapiscan RPM & RTSP container camera micro-emulators, Split-Pane SensorHub Admin, a live `120-minute` auto-shutdown countdown, and complete `< 2 s` volume disposal on expiry or `sandbox stop`; see [Guided Walkthrough & Hands-On Training Sandbox Guide](docs/TRAINING_SANDBOX_GUIDE.md). @@ -36,9 +36,9 @@ Supported deployment and operation hosts: - Windows 11 x86-64 with Docker Desktop and WSL 2 - Ubuntu Server 24.04 x86-64 with Docker Engine and the Compose plugin -OSCAR 3.11.11 storage-profile deployment is intentionally blocked on macOS. Docker Desktop for Mac +OSCAR 3.11.12 storage-profile deployment is intentionally blocked on macOS. Docker Desktop for Mac cannot satisfy the tested bind-root ownership and recovery-media isolation contract used by this -release. Build/source inspection remains possible there, but initialize and operate 3.11.11 on a +release. Build/source inspection remains possible there, but initialize and operate 3.11.12 on a supported Ubuntu or Windows host. There is no default administrator password. The administrator supplies it during `oscar init`, and deployment-specific database credentials are generated automatically. @@ -78,9 +78,9 @@ PowerShell 5.1 gate: the release workflow runs `tools/test-storage-powershell.ps The Viewer bundle and Java modules are copied into the versioned `oscar` container image. Building the ZIP does not update a running deployment, and `oscar restart` deliberately reuses the existing image. -For a full-system test, extract the newly built release into a clean directory and use `oscar init` for a disposable new deployment. OSCAR 3.11.11 therefore runs the new tiered database, direct daily-file journal, data-checksummed PostgreSQL cluster, primary Parquet cold tier, and optional external single-snapshot storage. Fresh deployments use `OSCAR_BACKUP_MODE=disabled`; `single` is a manual opt-in that requires an operator-selected safe absolute backup path that does not overlap the release or archive roots. A separate physical drive is recommended for failure isolation but is not required. PostgreSQL does not continuously archive WAL: it runs with `archive_mode=off` and no external WAL bind, and OSCAR does not provide PITR. Use a fresh 3.11.11 database and standard configuration when validating this storage profile; `upgrade` deliberately preserves an existing `config.json`, database volume, and legacy roots/data and does not silently migrate a pre-3.11.0 deployment. +For a full-system test, extract the newly built release into a clean directory and use `oscar init` for a disposable new deployment. OSCAR 3.11.12 therefore runs the new tiered database, direct daily-file journal, data-checksummed PostgreSQL cluster, primary Parquet cold tier, and optional external single-snapshot storage. Fresh deployments use `OSCAR_BACKUP_MODE=disabled`; `single` is a manual opt-in that requires an operator-selected safe absolute backup path that does not overlap the release or archive roots. A separate physical drive is recommended for failure isolation but is not required. PostgreSQL does not continuously archive WAL: it runs with `archive_mode=off` and no external WAL bind, and OSCAR does not provide PITR. Use a fresh 3.11.12 database and standard configuration when validating this storage profile; `upgrade` deliberately preserves an existing `config.json`, database volume, and legacy roots/data and does not silently migrate a pre-3.11.0 deployment. -For a 3.11.11-or-newer same-storage-profile upgrade, first create and verify a coordinated snapshot when the deployment has explicitly selected `single` mode, then copy only `.env`, `secrets/`, and `tls/` into a clean extracted release before running `oscar upgrade`; do not overlay the ZIP on old release-managed files. If the deployment previously adopted unlabelled legacy Docker volumes, also copy its `.oscar-volume-adoption` receipt. Initialization persists the archive path, and in `single` mode the backup path, as absolute paths outside the versioned release; the legacy-WAL binding is retained only to preserve any existing compatibility tree. Copying `.env` preserves those paths and the backup-mode policy. Confirm the archive bind and absence of a PostgreSQL WAL bind with `docker compose config`; the backup root is not mounted into a long-running service. Compose uses the fixed `oscar` project and exact external volumes `oscar_oscar_state` and `oscar_postgres_data`. During upgrade, the storage administrator lock covers the ordered application stop, configuration-aware offline daily-file lifecycle-index migration, and force-recreated service restart. The migration reads the persisted `/var/lib/oscar/config.json`, safely skips when no Daily File Journal module is configured, and creates no new work markers when the journal is already indexed. A failed or interrupted scan can leave idempotent work markers and an explicit restart marker, but it does not publish completion metadata; OSCAR remains stopped and the same upgrade is safe to retry. All named volumes and external roots remain attached. Retire the prior release directory only after health and mount/provenance verification. Never remove a parent or sibling path containing a preserved external archive, legacy-WAL, or backup root. +For a 3.11.12-or-newer same-storage-profile upgrade, first create and verify a coordinated snapshot when the deployment has explicitly selected `single` mode, then copy only `.env`, `secrets/`, and `tls/` into a clean extracted release before running `oscar upgrade`; do not overlay the ZIP on old release-managed files. If the deployment previously adopted unlabelled legacy Docker volumes, also copy its `.oscar-volume-adoption` receipt. Initialization persists the archive path, and in `single` mode the backup path, as absolute paths outside the versioned release; the legacy-WAL binding is retained only to preserve any existing compatibility tree. Copying `.env` preserves those paths and the backup-mode policy. Confirm the archive bind and absence of a PostgreSQL WAL bind with `docker compose config`; the backup root is not mounted into a long-running service. Compose uses the fixed `oscar` project and exact external volumes `oscar_oscar_state` and `oscar_postgres_data`. During upgrade, the storage administrator lock covers the ordered application stop, configuration-aware offline daily-file lifecycle-index migration, and force-recreated service restart. The migration reads the persisted `/var/lib/oscar/config.json`, safely skips when no Daily File Journal module is configured, and creates no new work markers when the journal is already indexed. A failed or interrupted scan can leave idempotent work markers and an explicit restart marker, but it does not publish completion metadata; OSCAR remains stopped and the same upgrade is safe to retry. All named volumes and external roots remain attached. Retire the prior release directory only after health and mount/provenance verification. Never remove a parent or sibling path containing a preserved external archive, legacy-WAL, or backup root. A pre-3.11.0 system does not have the coordinated-snapshot/root-identity contract and is not an ordinary in-place upgrade. Preserve it read-only after its supported backup/export, then use the separately qualified migration/bootstrap procedure. Only after confirming that both legacy named volumes and all nonempty active archive/backup roots belong to that deployment may an administrator use the explicit one-time adoption switches. Any legacy-WAL tree remains untouched compatibility data. The adoption switches create deployment-bound audit receipts/markers for active roots; they must never combine unrelated storage or bypass a foreign/swapped identity. @@ -104,7 +104,7 @@ The [pluggable runtime extensions & regional packs guide](docs/PLUGGABLE_EXTENSI The [radiation portal monitor & detector driver integration guide](docs/RADIATION_DETECTOR_DRIVER_GUIDE.md) walks developers and hardware vendors step-by-step through adding support for a new standalone radiation detector, gross-counting RPM, or spectroscopic portal—covering `RADHelper` SWE Common semantic URIs, `PARQUET_PRIMARY` stream routing, `DailyFileJournalConnection` pre-parse crash-safe journaling, `LaneSystem` & `StateManager` camera/alarm synchronization, bulk CSV lane import, 4-language (`en`, `es`, `fr`, `el`) Admin UI/`README` parity, and emulator-backed regression certification. -The [storage architecture](docs/STORAGE_ARCHITECTURE.md) explains the 3.11.11 PostgreSQL hot store, Parquet cold tier, durable daily journal, and exact-five JPEG retained-media design for each successfully converted camera clip. The companion [data-lifecycle policy](docs/DATA_LIFECYCLE.md), [archive-format contract](docs/ARCHIVE_FORMAT.md), [backup/restore runbook](docs/BACKUP_RESTORE.md), [continual & occasional USB NVMe incremental backup guide](docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md), and [storage-operations runbook](docs/STORAGE_OPERATIONS.md) cover retention, portability, zero-downtime USB NVMe continual sync and field laptop offload, deletion, recovery, monitoring, and rollout. +The [storage architecture](docs/STORAGE_ARCHITECTURE.md) explains the 3.11.12 PostgreSQL hot store, Parquet cold tier, durable daily journal, and exact-five JPEG retained-media design for each successfully converted camera clip. The companion [data-lifecycle policy](docs/DATA_LIFECYCLE.md), [archive-format contract](docs/ARCHIVE_FORMAT.md), [backup/restore runbook](docs/BACKUP_RESTORE.md), [continual & occasional USB NVMe incremental backup guide](docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md), and [storage-operations runbook](docs/STORAGE_OPERATIONS.md) cover retention, portability, zero-downtime USB NVMe continual sync and field laptop offload, deletion, recovery, monitoring, and rollout. The [diagnostic flight recorder & support bundle guide](docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md) documents the built-in 400-event browser flight recorder, rolling server diagnostics, 1-click **Help (`?`) -> Export Support Bundle** action, offline client fallback, host CLI `oscar.sh` / `oscar.bat support-bundle` crash-loop collector, and automatic edge secret redaction. diff --git a/build.gradle b/build.gradle index 09d858b..0a819e9 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply from: gradle.oshCoreDir + '/common.gradle' description = '' allprojects { - version = "3.11.11" + version = "3.11.12" } subprojects { diff --git a/changelog.md b/changelog.md index 4e4d683..c0122ff 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,30 @@ # OSCAR Change Log All notable changes to this project will be documented in this file. +## 3.11.12 (Amber) 2026-11-24 + +OSCAR `3.11.12` (Amber) is the current general-availability release on the `3.11` line for continuous 24/7 operation across up to 50 concurrent radiation portal monitor (RPM) and RTSP camera lanes on **Ubuntu Server 24.04 x86-64** and **Windows 11 x86-64** (Docker Desktop + WSL 2). Building directly on `3.11.11`, `3.11.12` resolves **Shallow-Offset Non-Cold Overlay Completeness & `hotBoundaryTime` Bounding in `OscarTieredObsStore`**, **Time-Contained Summary-Mask Evaluation (`base_summary_mask`) for Date-Bounded Count & Slice Queries**, **`FederatedObsStore` Offset Pushdown Past Default `InMemoryObsStore` Targets & Read-Only Async Timeout Interruption in `RestApiServlet`**, and **Universal Hot-Bounded Live Event UUID Lookups**, allowing `EventTableRequests.ts` to drop its redundant client-side `visitedPagesCacheRef` layer while maintaining zero growing SQL indexes. + +### Highlights in `3.11.12` + +- **Shallow-Offset Non-Cold Completeness, `hotBoundaryTime` Preservation & Time-Contained `base_summary_mask` Evaluation (`OscarTieredObsStore.java`, `JsonCqlEvaluator.java`):** + - Lowers `MIN_SUMMARY_SKIP_OFFSET` to `15L`, probes up to `EAGER_NON_COLD_COMPLETE_FLOOR + 1` (`1,025`) non-cold rows so multi-week overlay accumulation (`270+` adjudicated rows per category) still proves `nonColdComplete` in a single `< 60 ms` PostgreSQL read, and preserves `hotBoundaryTime` (`[T_{limit-1}, maxTime]`) whenever `nonCold.size() >= filter.getLimit()`, keeping `10x` rapid `Previous (<)` pagination under `2.35 s` across `1.83M` rows without client page caches or new SQL indexes. + - Adds `JsonCqlEvaluator.extractSummaryMaskConjuncts` and `tryEvaluateSummaryMaskConjuncts` so interior `timeContainedSummarySpec` generations on date-bounded Dashboard, Operational-View, and Report queries evaluate `oscar_obs_overlay.base_summary_mask` in memory/PostgreSQL with timestamp-independent cache keys (`0` DuckDB sessions), and scopes unsummarized cold `countCql`/`countMatchingIds` exclusions strictly to `parquetCandidates`. +- **Single-Target `InMemoryObsStore` Offset Pushdown & Cancelled Read-Only Task Interruption (`FederatedObsStore.java`, `RestApiServlet.java`):** + - Extends `FederatedObsStore.selectEntries(..., offset)` to ignore `SensorHub`'s default empty `InMemoryObsStore` (`systemStateDb`) alongside `EmptyObsStore` via an `O(1)` in-memory check (`29 ms` unscoped `offset=300`), and interrupts timed-out or client-errored read-only (`GET`/`HEAD`) async tasks so `DuckDbResourcePolicy` waiters release immediately. +- **Simplified `EventTable` Pagination & Hot-Bounded Live Lookups (`EventTableRequests.ts`, `SharedOccupancy.ts`, `BulkAdjudication.ts`, `EventPreview.tsx`, `AdjudicationDetail.tsx`):** + - Removes `visitedPagesCacheRef` and `navigationDirectionRef` (`-122` net lines in `oscar-viewer`) in favor of `disjointPriorityPlans` + `120 ms` settled debounce + `AbortController`, and extends `buildEventBoundedPhenomenonTime` across all unhydrated live `startTime`/`endTime` lookup callers. + +### Release artifacts — which file to download (`v3.11.12`) + +| Release Asset | Target Audience & Use Case | +| :--- | :--- | +| `oscar-3.11.12.zip` (+ `.sha256`) | **Connected Ubuntu Server 24.04 or Windows 11 installations, CLI upgrades, and Zero-Login GUI System Updates.** Includes Docker Compose definitions (`compose.yaml`, `compose.rpm-proxy.yaml`, `compose.sandbox.yaml`, `compose.octelium.yaml`), Linux/Windows administration CLIs (`oscar.sh` / `oscar.bat` including `update`, `rpm-proxy`, `reset-admin-password`, `sandbox`, and `remote-access`), `configure-ubuntu-host.sh`, `configure-windows-host.ps1`, `ubuntu/` autoinstall creator & templates, application build context, all Markdown documentation, and all four localized PDF operator manuals. | +| `oscar-3.11.12-autoinstall-usb-creator.zip` (+ `.sha256`) | **Standalone Windows 11 & Ubuntu Bare-Metal Autoinstall USB Creator (`~53 KiB`, GUI + TUI + CLI).** Download alongside `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` and `ubuntu-24.04.x-live-server-amd64.iso` to build a single-stick UEFI Secure-Boot Ubuntu 24.04 + air-gapped OSCAR installer USB drive (with optional PBKDF2 web `admin` password + `lanes.csv` pre-configuration and unattended first-boot setup) without extracting the offline bundle first. | +| `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` (+ `.sha256`) | **Air-gapped / offline Ubuntu 24.04 LTS installations (or slow hotel Wi-Fi staging).** Bundles official Ubuntu 24.04 Docker Engine + Compose v2 + `chrony`/`ethtool`/`nmap`/`arp-scan` `.deb` packages, pre-built container images (`oscar:3.11.12`, `oscar-postgis:3.11.12`, `oscar-rpm-proxy:3.11.12`, `nginx/nginx-unprivileged:1.30.7-alpine`), `oscar.sh update`, `rpm-proxy`, `reset-admin-password` & `sandbox`, bare-metal `create-autoinstall-usb` + `oscar-firstboot-wizard.sh`, and all Markdown/PDF documentation. | +| `oscar-3.11.12-windows-x86_64-offline-full.zip` (+ `.sha256`) | **Air-gapped / offline Windows 11 installations where Docker Desktop or WSL 2 is not yet installed.** Bundles pinned Docker Desktop `4.87.0` and WSL `2.7.3` installers, pre-built container images (`oscar:3.11.12`, `oscar-postgis:3.11.12`, `oscar-rpm-proxy:3.11.12`, `nginx/nginx-unprivileged:1.30.7-alpine`), administration scripts, and all Markdown/PDF documentation. | +| `oscar-3.11.12-windows-x86_64-offline-images.zip` (+ `.sha256`) | **Air-gapped / offline Windows 11 installations or upgrades where compatible Docker Desktop and WSL 2 are already running.** Contains the pre-built container image archive, administration scripts, and documentation without the Windows prerequisite installers. | + ## 3.11.11 (Amber) 2026-11-23 OSCAR `3.11.11` (Amber) is the current general-availability release on the `3.11` line for continuous 24/7 operation across up to 50 concurrent radiation portal monitor (RPM) and RTSP camera lanes on **Ubuntu Server 24.04 x86-64** and **Windows 11 x86-64** (Docker Desktop + WSL 2). Building directly on `3.11.10`, `3.11.11` eliminates **Live MQTT Historical Prefetch-Invalidation Storms (`HTTP 499`), Cold Parquet Lookups on Live Alarm Identity Resolution, and Full Overlay Scans on Event Log Pagination**, while adding **Instant Visited-Page Backward/Forward Event Table Pagination and Directional `page - 1` Prefetching**. diff --git a/dist/config/standard/config.json b/dist/config/standard/config.json index c1a67ce..e72dddc 100644 --- a/dist/config/standard/config.json +++ b/dist/config/standard/config.json @@ -132,7 +132,7 @@ "uiClass": "com.botts.ui.oscar.forms.OSCARServiceForm" } ], - "deploymentName": "OSCAR 3.11.11", + "deploymentName": "OSCAR 3.11.12", "enableLandingPage": false, "id": "5cb05c9c-9123-4fa1-8731-ffaa51489678", "autoStart": true, diff --git a/dist/release/.env.example b/dist/release/.env.example index 5665ef0..3cf3a52 100644 --- a/dist/release/.env.example +++ b/dist/release/.env.example @@ -1,4 +1,4 @@ -OSCAR_VERSION=3.11.11 +OSCAR_VERSION=3.11.12 OSCAR_DEPLOYMENT_ID= OSCAR_POSTGIS_PLATFORM=linux/amd64 OSCAR_HTTPS_PORT=443 diff --git a/dist/release/DEPLOYMENT.md b/dist/release/DEPLOYMENT.md index c3b5208..614c87f 100644 --- a/dist/release/DEPLOYMENT.md +++ b/dist/release/DEPLOYMENT.md @@ -24,7 +24,7 @@ Confirm the running gateway reports `nginx/1.30.7` (or a newer patched version), - Windows 11 x86-64 with Docker Desktop and WSL 2 - Ubuntu Server 24.04 x86-64 with Docker Engine and the Compose plugin -The 3.11.11 storage profile fails closed on macOS because Docker Desktop for Mac cannot satisfy this +The 3.11.12 storage profile fails closed on macOS because Docker Desktop for Mac cannot satisfy this release's tested bind-root ownership and recovery-media isolation contract. Use Ubuntu or Windows for initialization and operation; a Mac may still be used for source inspection or non-deployment development. @@ -451,7 +451,7 @@ Docker Compose mounts secrets read-only. On Ubuntu, the setup CLI makes `secrets ### Authentication, offline Passkeys, persistent sessions, SSO & remote-access tunnel -OSCAR 3.11.11 manages operator and service identities without requiring command-line edits or external internet access: +OSCAR 3.11.12 manages operator and service identities without requiring command-line edits or external internet access: 1. **Persistent "Stay Signed In Until Logout" Sessions:** Fresh configurations default `idleTimeoutSeconds = 0`, `absoluteTimeoutSeconds = 0`, `persistSessions = true`, and `allowKeepSignedIn = true` (`persistentCookieMaxAgeSeconds = 31536000`). Only SHA-256 digests of active `OSCAR_SESSION` cookies are stored in `/var/lib/oscar/.moduledata/oscar-identity.json` (`0600`), allowing dedicated gatehouse workstations to stay signed in across browser restarts, host reboots, and `oscar upgrade` until the user clicks **Log Out** or an administrator disables/revokes the account. Shared shift kiosks can switch to timed sessions (for example, `30m` idle / `8h` max) in **Users & Access -> Sign-In & SSO Policy**. 2. **Non-IT Users & Access Console (`/users` in OSCAR Viewer):** @@ -520,7 +520,7 @@ Organizations that operate multiple firewalled or NATed OSCAR sites and want a s ```sh ./oscar-hub.sh add-site north-gate --display-name "North Gate Portal" --with-trusted-headers ``` - Copy `state/tokens/north-gate.token` securely to that OSCAR 3.11.11 host and run OSCAR's built-in remote-access helper (then delete the temporary token file): + Copy `state/tokens/north-gate.token` securely to that OSCAR 3.11.12 host and run OSCAR's built-in remote-access helper (then delete the temporary token file): ```sh # Ubuntu Server 24.04 sudo bash oscar-remote-access.sh configure \ @@ -543,7 +543,7 @@ Organizations that operate multiple firewalled or NATed OSCAR sites and want a s - **Coexistence with Local Offline Accounts & Node Data Federation:** Central `oidc`/`tunnel` accounts never overwrite local `authSource = "local"` accounts, so site-local Passkeys and PBKDF2 passwords continue working on the local LAN during WAN outages. For server-to-server alarm/video aggregation onto a Central OSCAR Viewer, mint a dedicated `oscar_fed_...` **Federation Service Token** on each site and add `north-gate.hub.example.org` (`HTTPS`, port `443`) on Central's **Servers** page so disabling a human employee never interrupts site-to-central telemetry. - **Zero-Trust Remote Practice Sandbox (`https://-sandbox.`):** `oscar-hub.sh add-site` and `oscar.sh remote-access` automatically register a companion **`-sandbox.`** Web service over the **same single outbound `oscar-tunnel` connector token** (`octelium connect --serve-all` -> loopback `127.0.0.1:18444` -> `https://host.docker.internal:8444`). Remote users click **Launch Practice Sandbox** inside **Guided Walkthrough** or **Help (`?`)** on `https://.` and open **`https://-sandbox.`** over standard HTTPS `:443` with valid **Let's Encrypt TLS**, **shared parent-domain WebAuthn Passkeys (`rpId = `)**, Authentik OIDC / Verified Tunnel SSO, and `/sensorhub/admin` split-pane training enabled inside `-sandbox.` (while `/sensorhub/admin` remains blocked on operational `.`), alongside direct `https://:8444` access on the local LAN. -The application configuration is copied into the `oscar_state` volume on first startup. Runtime configuration saves update only that persistent copy. Application libraries and viewer assets remain read-only in the image. PostgreSQL data is stored in the `postgres_data` volume. OSCAR 3.11.11 uses a long-lived host bind for the primary Parquet cold tier (`OSCAR_ARCHIVE_DIR`) so multi-year archives can reside on a dedicated host volume, survive `docker compose down -v` or Docker Desktop resets, and undergo direct host-side ACL, `.oscar-storage-root`, and offline backup verification; on Windows WSL 2 `9p`/`drvfs` mounts, OSCAR automatically caches SHA-256-verified Parquet generations inside a disk-proportional (`2–8 GiB`, excluded from backups) native `ext4` cache (`/var/lib/oscar/.cache/oscar-9p-parquet-cache`) so repeat historical queries avoid cross-VM `9p` read amplification without giving up host-bind durability. Keep `OSCAR_JAVA_OPTS` aligned with `.env.example` rather than forcing oversized `ForkJoinPool.common.parallelism` values on 4–8 core hosts. PostgreSQL runs with `archive_mode=off`, no external archive command, and no WAL bind. An existing `OSCAR_WAL_ARCHIVE_DIR` is preserved only to avoid deleting legacy data; current schema-v1/v2 restore does not use it. Fresh deployments set `OSCAR_BACKUP_MODE=disabled`; after explicit `single` opt-in, `OSCAR_BACKUP_DIR` is an operator-selected safe absolute host path that does not overlap the release or archive roots and is never mounted into a long-running service. A separate physical drive is recommended for failure isolation but is not required. A Docker named-volume backup or Parquet copy alone is incomplete. +The application configuration is copied into the `oscar_state` volume on first startup. Runtime configuration saves update only that persistent copy. Application libraries and viewer assets remain read-only in the image. PostgreSQL data is stored in the `postgres_data` volume. OSCAR 3.11.12 uses a long-lived host bind for the primary Parquet cold tier (`OSCAR_ARCHIVE_DIR`) so multi-year archives can reside on a dedicated host volume, survive `docker compose down -v` or Docker Desktop resets, and undergo direct host-side ACL, `.oscar-storage-root`, and offline backup verification; on Windows WSL 2 `9p`/`drvfs` mounts, OSCAR automatically caches SHA-256-verified Parquet generations inside a disk-proportional (`2–8 GiB`, excluded from backups) native `ext4` cache (`/var/lib/oscar/.cache/oscar-9p-parquet-cache`) so repeat historical queries avoid cross-VM `9p` read amplification without giving up host-bind durability. Keep `OSCAR_JAVA_OPTS` aligned with `.env.example` rather than forcing oversized `ForkJoinPool.common.parallelism` values on 4–8 core hosts. PostgreSQL runs with `archive_mode=off`, no external archive command, and no WAL bind. An existing `OSCAR_WAL_ARCHIVE_DIR` is preserved only to avoid deleting legacy data; current schema-v1/v2 restore does not use it. Fresh deployments set `OSCAR_BACKUP_MODE=disabled`; after explicit `single` opt-in, `OSCAR_BACKUP_DIR` is an operator-selected safe absolute host path that does not overlap the release or archive roots and is never mounted into a long-running service. A separate physical drive is recommended for failure isolation but is not required. A Docker named-volume backup or Parquet copy alone is incomplete. The OSCAR service keeps the general-purpose `/tmp` tmpfs `noexec`. Embedded Java native libraries, including DuckDB JDBC and JavaCPP/FFmpeg, are extracted instead to a separate 256 MiB tmpfs at @@ -641,9 +641,9 @@ Every reported privilege flag for `oscar_app` must be false. A host scan must sh ## Upgrade -### Zero-Login GUI & Single-Command Host System Update (`3.11.11+`) +### Zero-Login GUI & Single-Command Host System Update (`3.11.12+`) -Administrators on connected or air-gapped `3.11.11+` deployments can upgrade directly from the browser console without any GitHub account, OAuth sign-in, or Personal Access Token: +Administrators on connected or air-gapped `3.11.12+` deployments can upgrade directly from the browser console without any GitHub account, OAuth sign-in, or Personal Access Token: 1. Sign in to OSCAR Viewer as an **Administrator** and open **Users & Access -> System Update** (`/users?tab=update`), or open **Help (`?`) -> Open System Update**. 2. **Connected sites:** Click **Check GitHub for Updates** (resolves `https://github.com/ORNL/oscar/releases/latest` and `.zip.sha256` anonymously with zero REST API rate-limit quota), review the release summary and SHA-256 digest, optionally enable **Create an encrypted backup snapshot before upgrading**, and click **Download & Install**. @@ -664,7 +664,7 @@ If container startup or HTTPS `/healthz` readiness fails during cutover, the hos ### Manual Clean-Directory Upgrade -For a 3.11.11-or-newer same-storage-profile upgrade, create and verify a coordinated snapshot first when the site has explicitly selected `OSCAR_BACKUP_MODE=single`. A disabled site must use its separately approved protection procedure or opt in through `upgrade` before invoking backup or restore. A pre-3.11.0 release does not have this CLI; use that release's supported backup/export procedure and retain the old system read-only until the separately qualified migration is complete. Extract the new release into a clean sibling directory; do not overlay it on the previous release because removed files would otherwise remain in the image build context. Copy only `.env`, `secrets/`, and `tls/` from the existing deployment into the clean release directory. If the deployment has a `.oscar-volume-adoption` receipt, copy that file too. Preserve `OSCAR_BACKUP_MODE`, the absolute active `OSCAR_ARCHIVE_DIR` and `OSCAR_BACKUP_DIR` values, and any existing absolute `OSCAR_WAL_ARCHIVE_DIR` compatibility binding; setup must never delete legacy roots or data while changing modes. Before starting services, use `docker compose config` to confirm the archive bind and the absence of a PostgreSQL WAL bind, then inspect the single mode and backup-root entries in `.env`. Compose attaches the exact external volumes `oscar_oscar_state` and `oscar_postgres_data`; setup owns their creation and validates deployment identity. Then run: +For a 3.11.12-or-newer same-storage-profile upgrade, create and verify a coordinated snapshot first when the site has explicitly selected `OSCAR_BACKUP_MODE=single`. A disabled site must use its separately approved protection procedure or opt in through `upgrade` before invoking backup or restore. A pre-3.11.0 release does not have this CLI; use that release's supported backup/export procedure and retain the old system read-only until the separately qualified migration is complete. Extract the new release into a clean sibling directory; do not overlay it on the previous release because removed files would otherwise remain in the image build context. Copy only `.env`, `secrets/`, and `tls/` from the existing deployment into the clean release directory. If the deployment has a `.oscar-volume-adoption` receipt, copy that file too. Preserve `OSCAR_BACKUP_MODE`, the absolute active `OSCAR_ARCHIVE_DIR` and `OSCAR_BACKUP_DIR` values, and any existing absolute `OSCAR_WAL_ARCHIVE_DIR` compatibility binding; setup must never delete legacy roots or data while changing modes. Before starting services, use `docker compose config` to confirm the archive bind and the absence of a PostgreSQL WAL bind, then inspect the single mode and backup-root entries in `.env`. Compose attaches the exact external volumes `oscar_oscar_state` and `oscar_postgres_data`; setup owns their creation and validates deployment identity. Then run: ```powershell .\oscar.bat upgrade @@ -674,7 +674,7 @@ For a 3.11.11-or-newer same-storage-profile upgrade, create and verify a coordin sudo bash oscar.sh upgrade ``` -The command preserves existing settings and data while normalizing the required 3.11.11 managed +The command preserves existing settings and data while normalizing the required 3.11.12 managed bindings: deployment identity, exact backup mode, absolute external storage roots, and the canonical backup-key binding. A legacy deployment may also receive a generated backup key plus explicit volume/root adoption metadata when the corresponding adoption options are supplied. After those guarded @@ -726,11 +726,11 @@ before claiming any path. Backups exclude these host-local markers, and restore revalidates the target markers instead of accepting identities from backup media. A retired legacy-WAL tree is neither claimed nor mutated by current setup. -The OSCAR application libraries and exported Viewer are part of the `oscar:` image. A restart does not rebuild that image. To test OSCAR 3.11.11 from a connected release artifact, prepare the clean release directory as described above. Use `init` and fresh state for the complete 3.11.11 storage profile; use `upgrade` only when intentionally retaining the existing storage/configuration profile. Confirm that `docker compose images` reports `oscar:3.11.11` before accepting the test result. +The OSCAR application libraries and exported Viewer are part of the `oscar:` image. A restart does not rebuild that image. To test OSCAR 3.11.12 from a connected release artifact, prepare the clean release directory as described above. Use `init` and fresh state for the complete 3.11.12 storage profile; use `upgrade` only when intentionally retaining the existing storage/configuration profile. Confirm that `docker compose images` reports `oscar:3.11.12` before accepting the test result. -Release image tags are immutable once published. Connected `init` and `upgrade` rebuild both local image contexts (`oscar:3.11.11` and `oscar-postgis:3.11.11`) before recreating services, even when those tags already exist, so a pre-release same-tag iteration cannot silently retain an older application or restore helper. On Ubuntu this is equivalent to `OSCAR_VERSION=3.11.11 docker compose build oscar postgres`. The Windows setup performs two bounded `docker build` operations, including `docker build --platform linux/amd64 --build-arg OSCAR_VERSION=3.11.11 --tag oscar-postgis:3.11.11 --file postgis/Dockerfile postgis`; this avoids Docker Compose 5.6's in-tree Dockerfile entitlement regression without granting wildcard filesystem access. The regression platform check requires each packaged helper to match its deployed image byte-for-byte. Never replace a published `oscar:3.11.11` image with different contents. +Release image tags are immutable once published. Connected `init` and `upgrade` rebuild both local image contexts (`oscar:3.11.12` and `oscar-postgis:3.11.12`) before recreating services, even when those tags already exist, so a pre-release same-tag iteration cannot silently retain an older application or restore helper. On Ubuntu this is equivalent to `OSCAR_VERSION=3.11.12 docker compose build oscar postgres`. The Windows setup performs two bounded `docker build` operations, including `docker build --platform linux/amd64 --build-arg OSCAR_VERSION=3.11.12 --tag oscar-postgis:3.11.12 --file postgis/Dockerfile postgis`; this avoids Docker Compose 5.6's in-tree Dockerfile entitlement regression without granting wildcard filesystem access. The regression platform check requires each packaged helper to match its deployed image byte-for-byte. Never replace a published `oscar:3.11.12` image with different contents. -The default configuration for a new installation is labeled `OSCAR 3.11.11`. An upgrade preserves `/var/lib/oscar/config.json`, including a customized deployment name, so the Admin UI may continue to display the prior or site-specific label. Do not overwrite that value merely to display a version number. Use `OSCAR_VERSION` in `.env` and `docker compose images` to verify the running release. The OSCAR image also stamps that value into the OCI `org.opencontainers.image.version` label; inspect it on PowerShell or a POSIX shell with `docker image inspect oscar:3.11.11 --format '{{json .Config.Labels}}'` and require the label value `3.11.11` before accepting the image. +The default configuration for a new installation is labeled `OSCAR 3.11.12`. An upgrade preserves `/var/lib/oscar/config.json`, including a customized deployment name, so the Admin UI may continue to display the prior or site-specific label. Do not overwrite that value merely to display a version number. Use `OSCAR_VERSION` in `.env` and `docker compose images` to verify the running release. The OSCAR image also stamps that value into the OCI `org.opencontainers.image.version` label; inspect it on PowerShell or a POSIX shell with `docker image inspect oscar:3.11.12 --format '{{json .Config.Labels}}'` and require the label value `3.11.12` before accepting the image. On Windows, setup and storage administration stream every bounded shell body and direct `psql` statement into the one-shot container over UTF-8 standard input. The direct `docker run` adapter owns @@ -742,11 +742,11 @@ quoted values exactly under Windows PowerShell 5.1 native argument handling. A f check leaves the receipt in `INITIALIZING`; correct the reported problem and rerun `oscar.bat init` from the same release and protected runtime state rather than deleting the volumes. -### 3.11.11 storage migration boundary +### 3.11.12 storage migration boundary -OSCAR 3.11.11 changes the default database module, write path, daily-file source capture, media-retention format, and PostgreSQL initialization. `upgrade` deliberately does not overwrite the saved module configuration or recreate the PostgreSQL cluster, so an upgraded pre-3.11.0 system does not automatically gain the complete 3.11.11 storage profile or data checksums. +OSCAR 3.11.12 changes the default database module, write path, daily-file source capture, media-retention format, and PostgreSQL initialization. `upgrade` deliberately does not overwrite the saved module configuration or recreate the PostgreSQL cluster, so an upgraded pre-3.11.0 system does not automatically gain the complete 3.11.12 storage profile or data checksums. -Initialize the current test systems and new production systems with a fresh 3.11.11 database/configuration. If existing production history must be retained, keep the old system read-only after a verified backup and use a separately designed and tested migration. Do not delete production volumes merely to make the new module start. Follow the parity, restore-drill, and bounded hot-deletion validation in [`../../docs/STORAGE_OPERATIONS.md`](../../docs/STORAGE_OPERATIONS.md). +Initialize the current test systems and new production systems with a fresh 3.11.12 database/configuration. If existing production history must be retained, keep the old system read-only after a verified backup and use a separately designed and tested migration. Do not delete production volumes merely to make the new module start. Follow the parity, restore-drill, and bounded hot-deletion validation in [`../../docs/STORAGE_OPERATIONS.md`](../../docs/STORAGE_OPERATIONS.md). The OSCAR container keeps `/var/lib/oscar/config.json` readable and writable only by the OSCAR runtime user (`0600`) and repairs older read-only copies during startup. After importing a lane CSV, wait for every lane to appear under **Sensors**, select the global **Save** action, restart OSCAR, and confirm that the same lanes reload. Historical systems in PostgreSQL are not proof that runtime sensor modules were saved; an empty **Sensors** tree after restart indicates that the module configuration was not persisted. diff --git a/dist/release/QUICKSTART.md b/dist/release/QUICKSTART.md index ac1f2a4..f1811fc 100644 --- a/dist/release/QUICKSTART.md +++ b/dist/release/QUICKSTART.md @@ -1,6 +1,6 @@ # OSCAR Quick Start -OSCAR 3.11.11 deployment and storage operation are supported only on Windows 11 x86-64 with Docker +OSCAR 3.11.12 deployment and storage operation are supported only on Windows 11 x86-64 with Docker Desktop/WSL 2 and Ubuntu Server 24.04 x86-64 with Docker Engine/Compose. macOS is limited to source inspection and non-deployment development; initialization, start, restart, upgrade, and storage operations fail closed there. Before sizing a host or configuring camera H.264 resolution, frame @@ -82,7 +82,7 @@ organization's behalf. For step-by-step instructions tailored to users unfamiliar with Ubuntu or OSCAR—including bootable USB links, **off-site hotel-room Wi-Fi/DHCP staging with 1-command static-IP on-site cutover**, **bare-metal air-gapped USB setup with zero internet and zero DHCP**, declarative `autoinstall`/Netplan/Ansible YAML files, and **discovering unknown camera/RPM IP addresses**—read [`UBUNTU_FIELD_SETUP_GUIDE.md`](../../docs/UBUNTU_FIELD_SETUP_GUIDE.md). -1. Choose `oscar-3.11.11-ubuntu-x86_64-offline-full.zip` for air-gapped sites without internet (or slow hotel Wi-Fi), or `oscar-3.11.11.zip` when installing over fast internet. +1. Choose `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` for air-gapped sites without internet (or slow hotel Wi-Fi), or `oscar-3.11.12.zip` when installing over fast internet. 2. Prepare the Ubuntu 24.04 host (installs official Docker Engine + Compose v2 from bundled `.deb`s or APT, expands Ubuntu's default `100 GiB` LVM root volume if `--expand-lvm` is passed, masks sleep/suspend, disables automatic unattended-upgrade reboots, bounds offline boot-wait timeouts, and tunes socket buffers): ```sh @@ -221,7 +221,7 @@ After full acceptance it atomically replaces the HMAC-authenticated `CURRENT` po the previous non-current fully accepted schema-v2 snapshot be removed. A confirmation failure leaves the previous `CURRENT` authoritative. The explicit `backup-verify` command can run with PostgreSQL stopped: it uses a one-shot utility container and -treats the live catalog receipt as optional. Restore additionally requires matching 3.11.11 backup, +treats the live catalog receipt as optional. Restore additionally requires matching 3.11.12 backup, current-release, and backed-up release-config identities plus every exact local Compose image. Plan backup capacity for the old snapshot plus one complete replacement: one snapshot is the steady-state logical result, not the peak space required while `CURRENT` is changing. If a crash @@ -250,10 +250,10 @@ replaces the selected backup's `VERIFIED` marker and normalizes permissions. It one restorable. An optional live catalog update occurs only after deployment-volume ownership is proven. -OSCAR 3.11.11's full storage profile is initialized with a new database and standard configuration. +OSCAR 3.11.12's full storage profile is initialized with a new database and standard configuration. An upgrade preserves the old `config.json` and PostgreSQL volume, so it does not silently convert a pre-3.11.0 system to the tiered archive or enable PostgreSQL data checksums. Use a fresh deployment -for the 3.11.11 test systems. Preserve and separately migrate any production history that policy +for the 3.11.12 test systems. Preserve and separately migrate any production history that policy requires. If a deliberately retained pre-label deployment uses unlabelled Docker volumes, follow the diff --git a/dist/release/ubuntu/create-autoinstall-usb.ps1 b/dist/release/ubuntu/create-autoinstall-usb.ps1 index 46377b7..0763869 100644 --- a/dist/release/ubuntu/create-autoinstall-usb.ps1 +++ b/dist/release/ubuntu/create-autoinstall-usb.ps1 @@ -207,7 +207,7 @@ Usage (run from create-autoinstall-usb.bat, Administrator PowerShell, or .\oscar .\create-autoinstall-usb.bat -ListDrives (List safe external USB drives) .\create-autoinstall-usb.ps1 ` -IsoPath C:\Downloads\ubuntu-24.04.5-live-server-amd64.iso ` - -OfflineBundlePath C:\Downloads\oscar-3.11.11-ubuntu-x86_64-offline-full.zip ` + -OfflineBundlePath C:\Downloads\oscar-3.11.12-ubuntu-x86_64-offline-full.zip ` -DiskNumber 2 ` -Hostname oscar-host ` -Username oscaradmin ` diff --git a/dist/release/ubuntu/create-autoinstall-usb.sh b/dist/release/ubuntu/create-autoinstall-usb.sh index de29064..59c5273 100755 --- a/dist/release/ubuntu/create-autoinstall-usb.sh +++ b/dist/release/ubuntu/create-autoinstall-usb.sh @@ -32,7 +32,7 @@ Usage: sudo bash create-autoinstall-usb.sh --list-drives (List candidate removable USB drives) sudo bash create-autoinstall-usb.sh \ --iso /path/to/ubuntu-24.04.5-live-server-amd64.iso \ - [--offline-bundle /path/to/oscar-3.11.11-ubuntu-x86_64-offline-full.zip] \ + [--offline-bundle /path/to/oscar-3.11.12-ubuntu-x86_64-offline-full.zip] \ (--device /dev/sdX | --output-image /path/to/autoinstall.img) \ [--hostname oscar-host] \ [--username oscaradmin] \ diff --git a/docs/ARCHIVE_FORMAT.md b/docs/ARCHIVE_FORMAT.md index 57b5fde..ba9b260 100644 --- a/docs/ARCHIVE_FORMAT.md +++ b/docs/ARCHIVE_FORMAT.md @@ -1,4 +1,4 @@ -# OSCAR 3.11.11 cold archive format +# OSCAR 3.11.12 cold archive format OSCAR's cold observation tier is a portable set of ZSTD-compressed Parquet files, JSON manifests, gzip-compressed datastream schema snapshots, and a PostgreSQL catalog. OSCAR uses the catalog for diff --git a/docs/BACKUP_RESTORE.md b/docs/BACKUP_RESTORE.md index 5164c35..085bc5f 100644 --- a/docs/BACKUP_RESTORE.md +++ b/docs/BACKUP_RESTORE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 backup, restore, and recovery +# OSCAR 3.11.12 backup, restore, and recovery -OSCAR 3.11.11 can create one coordinated recovery snapshot of the PostgreSQL cluster, application +OSCAR 3.11.12 can create one coordinated recovery snapshot of the PostgreSQL cluster, application state, primary Parquet cold tier, release configuration, and encrypted deployment credentials. Fresh installations default to `OSCAR_BACKUP_MODE=disabled`; backup creation, verification, restore, and the retired prune command remain unavailable until an administrator explicitly changes the @@ -127,7 +127,7 @@ scale. The automated restore returns PostgreSQL to the consistent endpoint inclu Compose enables PostgreSQL data checksums for **new** clusters and WAL compression, but explicitly runs PostgreSQL with `archive_mode=off`. It sets no external archive command or timeout and mounts no -host WAL directory. OSCAR 3.11.11 supports restore only to the consistency endpoint carried by the +host WAL directory. OSCAR 3.11.12 supports restore only to the consistency endpoint carried by the selected base backup; it does not provide point-in-time recovery to an arbitrary timestamp or LSN. The restore promotes the recovered cluster onto a fresh timeline without consulting an external WAL archive. @@ -140,7 +140,7 @@ entry/byte bounds. Both launchers stream this file while calculating its receipt the complete list into memory or construct an SQL UUID-array literal. A backup with no active or sealed generations uses a valid empty file (count and bytes zero, with the standard SHA-256 of empty content). The epoch must identify exactly OSCAR -3.11.11, not merely any semantic version. Before destructive restore, OSCAR also compares the current +3.11.12, not merely any semantic version. Before destructive restore, OSCAR also compares the current application, PostgreSQL, and gateway image names, immutable IDs, and required release labels with the authenticated inventory. Exact names, content-addressed IDs, and required labels are hard gates. Repository digests are recorded as registry provenance, but a difference is only warned @@ -356,10 +356,10 @@ authenticated `CURRENT` pointer. This prevents inspection or restoration of an o point from mutating current journal eligibility or the committed local snapshot. `backup-prune` is retired and performs no deletion. Re-verification proves the authenticated snapshot has not changed; the quiesced archive/catalog -reconciliation is a mandatory invariant of creating that authenticated 3.11.11 snapshot, not a +reconciliation is a mandatory invariant of creating that authenticated 3.11.12 snapshot, not a comparison against the current live deployment. -For a newly created 3.11.11 backup, successful verification proves authenticated structural integrity +For a newly created 3.11.12 backup, successful verification proves authenticated structural integrity at that time and confirms the locally configured OSCAR/PostgreSQL utility images can read it; it does not by itself complete schema-v2 acceptance. A directory without `SHA256SUMS.hmac` is rejected rather than promoted into the verified retention @@ -409,7 +409,7 @@ that payload because streamed `postgres/pg_wal` is sufficient. Before stopping or replacing anything, the command requires the same valid backup ID twice, authenticates/verifies the backup, validates the release-configuration archive, and proves that the current `.env`, backup epoch, and backed-up -`.env.example` all identify exactly OSCAR 3.11.11. It also requires every exact image resolved by the +`.env.example` all identify exactly OSCAR 3.11.12. It also requires every exact image resolved by the current Compose configuration to exist locally; restore never substitutes or pulls a different tag. A restore attempt does not change the recovery point's lifecycle state. An accepted recovery point @@ -444,7 +444,7 @@ Windows: The restore workflow: 1. verifies the backup again; -2. validates exact 3.11.11 release identity and local image availability again after verification; +2. validates exact 3.11.12 release identity and local image availability again after verification; 3. decrypts the backed-up `.env`, `secrets/`, and `tls/` into a private staging directory, merges the target-local environment bindings, and validates the entire staged replacement set; 4. for schema v1 only, authenticates its required legacy WAL payload but does not stage, merge, or @@ -525,7 +525,7 @@ restore, review container image provenance, endpoint identity, and TLS acceptanc - `image-inventory.txt` enforces exact OCI image `sha256` ID parity (`application_id`, `postgres_id`, and `gateway_id`) during `restore`. Load the exact `offline-images.tar` (or digest-pinned images) that produced the backup—or upgrade the source deployment to the target - host's exact 3.11.11 release bundle before taking the migration backup—so image IDs match bit-for-bit. + host's exact 3.11.12 release bundle before taking the migration backup—so image IDs match bit-for-bit. - Source TLS material (`tls/server.crt` and `tls/server.key`) and application credentials are restored, while the target `OSCAR_HOSTNAME`, `OSCAR_HTTPS_PORT`, and `OSCAR_TLS_SANS` bindings in `.env` remain authoritative. If the replacement host uses a new IP address or DNS name that is not @@ -603,7 +603,7 @@ and approver. ## Recovery boundary: no PITR -OSCAR 3.11.11 does not continuously archive PostgreSQL WAL and does not support point-in-time recovery. +OSCAR 3.11.12 does not continuously archive PostgreSQL WAL and does not support point-in-time recovery. The supported target is the consistency endpoint inside one verified coordinated snapshot. Do not present a preserved legacy WAL root, a schema-v1 compatibility payload, or the Parquet cold tier as a current PITR chain. @@ -618,7 +618,7 @@ snapshot. This order prevents a failed backup or crash from leaving zero authent `backup-prune` is retired. It remains accepted only to print retirement guidance and performs no deletion. `OSCAR_BACKUP_RETENTION_COUNT` and `OSCAR_BACKUP_AUTO_PRUNE` are ignored legacy settings -and are not present in the 3.11.11 template. Never hand-edit `CURRENT` or delete a pointed-to snapshot. +and are not present in the 3.11.12 template. Never hand-edit `CURRENT` or delete a pointed-to snapshot. Define a policy that retains enough **verified, off-host** snapshot copies to meet recovery objectives. Off-host media are outside the local one-snapshot state machine; copy the complete diff --git a/docs/CARGO_UFF_INTEGRATION.md b/docs/CARGO_UFF_INTEGRATION.md index 0f14543..f511559 100644 --- a/docs/CARGO_UFF_INTEGRATION.md +++ b/docs/CARGO_UFF_INTEGRATION.md @@ -1,6 +1,6 @@ # Cargo Non-Intrusive Inspection (WCO UFF 2.0 & 3.0) Integration Guide -OSCAR 3.11.11 integrates natively with commercial Cargo Non-Intrusive Inspection (NII) X-ray portals and mobile/rail scanners that publish **World Customs Organization (WCO) Unified File Format (`UFF 2.0` and `UFF 3.0.0`)** `.uff` inspection packages. +OSCAR 3.11.12 integrates natively with commercial Cargo Non-Intrusive Inspection (NII) X-ray portals and mobile/rail scanners that publish **World Customs Organization (WCO) Unified File Format (`UFF 2.0` and `UFF 3.0.0`)** `.uff` inspection packages. > **Zero-Clutter Shipped Default:** Most radiation portal deployments operate standalone RPMs and cameras without an NII X-ray scanner on day one. Cargo UFF share integration ships **disabled by default** (`enabled = false`). When disabled, OSCAR renders **zero extra buttons, columns, or banners** across the Dashboard, Event Log, Lane View, Navbar, and Event Details, and runs **zero background threads or network polls**. Operators at any site can still inspect individual `.uff` packages on demand at any time through the existing **Upload Files** button in **Secondary Inspection**. @@ -8,7 +8,7 @@ OSCAR 3.11.11 integrates natively with commercial Cargo Non-Intrusive Inspection ## 1. Supported Standards & Commercial Share Topologies -OSCAR 3.11.11 parses both major WCO Unified File Format generations inside a single unified model without external native binaries: +OSCAR 3.11.12 parses both major WCO Unified File Format generations inside a single unified model without external native binaries: | Capability | WCO `UFF 2.0` | WCO `UFF 3.0.0` | | --- | --- | --- | diff --git a/docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md b/docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md index 1c39038..96fbac3 100644 --- a/docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md +++ b/docs/CONTINUAL_AND_USB_BACKUP_GUIDE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 Continual & Occasional USB NVMe Incremental Backup Guide +# OSCAR 3.11.12 Continual & Occasional USB NVMe Incremental Backup Guide -OSCAR 3.11.11 provides a zero-downtime, incremental **USB NVMe Backup & Field Offload** workflow (`usb-backup` / `continual-backup`) designed specifically for **multi-year (`1–10` year, `40–900+ GiB`) deployments**, external **USB 3.2 Gen 2 NVMe SSDs**, **seamless mode switching** between continual and occasional schedules, **laptop-based field data offloads**, and **fast bare-metal server migration** across Ubuntu Server 24.04 LTS and Windows 11. +OSCAR 3.11.12 provides a zero-downtime, incremental **USB NVMe Backup & Field Offload** workflow (`usb-backup` / `continual-backup`) designed specifically for **multi-year (`1–10` year, `40–900+ GiB`) deployments**, external **USB 3.2 Gen 2 NVMe SSDs**, **seamless mode switching** between continual and occasional schedules, **laptop-based field data offloads**, and **fast bare-metal server migration** across Ubuntu Server 24.04 LTS and Windows 11. For the single-snapshot quiesced recovery workflow (`OSCAR_BACKUP_MODE=single` via `oscar backup`), see [Backup, Restore, and Recovery](BACKUP_RESTORE.md) and [Administrator Guide](../dist/release/DEPLOYMENT.md). @@ -200,7 +200,7 @@ Plug the OSCAR USB NVMe SSD AND your second archive SSD into your field laptop: Whether a server fails after 5 years or you are upgrading hardware, you can restore either **directly from the site USB NVMe SSD** or **from the copy you made onto your second SSD**—even onto a **brand-new, uninitialized replacement machine** (Ubuntu ↔ Windows cross-OS migration is also supported because all packs use a platform-neutral POSIX `.tar` + `pg_basebackup` format): -1. **Prepare the replacement host** (extract the matching OSCAR `3.11.11` release or air-gapped offline bundle and run `prepare-host` — **do not** run `oscar init`, because `usb-backup restore` restores the original deployment ID, users, Passkeys, TLS certificates, and secrets automatically!). +1. **Prepare the replacement host** (extract the matching OSCAR `3.11.12` release or air-gapped offline bundle and run `prepare-host` — **do not** run `oscar init`, because `usb-backup restore` restores the original deployment ID, users, Passkeys, TLS certificates, and secrets automatically!). 2. **Plug in the USB SSD** and provide the separately escrowed `backup-key.txt`: **Ubuntu Server 24.04 Replacement Machine:** diff --git a/docs/DATA_LIFECYCLE.md b/docs/DATA_LIFECYCLE.md index 668ceb1..deaec56 100644 --- a/docs/DATA_LIFECYCLE.md +++ b/docs/DATA_LIFECYCLE.md @@ -1,4 +1,4 @@ -# OSCAR 3.11.11 data lifecycle and retention policy +# OSCAR 3.11.12 data lifecycle and retention policy This document defines when OSCAR data changes form, when it may be removed, and which safety gates apply. It complements the [storage architecture](STORAGE_ARCHITECTURE.md) and the operational @@ -45,7 +45,7 @@ workflows, adjudications, reports, archive control state, and observations not s primary cold tier. For allowlisted immutable outputs, a successful commit to a LOGGED PostgreSQL child is the durable staging boundary; OSCAR does not acknowledge those observations through a direct-to-Parquet path. Parquet is the primary cold tier, not a backup, and only output names listed in -`archive.outputNames` are eligible for cold tiering. The 3.11.11 default list is: +`archive.outputNames` are eligible for cold tiering. The 3.11.12 default list is: ```text gammaCounts @@ -173,7 +173,7 @@ its rows in ID order, loads the exact hot IDs in bounded batches, and compares c digests. The receipt records expected/actual rows and success or failure. A failed receipt leaves all hot data in place. -The shipped 3.11.11 profile sets `deleteHotAfterArchive=true`. In `PARQUET_PRIMARY`, this means +The shipped 3.11.12 profile sets `deleteHotAfterArchive=true`. In `PARQUET_PRIMARY`, this means relation-level retirement rather than row-wise deletion or a rollback-grace overlap. Before a child can retire, every row must have an `ACTIVE` or `SEALED` exact owner with a successful `HOT_COLD_PARITY` receipt, and the worker re-hashes each authoritative Parquet object. Under the @@ -296,7 +296,7 @@ recovered journal; a conflicting immutable CSV or manifest is not overwritten. retain one value. - `NONE` disables compatibility observations but does not disable the durable journal. -The 3.11.11 standard profile uses `LATEST`. The lane system consumes each live `dailyFile` event to +The 3.11.12 standard profile uses `LATEST`. The lane system consumes each live `dailyFile` event to derive occupancy transitions, so `NONE` would disable a required operational input. `LATEST` keeps that live stream and registered datastream. The compatibility table contains the current unsealed local day plus any manifest-blocked backlog; the journal and immutable daily CSV are the diff --git a/docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md b/docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md index 5a7e785..91ca0ad 100644 --- a/docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md +++ b/docs/DIAGNOSTICS_AND_FLIGHT_RECORDER.md @@ -1,6 +1,6 @@ # OSCAR Diagnostic Flight Recorder & Redacted Support Bundle Guide -OSCAR 3.11.11 includes a built-in, zero-configuration **Diagnostic Flight Recorder** and **Redacted Support Bundle (`.zip`)** system spanning both the browser console (`SupportDiagnostics.ts`) and the OpenSensorHub/Docker backend (`SupportBundleHandler.java` + `oscar.sh` / `oscar.bat support-bundle`). Operators and site administrators can export a complete, secret-scrubbed troubleshooting archive in one click from the web UI—or from the host command line even when containers are stopped, degraded, or unable to boot. +OSCAR 3.11.12 includes a built-in, zero-configuration **Diagnostic Flight Recorder** and **Redacted Support Bundle (`.zip`)** system spanning both the browser console (`SupportDiagnostics.ts`) and the OpenSensorHub/Docker backend (`SupportBundleHandler.java` + `oscar.sh` / `oscar.bat support-bundle`). Operators and site administrators can export a complete, secret-scrubbed troubleshooting archive in one click from the web UI—or from the host command line even when containers are stopped, degraded, or unable to boot. For a captioned 1080p walkthrough, watch [Module 18 (`18-operator-help-and-support-bundle.mp4`)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/18-operator-help-and-support-bundle.mp4) in [VIDEO_GUIDES.md](VIDEO_GUIDES.md) or directly inside the OSCAR Viewer via **Help (`?`) -> Manual & Video Guides**. @@ -75,7 +75,7 @@ Unzipping an exported bundle (`unzip -l oscar-support-.zip`) reveals determ | Entry Path | Source | Contents | | --- | --- | --- | -| `summary.json` | Combined / CLI | Schema version (`1`), `bundleType`, `bundleSource` (`combined`, `client-only`, or `host-cli`), `oscarVersion` (`3.11.11`), UTC timestamp, event/error counts, and module health totals | +| `summary.json` | Combined / CLI | Schema version (`1`), `bundleType`, `bundleSource` (`combined`, `client-only`, or `host-cli`), `oscarVersion` (`3.11.12`), UTC timestamp, event/error counts, and module health totals | | `redaction-report.json` | Combined / CLI | Audit trail of `automatic-edge-redaction` counts (`clientRedactions`, `backendRedactions`, `totalRedactions`) and the explicit `neverCollected` exclusion list | | `client/client-diagnostics.json` | Viewer UI | Sanitized current route, low-entropy browser environment, node list (without credentials), `eventCounts`, and the `events[]` flight-recorder ring buffer | | `backend/modules.json` | Server API | Every OpenSensorHub module and nested lane/RPM/camera state (`STARTED`, `INITIALIZED`, fault/error strings, and bounded stack frames) | diff --git a/docs/EML_INTEGRATION.md b/docs/EML_INTEGRATION.md index dc38e3c..2bcffe1 100644 --- a/docs/EML_INTEGRATION.md +++ b/docs/EML_INTEGRATION.md @@ -1,6 +1,6 @@ # EML (Enhanced Machine Learning) Runtime Plugin & Automated Adjudication Guide -OSCAR 3.11.11 supports optional runtime integration with the external **Enhanced Machine Learning (EML)** VM-250 analyzer (such as `EML-VM250-v1.0.2`) for Rapiscan radiation portal monitor (RPM) lanes. +OSCAR 3.11.12 supports optional runtime integration with the external **Enhanced Machine Learning (EML)** VM-250 analyzer (such as `EML-VM250-v1.0.2`) for Rapiscan radiation portal monitor (RPM) lanes. Because EML is separately licensed and maintained outside the open-source OSCAR repositories, **OSCAR never bundles, commits, or distributes EML JARs, models, or XML configuration files** in source repositories, Docker images, or GitHub Release assets. Instead, site administrators obtain an authorized EML distribution separately, upload the EML plugin archive once in SensorHub Admin (**Services -> OSCAR Service**), and enable EML per Rapiscan lane. @@ -150,7 +150,7 @@ Each automated `Code 9999` adjudication writes a human-readable summary line fol ## 6. Developer API for Custom Alarm Assessment Algorithms (`EmlAlarmAssessmentAlgorithm`) -In addition to supporting external LLNL ERNIE VM-250 bundles (`config/vm250Analysis.xml` + `gov.llnl.ernie.*`), OSCAR 3.11.11 provides a clean, first-class plugin API so developers can create custom alarm assessment algorithms and upload them through the exact same **Services -> OSCAR Service -> EML Plugin Path** capability (`.jar`, `.zip`, `.tar.gz`, `.tgz`, or `.tar`). +In addition to supporting external LLNL ERNIE VM-250 bundles (`config/vm250Analysis.xml` + `gov.llnl.ernie.*`), OSCAR 3.11.12 provides a clean, first-class plugin API so developers can create custom alarm assessment algorithms and upload them through the exact same **Services -> OSCAR Service -> EML Plugin Path** capability (`.jar`, `.zip`, `.tar.gz`, `.tgz`, or `.tar`). Custom alarm assessment plugins run inside an isolated `URLClassLoader`, receive the per-lane calibration parameters and ordered Rapiscan daily-file occupancy lines on every `GX` (Gamma Exit) event, publish their output on the `emlAnalysis` and `emlContextual` datastreams (`PARQUET_PRIMARY`), and automatically trigger `t = 0` Dashboard suppression and **`Code 9999: EML Non-Threat`** adjudication whenever they return `result = "RELEASE"` with `fallback = false`. diff --git a/docs/LANE_WEBRELAY_GUIDE.md b/docs/LANE_WEBRELAY_GUIDE.md index cffd3f5..06a1c23 100644 --- a/docs/LANE_WEBRELAY_GUIDE.md +++ b/docs/LANE_WEBRELAY_GUIDE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 Per-Lane Physical RPM Lights & Sound Control (`WebRelay-Quad`) +# OSCAR 3.11.12 Per-Lane Physical RPM Lights & Sound Control (`WebRelay-Quad`) -OSCAR 3.11.11 adds optional per-lane physical radiation portal monitor (RPM) lights and sounder control over standard Ethernet using **ControlByWeb® WebRelay-Quad™** (`X-WR-4R3-E` PoE / non-PoE and `X-410`) network relay modules. +OSCAR 3.11.12 adds optional per-lane physical radiation portal monitor (RPM) lights and sounder control over standard Ethernet using **ControlByWeb® WebRelay-Quad™** (`X-WR-4R3-E` PoE / non-PoE and `X-410`) network relay modules. --- @@ -8,7 +8,7 @@ OSCAR 3.11.11 adds optional per-lane physical radiation portal monitor (RPM) lig At high-throughput ports of entry, benign Naturally Occurring Radioactive Material (`NORM`) cargo and stationary vehicles holding a lane frequently trigger raw RPM gamma alarms. Without software relay gatekeeping, every raw gamma trigger activates the lane's physical red beacon and audible sounder — creating gatehouse alarm fatigue while operators still need immediate physical visual/audible signaling for real un-suppressed Gamma and Neutron threats. -OSCAR 3.11.11 solves this per lane with **zero clutter when unconfigured** (`enabled = false` by default: `0` background threads, `0` open sockets, and `0` extra UI chips on disabled lanes) and **hardware fail-safe pass-through**: +OSCAR 3.11.12 solves this per lane with **zero clutter when unconfigured** (`enabled = false` by default: `0` background threads, `0` open sockets, and `0` extra UI chips on disabled lanes) and **hardware fail-safe pass-through**: | Logical Relay Channel | Function in `AUTO` Gatekeeping Mode | State When De-Energized (`0`) | State When Energized (`1`) | | :--- | :--- | :--- | :--- | diff --git a/docs/LIVE_VIDEO.md b/docs/LIVE_VIDEO.md index 8f48013..e222dbd 100644 --- a/docs/LIVE_VIDEO.md +++ b/docs/LIVE_VIDEO.md @@ -1,6 +1,6 @@ # Live Video -OSCAR 3.11.11 starts Lane Details video only after the HLS stream has received a decodable H.264 keyframe. Until that point, the Viewer shows **Preparing live video** instead of presenting an empty player. If preparation or playback cannot recover within the bounded retry period, the Viewer shows a localized error and a **Retry** action. +OSCAR 3.11.12 starts Lane Details video only after the HLS stream has received a decodable H.264 keyframe. Until that point, the Viewer shows **Preparing live video** instead of presenting an empty player. If preparation or playback cannot recover within the bounded retry period, the Viewer shows a localized error and a **Retry** action. > **Companion Video Guides:** Watch [Module 11 — Inspect Live Lane Camera Stream & Gamma/Neutron Waveforms (`11-live-lane-video-and-charts.mp4`)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/11-live-lane-video-and-charts.mp4) and [Module 13 — Adjudicate Event with 5-Frame Media, Daily File & Report (`13-event-details-adjudication-and-daily-file.mp4`)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/13-event-details-adjudication-and-daily-file.mp4) in [VIDEO_GUIDES.md](VIDEO_GUIDES.md#11-live-lane-video-and-charts). @@ -125,7 +125,7 @@ and the four-command pending cap prevents unbounded growth. | --- | --- | | Preparing lasts longer than expected | Check camera connectivity, confirm the stream is H.264, and measure the source keyframe interval. A long GOP directly increases worst-case startup time. | | Live video could not be played | Restore camera/network reachability, inspect FFmpeg reconnect logs, and select **Retry**. | -| Player remains at `0:00` | Confirm the deployed OSCAR 3.11.11 image includes the keyframe-gated HLS and Viewer recovery fixes; inspect the first segment for a leading keyframe and valid H.264 parameter sets. | +| Player remains at `0:00` | Confirm the deployed OSCAR 3.11.12 image includes the keyframe-gated HLS and Viewer recovery fixes; inspect the first segment for a leading keyframe and valid H.264 parameter sets. | | Emulator playback is slow to start | Run the emulator asset-preparation and validation scripts, then recreate the publisher containers. Runtime publishing should continue to use stream copy rather than live transcoding. | | Recordings fail after a live-video change | Treat this as a regression. Live HLS and MP4 share camera input but have separate output rules; run the recording acceptance test before release. | | Alarm recording preparation times out | Confirm the camera produces an H.264 keyframe within five seconds and that the packet path has no write failure. OSCAR deliberately rejects the OPEN and removes the hidden partial instead of attaching a zero-packet MP4. | diff --git a/docs/PLUGGABLE_EXTENSIONS_GUIDE.md b/docs/PLUGGABLE_EXTENSIONS_GUIDE.md index 11b2f86..44be789 100644 --- a/docs/PLUGGABLE_EXTENSIONS_GUIDE.md +++ b/docs/PLUGGABLE_EXTENSIONS_GUIDE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 Pluggable Runtime Extensions & Regional Packs Guide +# OSCAR 3.11.12 Pluggable Runtime Extensions & Regional Packs Guide -OSCAR 3.11.11 ships out of the box with complete, unrestricted default implementations for **Vehicle Container & License Plate OCR**, **Basemap Layers**, **Secondary-Inspection Gamma Spectroscopy**, **TLS Certificate Trust**, and **Adjudication Disposition Codes**—so every fresh installation and upgrade works immediately with zero extra downloads. +OSCAR 3.11.12 ships out of the box with complete, unrestricted default implementations for **Vehicle Container & License Plate OCR**, **Basemap Layers**, **Secondary-Inspection Gamma Spectroscopy**, **TLS Certificate Trust**, and **Adjudication Disposition Codes**—so every fresh installation and upgrade works immediately with zero extra downloads. At the same time, sites operating in non-Latin license-plate regions, air-gapped border facilities without internet map tiles, specialized radiological laboratories, private-PKI enterprise networks, or agencies with standardized national disposition taxonomies can hot-swap or extend any of these subsystems from the browser at **`OSCAR Viewer -> Extensions` (`/extensions`)** (or via the authenticated `/sensorhub/oscar/extensions/*` REST API) **without recompiling OSCAR and without losing customizations across `oscar upgrade`**. *(Developers or hardware vendors adding a new physical Radiation Portal Monitor or radiation detector protocol should see the companion [Radiation Portal Monitor & Detector Driver Integration Guide](RADIATION_DETECTOR_DRIVER_GUIDE.md).)* @@ -215,7 +215,7 @@ org.example.oscar.ocr.CustomRegionalOcrEngine On fresh installations, OSCAR's Dashboard, Map, and Operational View maps use online OpenStreetMap Streets and Esri World Imagery tiles (plus any site diagram images uploaded in SensorHub Admin). For **air-gapped deployments**, **restricted border LANs**, or **high-resolution regional/drone orthomosaics**, administrators can upload single-file **PMTiles v3 (`.pmtiles`)** archives in **`/extensions -> Offline Maps`**. -### How `.pmtiles` Basemaps Work in OSCAR 3.11.11 +### How `.pmtiles` Basemaps Work in OSCAR 3.11.12 - **Zero External Network Calls (100% Air-Gapped Safe):** - **Vector `.pmtiles` (`MVT`)** render directly onto HTML5 `` in the browser using `protomaps-leaflet` with local system UI fonts (`sans-serif`)—making **zero** outbound requests to `protomaps.github.io`, `openstreetmap.org`, or external glyph/sprite CDNs. diff --git a/docs/REGRESSION_AND_RELEASE_CERTIFICATION.md b/docs/REGRESSION_AND_RELEASE_CERTIFICATION.md index 0ae3f8a..f015d1b 100644 --- a/docs/REGRESSION_AND_RELEASE_CERTIFICATION.md +++ b/docs/REGRESSION_AND_RELEASE_CERTIFICATION.md @@ -1,6 +1,6 @@ # OSCAR End-to-End Regression Suite & Release Certification Guide -[`ORNL/oscar-regression`](https://github.com/ORNL/oscar-regression) provides automated end-to-end functional, fault-injection, multi-pass vehicle OCR, `PARQUET_PRIMARY` storage-lifecycle, destructive backup/restore, and 24/7 UI endurance validation for OSCAR 3.11.11 test deployments. +[`ORNL/oscar-regression`](https://github.com/ORNL/oscar-regression) provides automated end-to-end functional, fault-injection, multi-pass vehicle OCR, `PARQUET_PRIMARY` storage-lifecycle, destructive backup/restore, and 24/7 UI endurance validation for OSCAR 3.11.12 test deployments. For a captioned 1080p walkthrough, watch [Module 22 (`22-regression-suite-setup-and-certification.mp4`)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/22-regression-suite-setup-and-certification.mp4) in [VIDEO_GUIDES.md](VIDEO_GUIDES.md). @@ -58,19 +58,19 @@ chmod 600 .env | `SPECTROSCOPIC_WORKFLOW` | `auto` *(or `required` / `disabled`)* | Uploads local `.spe` / `.n42` files from `spectroscopic-files/`, verifying `N42 Report` and Sandia WebID | | `CARGO_UFF_WORKFLOW` | `auto` *(or `required` / `disabled`)* | Verifies zero UI clutter when Cargo UFF is disabled, exercises local `.uff` upload + 16-bit `uint16` TIFF/HEMD viewer controls, tests live SMBv2/v3 share connection (`CARGO_UFF_SMB_SHARE`), scanner/time-window browsing, Tier-1 UUID omnibox lookup, 1-char fuzzy OCR correlation, and zero-download adjudication staging, and restores `uff.enabled = false` in `finally` | | `EML_WORKFLOW` | `auto` *(or `required` / `disabled`)* | Uploads `OSCAR_EML_PLUGIN_PATH` (`.jar`) and verifies `Code 9999: EML Non-Threat` auto-adjudication | -| `STORAGE_WORKFLOW` | `required` | Gates OSCAR 3.11.11 `PARQUET_PRIMARY`, 5-JPEG retention, atomic publisher, and schema checks | +| `STORAGE_WORKFLOW` | `required` | Gates OSCAR 3.11.12 `PARQUET_PRIMARY`, 5-JPEG retention, atomic publisher, and schema checks | | `OSCAR_BACKUP_MODE` | `disabled` *(or `single`)* | Certifies fail-closed disabled backups or single-snapshot backup behavior (`STORAGE_BACKUP_WORKFLOW`) | | `OSCAR_SSH_TARGET` | `oscar@oscar-test.example.org` | SSH host used for the remote mutation lease, Docker resource sampling, and storage probes | -| `OSCAR_RELEASE_DIR` | `/srv/oscar-test/oscar-3.11.11` | Canonical non-symlinked release path on `OSCAR_SSH_TARGET` | +| `OSCAR_RELEASE_DIR` | `/srv/oscar-test/oscar-3.11.12` | Canonical non-symlinked release path on `OSCAR_SSH_TARGET` | | `OSCAR_STORAGE_TARGET_ACK` | `\|\|\|DISPOSABLE-STORAGE` | **Safety interlock #4:** Required before any storage probe executes | ### Rebinding After Deploying a New Release Directory -Whenever you unpack and deploy a new OSCAR 3.11.11 build into a clean versioned folder, preview and apply the release rebind helper (which verifies the running container provenance over strict SSH without touching secrets): +Whenever you unpack and deploy a new OSCAR 3.11.12 build into a clean versioned folder, preview and apply the release rebind helper (which verifies the running container provenance over strict SSH without touching secrets): ```sh -./scripts/rebind-active-release.sh --build-label 3.11.11-rc1 -./scripts/rebind-active-release.sh --apply --build-label 3.11.11-rc1 +./scripts/rebind-active-release.sh --build-label 3.11.12-rc1 +./scripts/rebind-active-release.sh --apply --build-label 3.11.12-rc1 ``` --- diff --git a/docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md b/docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md index be35a56..4e681d4 100644 --- a/docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md +++ b/docs/RELEASE_NOTES_AND_UPGRADE_GUIDE.md @@ -1,8 +1,8 @@ -# OSCAR 3.11.11 (Amber) Release Overview, Architectural Rationale, and User Guide +# OSCAR 3.11.12 (Amber) Release Overview, Architectural Rationale, and User Guide -OSCAR 3.11.11 (Amber) is engineered for continuous 24/7 operation across multi-year retention windows at large radiation portal monitoring (RPM) sites (up to 50 concurrent RPM and RTSP camera lanes per server) on Ubuntu Server 24.04 x86-64 and Windows 11 x86-64. +OSCAR 3.11.12 (Amber) is engineered for continuous 24/7 operation across multi-year retention windows at large radiation portal monitoring (RPM) sites (up to 50 concurrent RPM and RTSP camera lanes per server) on Ubuntu Server 24.04 x86-64 and Windows 11 x86-64. -This guide summarizes everything changed from public `v3.8.0` through **OSCAR 3.11.11 (Amber)**, **why** each major architectural and operational change was implemented, which release artifact to download, and where **new users** and **existing users** should start. +This guide summarizes everything changed from public `v3.8.0` through **OSCAR 3.11.12 (Amber)**, **why** each major architectural and operational change was implemented, which release artifact to download, and where **new users** and **existing users** should start. --- @@ -11,10 +11,10 @@ This guide summarizes everything changed from public `v3.8.0` through **OSCAR 3. ### Path A — New Users (Fresh Installation) 1. **Choose the right release package** from [GitHub Releases](https://github.com/ORNL/oscar/releases): - - **Ubuntu Server 24.04 x86-64 (Connected):** Download `oscar-3.11.11.zip`. - - **Windows 11 x86-64 (Connected):** Download `oscar-3.11.11.zip`. - - **Windows 11 x86-64 (Air-Gapped / Offline, No Docker Installed Yet):** Download `oscar-3.11.11-windows-x86_64-offline-full.zip` (includes pinned Docker Desktop and WSL 2 installers plus pre-built container images). - - **Windows 11 x86-64 (Air-Gapped / Offline, Docker Desktop & WSL 2 Already Running):** Download `oscar-3.11.11-windows-x86_64-offline-images.zip`. + - **Ubuntu Server 24.04 x86-64 (Connected):** Download `oscar-3.11.12.zip`. + - **Windows 11 x86-64 (Connected):** Download `oscar-3.11.12.zip`. + - **Windows 11 x86-64 (Air-Gapped / Offline, No Docker Installed Yet):** Download `oscar-3.11.12-windows-x86_64-offline-full.zip` (includes pinned Docker Desktop and WSL 2 installers plus pre-built container images). + - **Windows 11 x86-64 (Air-Gapped / Offline, Docker Desktop & WSL 2 Already Running):** Download `oscar-3.11.12-windows-x86_64-offline-images.zip`. 2. **Prepare the host and initialize OSCAR:** - Follow the step-by-step [Quick Start](../dist/release/QUICKSTART.md) (`.\oscar.bat prepare-host` and `.\oscar.bat init` on Windows 11; `sudo bash oscar.sh init` on Ubuntu 24.04). - Review the [Administrator Guide](../dist/release/DEPLOYMENT.md) for static/reserved LAN IPv4 assignment, TLS certificate trust across operator workstations, Tailscale SANs, and optional `single`-snapshot backup configuration. @@ -25,19 +25,19 @@ This guide summarizes everything changed from public `v3.8.0` through **OSCAR 3. ### Path B — Current Users Running `pre-3.11.0` (`3.10.0`, `3.9.x`, `3.8.x`, or Earlier) -OSCAR 3.11.11 introduces a data-checksummed PostgreSQL 16 cluster, the `PARQUET_PRIMARY` tiered observation store, deployment-bound storage-root identity markers, and the direct daily-file journal. **To protect existing deployments from unexpected data mutations, `upgrade` never silently converts a `pre-3.11.0` database or overwrites a saved `config.json`.** +OSCAR 3.11.12 introduces a data-checksummed PostgreSQL 16 cluster, the `PARQUET_PRIMARY` tiered observation store, deployment-bound storage-root identity markers, and the direct daily-file journal. **To protect existing deployments from unexpected data mutations, `upgrade` never silently converts a `pre-3.11.0` database or overwrites a saved `config.json`.** Choose one of two explicit rollout options depending on site requirements: -1. **Recommended for Full 3.11.11 Multi-Year Storage & Performance (`PARQUET_PRIMARY`):** +1. **Recommended for Full 3.11.12 Multi-Year Storage & Performance (`PARQUET_PRIMARY`):** - Preserve the existing `pre-3.11.0` deployment read-only after taking its supported backup/export. - - Deploy OSCAR 3.11.11 into a clean directory and fresh storage roots using `oscar init` ([Quick Start](../dist/release/QUICKSTART.md)) so PostgreSQL initializes with `--data-checksums`, `PARQUET_PRIMARY` 30-minute stage partitions, the direct daily-file journal, and five-frame JPEG media retention. + - Deploy OSCAR 3.11.12 into a clean directory and fresh storage roots using `oscar init` ([Quick Start](../dist/release/QUICKSTART.md)) so PostgreSQL initializes with `--data-checksums`, `PARQUET_PRIMARY` 30-minute stage partitions, the direct daily-file journal, and five-frame JPEG media retention. - Re-import your site's lane CSV (updated with optional `Views` column assignments; see [Operational Views](OPERATIONAL_VIEWS.md)), click **Apply** and **Save Configuration** in SensorHub Admin, and run a supported `oscar restart`. Migrate historical records separately only if site policy requires it. 2. **Retaining an Existing Legacy Volume Set In-Place (Without `PARQUET_PRIMARY` Re-Initialization):** - - Read the **3.11.11 storage migration boundary** section of the [Administrator Guide](../dist/release/DEPLOYMENT.md) and **Existing pre-3.11.0 deployments** in [Storage Operations](STORAGE_OPERATIONS.md) before running any command. + - Read the **3.11.12 storage migration boundary** section of the [Administrator Guide](../dist/release/DEPLOYMENT.md) and **Existing pre-3.11.0 deployments** in [Storage Operations](STORAGE_OPERATIONS.md) before running any command. - Only after verifying that the existing named Docker volumes and any nonempty archive/backup directories belong to that exact deployment, use the explicit one-time adoption flags (`--adopt-legacy-volumes` / `-AdoptLegacyVolumes` and, when applicable, `--adopt-legacy-storage-roots` / `-AdoptLegacyStorageRoots`). Retain the resulting `.oscar-volume-adoption` receipt alongside `.env`, `secrets/`, and `tls/`. -### Path C — Current Users Upgrading an Existing `3.11.11+` Same-Profile Deployment +### Path C — Current Users Upgrading an Existing `3.11.12+` Same-Profile Deployment - **Option 1 — 1-Click Browser GUI System Update (No GitHub Login Required):** Sign in as an Administrator, open **`Users & Access` (`/users?tab=update`) -> `System Update`** (or click **Open System Update** inside **`Help (?)`**), click **Check GitHub for Updates** (or upload an offline `oscar-.zip` on air-gapped portals), optionally check **Create an encrypted backup snapshot before upgrading**, and click **Download & Install**. The detached host `oscar-update` agent anonymously downloads and SHA-256-verifies the release archive, extracts into a clean sibling directory, copies `.env`, `secrets/`, `tls/`, and `.oscar-volume-adoption`, upgrades containers while preserving all PostgreSQL and Parquet data, and automatically rolls back if HTTPS readiness fails. - **Option 2 — Manual / Automated Host CLI Upgrade:** @@ -52,7 +52,7 @@ Choose one of two explicit rollout options depending on site requirements: ## 2. Major New Features and Why They Were Implemented ### 2.1 `PARQUET_PRIMARY` Tiered Observation Storage, Startup Route Reconciliation & DuckDB Query Federation -- **What changed:** Replacing the single unpartitioned, unretired PostgreSQL/PostGIS `obs` table architecture used in `v3.0.0`–`v3.10.0` (after OSCAR migrated off pre-`3.0` embedded H2 `MVObsSystemDatabase` in `3.0.0-alpha` / `3.0.0-alpha.1`), OSCAR 3.11.11 runs a containerized 3-service stack (`oscar-gateway` Nginx TLS reverse proxy, `oscar` Java 21 runtime, and `oscar-postgis` data-checksummed PostgreSQL 16/PostGIS). All **22** operational and evidentiary streams (`gammaCounts`, `gammaThreshold`, `neutronCounts`, `setupGamma`, `setupNeutron`, `speed`, `backgroundReport`, `foregroundReport`, `status`, `emlContextual`, `emlScanContextual`, `emlAnalysis`, `dailyFile`, `connectionStatus`, `occupancyStatus`, `tamper`, `occupancy`, `adjudication`, `report`, `siteStatistics`, `nationalSummary`, `vehicleOcr`) write into UTC-aligned 30-minute `LOGGED` PostgreSQL child partitions (`osg_*`). Once a 30-minute window closes (plus a 5-minute clock-skew/late-arrival safety delay), a background worker exports the window into Hive-partitioned (`date=YYYY-MM-DD/profile=RAW_GATED`), Zstandard-compressed Apache Parquet files, populates `oscar_obs_latest`, 22 per-generation summary counters on `oscar_archive_schema` (including per-category unadjudicated/adjudicated Gamma, Neutron, and Gamma-Neutron alarm counters, whole-generation `TimeContainedSummarySpec` time-bounded count pushdown, and persistent 4-byte `base_summary_mask` bitmasks on `oscar_obs_overlay` so cold 15-day multi-generation count summaries execute entirely in PostgreSQL without reading mutated Parquet files over `9p`), and `oscar_event_locator`, verifies exact row count, UUID digest, and SHA-256 parity, and retires the entire staging table in `O(1)` metadata time (`NO INHERIT` + `DROP TABLE`). Only static singleton configuration streams (`sensorLocation`, `adjudicationCodes`, `siteInfo`, ~52 rows total across 50 lanes) remain in `ONLY oscar.obs`. When an archived `occupancy` is adjudicated or re-adjudicated, `AdjudicationControl` appends a new `adjudication` observation (via non-blocking `submitCommandWithId` and indexed `cmd_status` lookup) and updates the archived `occupancy` in `oscar_obs_overlay` + `oscar_obs_latest` using content-addressed Schema v5 `oscar_obs_schema_catalog` (`schema_sha256` foreign key, `schema_json = NULL`) without rewriting Parquet, while `oscar_tombstone (obs_id, datastream_id)` scopes cold-row deletes per datastream (with automatic `resultTime=latest` live-row replacement in `oscar_obs_latest`) and `countObservationMutations(Set dataStreams)` scopes mutation checks to the queried datastreams and preserves bounded pagination (`saturateAdd(limit, mutationCount)`). Cold `CQL2` queries pre-compile AST matchers once per query (`JsonCqlEvaluator.compileMatcher`) and cache verified Parquet objects inside a disk-proportional (`2–8 GiB`, excluded from backups) native `ext4` cache (`/var/lib/oscar/.cache/oscar-9p-parquet-cache`) when running over Windows WSL 2 `drvfs`/`9p` mounts so multi-week archives avoid LRU thrashing while keeping `OSCAR_ARCHIVE_DIR` on a durable host bind mount. On startup, OSCAR automatically reconciles `oscar_obs_storage_route` entries (`reconcileRoutes()`) so any datastream matching the 22 allowlisted outputs is upgraded to `immutable=true`, reclaims empty expired `ATTACHED` and leftover `DETACHED` stage partitions (`reclaimEmptyOrRetiredStages()`), retroactively drains and compacts (`VACUUM (FULL, ANALYZE) ONLY obs`) any legacy unarchived rows sitting in `ONLY oscar.obs` into verified Parquet generations, and backfills summary counters and `oscar_obs_latest` for pre-upgrade generations. Embedded DuckDB transparently federates hot PostgreSQL stages and cold Parquet generations behind standard OpenSensorHub `IObsSystemDatabase` / OGC `ConSys` / CQL2 APIs. +- **What changed:** Replacing the single unpartitioned, unretired PostgreSQL/PostGIS `obs` table architecture used in `v3.0.0`–`v3.10.0` (after OSCAR migrated off pre-`3.0` embedded H2 `MVObsSystemDatabase` in `3.0.0-alpha` / `3.0.0-alpha.1`), OSCAR 3.11.12 runs a containerized 3-service stack (`oscar-gateway` Nginx TLS reverse proxy, `oscar` Java 21 runtime, and `oscar-postgis` data-checksummed PostgreSQL 16/PostGIS). All **22** operational and evidentiary streams (`gammaCounts`, `gammaThreshold`, `neutronCounts`, `setupGamma`, `setupNeutron`, `speed`, `backgroundReport`, `foregroundReport`, `status`, `emlContextual`, `emlScanContextual`, `emlAnalysis`, `dailyFile`, `connectionStatus`, `occupancyStatus`, `tamper`, `occupancy`, `adjudication`, `report`, `siteStatistics`, `nationalSummary`, `vehicleOcr`) write into UTC-aligned 30-minute `LOGGED` PostgreSQL child partitions (`osg_*`). Once a 30-minute window closes (plus a 5-minute clock-skew/late-arrival safety delay), a background worker exports the window into Hive-partitioned (`date=YYYY-MM-DD/profile=RAW_GATED`), Zstandard-compressed Apache Parquet files, populates `oscar_obs_latest`, 22 per-generation summary counters on `oscar_archive_schema` (including per-category unadjudicated/adjudicated Gamma, Neutron, and Gamma-Neutron alarm counters, whole-generation `TimeContainedSummarySpec` time-bounded count pushdown, and persistent 4-byte `base_summary_mask` bitmasks on `oscar_obs_overlay` so cold 15-day multi-generation count summaries execute entirely in PostgreSQL without reading mutated Parquet files over `9p`), and `oscar_event_locator`, verifies exact row count, UUID digest, and SHA-256 parity, and retires the entire staging table in `O(1)` metadata time (`NO INHERIT` + `DROP TABLE`). Only static singleton configuration streams (`sensorLocation`, `adjudicationCodes`, `siteInfo`, ~52 rows total across 50 lanes) remain in `ONLY oscar.obs`. When an archived `occupancy` is adjudicated or re-adjudicated, `AdjudicationControl` appends a new `adjudication` observation (via non-blocking `submitCommandWithId` and indexed `cmd_status` lookup) and updates the archived `occupancy` in `oscar_obs_overlay` + `oscar_obs_latest` using content-addressed Schema v5 `oscar_obs_schema_catalog` (`schema_sha256` foreign key, `schema_json = NULL`) without rewriting Parquet, while `oscar_tombstone (obs_id, datastream_id)` scopes cold-row deletes per datastream (with automatic `resultTime=latest` live-row replacement in `oscar_obs_latest`) and `countObservationMutations(Set dataStreams)` scopes mutation checks to the queried datastreams and preserves bounded pagination (`saturateAdd(limit, mutationCount)`). Cold `CQL2` queries pre-compile AST matchers once per query (`JsonCqlEvaluator.compileMatcher`) and cache verified Parquet objects inside a disk-proportional (`2–8 GiB`, excluded from backups) native `ext4` cache (`/var/lib/oscar/.cache/oscar-9p-parquet-cache`) when running over Windows WSL 2 `drvfs`/`9p` mounts so multi-week archives avoid LRU thrashing while keeping `OSCAR_ARCHIVE_DIR` on a durable host bind mount. On startup, OSCAR automatically reconciles `oscar_obs_storage_route` entries (`reconcileRoutes()`) so any datastream matching the 22 allowlisted outputs is upgraded to `immutable=true`, reclaims empty expired `ATTACHED` and leftover `DETACHED` stage partitions (`reclaimEmptyOrRetiredStages()`), retroactively drains and compacts (`VACUUM (FULL, ANALYZE) ONLY obs`) any legacy unarchived rows sitting in `ONLY oscar.obs` into verified Parquet generations, and backfills summary counters and `oscar_obs_latest` for pre-upgrade generations. Embedded DuckDB transparently federates hot PostgreSQL stages and cold Parquet generations behind standard OpenSensorHub `IObsSystemDatabase` / OGC `ConSys` / CQL2 APIs. - **Why it was implemented:** On a 50-lane site emitting continuous 1 Hz detector, status, and Enhanced Machine Learning (`EML`) telemetry plus thousands of occupancies, vehicle OCR reads, and adjudications per week, retaining any growing stream forever in an unpartitioned PostgreSQL `obs` table (`v3.0.0`–`v3.10.0`) or `ONLY oscar.obs` eventually bloats its parent B-tree/GIN indexes, amplifies WAL/autovacuum churn, and causes multi-year latency drift. Routing all 22 operational and evidentiary streams into 30-minute stage partitions and dropping whole partitions after Parquet parity keeps `ONLY oscar.obs` permanently near-empty (~52 static rows, ~200 KiB total with all 15 indexes), serves `resultTime=latest` queries in `< 0.5 ms` from `oscar_obs_latest`, evaluates `StatisticsOutput` and Dashboard/Event Log alarm & fault counts in `< 1 ms` from `oscar_archive_schema` summary counters, compresses cold history ~10–15x in self-describing Parquet, and preserves 100% OpenSensorHub API compatibility. - **Read more:** [Storage Architecture](STORAGE_ARCHITECTURE.md), [Data Lifecycle Policy](DATA_LIFECYCLE.md), [Cold Archive Format](ARCHIVE_FORMAT.md), and [Storage Operations](STORAGE_OPERATIONS.md). @@ -121,7 +121,7 @@ Choose one of two explicit rollout options depending on site requirements: - **Why it was implemented:** Independently operated air-gapped, private-LAN, and WAN-federated sites needed simple, non-IT account administration without typing long shared bootstrap passwords, leaving plaintext passwords on disk, or losing local sign-in access during internet outages—while also supporting phone-free facilities, corporate OIDC/Octelium SSO, least-privilege multi-site federation, and single-command backup/hardware replacement. ### 2.13 Pluggable Runtime Extensions & Regional Packs (`/extensions`) — Upgrade-Safe Custom OCR, Offline `.pmtiles` Maps, Spectroscopy, Enterprise CAs, Policy Packs, EML & Cargo NII -- **What changed:** OSCAR 3.11.11 keeps all unrestricted built-in implementations (**hybrid ONNX Vehicle OCR + `PlateRuleSet.DEFAULT`**, **OpenStreetMap/Esri + Site Diagram basemaps**, **Sandia WebID + built-in offline photopeak spectroscopy**, **system JVM `cacerts` TLS trust**, and **ANSI/OSCAR Disposition Codes `1–11`, `9998`, `9999`**) active out of the box on every fresh installation and unconfigured upgrade, while adding a unified, localized browser management workspace at **`OSCAR Viewer -> Extensions` (`/extensions`)** (`/sensorhub/oscar/extensions/*`) across seven pluggable domains: **(1) Vehicle OCR (`ocr`)** supporting data-only regional `plate-rules.json` + optional `.onnx` model packs (automatically inheriting omitted models from shipped defaults) and Java 21 `OcrEngine` SPI `.jar` plugins (`OcrRuntimeRegistry`); **(2) Offline Regional Basemaps (`maps`)** supporting single-file PMTiles v3 (`.pmtiles`) vector (`MVT` via `protomaps-leaflet` local canvas with zero external CDN requests) and raster (`PNG`/`JPEG`/`WEBP` via `pmtiles`) regional archives stored in `/var/lib/oscar/extensions/maps-storage/` (`O(1)` packed in USB NVMe backups inside `packs/state/`) and served via authenticated `HTTP 206 Partial Content`; **(3) Secondary Spectroscopy (`spectroscopy`)** supporting custom `isotope-library.json` photopeak packs and `SpectroscopyIdentificationAlgorithm` `.jar` plugins in `fallback` or `override` mode (`SpectroscopyRuntimeRegistry`); **(4) Trusted Enterprise CA Certificates (`trusted-certs`)** hot-reloading public `.pem`/`.crt`/`.cer` CA bundles via `DynamicTrustManagerRegistry` across `OidcClientHelper` and `WebIdClient` while rejecting private keys; **(5) Agency Adjudication Policy Packs (`policy-packs`)** importing/exporting localized `policy-pack.json` taxonomies with live `AdjudicationCodesOutput` republication; **(6) Unified EML Alarm Assessment (`eml`)**; and **(7) Commercial Cargo Non-Intrusive Inspection (`uff`)** default-off SMBv2/SMBv3 share and mounted-folder integration (detailed in Section `2.13a` below). All custom selections persist in `oscar_oscar_state` (`/var/lib/oscar/extensions/` and `/var/lib/oscar/eml-plugin/`), are **never overwritten by `oscar upgrade`**, are captured in backups/restores, and support 1-click **Reset to Shipped Default**. +- **What changed:** OSCAR 3.11.12 keeps all unrestricted built-in implementations (**hybrid ONNX Vehicle OCR + `PlateRuleSet.DEFAULT`**, **OpenStreetMap/Esri + Site Diagram basemaps**, **Sandia WebID + built-in offline photopeak spectroscopy**, **system JVM `cacerts` TLS trust**, and **ANSI/OSCAR Disposition Codes `1–11`, `9998`, `9999`**) active out of the box on every fresh installation and unconfigured upgrade, while adding a unified, localized browser management workspace at **`OSCAR Viewer -> Extensions` (`/extensions`)** (`/sensorhub/oscar/extensions/*`) across seven pluggable domains: **(1) Vehicle OCR (`ocr`)** supporting data-only regional `plate-rules.json` + optional `.onnx` model packs (automatically inheriting omitted models from shipped defaults) and Java 21 `OcrEngine` SPI `.jar` plugins (`OcrRuntimeRegistry`); **(2) Offline Regional Basemaps (`maps`)** supporting single-file PMTiles v3 (`.pmtiles`) vector (`MVT` via `protomaps-leaflet` local canvas with zero external CDN requests) and raster (`PNG`/`JPEG`/`WEBP` via `pmtiles`) regional archives stored in `/var/lib/oscar/extensions/maps-storage/` (`O(1)` packed in USB NVMe backups inside `packs/state/`) and served via authenticated `HTTP 206 Partial Content`; **(3) Secondary Spectroscopy (`spectroscopy`)** supporting custom `isotope-library.json` photopeak packs and `SpectroscopyIdentificationAlgorithm` `.jar` plugins in `fallback` or `override` mode (`SpectroscopyRuntimeRegistry`); **(4) Trusted Enterprise CA Certificates (`trusted-certs`)** hot-reloading public `.pem`/`.crt`/`.cer` CA bundles via `DynamicTrustManagerRegistry` across `OidcClientHelper` and `WebIdClient` while rejecting private keys; **(5) Agency Adjudication Policy Packs (`policy-packs`)** importing/exporting localized `policy-pack.json` taxonomies with live `AdjudicationCodesOutput` republication; **(6) Unified EML Alarm Assessment (`eml`)**; and **(7) Commercial Cargo Non-Intrusive Inspection (`uff`)** default-off SMBv2/SMBv3 share and mounted-folder integration (detailed in Section `2.13a` below). All custom selections persist in `oscar_oscar_state` (`/var/lib/oscar/extensions/` and `/var/lib/oscar/eml-plugin/`), are **never overwritten by `oscar upgrade`**, are captured in backups/restores, and support 1-click **Reset to Shipped Default**. - **Why it was implemented:** International ports, air-gapped border crossings, private-PKI enterprise deployments, and national customs agencies frequently require regional license-plate scripts or pure-numeric plate rules, offline regional street/satellite maps, agency-specific nuclide libraries or disposition taxonomies, internal Root CA trust, and optional commercial X-ray cargo integration—without losing out-of-the-box functionality on Day 1 and without having custom models, maps, or share configurations wiped out during software upgrades. - **Read more:** [Pluggable Runtime Extensions & Regional Packs Guide](PLUGGABLE_EXTENSIONS_GUIDE.md) and [EML Integration Guide](EML_INTEGRATION.md). @@ -134,17 +134,17 @@ Choose one of two explicit rollout options depending on site requirements: - **Read more:** [Cargo Non-Intrusive Inspection (`WCO UFF 2.0` & `3.0.0`) Guide](CARGO_UFF_INTEGRATION.md), [Pluggable Runtime Extensions Guide](PLUGGABLE_EXTENSIONS_GUIDE.md), and [How-To Video Guides (`#27`)](VIDEO_GUIDES.md). ### 2.13b Anytime Live-Console Guided Walkthrough Refresher (`:443`) & Ephemeral Hands-On Training Sandbox (`oscar-sandbox`, `:8444`) -- **What changed:** OSCAR 3.11.11 pairs an anytime **Guided Walkthrough** button in the live operational console (`:443` **Read-Only Refresher Mode** across 13 role-based labs with `0` background polling when closed and `0` fake alarm injections or `/stage-track` calls) with the OS- and container-isolated **Hands-On Training Sandbox & Guided Academy (`oscar-sandbox` on `:8444`)** launched in 1 click (idempotent `start` for any signed-in user when `enable-ui-bridge` is enabled on Ubuntu, while early `stop`/`reset` remains Administrator-only) or via `sudo bash oscar.sh sandbox start` / `.\oscar.bat sandbox start` and torn down completely in `< 2 s` via `sandbox stop` (`down -v --remove-orphans`). Using `compose.sandbox.yaml`, `oscar-sandbox` reuses the already-installed `oscar:3.11.11`, `oscar-postgis:3.11.11`, and `nginx-unprivileged` images with disposable volumes (`oscar_sandbox_state`, `oscar_sandbox_pg`), `tmpfs` `/var/lib/oscar/archive`, `archive.enabled = false`, zero mounts to production volumes or archive directories, a `>= 3.5 GiB` free-RAM guard, an automatic `120 min` (2-hour) TTL shutdown displayed as a live countdown and local expiration time so users know exactly when practice data wipes, one-way credential/Passkey seeding (`chmod 0600 /var/lib/oscar/config.json` prior to `SandboxAuthConfigSeeder`), and `TRAINING SANDBOX — NON-OPERATIONAL` watermarking across all exported PDFs, spreadsheets, JSON, and QR codes. Inside `:8444`, `TrainingSandboxManager` activates loopback Rapiscan ASCII servers (`127.0.0.1:10099` & `10100`), pure-Java loopback ControlByWeb `WebRelay-Quad` HTTP/XML servers (`127.0.0.1:10180` & `10181`), synthetic `CC0-1.0` `1280×720` ISO 6346 container RTSP cameras (`127.0.0.1:8554/tutorial-cam`), `SandboxEmlTrainingAlgorithm` (`Code 9999`), downloadable `.csv`/`.n42`/`.uff`/`.pmtiles`/`.json` samples, and a localized (`en`, `es`, `fr`, `el`) **Training Coach** with destination-aware auto-navigation (opening `/event-log` with live transit progress and visible **`Adjudication Code`** badges when injecting `Code 9999` NORM, `Code 9998` Extended Occupancy, or `Clean Pass`, and opening `/health` for faults and Lab `3.5` WebRelay staging), interactive **Platform Icon Spotlights (`Highlight [Page / Tool] Icon`)**, **Split-Pane `/sensorhub/admin`**, and 1-page vector PDF Completion Records. +- **What changed:** OSCAR 3.11.12 pairs an anytime **Guided Walkthrough** button in the live operational console (`:443` **Read-Only Refresher Mode** across 13 role-based labs with `0` background polling when closed and `0` fake alarm injections or `/stage-track` calls) with the OS- and container-isolated **Hands-On Training Sandbox & Guided Academy (`oscar-sandbox` on `:8444`)** launched in 1 click (idempotent `start` for any signed-in user when `enable-ui-bridge` is enabled on Ubuntu, while early `stop`/`reset` remains Administrator-only) or via `sudo bash oscar.sh sandbox start` / `.\oscar.bat sandbox start` and torn down completely in `< 2 s` via `sandbox stop` (`down -v --remove-orphans`). Using `compose.sandbox.yaml`, `oscar-sandbox` reuses the already-installed `oscar:3.11.12`, `oscar-postgis:3.11.12`, and `nginx-unprivileged` images with disposable volumes (`oscar_sandbox_state`, `oscar_sandbox_pg`), `tmpfs` `/var/lib/oscar/archive`, `archive.enabled = false`, zero mounts to production volumes or archive directories, a `>= 3.5 GiB` free-RAM guard, an automatic `120 min` (2-hour) TTL shutdown displayed as a live countdown and local expiration time so users know exactly when practice data wipes, one-way credential/Passkey seeding (`chmod 0600 /var/lib/oscar/config.json` prior to `SandboxAuthConfigSeeder`), and `TRAINING SANDBOX — NON-OPERATIONAL` watermarking across all exported PDFs, spreadsheets, JSON, and QR codes. Inside `:8444`, `TrainingSandboxManager` activates loopback Rapiscan ASCII servers (`127.0.0.1:10099` & `10100`), pure-Java loopback ControlByWeb `WebRelay-Quad` HTTP/XML servers (`127.0.0.1:10180` & `10181`), synthetic `CC0-1.0` `1280×720` ISO 6346 container RTSP cameras (`127.0.0.1:8554/tutorial-cam`), `SandboxEmlTrainingAlgorithm` (`Code 9999`), downloadable `.csv`/`.n42`/`.uff`/`.pmtiles`/`.json` samples, and a localized (`en`, `es`, `fr`, `el`) **Training Coach** with destination-aware auto-navigation (opening `/event-log` with live transit progress and visible **`Adjudication Code`** badges when injecting `Code 9999` NORM, `Code 9998` Extended Occupancy, or `Clean Pass`, and opening `/health` for faults and Lab `3.5` WebRelay staging), interactive **Platform Icon Spotlights (`Highlight [Page / Tool] Icon`)**, **Split-Pane `/sensorhub/admin`**, and 1-page vector PDF Completion Records. - **Why it was implemented:** Gatehouse operators, shift supervisors, and site administrators needed both an instant read-only step/video/spotlight refresher during live shifts on `:443` AND an isolated `:8444` sandbox with crystal-clear automatic shutdown timing and immediate visual confirmation on the exact destination page to practice lane creation, fault triage, 5-frame & 16-bit WCO UFF cargo inspection, `Code 9999`/`Code 9998` review, WebRelay-Quad commissioning, and multi-format reporting without risking accidental sensor misconfiguration or contaminating evidentiary PostgreSQL tables and cold Parquet archives with test alarms. - **Read more:** [Guided Walkthrough & Hands-On Training Sandbox Guide](TRAINING_SANDBOX_GUIDE.md) and [How-To Video Guides (`#28`)](VIDEO_GUIDES.md). ### 2.13c Per-Lane ControlByWeb® WebRelay-Quad™ Physical RPM Lights & Sounder Control (`LaneWebRelayController`, `LaneWebRelayDialog`) -- **What changed:** OSCAR 3.11.11 adds optional per-lane physical RPM lights and sounder control (`LaneConfig.webRelayConfig`, `enabled = false` by default with `0` threads, sockets, or extra UI chips on unconfigured lanes) supporting primary and optional secondary auxiliary **ControlByWeb WebRelay-Quad** (`X-WR-4R3-E` PoE / non-PoE and `X-410`) Ethernet relay modules over `HTTP/1.1` (`stateFull.xml` / `state.xml` auto-negotiation, Basic Auth, and hardware-timed pulses). In `AUTO` mode, OSCAR arms `R1=1, R2=1` intercept coils (re-arming automatically after PoE power blips), suppresses physical beacon/siren activations on benign **`Code 9999: EML Non-Threat`** and configurable **`Code 9998: Extended Occupancy Gamma Alarm`** (`suppressExtendedOccupancyGamma = true` default), pulses **Gamma Red Light + Siren (`R3`)** and/or **Neutron Blue Light (`R4`)** on actionable threats (never suppressing Neutron alarms), and releases `0,0,0,0` hardware fail-safe pass-through on stop. Administrators manage live `R1–R4` coil telemetry, suppression counters, commissioning pulses, `AUTO` / `MUTED` / `PASS_THROUGH` / `MANUAL` modes, and endpoint settings in an accessible native `` modal on `/health` and `/lane-view`, in SensorHub Admin (`LaneConfigForm`), or via `#WEBRELAY` directives in `config.csv`. +- **What changed:** OSCAR 3.11.12 adds optional per-lane physical RPM lights and sounder control (`LaneConfig.webRelayConfig`, `enabled = false` by default with `0` threads, sockets, or extra UI chips on unconfigured lanes) supporting primary and optional secondary auxiliary **ControlByWeb WebRelay-Quad** (`X-WR-4R3-E` PoE / non-PoE and `X-410`) Ethernet relay modules over `HTTP/1.1` (`stateFull.xml` / `state.xml` auto-negotiation, Basic Auth, and hardware-timed pulses). In `AUTO` mode, OSCAR arms `R1=1, R2=1` intercept coils (re-arming automatically after PoE power blips), suppresses physical beacon/siren activations on benign **`Code 9999: EML Non-Threat`** and configurable **`Code 9998: Extended Occupancy Gamma Alarm`** (`suppressExtendedOccupancyGamma = true` default), pulses **Gamma Red Light + Siren (`R3`)** and/or **Neutron Blue Light (`R4`)** on actionable threats (never suppressing Neutron alarms), and releases `0,0,0,0` hardware fail-safe pass-through on stop. Administrators manage live `R1–R4` coil telemetry, suppression counters, commissioning pulses, `AUTO` / `MUTED` / `PASS_THROUGH` / `MANUAL` modes, and endpoint settings in an accessible native `` modal on `/health` and `/lane-view`, in SensorHub Admin (`LaneConfigForm`), or via `#WEBRELAY` directives in `config.csv`. - **Why it was implemented:** High-throughput portals needed per-lane software suppression of nuisance physical siren/beacon activations during benign NORM (`Code 9999`) and stalled gamma holds (`Code 9998`) plus remote Administrator commissioning/muting from the gatehouse console — without losing physical fail-safe pass-through if OSCAR is offline. - **Read more:** [Per-Lane Physical RPM Lights & Sound (`WebRelay-Quad`) Guide](LANE_WEBRELAY_GUIDE.md) and [How-To Video Guides (`#29`)](VIDEO_GUIDES.md). ### 2.13d Optional Side-by-Side Central Alarm Station (CAS) Rapiscan RPM Real-Time Edge Fan-Out Proxy (`oscar-rpm-proxy`) & `<= 4.0 s` Disconnect Propagation -- **What changed:** OSCAR 3.11.11 integrates an optional, isolated Docker Compose stack (`compose.rpm-proxy.yaml`, `--project-name oscar-rpm-proxy`, `oscar-rpm-proxy:3.11.11` preloaded in `offline-images.tar`, managed via `sudo bash oscar.sh rpm-proxy` on Ubuntu Server 24.04 and `.\oscar.bat rpm-proxy` on Windows 11 + WSL 2) that maintains a single upstream TCP connection per Rapiscan RPM (`1–50+` lanes) and fans out complete `\n`-terminated `1 Hz` telemetry frames simultaneously to an existing Central Alarm Station and OSCAR at `< 1 ms` forwarding latency (`50` lanes × `2` consumers = `100` downstream sockets benchmarked at `~40 ms` for `200` frames, `< 2%` of 1 vCPU). Because `oscar-rpm-proxy` runs in its own Compose project, `oscar restart` and `oscar upgrade` never interrupt the live CAS connection. Each lane enforces **upstream-gated disconnect propagation (`<= 4.0 s`)** (`gate_listener_on_upstream = true`, `first_line_timeout_seconds = 4.0`, `idle_timeout_seconds = 4.0`, `disconnect_clients_on_upstream_loss = true`): if a physical RPM reboots, loses link/switch power, or stops emitting `1 Hz` telemetry without sending TCP `FIN`/`RST`, `oscar-rpm-proxy` closes that lane's downstream listener and drops active consumers within `<= 4.0 s` so both CAS and OSCAR (**Status of Health** — *heart-pulse monitor icon*) flag the lane `OFFLINE` immediately (`Connection Refused`, zero `SYN-ACK` flapping) until live telemetry resumes. It also caches and replays `SG1..SG3` / `SN1..SN2` setup frames (and active `TT` tamper state, cleared on `TC`), isolates slow consumers via bounded queues, enforces `discard` / `allow_primary` / `forward` write policies, supports **Port-Mapped (`11601..11650`)** and **Ubuntu 24.04 Transparent Virtual-IP (`:1600` per lane + `arping` conflict check + ARP-flux sysctl + systemd persistence)** topologies, and generates both proxy `config.json` and a ready-to-import 20-column OSCAR CSV in one command (`rpm-proxy configure --from-csv ... --emit-oscar-csv ...`). +- **What changed:** OSCAR 3.11.12 integrates an optional, isolated Docker Compose stack (`compose.rpm-proxy.yaml`, `--project-name oscar-rpm-proxy`, `oscar-rpm-proxy:3.11.12` preloaded in `offline-images.tar`, managed via `sudo bash oscar.sh rpm-proxy` on Ubuntu Server 24.04 and `.\oscar.bat rpm-proxy` on Windows 11 + WSL 2) that maintains a single upstream TCP connection per Rapiscan RPM (`1–50+` lanes) and fans out complete `\n`-terminated `1 Hz` telemetry frames simultaneously to an existing Central Alarm Station and OSCAR at `< 1 ms` forwarding latency (`50` lanes × `2` consumers = `100` downstream sockets benchmarked at `~40 ms` for `200` frames, `< 2%` of 1 vCPU). Because `oscar-rpm-proxy` runs in its own Compose project, `oscar restart` and `oscar upgrade` never interrupt the live CAS connection. Each lane enforces **upstream-gated disconnect propagation (`<= 4.0 s`)** (`gate_listener_on_upstream = true`, `first_line_timeout_seconds = 4.0`, `idle_timeout_seconds = 4.0`, `disconnect_clients_on_upstream_loss = true`): if a physical RPM reboots, loses link/switch power, or stops emitting `1 Hz` telemetry without sending TCP `FIN`/`RST`, `oscar-rpm-proxy` closes that lane's downstream listener and drops active consumers within `<= 4.0 s` so both CAS and OSCAR (**Status of Health** — *heart-pulse monitor icon*) flag the lane `OFFLINE` immediately (`Connection Refused`, zero `SYN-ACK` flapping) until live telemetry resumes. It also caches and replays `SG1..SG3` / `SN1..SN2` setup frames (and active `TT` tamper state, cleared on `TC`), isolates slow consumers via bounded queues, enforces `discard` / `allow_primary` / `forward` write policies, supports **Port-Mapped (`11601..11650`)** and **Ubuntu 24.04 Transparent Virtual-IP (`:1600` per lane + `arping` conflict check + ARP-flux sysctl + systemd persistence)** topologies, and generates both proxy `config.json` and a ready-to-import 20-column OSCAR CSV in one command (`rpm-proxy configure --from-csv ... --emit-oscar-csv ...`). - **Why it was implemented:** Rapiscan RPM controllers accept only one active TCP client connection on port `:1600`; at portals running OSCAR side-by-side with an incumbent Central Alarm Station across `10–50` lanes, direct dual connections either fail or drop CAS during OSCAR maintenance, whereas a naive TCP relay would mask physical RPM disconnects by holding downstream sockets open when an upstream RPM goes silent. - **Read more:** [Side-by-Side CAS Rapiscan RPM Real-Time Edge Proxy Guide](RPM_EDGE_PROXY_GUIDE.md). @@ -155,9 +155,9 @@ Choose one of two explicit rollout options depending on site requirements: --- -## 2.14 How OSCAR 3.11.11 Handles Data Now (Complete End-to-End Data Lifecycle) +## 2.14 How OSCAR 3.11.12 Handles Data Now (Complete End-to-End Data Lifecycle) -The table below summarizes how every category of data in OSCAR 3.11.11 is ingested, stored, indexed, queried, and retired or retained: +The table below summarizes how every category of data in OSCAR 3.11.12 is ingested, stored, indexed, queried, and retired or retained: | Data Category & Streams | Where It Lands First (Hot Tier) | How It Transitions / Ages | Long-Term Retention & Cleanup Policy | How Queries & Operators Access It | | :--- | :--- | :--- | :--- | :--- | @@ -189,9 +189,9 @@ To illustrate why the architectural improvements introduced since `v3.8.0` and ` - **Type B (`50` Lanes / `100` Cameras):** `~220–250 observations/sec` (`~20.0M/day`, `~7.3B/year`, `~73.0B` over 10 years) across `~1,110` datastreams; `5,000 occupancies/day` (`250–500` alarm occupancies = `500–1,000` alarm camera clips/day). - **Hybrid Vehicle OCR (`sensorhub-process-ocr`):** `vehicleOcr` (`~422 B` JSONB staged → `~65 B` ZSTD Parquet row) adds `< 0.02 GiB/year` (`5` lanes) to `< 0.12 GiB/year` (`50` lanes) in recommended `alarmsOnly=true` mode (`< 1.2 GiB/year` across `50` lanes in `alarmsOnly=false` continual mode), while date-partitioned `files/ocr/crops//` (`~2.3–2.7 KiB/crop`, `ocrCropRetentionDays = 365` default) stabilizes at **`~0.05 GiB` (`5` lanes) / `~0.5 GiB` (`50` lanes)** (`~7.5 GiB` if `alarmsOnly=false` on `50` lanes). -### 3.2 Architectural & Resource Comparison by Subsystem (`Legacy v3.8.0 / v3.9` vs. `Current v3.11.11`) +### 3.2 Architectural & Resource Comparison by Subsystem (`Legacy v3.8.0 / v3.9` vs. `Current v3.11.12`) -| Dimension | Legacy `v3.8.0` / `v3.9` Setup (Pre-Parquet / Pre-Retention / Direct RTSP) | Current `v3.11.11` Setup (`PARQUET_PRIMARY` + Tiered Retention + `MediaMTX` + Hybrid OCR) | Why the Change Was Necessary | +| Dimension | Legacy `v3.8.0` / `v3.9` Setup (Pre-Parquet / Pre-Retention / Direct RTSP) | Current `v3.11.12` Setup (`PARQUET_PRIMARY` + Tiered Retention + `MediaMTX` + Hybrid OCR) | Why the Change Was Necessary | | :--- | :--- | :--- | :--- | | **Observation Storage Engine** | Single unpartitioned, unretired PostgreSQL/PostGIS `obs` table storing every raw 1 Hz JSONB observation and index entry forever on hot disk. | **30-min `LOGGED` PostgreSQL hot staging** (`~41 min` nominal retirement budget) across all 22 operational/evidentiary streams, retired atomically into **ZSTD-compressed columnar Parquet** with row/UUID/SHA-256 parity verification. | Under `v3.8.0`/`v3.9`, PostgreSQL B-tree/GIN index depth, JSONB/TOAST page bloat, and autovacuum/WAL write amplification grew with total historical rows, causing `~14 GiB/day` of 50-lane DB growth and severe I/O stalls once indexes exceeded RAM. | | **Hot PostgreSQL Working Set** | Unbounded (50 lanes): `~420 GiB` at Month 1 → `~5.1 TiB` at Year 1 → **`~25.5 TiB` at Year 5** (`36.5B` live B-tree tuples). | **Permanently bounded at `1` open 30-min child (`< 250 MiB` hot table data):** 7-day live telemetry confirms logical DB holds at **`~0.35 GiB` (`5` lanes) / `0.63 GiB` (`50` lanes)** and physical PostgreSQL + WAL volume stabilizes at **`~0.8 GiB` (`5` lanes) / `1.2–2.0 GiB` (`50` lanes)** across a 10-year lifecycle. | Keeps hot B-tree indexes entirely in RAM (`< 200 MiB` index footprint) forever so real-time ingestion and live queries never degrade over multi-year operation. | @@ -207,10 +207,10 @@ To illustrate why the architectural improvements introduced since `v3.8.0` and ` *(Assumes `100` occupancies/lane/day, `5%–10%` alarm rate, recommended `1× 1080p @ 15 fps` OCR camera + `1× 720p @ 15 fps` overview camera per lane, `PARQUET_PRIMARY`, `sourceRollbackGraceHours = 24`, `secondaryFrameRetentionDays = 30`, and `ocrCropRetentionDays = 365`.)* -| Horizon | Metric | Legacy `v3.8.0` / `v3.9` (`50` Lanes, No OCR) | **`v3.11.11` Type A — `5` Lanes / `10` Cameras (`5/5` OCR)** *(Ubuntu 24.04 or Win 11 WSL 2)* | **`v3.11.11` Type B — `50` Lanes / `100` Cameras (`50/50` OCR)** *(Ubuntu 24.04 Bare-Metal)* | Operational Impact | +| Horizon | Metric | Legacy `v3.8.0` / `v3.9` (`50` Lanes, No OCR) | **`v3.11.12` Type A — `5` Lanes / `10` Cameras (`5/5` OCR)** *(Ubuntu 24.04 or Win 11 WSL 2)* | **`v3.11.12` Type B — `50` Lanes / `100` Cameras (`50/50` OCR)** *(Ubuntu 24.04 Bare-Metal)* | Operational Impact | | :--- | :--- | :--- | :--- | :--- | :--- | -| **Day 1** | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**`365d` Report Latency** | `~36 GiB` (`14 GiB` DB + `22 GiB` MP4)
`~3.8 GiB` (climbing) / `~1.2 GiB`
`~450 ms`
`N/A` | **`~1.4 GiB`** (`0.8 GiB` PG+WAL + `0.5 GiB` 24h MP4 + `0.1 GiB` Parquet/JPEG)
**`1.4–1.95 GiB`** / **`0.5–0.7 GiB`**
**`25–85 ms`** (Ubuntu) / **`95–250 ms`** (WSL 2)
`< 0.5 s` | **`~7.5 GiB`** (`1.5 GiB` PG+WAL + `4.5 GiB` 24h MP4 + `1.5 GiB` Parquet/JPEG)
**`1.8–2.24 GiB`** / **`0.8–1.0 GiB`**
**`40–145 ms`** (`350–930 ms` 50L burst)
`< 1.0 s` | `v3.11.11` bounds hot PostgreSQL and MP4 grace from Day 1 while running Tier-0 + Tier-1/2 OCR at `~1.13 s/clip`. | -| **Month 1**
*(30 Days — peak 5-frame window)* | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**30-Day Report Latency** | **`~1.08 TiB`** (`420 GiB` DB + `660 GiB` MP4)
**`>8 GiB` (OOM crashes)**
**`~5,000–8,500 ms`**
Severe lag | **`~2.7–3.3 GiB`** (`0.8 GiB` PG + `0.5 GiB` MP4 + `0.75–1.5 GiB` 5-frame JPEG + `0.4 GiB` Parquet + `0.2 GiB` CSV/OCR)
**`1.4–1.95 GiB`** / **`0.5–0.7 GiB`** (`0` OOMs)
**`30–125 ms`** (Ubuntu) / **`105–420 ms`** (WSL 2)
`< 0.8 s` | **`~18–26 GiB`** (`1.5 GiB` PG + `4.5 GiB` MP4 + `7.5–15 GiB` 5-frame JPEG + `4.0 GiB` Parquet + `0.6 GiB` CSV/OCR)
**`1.9–2.24 GiB`** / **`0.8–1.0 GiB`** (`0` OOMs)
**`40–150 ms`**
`~1.0–1.5 s` | **A 1 TB SSD on `v3.9` is 100% full by Day 28.** At Day 30, `v3.11.11` reaches its rolling 5-frame secondary JPEG plateau and begins pruning 4 of 5 frames (`80%`) on older events. | +| **Day 1** | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**`365d` Report Latency** | `~36 GiB` (`14 GiB` DB + `22 GiB` MP4)
`~3.8 GiB` (climbing) / `~1.2 GiB`
`~450 ms`
`N/A` | **`~1.4 GiB`** (`0.8 GiB` PG+WAL + `0.5 GiB` 24h MP4 + `0.1 GiB` Parquet/JPEG)
**`1.4–1.95 GiB`** / **`0.5–0.7 GiB`**
**`25–85 ms`** (Ubuntu) / **`95–250 ms`** (WSL 2)
`< 0.5 s` | **`~7.5 GiB`** (`1.5 GiB` PG+WAL + `4.5 GiB` 24h MP4 + `1.5 GiB` Parquet/JPEG)
**`1.8–2.24 GiB`** / **`0.8–1.0 GiB`**
**`40–145 ms`** (`350–930 ms` 50L burst)
`< 1.0 s` | `v3.11.12` bounds hot PostgreSQL and MP4 grace from Day 1 while running Tier-0 + Tier-1/2 OCR at `~1.13 s/clip`. | +| **Month 1**
*(30 Days — peak 5-frame window)* | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**30-Day Report Latency** | **`~1.08 TiB`** (`420 GiB` DB + `660 GiB` MP4)
**`>8 GiB` (OOM crashes)**
**`~5,000–8,500 ms`**
Severe lag | **`~2.7–3.3 GiB`** (`0.8 GiB` PG + `0.5 GiB` MP4 + `0.75–1.5 GiB` 5-frame JPEG + `0.4 GiB` Parquet + `0.2 GiB` CSV/OCR)
**`1.4–1.95 GiB`** / **`0.5–0.7 GiB`** (`0` OOMs)
**`30–125 ms`** (Ubuntu) / **`105–420 ms`** (WSL 2)
`< 0.8 s` | **`~18–26 GiB`** (`1.5 GiB` PG + `4.5 GiB` MP4 + `7.5–15 GiB` 5-frame JPEG + `4.0 GiB` Parquet + `0.6 GiB` CSV/OCR)
**`1.9–2.24 GiB`** / **`0.8–1.0 GiB`** (`0` OOMs)
**`40–150 ms`**
`~1.0–1.5 s` | **A 1 TB SSD on `v3.9` is 100% full by Day 28.** At Day 30, `v3.11.12` reaches its rolling 5-frame secondary JPEG plateau and begins pruning 4 of 5 frames (`80%`) on older events. | | **Year 1**
*(365 Days)* | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**`365d` Annual Report** | **`~13.1 TiB`** (`5.1 TiB` DB + `8.0 TiB` MP4)
**OOM / page-cache thrashing**
**`>60,000 ms` (HTTP 504)**
**Timed out** | **`~9–11 GiB`** (`0.8 GiB` PG + `1.1 GiB` rolling MP4/4-frame + `4.8 GiB` Parquet + `1.8–3.6 GiB` `frame-03` + `0.4 GiB` CSV/OCR)
**`1.4–1.95 GiB`** / **`0.5–0.7 GiB`**
**`30–130 ms`** (Ubuntu) / **`110–440 ms`** (WSL 2)
**`~0.8–1.5 s`** | **`~81–105 GiB`** (`1.5 GiB` PG + `10.5 GiB` rolling MP4/4-frame + `45–50 GiB` Parquet + `18–36 GiB` `frame-03` + `4.0 GiB` CSV/OCR)
**`1.9–2.3 GiB`** / **`0.8–1.1 GiB`**
**`40–155 ms`**
**`~2.0–4.5 s`** | **`>99.1%` Year-1 storage reduction (`81–105 GiB` vs. `13.1 TiB`)**; a 5-lane site uses `~1%` of a `1 TB` SSD in Year 1. | | **Year 3**
*(1,095 Days)* | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**Annual / 3-Yr Report** | **`~39.4 TiB`** (`15.3 TiB` DB + `24.1 TiB` MP4)
**Catastrophic failure**
**Timed out** (`21.9B` rows)
**Timed out** | **`~23–29 GiB`** (`14.4 GiB` Parquet + `5.4–10.8 GiB` `frame-03` + `3.1 GiB` fixed/CSV)
**`1.4–1.95 GiB`** / **`0.6–0.8 GiB`**
**`35–135 ms`** (Ubuntu) / **`115–450 ms`** (WSL 2)
`~1.0–1.8 s` (1-yr) / `~2–4 s` (3-yr) | **`~217–285 GiB`** (`135–150 GiB` Parquet + `54–108 GiB` `frame-03` + `23 GiB` fixed/CSV)
**`1.9–2.4 GiB`** / **`0.9–1.2 GiB`**
**`45–165 ms`**
`~2.5–5 s` (1-yr) / `~6–13 s` (3-yr) | Hot PostgreSQL still holds only `1` open 30-min partition (`< 250 MiB`), so Dashboard and bounded Event queries run at Day-1 speed. | | **Year 5**
*(1,825 Days)* | **Total Disk Used**
**`oscar` `anon` / `postgres` RAM**
**Bounded Hot/Cold Latency**
**Annual Report** | **`~65.7 TiB`** (`25.5 TiB` DB + `40.2 TiB` MP4)
**Catastrophic failure**
**Timed out** (`36.5B` rows)
**Timed out** | **`~37–47 GiB`** (`24.0 GiB` Parquet + `9.0–18.0 GiB` `frame-03` + `4.0 GiB` fixed/CSV)
**`1.4–2.0 GiB`** / **`0.6–0.8 GiB`**
**`35–140 ms`** (Ubuntu) / **`120–455 ms`** (WSL 2)
`~1.0–2.0 s` (per-yr span) | **`~353–465 GiB`** (`225–250 GiB` Parquet + `90–180 GiB` `frame-03` + `30 GiB` fixed/CSV)
**`1.9–2.5 GiB`** / **`0.9–1.3 GiB`**
**`50–175 ms`**
`~2.5–5 s` (per-yr span) | **`>99.3%` 5-year storage reduction (`353–465 GiB` vs. `65.7 TiB`)**. | @@ -247,7 +247,7 @@ Key operational takeaways: | Audience / Task | Primary Guide | Companion References | | :--- | :--- | :--- | | **New installation (Ubuntu 24.04 or Windows 11, connected or offline)** | [Quick Start](../dist/release/QUICKSTART.md) | [Administrator Guide](../dist/release/DEPLOYMENT.md) | -| **Upgrading from `pre-3.11.0` or `3.11.11+`** | [Administrator Guide — Upgrade](../dist/release/DEPLOYMENT.md) | [Storage Operations — Existing Deployments](STORAGE_OPERATIONS.md) | +| **Upgrading from `pre-3.11.0` or `3.11.12+`** | [Administrator Guide — Upgrade](../dist/release/DEPLOYMENT.md) | [Storage Operations — Existing Deployments](STORAGE_OPERATIONS.md) | | **Console operators & site supervisors (`en`, `es`, `fr`, `el`)** | [Operator Manual (EN)](https://github.com/ORNL/osh-oakridge-modules/blob/main/services/sensorhub-service-oscar/src/main/resources/com/botts/impl/service/oscar/i18n/README.md) | [Español](https://github.com/ORNL/osh-oakridge-modules/blob/main/services/sensorhub-service-oscar/src/main/resources/com/botts/impl/service/oscar/i18n/README_es.md), [Français](https://github.com/ORNL/osh-oakridge-modules/blob/main/services/sensorhub-service-oscar/src/main/resources/com/botts/impl/service/oscar/i18n/README_fr.md), [Ελληνικά](https://github.com/ORNL/osh-oakridge-modules/blob/main/services/sensorhub-service-oscar/src/main/resources/com/botts/impl/service/oscar/i18n/README_el.md) (and release PDFs) | | **Workstation views, health monitoring & live cameras** | [Operational Views](OPERATIONAL_VIEWS.md), [Status of Health](STATUS_OF_HEALTH.md) | [Live Video](LIVE_VIDEO.md) | | **External EML plugin upload & automated `EML Non-Threat` review** | [EML Integration Guide](EML_INTEGRATION.md) | [Administrator Guide](../dist/release/DEPLOYMENT.md) | diff --git a/docs/RPM_EDGE_PROXY_GUIDE.md b/docs/RPM_EDGE_PROXY_GUIDE.md index a247c10..9e5391b 100644 --- a/docs/RPM_EDGE_PROXY_GUIDE.md +++ b/docs/RPM_EDGE_PROXY_GUIDE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 Side-by-Side CAS Rapiscan RPM Real-Time Edge Proxy Guide (`oscar-rpm-proxy`) +# OSCAR 3.11.12 Side-by-Side CAS Rapiscan RPM Real-Time Edge Proxy Guide (`oscar-rpm-proxy`) -This guide documents the optional **OSCAR Rapiscan RPM Real-Time Edge Proxy (`oscar-rpm-proxy`)** bundled in **OSCAR 3.11.11** for ports of entry and facilities where OSCAR is installed **side by side with an existing Central Alarm Station (CAS)** across **1 to 50+ Rapiscan Radiation Portal Monitors (RPMs)**. +This guide documents the optional **OSCAR Rapiscan RPM Real-Time Edge Proxy (`oscar-rpm-proxy`)** bundled in **OSCAR 3.11.12** for ports of entry and facilities where OSCAR is installed **side by side with an existing Central Alarm Station (CAS)** across **1 to 50+ Rapiscan Radiation Portal Monitors (RPMs)**. --- @@ -8,7 +8,7 @@ This guide documents the optional **OSCAR Rapiscan RPM Real-Time Edge Proxy (`os Rapiscan RPM controllers expose a single-client TCP data-stream listener (typically TCP port `1600`) that emits continuous `1 Hz` radiation count frames (`GA`, `GB`, `NB`, `NS`, `GX`), occupancy triggers, tamper alarms (`TT` / `TC`), and setup/daily reports (`SG1..SG3`, `SN1..SN2`). On standard controller firmware, **only one downstream TCP client can hold that socket at a time** — if OSCAR and an existing Central Alarm Station both connect directly to `:1600`, one system receives `Connection Refused` or causes connection flapping. -`oscar-rpm-proxy` solves this cleanly as an opt-in, isolated edge container (`compose.rpm-proxy.yaml`) in the OSCAR 3.11.11 release stack: +`oscar-rpm-proxy` solves this cleanly as an opt-in, isolated edge container (`compose.rpm-proxy.yaml`) in the OSCAR 3.11.12 release stack: ```mermaid flowchart LR @@ -19,7 +19,7 @@ flowchart LR subgraph OscarHost["Ubuntu Server 24.04 LTS Host"] Proxy["oscar-rpm-proxy (Isolated Compose Project)\n• 1 upstream TCP socket per RPM\n• Line-framed (\\n) zero-interleave fan-out\n• SG1..SG3 / SN1..SN2 + active TT cache replay\n• <= 4.0 s upstream-gated disconnect propagation"] - OSCAR["OSCAR 3.11.11 Service\n(Loopback 127.0.0.1:11601..11650)"] + OSCAR["OSCAR 3.11.12 Service\n(Loopback 127.0.0.1:11601..11650)"] end CAS["Existing Central Alarm Station (CAS)\n(Port-Mapped :11601..11650 OR Virtual-IP :1600)"] diff --git a/docs/STATUS_OF_HEALTH.md b/docs/STATUS_OF_HEALTH.md index eac2f96..e925805 100644 --- a/docs/STATUS_OF_HEALTH.md +++ b/docs/STATUS_OF_HEALTH.md @@ -1,6 +1,6 @@ # Status of Health -The OSCAR 3.11.11 Status of Health page gives operators one current-status row for every lane visible in the current Viewer scope. Open it with the **Status of Health** navigation item — identified by the **heart-pulse monitor icon** in the left navigation rail (or click **Highlight Status of Health Icon** inside **Guided Walkthrough** / **Help (`?`)** to spotlight it on screen). +The OSCAR 3.11.12 Status of Health page gives operators one current-status row for every lane visible in the current Viewer scope. Open it with the **Status of Health** navigation item — identified by the **heart-pulse monitor icon** in the left navigation rail (or click **Highlight Status of Health Icon** inside **Guided Walkthrough** / **Help (`?`)** to spotlight it on screen). > **Companion Video Guide:** Watch [Module 15 — Monitor Status of Health & Georeferenced Site Map (`15-status-of-health-and-site-map.mp4`)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/15-status-of-health-and-site-map.mp4) ([WebVTT captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/15-status-of-health-and-site-map.vtt)) in [VIDEO_GUIDES.md](VIDEO_GUIDES.md#15-status-of-health-and-site-map). @@ -17,7 +17,7 @@ Operational views are a presentation boundary, not an authorization mechanism. S | Group | Meaning | | --- | --- | | RPM connection | **Online** or **Offline** from the RPM connection-status stream. **Waiting** means that the Viewer has not received a usable current value. | -| Camera connections | One indicator per configured FFmpeg camera. OSCAR 3.11.11 publishes an explicit connection value after stream startup, reconnection failure, and shutdown, then republishes the current value every 30 seconds while the driver is running. | +| Camera connections | One indicator per configured FFmpeg camera. OSCAR 3.11.12 publishes an explicit connection value after stream startup, reconnection failure, and shutdown, then republishes the current value every 30 seconds while the driver is running. | | Optional WebRelay lights & sound | Hidden when `webRelayConfig.enabled = false` (default). On enabled lanes, displays read-only `WebRelay ()` / `Offline` health chips for operators and a per-lane **Lights & Sound** control button for Administrators (see [LANE_WEBRELAY_GUIDE.md](LANE_WEBRELAY_GUIDE.md)). | | Gamma high / gamma low / neutron high | **Fault**, **Clear**, or **Unknown** from the corresponding detector alarm-state telemetry. Missing or failed telemetry remains Unknown rather than appearing clear. | | Tamper | **Fault**, **Clear**, or **Unknown** from the lane's tamper telemetry. | @@ -88,7 +88,7 @@ Hardware fault tests must follow the site's approved procedures. Do not create a | --- | --- | | Lane is missing | Check node reachability, lane discovery, operational-view assignment, and the exact `?view=` key. | | RPM remains Waiting | Verify the RPM driver exposes `connectionStatus`, the stream is reachable, and the Viewer can query its latest observation. | -| Camera remains Waiting | Confirm the lane generated the FFmpeg child, the child is running OSCAR 3.11.11 code with the 30-second connection heartbeat, and its connection-status datastream was discovered. Query the latest observation twice at least 30 seconds apart; its timestamp should advance while the driver is running. If it does not, inspect the FFmpeg reconnect/heartbeat logs and deployed image. | +| Camera remains Waiting | Confirm the lane generated the FFmpeg child, the child is running OSCAR 3.11.12 code with the 30-second connection heartbeat, and its connection-status datastream was discovered. Query the latest observation twice at least 30 seconds apart; its timestamp should advance while the driver is running. If it does not, inspect the FFmpeg reconnect/heartbeat logs and deployed image. | | Camera shows Offline | Verify RTSP host, port, credentials, codec/path, network reachability, and FFmpeg reconnect logs. | | Fault remains Unknown | Confirm the expected detector or tamper datastream exists, its latest observation is readable, and the next per-node refresh completes. Unknown is deliberately not treated as Clear. | | Rapiscan tamper remains Unknown while other values update | A current Rapiscan driver publishes Clear whenever it establishes the RPM connection. Confirm the child driver actually reconnected, its tamper datastream exists, the baseline observation is readable, and the deployment includes the connection-baseline fix. A later device `TT` must still change the state to Fault. | diff --git a/docs/STORAGE_ARCHITECTURE.md b/docs/STORAGE_ARCHITECTURE.md index ac40c28..2a773b1 100644 --- a/docs/STORAGE_ARCHITECTURE.md +++ b/docs/STORAGE_ARCHITECTURE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 storage architecture +# OSCAR 3.11.12 storage architecture -OSCAR 3.11.11 separates live operational data, durable RPM source records, retained media, and +OSCAR 3.11.12 separates live operational data, durable RPM source records, retained media, and long-term observation history. PostgreSQL remains the authoritative hot store and metadata catalog; immutable files carry the high-volume history. This keeps normal Open Sensor Hub (OSH) reads and identities intact while removing the requirement that every raw count remain in PostgreSQL forever. @@ -117,7 +117,7 @@ avoids reconstructing a regulatory/source artifact from an already-purged databa ### PostgreSQL hot store -The 3.11.11 database configuration uses sequential observation IDs, snapshots mutable OSH `DataBlock` +The 3.11.12 database configuration uses sequential observation IDs, snapshots mutable OSH `DataBlock` values when they are accepted, and commits a prepared-statement batch at 10,000 rows or the configured `autoCommitPeriod` (one second in the standard configuration). The PostgreSQL JDBC driver rewrites compatible batches into multi-row inserts. A statement-level transition-table @@ -265,7 +265,7 @@ tools; see [Archive format](ARCHIVE_FORMAT.md). Every embedded DuckDB connection—export, post-write verification, activation staging, hot/cold parity, cold result streaming, metadata scans, and counts—uses the same bounded -resource policy. The 3.11.11 production defaults are 256 MiB of DuckDB memory, two worker threads, +resource policy. The 3.11.12 production defaults are 256 MiB of DuckDB memory, two worker threads, and 4 GiB of spill per operation, with at most two embedded sessions admitted process-wide. A fair first-in/first-out gate waits up to 30 seconds and then fails busy; all independently configured archive stores share the gate, and the smallest cap registered by an active or waiting @@ -407,9 +407,9 @@ policy to hot, cold, exported, and backup copies. - Do not include secrets, full manifests, raw records, or images in ordinary support tickets or unredacted diagnostic bundles. -## 3.11.11 compatibility boundary +## 3.11.12 compatibility boundary -OSCAR 3.11.11 is a substantial storage-profile update. A new installation uses: +OSCAR 3.11.12 is a substantial storage-profile update. A new installation uses: - `OscarTieredObsSystemDatabaseConfig` with explicit `PARQUET_PRIMARY`, sequential IDs, and batched commit-durable PostgreSQL staging for the allowlisted immutable outputs; @@ -423,7 +423,7 @@ The legacy occupancy `videoPaths` field, legacy daily CSV syntax, and OSH identi However, an existing deployment's persistent `config.json` is intentionally not overwritten by `oscar upgrade`, and PostgreSQL data checksums are selected only when a new database cluster is initialized. There is no automatic conversion of an old database/configuration into the complete -3.11.11 storage profile. The corrected 3.11.11 observation natural-key index also treats null fields as +3.11.12 storage profile. The corrected 3.11.12 observation natural-key index also treats null fields as equal; index creation fails safely if a legacy database contains duplicates under that definition, and those rows require an explicit reviewed migration decision. Natural-key verification uses the same `COALESCE` expressions as the unique index, including for null fields, so PostgreSQL generic @@ -433,7 +433,7 @@ ID. If the observation is already archive-owned, OSCAR writes the correction to generation's PostgreSQL overlay—both during the brief verified staging transition and after the staging child has been dropped— instead of modifying Parquet or inserting a duplicate hot identity. -For the current test systems and for new production deployments, initialize a fresh 3.11.11 database +For the current test systems and for new production deployments, initialize a fresh 3.11.12 database and configuration. For a production system whose history must be preserved, keep the old deployment read-only, take and verify a backup, export records required by policy, and perform a separately validated migration rather than deleting volumes or assuming `upgrade` enabled the new lifecycle. diff --git a/docs/STORAGE_OPERATIONS.md b/docs/STORAGE_OPERATIONS.md index ad3ca3f..cabaefa 100644 --- a/docs/STORAGE_OPERATIONS.md +++ b/docs/STORAGE_OPERATIONS.md @@ -1,7 +1,7 @@ -# OSCAR 3.11.11 storage operations +# OSCAR 3.11.12 storage operations This is the administrator runbook for OSCAR's PostgreSQL hot store, primary Parquet cold tier, -direct daily journal, retained media, and optional single coordinated snapshot. Commands assume the extracted 3.11.11 +direct daily journal, retained media, and optional single coordinated snapshot. Commands assume the extracted 3.11.12 release directory is the current directory. For design rationale see [Storage architecture](STORAGE_ARCHITECTURE.md). For exact state @@ -34,7 +34,7 @@ fallback. `%ProgramData%\OSCAR\StorageLocks` (Windows), so a clean-release upgrade cannot evade an older process's lock. -## Standard 3.11.11 configuration +## Standard 3.11.12 configuration New installations receive these defaults from `dist/config/standard/config.json`: @@ -111,7 +111,7 @@ the file shipped in the ZIP became active. ## New installation and storage paths -For a new 3.11.11 production system, keep the live archive on durable monitored storage. Backup mode +For a new 3.11.12 production system, keep the live archive on durable monitored storage. Backup mode is disabled until an administrator deliberately selects a safe absolute backup path that does not overlap the release or archive roots. A separate physical drive is recommended for failure isolation, but it is not required: @@ -210,39 +210,39 @@ rename, force, ownership, and PostgreSQL semantics. ### Existing pre-3.11.0 deployments -The complete 3.11.11 storage profile is not an automatic in-place conversion. `oscar upgrade` preserves +The complete 3.11.12 storage profile is not an automatic in-place conversion. `oscar upgrade` preserves the existing application configuration and database volume, and PostgreSQL data checksums are an initial-cluster property. One narrow compatibility migration is automatic: supported `oscar upgrade` stops the application tier and runs the restartable daily-file lifecycle-index migration before startup. The tool reads the retained `/var/lib/oscar/config.json`, uses the configured Daily File Journal root/directory/zone, -and skips safely when that module is absent. It upgrades an earlier 3.11.11 preview journal without +and skips safely when that module is absent. It upgrades an earlier 3.11.12 preview journal without scanning its historical tree on a live module thread. It does not convert a pre-3.11.0 database or configuration into the complete tiered-storage profile. The same deployment-scoped lock excludes backup, restore, and archive administration until the new services pass health checks. On failure, final metadata stays uncommitted while restart-safe work markers may remain; the application stays stopped, so fix the reported condition and rerun `upgrade`. -The 3.11.11 observation schema also installs a corrected natural-key unique index that treats null +The 3.11.12 observation schema also installs a corrected natural-key unique index that treats null feature, phenomenon-time, and result-time fields as equal. This is important because a null result time is normal for OSCAR observations. If an older database already contains duplicates under that corrected key, PostgreSQL deliberately refuses to create the index instead of choosing a row or silently retaining ambiguity. Audit and resolve those duplicates under an approved migration before -attempting an in-place database upgrade. A fresh 3.11.11 database has no such cleanup requirement. +attempting an in-place database upgrade. A fresh 3.11.12 database has no such cleanup requirement. -For the disposable test systems, initialize a clean 3.11.11 deployment and new database. For a +For the disposable test systems, initialize a clean 3.11.12 deployment and new database. For a production pre-3.11.0 system whose history must remain available: 1. freeze retention/deletion changes; 2. take and verify the existing system's supported backup/export; 3. retain the old deployment read-only for policy lookup; -4. initialize 3.11.11 on clean state; +4. initialize 3.11.12 on clean state; 5. validate lane configuration and workflows; 6. migrate only records required by an approved, tested migration procedure; and 7. preserve the pre-3.11.0 system until retention and audit owners accept the transition. -Do not erase an old production volume simply to make the 3.11.11 module start. +Do not erase an old production volume simply to make the 3.11.12 module start. ## Production rollout @@ -882,7 +882,7 @@ Track at least: | Retained-media lane parent cannot be resolved | No new manifest; source and retry state remain | Verify the RPM/camera systems are members of the intended OSH lane and that the deployed PostgreSQL datastore supports `getParent`; do not relabel an existing manifest by hand | | Media publication fails | Partial set stays invisible; source preserved; retry ledger records failure | Check FFmpeg, source integrity, filesystem/rename/space; allow idempotent retry | | Pressure cleanup cannot reach target | Protected data stays; error is logged | Add capacity or perform approved cold/media retention; never remove journal/adjudication files ad hoc | -| PostgreSQL reports archiver activity or an external WAL mount | Deployment drifted from the 3.11.11 profile | Stop rollout, preserve legacy data, restore `archive_mode=off`/no-WAL-bind configuration through the supported release, and requalify backup/restore | +| PostgreSQL reports archiver activity or an external WAL mount | Deployment drifted from the 3.11.12 profile | Stop rollout, preserve legacy data, restore `archive_mode=off`/no-WAL-bind configuration through the supported release, and requalify backup/restore | | Backup fails | `.partial` or finalized-but-unverified directory remains; services are resumed where possible | Check `status`, preserve diagnostics, correct the cause, then re-verify or run a new backup | | Restore fails | Deployment may remain stopped/partial | Keep producers disconnected; preserve `pre-restore-*`; repair cause and repeat from the same verified backup or escalate | | PostgreSQL shutdown errors appear during OSCAR stop/restart | Qualification fails; OSCAR may not complete its database-backed module drain | Use the release `oscar` launcher, which stops gateway, OSCAR, and PostgreSQL sequentially; confirm the media-retention cancellation log completes, preserve logs, and do not substitute an unscoped multi-service Compose stop/restart | diff --git a/docs/TRAINING_SANDBOX_GUIDE.md b/docs/TRAINING_SANDBOX_GUIDE.md index f191f3d..d860209 100644 --- a/docs/TRAINING_SANDBOX_GUIDE.md +++ b/docs/TRAINING_SANDBOX_GUIDE.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 Guided Walkthrough Refresher (`:443`) & Ephemeral Hands-On Training Sandbox (`oscar-sandbox` `:8444`) +# OSCAR 3.11.12 Guided Walkthrough Refresher (`:443`) & Ephemeral Hands-On Training Sandbox (`oscar-sandbox` `:8444`) -OSCAR 3.11.11 provides two complementary, built-in training and refresher experiences for gatehouse operators, shift supervisors, and system administrators: +OSCAR 3.11.12 provides two complementary, built-in training and refresher experiences for gatehouse operators, shift supervisors, and system administrators: 1. **Anytime Live Console Guided Walkthrough (`:443` — Read-Only Refresher Mode):** Click **Guided Walkthrough** (*graduation-cap icon* in the top navigation bar, or inside **Help (`?`)** — *circled question-mark icon* — `-> Manual & Video Guides`) at any time during a live shift to open the side-by-side coach (`READ-ONLY REFRESHER` badge). Users can browse all **13 role-based labs**, watch offline `1080p` 4-language (`en`, `es`, `fr`, `el`) captioned videos, view annotated `1920×1080` reference screenshots, read inline visual symbol introductions for every navigation icon, navigate to pages, and click **Highlight [Page / Tool] Icon** (for example, **Highlight Status of Health Icon** on the *heart-pulse monitor icon* or **Highlight Help (`?`)** on the *circled question-mark icon*) with **zero** simulated alarm injections, **zero** `/stage-track` server mutations, and **zero** background polling when closed. 2. **Isolated Ephemeral Hands-On Practice Sandbox (`oscar-sandbox` on `:8444`):** Launch a completely isolated disposable practice stack (`1-click` from inside **Guided Walkthrough** or **Help (`?`)** when `enable-ui-bridge` is active on Ubuntu, or via `oscar.sh` / `oscar.bat sandbox start`) to inject simulated radiation alarms and detector faults, upload practice `.n42` / `.uff` / `.csv` / `.pmtiles` files, and practice **Split-Pane SensorHub Admin** edits with 100% zero impact on live PostgreSQL, Parquet archives, `config.json`, or physical RPM relays. @@ -31,7 +31,7 @@ A core requirement of radiation portal operations is that training data, practic | Dimension | Operational OSCAR (`compose.yaml`, `:443`) | Ephemeral Training Sandbox (`compose.sandbox.yaml`, `:8444`) | | :--- | :--- | :--- | | **Docker Compose Project** | `oscar` | `oscar-sandbox` | -| **Container Images** | `oscar:3.11.11`, `oscar-postgis:3.11.11`, `nginx-unprivileged:1.30.7-alpine` | Reuses the exact already-installed `3.11.11` images (`0 B` extra image download) | +| **Container Images** | `oscar:3.11.12`, `oscar-postgis:3.11.12`, `nginx-unprivileged:1.30.7-alpine` | Reuses the exact already-installed `3.11.12` images (`0 B` extra image download) | | **PostgreSQL Volume** | `oscar_postgres_data` (persistent, checksummed) | `oscar_sandbox_pg` (disposable, wiped on `stop`/`reset`/TTL) | | **Application State Volume** | `oscar_oscar_state` (persistent `config.json`, Passkeys, journals) | `oscar_sandbox_state` (disposable, wiped on `stop`/`reset`/TTL) | | **Parquet Cold Archive** | Host bind-mount `OSCAR_ARCHIVE_DIR` (`archive.enabled = true`) | **Zero host bind-mounts**; `tmpfs` `/var/lib/oscar/archive` + `archive.enabled = false` (`0` `.parquet` files written) | @@ -46,7 +46,7 @@ A core requirement of radiation portal operations is that training data, practic ### 2.1 Ubuntu Server 24.04 LTS CLI -From the extracted OSCAR 3.11.11 release directory: +From the extracted OSCAR 3.11.12 release directory: ```bash # Launch the isolated sandbox on HTTPS port 8444 (default 120-minute auto-expiry TTL) @@ -67,7 +67,7 @@ sudo bash oscar.sh sandbox stop ### 2.2 Windows 11 + Docker Desktop (WSL 2) CLI -From an Administrator PowerShell or Command Prompt in the OSCAR 3.11.11 release directory: +From an Administrator PowerShell or Command Prompt in the OSCAR 3.11.12 release directory: ```powershell # Launch the isolated sandbox on HTTPS port 8444 diff --git a/docs/UBUNTU_FIELD_SETUP_GUIDE.md b/docs/UBUNTU_FIELD_SETUP_GUIDE.md index ce81030..625e44f 100644 --- a/docs/UBUNTU_FIELD_SETUP_GUIDE.md +++ b/docs/UBUNTU_FIELD_SETUP_GUIDE.md @@ -1,6 +1,6 @@ # Ubuntu 24.04 Field Setup, Hotel-Room Staging & Air-Gapped Bare-Metal Guide -This guide walks step-by-step through setting up an Ubuntu 24.04 LTS server for **OSCAR 3.11.11** from scratch — **even if you have never used Ubuntu Linux or OSCAR before**. +This guide walks step-by-step through setting up an Ubuntu 24.04 LTS server for **OSCAR 3.11.12** from scratch — **even if you have never used Ubuntu Linux or OSCAR before**. It covers all three real-world field deployment scenarios: @@ -28,17 +28,17 @@ Before traveling to a hotel or air-gapped site, prepare a compact **two-drive fi | **Rufus** *(Alternative single-ISO USB flasher for Windows)* | [https://rufus.ie/](https://rufus.ie/) | Download `rufus-p.exe` (Portable). Writes one `.iso` to one USB stick; put the OSCAR `.zip` on a second USB stick. | | **balenaEtcher** *(Alternative USB flasher for macOS / Windows)* | [https://etcher.balena.io/](https://etcher.balena.io/) | Simple 3-click `.iso` USB writer (use a second USB stick for the OSCAR `.zip`). | -### 1.2 Which OSCAR 3.11.11 Release File Should You Put on the USB Stick? +### 1.2 Which OSCAR 3.11.12 Release File Should You Put on the USB Stick? -Download from **[GitHub Releases — `ORNL/oscar` `v3.11.11`](https://github.com/ORNL/oscar/releases/tag/v3.11.11)**: +Download from **[GitHub Releases — `ORNL/oscar` `v3.11.12`](https://github.com/ORNL/oscar/releases/tag/v3.11.12)**: | OSCAR Release Asset | Size | When to Use | | --- | --- | --- | -| **`oscar-3.11.11-autoinstall-usb-creator.zip`** *(Standalone USB Builder — GUI + TUI + CLI)* | `~53 KB` | **Builds a zero-touch Ubuntu 24.04 + OSCAR Autoinstall USB directly on Windows 11 (`create-autoinstall-usb.bat` GUI/TUI/CLI) or Ubuntu (`create-autoinstall-usb.sh` GUI/TUI/CLI)** using `ubuntu-24.04.x-live-server-amd64.iso` and `oscar-3.11.11-ubuntu-x86_64-offline-full.zip` without unpacking the offline bundle first—including optional PBKDF2-hashed initial OSCAR web `admin` password, `lanes.csv` / `config.json` lane pre-configuration, and unattended first-boot OSCAR initialization. | -| **`oscar-3.11.11-ubuntu-x86_64-offline-full.zip`** *(Best all-around field choice)* | `~1.1 GB` | **Works BOTH completely offline on-site AND in a hotel room.** Includes OSCAR 3.11.11, pre-built `oscar`, `oscar-postgis`, and `nginx` Docker images (`offline-images.tar`), *plus* official Ubuntu 24.04 `.deb` installers for Docker Engine, Compose v2, `chrony`, `ethtool`, `nmap`, and `arp-scan`. **Zero hotel Wi-Fi downloads needed!** | -| **`oscar-3.11.11.zip`** *(Connected release)* | `~611 MB` | Smaller download when you know you will run `prepare-host` and `init` over fast internet (for example, in the office or hotel room). | +| **`oscar-3.11.12-autoinstall-usb-creator.zip`** *(Standalone USB Builder — GUI + TUI + CLI)* | `~53 KB` | **Builds a zero-touch Ubuntu 24.04 + OSCAR Autoinstall USB directly on Windows 11 (`create-autoinstall-usb.bat` GUI/TUI/CLI) or Ubuntu (`create-autoinstall-usb.sh` GUI/TUI/CLI)** using `ubuntu-24.04.x-live-server-amd64.iso` and `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` without unpacking the offline bundle first—including optional PBKDF2-hashed initial OSCAR web `admin` password, `lanes.csv` / `config.json` lane pre-configuration, and unattended first-boot OSCAR initialization. | +| **`oscar-3.11.12-ubuntu-x86_64-offline-full.zip`** *(Best all-around field choice)* | `~1.1 GB` | **Works BOTH completely offline on-site AND in a hotel room.** Includes OSCAR 3.11.12, pre-built `oscar`, `oscar-postgis`, and `nginx` Docker images (`offline-images.tar`), *plus* official Ubuntu 24.04 `.deb` installers for Docker Engine, Compose v2, `chrony`, `ethtool`, `nmap`, and `arp-scan`. **Zero hotel Wi-Fi downloads needed!** | +| **`oscar-3.11.12.zip`** *(Connected release)* | `~611 MB` | Smaller download when you know you will run `prepare-host` and `init` over fast internet (for example, in the office or hotel room). | -Also download **`OSCAR-3.11.11-Administrator-Operator-Manual-en.pdf`** and **`OSCAR-3.11.11-SHA256SUMS.txt`** onto the USB stick so you have offline manuals and checksum verification on-site. +Also download **`OSCAR-3.11.12-Administrator-Operator-Manual-en.pdf`** and **`OSCAR-3.11.12-SHA256SUMS.txt`** onto the USB stick so you have offline manuals and checksum verification on-site. > **Captioned Video Walkthrough (`#31`, `67s`):** Watch **[Build an Air-Gapped Ubuntu 24.04 Autoinstall USB Drive (GUI, TUI & CLI)](VIDEO_GUIDES.md#31-bare-metal-autoinstall-usb-creator)** ([MP4](https://github.com/ORNL/oscar-video-guides/blob/main/videos/31-bare-metal-autoinstall-usb-creator.mp4) · [WebVTT](https://github.com/ORNL/oscar-video-guides/blob/main/captions/31-bare-metal-autoinstall-usb-creator.vtt)). @@ -83,7 +83,7 @@ You can install Ubuntu Server 24.04 either **interactively** (5 minutes with key - **Language / Keyboard:** `English` / `US`. - **Install type:** `Ubuntu Server` (default). - **Network connections:** - - *In a hotel room:* Plug in hotel Ethernet (or select your Wi-Fi adapter -> enter hotel Wi-Fi credentials if simple WPA2; if hotel Wi-Fi has a browser captive portal, either install **Ubuntu Desktop 24.04**, tether your phone via USB cable, or use **`oscar-3.11.11-ubuntu-x86_64-offline-full.zip`** so zero internet is needed!). + - *In a hotel room:* Plug in hotel Ethernet (or select your Wi-Fi adapter -> enter hotel Wi-Fi credentials if simple WPA2; if hotel Wi-Fi has a browser captive portal, either install **Ubuntu Desktop 24.04**, tether your phone via USB cable, or use **`oscar-3.11.12-ubuntu-x86_64-offline-full.zip`** so zero internet is needed!). - *On an offline site with no DHCP:* Select **Continue without network** — you do **not** need network during Ubuntu installation! - **Proxy / Mirror:** Leave blank / default (`Done`). - **Guided storage configuration:** Keep `[X] Use an entire disk` and `[X] Set up this disk as an LVM group` -> press `Done`. On the **Storage configuration summary** page, if `ubuntu-lv` says `100.000G` on a larger SSD, select `ubuntu-lv` -> **Edit** -> type the full free size shown (or simply let `sudo bash oscar.sh prepare-host --expand-lvm` expand it later) -> `Done` -> `Continue`. @@ -99,7 +99,7 @@ You can install Ubuntu Server 24.04 either **interactively** (5 minutes with key ### Option 3B — Declarative Zero-Touch Bare-Metal Install + First-Boot Wizard (`create-autoinstall-usb` + `oscar-wizard`) -If you want a **single-stick unattended bare-metal installer** that installs Ubuntu Server 24.04 LTS onto the target server's internal NVMe/SSD (`100%` LVM capacity, never touching USB drives), configures USB-to-NVMe Bulk-Only Transport + No-LPM stability quirks from first boot, unpacks `oscar-3.11.11-ubuntu-x86_64-offline-full.zip` into `/srv/oscar/`, and launches an interactive menu on first login: +If you want a **single-stick unattended bare-metal installer** that installs Ubuntu Server 24.04 LTS onto the target server's internal NVMe/SSD (`100%` LVM capacity, never touching USB drives), configures USB-to-NVMe Bulk-Only Transport + No-LPM stability quirks from first boot, unpacks `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` into `/srv/oscar/`, and launches an interactive menu on first login: 1. **Build the Bare-Metal Autoinstall USB Stick** on either **Windows 11** or **Ubuntu**: - **On Windows 11 (Administrator prompt, zero third-party tools needed):** @@ -110,7 +110,7 @@ If you want a **single-stick unattended bare-metal installer** that installs Ubu ```bash sudo bash oscar.sh create-autoinstall-usb ``` - Select your removable external USB drive (`16 GB+`), point to `ubuntu-24.04.x-live-server-amd64.iso` and `oscar-3.11.11-ubuntu-x86_64-offline-full.zip`, set a strong custom Linux password for `oscaradmin`, and optionally pre-configure the **initial OSCAR web `admin` password** (`14+` chars, hashed in memory via PBKDF2 so zero plaintext ever touches the USB stick), **`lanes.csv` or `config.json`**, and **Auto-initialize OSCAR on first boot** (`-AutoInitOscar` / `--auto-init-oscar`)—so on arrival at the site you only open `https:///`, register site users, and upload `.pmtiles` or the site diagram! You can also supply an extra `seed/` folder containing `site-network.env`, `*.pmtiles`, or `backup-key.txt`. + Select your removable external USB drive (`16 GB+`), point to `ubuntu-24.04.x-live-server-amd64.iso` and `oscar-3.11.12-ubuntu-x86_64-offline-full.zip`, set a strong custom Linux password for `oscaradmin`, and optionally pre-configure the **initial OSCAR web `admin` password** (`14+` chars, hashed in memory via PBKDF2 so zero plaintext ever touches the USB stick), **`lanes.csv` or `config.json`**, and **Auto-initialize OSCAR on first boot** (`-AutoInitOscar` / `--auto-init-oscar`)—so on arrival at the site you only open `https:///`, register site users, and upload `.pmtiles` or the site diagram! You can also supply an extra `seed/` folder containing `site-network.env`, `*.pmtiles`, or `backup-key.txt`. - **Production Bare-Metal Security Hardening (Strongly Recommended):** Because host `sudo` / physical disk access governs break-glass recovery (`sudo bash oscar.sh reset-admin-password`) and persistent volumes, lock down bare-metal autoinstall deployments from minute zero by passing **`--luks-passphrase-file FILE`** (`-LuksPassphraseFile FILE` on Windows) for **LUKS2 Full-Disk Encryption** across 100% of the internal NVMe (optionally enrolling hands-free TPM 2.0 `PCR 0+7` boot unlock afterward via `sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/nvme0n1p3`), **`--require-sudo-password`** (`-RequireSudoPassword`) so `sudo` always requires OS password re-entry (never `NOPASSWD:ALL`), and **`--ssh-key-file ~/.ssh/id_ed25519.pub --ssh-keys-only`** (`-SshKeyFile ... -SshKeysOnly`) to disable SSH password and root logins. After commissioning, lock UEFI Setup with a supervisor password, keep Secure Boot enabled, disable external USB boot priority, store or erase the `CIDATA` installer stick, optionally restrict `22/tcp` via `sudo bash oscar.sh prepare-host --ufw-ssh-cidr ` (or `--ufw-disable-ssh` on local-console-only portals), never add operator accounts to the Linux OS or `docker` group, and verify with `sudo bash oscar.sh host-check --strict`. 2. **Boot the Target Server Offline:** Insert the USB drive, choose it from the UEFI One-Time Boot Menu (`F9`/`F11`/`F12`), and wait ~4 minutes while Ubuntu 24.04 + `/srv/oscar/` install with zero prompts. Remove the installer USB when prompted and press `Enter`. 3. **Interactive First-Boot Provisioning & Recovery Wizard (`sudo oscar-wizard`):** On your first login as `oscaradmin` (or anytime via `sudo oscar-wizard` / `sudo bash oscar.sh wizard`), OSCAR mutes kernel console `printk` noise so `tty1` dialogs stay crisp, runs offline host optimization (Docker Engine, sysctl, UFW, LVM, and USB-NVMe quirks), scans attached USB drives read-only (`-o ro` — zero manual `mount`/`cp`/`umount` commands, automatically skipping EFI `ESP` boot partitions and cleaning up unplugged sticks on `RESCAN`), and lets you pick: @@ -137,12 +137,12 @@ sudo chown "$USER:$USER" /srv/oscar cd /srv/oscar ``` -Copy `oscar-3.11.11-ubuntu-x86_64-offline-full.zip` (or `oscar-3.11.11.zip` if downloading over hotel Wi-Fi) into `/srv/oscar` and extract it: +Copy `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` (or `oscar-3.11.12.zip` if downloading over hotel Wi-Fi) into `/srv/oscar` and extract it: ```bash -unzip oscar-3.11.11-ubuntu-x86_64-offline-full.zip -cd oscar-3.11.11-ubuntu-x86_64-offline-full -# (Or if using the connected zip: unzip oscar-3.11.11.zip && cd oscar-3.11.11) +unzip oscar-3.11.12-ubuntu-x86_64-offline-full.zip +cd oscar-3.11.12-ubuntu-x86_64-offline-full +# (Or if using the connected zip: unzip oscar-3.11.12.zip && cd oscar-3.11.12) ``` ### Step A2 — Run `prepare-host` (Installs Docker, Expands Disk, Disables Sleep & 2 AM Reboots) @@ -152,7 +152,7 @@ sudo bash oscar.sh prepare-host --expand-lvm --configure-ufw ``` What this single command configures automatically: -- Installs official **Docker Engine + Docker Compose v2** (`docker-ce`, using bundled `.deb`s automatically if you extracted `offline-full`, or official APT over hotel internet if you extracted `oscar-3.11.11.zip`). +- Installs official **Docker Engine + Docker Compose v2** (`docker-ce`, using bundled `.deb`s automatically if you extracted `offline-full`, or official APT over hotel internet if you extracted `oscar-3.11.12.zip`). - Expands Ubuntu's `100 GiB` LVM root volume (`--expand-lvm`) so 100% of your NVMe SSD is available. - Configures `/etc/docker/daemon.json` log rotation (`50m` × `5`), masks `sleep`/`suspend`/`hibernate`/lid-close, disables `unattended-upgrades` automatic reboots, tunes RTSP/PostgreSQL kernel socket buffers (`/etc/sysctl.d/90-oscar.conf`), bounds boot network wait to `10s` so offline sites never stall at boot, configures `chrony` offline clock stability, and opens `22/tcp`, `80/tcp`, and `443/tcp` in `ufw`. @@ -206,7 +206,7 @@ When you arrive at the site: 2. Log in at the server keyboard/monitor (or via hotel/laptop link) and activate your staged static IP plan with **one command**: ```bash -cd /srv/oscar/oscar-3.11.11-ubuntu-x86_64-offline-full # (or /srv/oscar/oscar-3.11.11) +cd /srv/oscar/oscar-3.11.12-ubuntu-x86_64-offline-full # (or /srv/oscar/oscar-3.11.12) sudo bash oscar.sh apply-site-network ``` @@ -231,7 +231,7 @@ Follow **[Option 3A](#option-3a--interactive-bare-metal-install-recommended-firs ### 5.2 Copy the OSCAR Offline Bundle Off Your USB Stick -Plug in the USB stick containing **`oscar-3.11.11-ubuntu-x86_64-offline-full.zip`** and run these 4 commands to mount the USB drive and extract the bundle: +Plug in the USB stick containing **`oscar-3.11.12-ubuntu-x86_64-offline-full.zip`** and run these 4 commands to mount the USB drive and extract the bundle: ```bash # 1. List attached disks/USB partitions (look for TYPE="part" on a removable USB drive, e.g. sdb1 or sdc1): @@ -243,11 +243,11 @@ sudo mount -o ro /dev/sdb1 /mnt/usb # 3. Copy and extract the offline bundle onto the server's internal NVMe SSD: sudo chown "$USER:$USER" /srv/oscar -unzip /mnt/usb/oscar-3.11.11-ubuntu-x86_64-offline-full.zip -d /srv/oscar +unzip /mnt/usb/oscar-3.11.12-ubuntu-x86_64-offline-full.zip -d /srv/oscar sudo umount /mnt/usb # 4. Enter the extracted release directory and verify every SHA-256 checksum offline: -cd /srv/oscar/oscar-3.11.11-ubuntu-x86_64-offline-full +cd /srv/oscar/oscar-3.11.12-ubuntu-x86_64-offline-full sudo bash verify-bundle.sh ``` @@ -268,7 +268,7 @@ sudo bash oscar.sh apply-site-network sudo bash oscar.sh init ``` -OSCAR loads `oscar:3.11.11`, `oscar-postgis:3.11.11`, and `nginx/nginx-unprivileged:1.30.7-alpine` directly from `offline-images.tar`, generates your TLS certificate covering the static NIC IPs, initializes PostgreSQL with `data_checksums=on`, and starts all services cleanly offline. +OSCAR loads `oscar:3.11.12`, `oscar-postgis:3.11.12`, and `nginx/nginx-unprivileged:1.30.7-alpine` directly from `offline-images.tar`, generates your TLS certificate covering the static NIC IPs, initializes PostgreSQL with `data_checksums=on`, and starts all services cleanly offline. --- diff --git a/docs/VIDEO_GUIDES.md b/docs/VIDEO_GUIDES.md index 6e7d17f..dda6f9a 100644 --- a/docs/VIDEO_GUIDES.md +++ b/docs/VIDEO_GUIDES.md @@ -1,6 +1,6 @@ -# OSCAR 3.11.11 How-To Video Guides +# OSCAR 3.11.12 How-To Video Guides -Concise, single-task `1920x1080` workflow screen recordings for **OSCAR 3.11.11**, published in [`ORNL/oscar-video-guides`](https://github.com/ORNL/oscar-video-guides) and mounted as a Git submodule at `docs/video-guides` in source checkouts (`git submodule update --init docs/video-guides`). +Concise, single-task `1920x1080` workflow screen recordings for **OSCAR 3.11.12**, published in [`ORNL/oscar-video-guides`](https://github.com/ORNL/oscar-video-guides) and mounted as a Git submodule at `docs/video-guides` in source checkouts (`git submodule update --init docs/video-guides`). Every module starts immediately at `00:00` with the workflow action, runs under 2 minutes, includes embedded MP4 `mov_text` soft subtitles plus standalone WebVTT (`.vtt`) and SubRip (`.srt`) caption tracks, and pairs with a 3-to-4-step sequential reference block below. @@ -16,7 +16,7 @@ Every module starts immediately at `00:00` with the workflow action, runs under > **Interactive HTML5 Player & In-App Contextual Video Assistance:** > - **Source checkouts:** With submodules initialized, open `docs/video-guides/index.html` in any browser to watch all 31 modules with synchronized closed captions enabled by default. -> - **Running OSCAR 3.11.11 deployments (offline-ready):** All 29 MP4 recordings and 4-language (`en`, `es`, `fr`, `el`) WebVTT/SRT captions (`248` subtitle tracks) are bundled directly in the OSCAR web root (`osh-node-oscar/web/video-guides/`) and served over TLS with HTTP byte-range streaming, automatic locale subtitle track selection, and zero idle network load: +> - **Running OSCAR 3.11.12 deployments (offline-ready):** All 29 MP4 recordings and 4-language (`en`, `es`, `fr`, `el`) WebVTT/SRT captions (`248` subtitle tracks) are bundled directly in the OSCAR web root (`osh-node-oscar/web/video-guides/`) and served over TLS with HTTP byte-range streaming, automatic locale subtitle track selection, and zero idle network load: > - **OSCAR Viewer (`Guided Walkthrough` & `?` Help Dialog):** Click `Guided Walkthrough` or `?` on any console page to watch route-matched workflow videos inline with closed captions, trigger per-card/per-glossary video walkthroughs, or open the full local catalog at `/video-guides/index.html`. > - **SensorHub Admin (`/sensorhub/admin`):** Open any supported module's **README** tab (`OSCAR Service`, `Lane Sensor System`, `Rapiscan RPM`, `FFmpeg Video`, or `Durable Daily File Journal`) and expand the collapsed `Video guide (#XX)` disclosures on demand. @@ -65,7 +65,7 @@ Extract a clean OSCAR release archive, initialize administrator credentials and - **Video:** [Watch `01-deployment-init-and-credentials.mp4` (28.5s, 587.7 KiB)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/01-deployment-init-and-credentials.mp4) · [WebVTT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/01-deployment-init-and-credentials.vtt) · [SRT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/01-deployment-init-and-credentials.srt) -1. Extract `oscar-3.11.11.zip` into a clean release directory on Ubuntu Server 24.04 or Windows 11 and change into `oscar-3.11.11/`. +1. Extract `oscar-3.11.12.zip` into a clean release directory on Ubuntu Server 24.04 or Windows 11 and change into `oscar-3.11.12/`. 2. Run `sudo bash oscar.sh init` (or `.\oscar.bat init` on Windows 11) and supply the deployment hostname, IANA timezone, and administrator password (`>= 14` characters). 3. Allow `init` to generate deployment-bound PostgreSQL secrets, TLS gateway certificates, and external `oscar_oscar_state` / `oscar_postgres_data` volumes. 4. Run `sudo bash oscar.sh status` (or `.\oscar.bat status`) to confirm `oscar-gateway`, `oscar`, and `oscar-postgis` report `running (healthy)`. @@ -78,7 +78,7 @@ Verify a pre-upgrade snapshot, copy only .env, secrets/, and tls/ into a newly e - **Video:** [Watch `02-clean-directory-upgrade.mp4` (29.5s, 519.6 KiB)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/02-clean-directory-upgrade.mp4) · [WebVTT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/02-clean-directory-upgrade.vtt) · [SRT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/02-clean-directory-upgrade.srt) 1. When `single` backup mode is enabled, run `sudo bash oscar.sh backup` and `sudo bash oscar.sh backup-verify` from the active release directory before upgrading. -2. Extract the target `oscar-3.11.11.zip` archive into a separate sibling directory — never unzip over an existing release directory. +2. Extract the target `oscar-3.11.12.zip` archive into a separate sibling directory — never unzip over an existing release directory. 3. Copy only `.env`, `secrets/`, and `tls/` (plus `.oscar-volume-adoption` if previously adopted) into the newly extracted directory. 4. Run `sudo bash oscar.sh upgrade` (or `.\oscar.bat upgrade`) and confirm all containers return `healthy` with preserved named volumes and archive roots. @@ -267,7 +267,7 @@ Open Help (?) to browse the localized Operator Quick Guide & Glossary, export th - **Video:** [Watch `18-operator-help-and-support-bundle.mp4` (37.5s, 3333.3 KiB)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/18-operator-help-and-support-bundle.mp4) · [WebVTT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/18-operator-help-and-support-bundle.vtt) · [SRT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/18-operator-help-and-support-bundle.srt) -1. Click the **Help (`?`)** button in the OSCAR Viewer top navigation bar to open the localized **OSCAR 3.11.11 Operator Quick Guide & Glossary** (`en`, `es`, `fr`, `el`). +1. Click the **Help (`?`)** button in the OSCAR Viewer top navigation bar to open the localized **OSCAR 3.11.12 Operator Quick Guide & Glossary** (`en`, `es`, `fr`, `el`). 2. Open **Manual & Video Guides** and click **Export Support Bundle** to merge the 400-event browser Flight Recorder (`client/client-diagnostics.json`) with rolling server logs (`backend/oscar.log`) into `oscar-support-.zip` (automatically falling back to `oscar-client-support-.zip` if the server is offline). 3. When containers are stopped or unreachable over HTTPS, run `sudo bash oscar.sh support-bundle` (Ubuntu) or `.\oscar.bat support-bundle` (Windows) on the host to capture `oscar-host-support-.zip`. 4. Inspect `summary.json`, `client/client-diagnostics.json`, and `redaction-report.json` to review recent errors and confirm automatic `[REDACTED]` credential scrubbing. @@ -364,7 +364,7 @@ Unpack the self-contained Ubuntu 24.04 offline bundle on hotel/office Wi-Fi, ide - **Video:** [Watch `26-ubuntu-hotel-staging-and-airgapped-cutover.mp4` (33.5s, 1007.3 KiB)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/26-ubuntu-hotel-staging-and-airgapped-cutover.mp4) · [WebVTT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/26-ubuntu-hotel-staging-and-airgapped-cutover.vtt) · [SRT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/26-ubuntu-hotel-staging-and-airgapped-cutover.srt) -1. Off-site (hotel or staging bench), extract `oscar-3.11.11-ubuntu-x86_64-offline-full.zip`, verify bundle checksums (`sudo bash verify-bundle.sh`), and run `sudo bash oscar.sh identify-nics --watch` while plugging a patch cord into the target NIC to confirm its Linux interface name (`enp2s0`). +1. Off-site (hotel or staging bench), extract `oscar-3.11.12-ubuntu-x86_64-offline-full.zip`, verify bundle checksums (`sudo bash verify-bundle.sh`), and run `sudo bash oscar.sh identify-nics --watch` while plugging a patch cord into the target NIC to confirm its Linux interface name (`enp2s0`). 2. Stage the portal's static IPv4 configuration safely without touching active Wi-Fi/SSH via `sudo bash oscar.sh stage-site-network --interface enp2s0 --ip 198.51.100.10/24 --gateway 198.51.100.1`. 3. Run `sudo bash oscar.sh prepare-host --offline --expand-lvm` to expand Ubuntu Server's default `100 GiB` LVM logical volume across the full NVMe disk and install offline `.deb` packages, then run `sudo bash oscar.sh init --offline` to load air-gapped container images and initialize credentials. 4. On-site inside the air-gapped portal rack, apply the pre-staged static subnet with `sudo bash oscar.sh apply-site-network` and scan the sensor LAN with `sudo bash oscar.sh discover-devices --interface enp2s0` to verify Rapiscan RPM (`10001–10050`) and RTSP camera (`554`/`8554`) endpoints. @@ -419,11 +419,11 @@ Open Users & Access -> System Update (`/users?tab=update`), discover and SHA-256 ### 31. Build an Air-Gapped Ubuntu 24.04 Autoinstall USB Drive (GUI, TUI & CLI) -Use the compact standalone `oscar-3.11.11-autoinstall-usb-creator.zip` on Windows 11 or Ubuntu—via Desktop GUI, interactive terminal TUI, or scriptable CLI—to combine `ubuntu-24.04-live-server-amd64.iso`, `oscar-3.11.11-ubuntu-x86_64-offline-full.zip`, a PBKDF2-hashed initial OSCAR web `admin` password, and pre-configured site lanes (`lanes.csv` / `config.json`) onto a turnkey UEFI Secure-Boot USB installer. +Use the compact standalone `oscar-3.11.12-autoinstall-usb-creator.zip` on Windows 11 or Ubuntu—via Desktop GUI, interactive terminal TUI, or scriptable CLI—to combine `ubuntu-24.04-live-server-amd64.iso`, `oscar-3.11.12-ubuntu-x86_64-offline-full.zip`, a PBKDF2-hashed initial OSCAR web `admin` password, and pre-configured site lanes (`lanes.csv` / `config.json`) onto a turnkey UEFI Secure-Boot USB installer. - **Video:** [Watch `31-bare-metal-autoinstall-usb-creator.mp4` (67s, 1739.4 KiB)](https://github.com/ORNL/oscar-video-guides/blob/main/videos/31-bare-metal-autoinstall-usb-creator.mp4) · [WebVTT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/31-bare-metal-autoinstall-usb-creator.vtt) · [SRT Captions](https://github.com/ORNL/oscar-video-guides/blob/main/captions/31-bare-metal-autoinstall-usb-creator.srt) -1. Download the compact standalone `oscar-3.11.11-autoinstall-usb-creator.zip` alongside `ubuntu-24.04.5-live-server-amd64.iso` and `oscar-3.11.11-ubuntu-x86_64-offline-full.zip` without unpacking the offline bundle. +1. Download the compact standalone `oscar-3.11.12-autoinstall-usb-creator.zip` alongside `ubuntu-24.04.5-live-server-amd64.iso` and `oscar-3.11.12-ubuntu-x86_64-offline-full.zip` without unpacking the offline bundle. 2. Launch the Desktop GUI (`create-autoinstall-usb.bat` on Windows 11 or `sudo bash create-autoinstall-usb.sh --gui` on Ubuntu) to pick a removable USB drive while internal NVMe OS and `OSCAR_BACKUP` disks stay hidden. 3. Set the server hostname, Linux admin password (`$6$` SHA-512), optional LUKS2 encryption, initial OSCAR web `admin` password (PBKDF2-hashed), and `lanes.csv` with `Auto-initialize OSCAR on first boot`, then type `ERASE-USB` to build. 4. Use the interactive terminal TUI (`-Tui` / `--tui`) or non-interactive CLI flags (`--oscar-admin-password-file`, `--lanes-file`, `--auto-init-oscar`, `--confirm ERASE-USB`) so on site you only register users and upload `.pmtiles` or the site diagram. diff --git a/docs/video-guides b/docs/video-guides index da296bf..dd37dbb 160000 --- a/docs/video-guides +++ b/docs/video-guides @@ -1 +1 @@ -Subproject commit da296bf01edea538cc6659b8c42a2ccaa927a276 +Subproject commit dd37dbbf4a57f2b3963d78b4a776100db0703c4d diff --git a/include/osh-addons b/include/osh-addons index 06cb281..9212d7b 160000 --- a/include/osh-addons +++ b/include/osh-addons @@ -1 +1 @@ -Subproject commit 06cb281312c5ab5feaf89a6e5609a25c75269cb4 +Subproject commit 9212d7bf2dea81d1b78bf62c2ff95ab336402e7d diff --git a/include/osh-core b/include/osh-core index 84d6769..8a99b36 160000 --- a/include/osh-core +++ b/include/osh-core @@ -1 +1 @@ -Subproject commit 84d6769f924af3ac8ddd0397fe6e296970c707bd +Subproject commit 8a99b36b79d351144f1acc6205ecf970ac636434 diff --git a/include/osh-oakridge-modules b/include/osh-oakridge-modules index acc1580..c20eaf9 160000 --- a/include/osh-oakridge-modules +++ b/include/osh-oakridge-modules @@ -1 +1 @@ -Subproject commit acc15804f8f341e46e0b74b732a7ce3d688e8492 +Subproject commit c20eaf9577153f4db5f5cd347765406bff71b245 diff --git a/web/oscar-viewer b/web/oscar-viewer index 95d7b5d..f3f9fa9 160000 --- a/web/oscar-viewer +++ b/web/oscar-viewer @@ -1 +1 @@ -Subproject commit 95d7b5dc857ecc5d61d19426e3e6f7a4577de3c5 +Subproject commit f3f9fa909d69a5c787768752cff7875efd3b5703 From dbed5190e1b66d06721a62d3e63ebb28aaa57df6 Mon Sep 17 00:00:00 2001 From: tyronechrisharris <142608718+tyronechrisharris@users.noreply.github.com> Date: Tue, 24 Nov 2026 11:34:21 -0500 Subject: [PATCH 2/2] chore(v3.11.12): pin merged upstream submodule commits on main/OSCAR --- docs/video-guides | 2 +- include/osh-addons | 2 +- include/osh-core | 2 +- include/osh-oakridge-modules | 2 +- web/oscar-viewer | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/video-guides b/docs/video-guides index dd37dbb..cb059a0 160000 --- a/docs/video-guides +++ b/docs/video-guides @@ -1 +1 @@ -Subproject commit dd37dbbf4a57f2b3963d78b4a776100db0703c4d +Subproject commit cb059a0671eb3b7728f609eacacda13507f1e57b diff --git a/include/osh-addons b/include/osh-addons index 9212d7b..1afd1f1 160000 --- a/include/osh-addons +++ b/include/osh-addons @@ -1 +1 @@ -Subproject commit 9212d7bf2dea81d1b78bf62c2ff95ab336402e7d +Subproject commit 1afd1f1717082cdd7c066440860be06daf2571c4 diff --git a/include/osh-core b/include/osh-core index 8a99b36..68a2470 160000 --- a/include/osh-core +++ b/include/osh-core @@ -1 +1 @@ -Subproject commit 8a99b36b79d351144f1acc6205ecf970ac636434 +Subproject commit 68a24700f12f3e0243fd98d5c27c3f25f56ce047 diff --git a/include/osh-oakridge-modules b/include/osh-oakridge-modules index c20eaf9..b89864c 160000 --- a/include/osh-oakridge-modules +++ b/include/osh-oakridge-modules @@ -1 +1 @@ -Subproject commit c20eaf9577153f4db5f5cd347765406bff71b245 +Subproject commit b89864c17be7a4a75d9a344e7d170a623a057134 diff --git a/web/oscar-viewer b/web/oscar-viewer index f3f9fa9..354fdb9 160000 --- a/web/oscar-viewer +++ b/web/oscar-viewer @@ -1 +1 @@ -Subproject commit f3f9fa909d69a5c787768752cff7875efd3b5703 +Subproject commit 354fdb98edf6711aab58434b489505a8d11c084d