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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <lanes.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).
Expand All @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply from: gradle.oshCoreDir + '/common.gradle'
description = ''

allprojects {
version = "3.11.11"
version = "3.11.12"
}

subprojects {
Expand Down
24 changes: 24 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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**.
Expand Down
Loading
Loading