Commit Graph
78 Commits
Author SHA1 Message Date
Claude a531db7ae4 Boat ESM library sorted by fit (1.3.25)
Library candidates are graded good/fair/poor by how the measurement sits
in the published frequency and PRF ranges and whether the modulation
matches, listed best grade first and by key within a grade; uConsole and
browser show the grade.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:51:32 +00:00
Claude 1a5462e4d2 Merge main; release 1.3.24
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:36:09 +00:00
Claude 7fc3fac809 Merge main into the overlay branch; release 1.3.23
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 12:27:30 +00:00
Claude 3819b9ce90 Merge main into the overlay branch; release 1.3.22
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 12:26:46 +00:00
Claude 8d99f2b4d0 Merge main (overlay 1.3.21); stream fix becomes 1.3.22
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XUBGQzKG1jnToU9vYPfwo
2026-09-28 12:23:22 +00:00
Claude 28cdbe6c03 Boat atmosphere: hull creaks, heard detonations, red light in silent running (1.3.22)
The crewed boat hears its hull creak deep down and crack when it fails,
hears detonations close aboard or far off (logged with a bearing), and
rigs its uConsole and browser screens for red light in silent running.
The boat's browsers get its own cues; the SAR alarm cue is now known to
the browser.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:19:22 +00:00
Claude 0df8cef5b8 Merge remote-tracking branch 'origin/main' into overlays 2026-09-28 12:07:47 +00:00
Claude e127c27b10 Draw every overlay over the start screen's night scene
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 12:07:46 +00:00
Claude a683a2661f Crewed boat may dive below test depth at the risk of hull failures (1.3.21)
Below test depth bolts shear, seals fail and the pressure hull cracks,
more often and worse the deeper the boat goes; crush depth collapses it.
Depth ladders mark the crush depth and a red alarm shows the overdepth.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:02:15 +00:00
Claude 3989b85b12 Merge main (attack computer 1.3.20); stream fix becomes 1.3.21
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XUBGQzKG1jnToU9vYPfwo
2026-09-28 11:54:58 +00:00
Claude 213016dbe3 Stabilize the flaky audio/sonar websocket and browser tests (1.3.19)
- Server: a reconnecting client supersedes its own idle audio or sonar
  stream instead of getting 409 stream_exists while the old worker has not
  yet noticed the dead socket (root cause of the flaky
  test_audio_websocket_resumes_behind_the_browser_cursor). Regression tests
  fail on the old code.
- Web client: a push-woken poll clears the pending poll timer, so a healthy
  push no longer adds a /state request per pushed state.
- Browser tests for live audio and the state push run in real time
  (RealTimeHost: wall-clock sim steps via Game._frame_dt, DevTools reads
  off-thread) instead of fixed steps or --virtual-time-budget.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XUBGQzKG1jnToU9vYPfwo
2026-09-28 11:41:50 +00:00
Claude 67230c6035 Add the periscope attack computer (1.3.19, save v24)
Every stadimeter reading becomes a mark; a straight-line fit through two
or more marks a minute apart gives the target's course and speed, the lead
angle and the running time. Ctrl+Enter on the periscope page (browser:
Fire on solution) fires on the intercept course, and a shot at a marked
sonar contact uses the solution too. The marks are saved in
crew.orders.tdc, so saves move to v24.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 11:33:56 +00:00
Claude 5456182ee8 Add boat mission 7: convoy attack (1.3.15)
The frigate escorts four merchants; the crewed submarine wins by sinking
two. Only the crewed boat's torpedoes take a merchant, the AI frigate
keeps station ahead of the convoy and prosecutes contacts near it only.
The convoy is remembered in mission_units, so saves stay v23.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 10:29:52 +00:00
Claude c7ac6abb94 Boat missions: breakthrough and reconnaissance (1.3.14)
Scenarios 5 and 6 give the submarine the objective. Breakthrough: reach a
goal area about 10 NM beyond the frigate's patrol position (derived from the
saved boat start, no new save state). Reconnaissance: radio a situation
report while the frigate is among the periscope sightings. The frigate wins
by sinking the boat or holding out to the time limit. The boat's orders show
over its chart (goal marked) and as the browser's boat mission line.

Manual EN/DE, changelog, README, shortcut sheet and manual PDFs updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 10:19:44 +00:00
Claude 88f5132f22 Support link, guides brought up to date (1.3.8)
Support: a QR code of buymeacoffee.com/zquu1xu570 in the uConsole main
menu (src/ui/support.py, rows generated offline by
tools/gen_support_qr.py), a small link on the Remote Crew pairing, lobby
and settings screens and the web-host admin page (never inside
#operations), .github/FUNDING.yml and a badge and Support section in both
READMEs.

Guides: the reference chapter lists 31 kn, VDS +/-4 deg and a VDS glossary
entry and how a solo browser picks the submarine; the READMEs list the VDS
keys and the mission editor's actual runtime subset (the DE README gets its
missing 1.3.1 paragraph and current versions); the co-op, protocol and
web-host guides cover the solo side choice, the seven submarine roles,
sonar_set_vds_depth and the admin shutdown; help strings say submarine
crew 1-7 and that a lowered VDS listens in parallel. Manual, shortcuts and
manual PDFs regenerated. Saves stay v23.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 09:08:13 +00:00
Claude 8c7fb95f4b F-217 at 31 kn, web admin "End game now" (1.3.7)
The frigate's top speed (FLANK) is its real 31 kn. The brake power is
scaled so drag, acceleration and turning up to 25 kn are unchanged; own
noise and wake keep their 1.0.0 scale below 25 kn and only grow further
up to 31 kn. The Nixie's cable still parts above 25 kn.

The web-host admin page gets an "End game now" card: after a confirmation
the main thread ends the game process after a short grace period, so a
web-hosted game does not keep running in the background.

Manual, station shortcuts and manual PDFs regenerated. Saves stay v23.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 08:47:34 +00:00
Claude b813115069 Start screen, animated silhouettes, web solo side choice (1.3.6)
The start screen becomes an animated night hunt: the frigate F-217 with
turning radar, funnel smoke, bow wave and towed array, the helicopter with
its dipping sonar, and a submarine below the layer that lights up when the
hull sonar pulse reaches it; the title carries "by Dominik Bornhäußer" and
the version. The same scene, dimmed, lies behind the main menu. A shared
silhouette library (src/ui/silhouettes.py) draws detailed class profiles
that pitch, turn radar and rotors and trail a wake; the periscope and the
bridge binoculars use it. In Remote Crew solo mode the New Game dialog now
picks the side (frigate or submarine). Station shortcuts, manual PDFs and
the contact-analysis images are regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 08:10:28 +00:00
Claude 747feff0fd Sonar: variable-depth sonar (VDS) as a third array (1.3.4, save v23)
The frigate gets a towed body that is lowered and recovered with Shift+Y
(3-15 kn, sea state up to 5, lost above 24 kn) and set to 20-300 m with
U/V while it is the selected array. It listens and pings from its own
depth, so below the layer it gains the deep bonus the hull array lacks,
and fusion takes the better of hull and VDS as the unambiguous reference
for the towed array's side. Remote Crew sonar gets the deploy button, the
depth form and the VDS array option. Saves move to v23 for the VDS state;
calibration stays 77/77.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 07:15:23 +00:00
Claude 9f6264940d Web client: paint waterfalls in an OffscreenCanvas worker (1.3.3)
Heatmap rasters (LOFAR/BTR/DEMON waterfalls) are packed into typed-array
jobs and painted by a module worker into an OffscreenCanvas, which hands
back an ImageBitmap. The main thread keeps drawing the previous bitmap at
its anchor until the new one arrives, keeps one job in flight per plot and
falls back to the shared synchronous painter when Worker/OffscreenCanvas
is missing or the worker fails. Headless Chrome stays on the synchronous
path unless opted in, because workers stall its virtual time.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 06:49:07 +00:00
Claude 5c8c191aea Radio room for the crewed boat, aircraft radars in the boat ESM (1.3.1)
- New seventh boat station uboot_radio (uConsole key 7, browser role):
  HQ broadcast every 10 min with a contact report on the frigate, copied
  with the mast up at periscope depth; situation reports go out on HF for
  20 s and can be borne by the frigate's HF/DF; radio log saved.
- Catalog emitters for the helicopter and patrol-aircraft search radars;
  the boat's ESM hears them (helicopter airborne and not dipping, MPA with
  its radar on).
- Save format v22 (crew.radio), app version 1.3.1; help, manual EN/DE,
  web schema and plan updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 04:54:42 +00:00
Claude dcae316dcb U-boat: threat picture, evasion, boat debrief, speech and lessons
- Counter-detection picture from the boat's own measurements: hull,
  dipping and buoy pings with received level, buoy splashes, torpedo
  alarms; Threat page (Command 4, Navigation 2), browser card, chart rays.
- Evasion order (key I, uboot_evade action): stern to the pinger or
  torpedo on the quarter, layer crossing, silent running or decoy.
- Boat debrief (own track, frigate truth, pings taken, spans the frigate
  held the boat), boat outcomes (won, escaped, survived, trained, lost).
- Spoken crew reports from the boat's log when the uConsole plays it.
- Two boat training lessons with a scripted pinging frigate.
- Fix stale browser session fixtures (callouts, mpa, crew).

Save stays exact v21; all new boat state is transient.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 21:05:00 +00:00
Claude b7c5697112 Add spoken crew reports on the uConsole (espeak-ng) and in Remote Crew browsers
Important feed events (torpedo in the water, new contact, breaking-up
noises, torpedo away, hit, action stations, patrol aircraft on station,
mission result) become transient callouts with bearings spoken digit by
digit. The uConsole speaks through an installed espeak-ng behind a new
option (off by default, silent without espeak); browsers get the
callouts in the common audio block and speak them with SpeechSynthesis
in their own language behind a per-viewer switch. Frigate roles only.

Also moves the main-menu test indices past the new Training and
Campaign entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 20:03:15 +00:00
Claude 631a284f9e Add the on-call maritime patrol aircraft (OPZ page 3)
A patrol aircraft from the nearest friendly airfield: the OPZ requests it,
sets its search area (selected track or chart click), plans buoy patterns,
drops buoys, switches its surface-search radar and releases a torpedo on the
designated contact. It reports only by datalink: RADAR-MPA tracks and its
buoys while it relays them. Remote Crew OPZ gets the same orders; save v21
adds the aircraft and each buoy's owner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 19:20:17 +00:00
Claude c1946eb75f Add crew watches, fatigue, action stations and morale
Frigate and crewed boat stand three watches relieved every hour of game
time. Action stations make the crew more alert but tire everybody;
morale moves with kills, damage and HQ tasks. The crew's performance
raises the sonar recognition threshold, needs more lookout/periscope
contrast and slows damage-control work. A fresh crew is exactly the
calibrated crew (77/77 metrics unchanged). Damage page 3, Bridge G,
boat keys B/M, Remote Crew cards and orders, save v21 "watch" and
crew.watch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 17:20:08 +00:00
Claude de0a9e7497 Add HQ radio tasks: distress calls, identification, datums, replenishment, EMCON
HQ offers up to six tasks per built-in mission over the teletype. The
radio room (and the Remote Crew radio station) accepts or declines them;
accepted positions are plotted on every chart. Tasks progress on the
slow simulation cadence with detrand draws, are scored at mission end
and are saved in the new save v21 root field "tasking".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 16:51:35 +00:00
Claude 3d7df84681 Crewed boat: damage control with compartments and two teams (stage D)
Six compartments with depth-dependent leaks, spill through open
bulkheads, fire, chlorine gas from a flooded battery and power loss; two
damage-control teams seal, pump and fight fire; shut bulkheads contain
water, fire and gas. Floodwater feeds the trim model; flooded, burning or
gassed compartments take out the tubes, masts, diesels or half the speed.
Damage page on the uConsole engine room, damage-control card in the web
station. Save format v20.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 14:58:44 +00:00
Claude 020c7c95aa Crewed boat: ballast tanks, trim and high-pressure air (stage C)
Main ballast, regulating and trim tanks with fill levels; an HP air store
for several blows, refilled while snorkelling; torpedo launches and flooding
shift weight and trim, pumps are audible. Tanks page on the uConsole engine
room, cross-section card in the web station. Save format v19.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 13:41:56 +00:00
Claude bbb3345e9a Boat Mast & ESM station: emitter list, cross-fix, mast warning (stage B)
The crewed boat's mast now intercepts real radar signals through
scan_for_signals with the boat as observer. The crew keeps an emitter
list (fingerprint association, agile hops merged), classifies emitters
against the library, sees the bearing history, a Gauss-Newton cross-fix
from own motion with a 95 % error ellipse, the level trend, a warning
when a radar can see the mast and a recommended mast time from the sea
state. Bearing lines and fixes appear on the boat chart and web map and
can be transferred to the boat plot. Save format v18 (crew.esm).

The uConsole boat contact list shows quality as a percentage instead of
the bare "q0.98".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 12:37:40 +00:00
Claude 1bee8ca91b Boat engine room: energy balance, diesel, charge rate and air stores (save v17)
Stage A of the boat-station plan. Conventional boats now carry diesel
(300 h of generator output, 65 % at start, burned only while the diesels
run), a crew-ordered snorkel charge rate (full / half / air only, with
matching noise and diesel lines) and a modelled atmosphere (O2 down, CO2 up
dived; absorber sets, oxygen candles, airing while snorkelling). Stale or
foul air slows the crew (reload); AI boats manage their air and come up
when it turns foul.

The web engine room gets an Energy & stores card (bars, energy balance,
endurance table by telegraph step, air, orders). The uConsole engine room
gets a second page Stores with R / A / O. Remote Crew actions
uboot_charge_rate, uboot_absorber and uboot_o2_candle (engine room only).
Battery phase and engine telegraph now display translated.

Save format v17 (endurance state version 2); v16 saves are rejected.
Calibration 77/77 unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 11:23:30 +00:00
Claude 27b17839d9 Translate raw state names on the uConsole and in the web client
Engine telegraph orders, the boat's battery phase, sonar fusion states and
TMA geometry were drawn as internal names (HALF, SUBMERGED, NUR BOW, KEINE);
the web showed sonar array, tow state, ROE, tube and weapon states raw, and
the mission editor showed field.placement.* / field.reach.* keys. All now
come from EN/DE catalog entries, with regression tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 11:00:17 +00:00
db9979 1923437503 Merge pull request #10 from db9979/claude/project-thread-00u23h
Sehrohr bei der Führung, Sehrohrfenster im Rahmen, Fernglas der Brücke
2026-09-27 12:11:30 +02:00
db9979 1b6a2c6534 Merge pull request #7 from db9979/claude/project-thread-th8nou
Fix the two failing Remote Crew browser tests
2026-09-27 12:09:38 +02:00
Claude 315acc234f Command raises the mast; periscope fits its box; bridge binoculars over the chart
Command (station 1) may now raise the boat's mast so it can look through
the periscope it already shows (uConsole P and the web periscope card). The
uConsole eyepiece no longer spills over the bottom of its frame. On the
frigate's bridge lookout page, B raises the lookout's binoculars large over
the chart: a 16 degree trainable field (, / . or a click on the all-round
panorama) with the outlines and list of the lookout's own sightings
(display only, not saved).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 10:07:17 +00:00
Claude d94f878662 Frigate hears a foreign ping with a measured bearing; smooth web periscope
The frigate reported a submarine's active ping with its exact bearing to
0.1 degree while the crewed boat's ears are ~2 degrees off. It now uses the
same deterministic error (PING_INTERCEPT_SIGMA_DEG, keyed by the saved
arrival time) and whole degrees. The browser periscope drew only when a
state arrived (2-4 Hz), so horizon and bearing stepped; it now eases
bearing and horizon toward the latest state every animation frame
(display only).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:47:07 +00:00
Claude dfe6ba6e77 web: raise the mast from the periscope card
The browser periscope card said only "Mast down" and had no control, so
the Mast & ESM operator had to find the mast buttons in the card above,
and Command (who sees the periscope but does not own the mast) got no
hint who does. The card now carries the mast pair for Mast & ESM and the
hint names that station.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:29:46 +00:00
Claude bcc51e680d Merge remote-tracking branch 'origin/main' into claude/project-thread-th8nou 2026-09-27 09:29:02 +00:00
Claude 2c34d6da5b Fix the two failing Remote Crew browser tests
- Radio room: an empty DF scope now writes its "no signal" text
  equivalent instead of clearing it (ELOKA already did this).
- Sonar room: the client remembers the focus it last sent, so a quick
  reselection (A, B, A) is no longer dropped against the lagging
  published focus.
- Role-states browser test: instrument the radio scope, log pushed
  states like polled ones, wait one more presence poll per role, guard
  the sonar overview check against a role switch, and read the result
  over DevTools so the run ends when the probe does (about 10 s).
- Submarine sonar audio test: run Chromium in real time and read the
  result over DevTools; virtual time starved the live audio socket.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011qbgcvPr4s2ohpf2qA1zNW
2026-09-27 09:28:02 +00:00
Claude 97964411d7 Weather page: boat block instead of flight weather for the submarine roles
The crewed boat's Remote Crew roles no longer get the frigate's helicopter
flight weather, cloud ceiling or icing. Their weather_station block carries
"boat" instead: mast radar detection range (reference surface radar, mast
RCS, sea clutter, rain, radar horizon) beside the calm-sea value, the range
a ship's lookout sights the surfaced boat in the current light/visibility/sea,
wind and rain ambient noise above the calm reference per sonar band, and the
snorkel limits (6 kn, +12 dB, 50/100 Hz diesel lines). Only environment and
own-boat data are read. The frigate block is unchanged.

The weather allowlists now live in src/commander/v2/schema.py and are
rendered into the browser validator; the browser shows the boat block for
the boat roles. EN/DE catalog keys and the reference manual are updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:05:26 +00:00
db9979andClaude Fable 5.1 8e34068edb Release 1.3.0: version, release notes, closeout verification
Plan 1.3 closeout. APP_VERSION 1.3.0, README EN/DE release paragraph,
AGENTS authority line, station shortcuts regenerated, test expectations
of this run brought up to the current contracts (observer session field,
voice default, transport DOM rule, browser mocks with the new role
fields, convergence zones may be empty), run log and verification log
entries. No build, no push (decision of the run).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 08:54:02 +02:00
db9979andClaude Fable 5.1 1fe8f21182 Remote Crew: observer role, debrief timeline with export, voice on by default
Phase 12 of plan 1.3. The host makes up to two browsers read-only
observers (F9 roster key O, web-host admin): no lease, any station of
either unit viewable through activate with generation 0, every command
rejected, SimLog included, never persisted. The SimLog page shows
observers and the solo host a debrief timeline (snapshot ticks, marks for
own and hostile torpedo launches, own damage, new contacts and losses,
click to scrub) and a JSON export stripped of RNG, credential, token and
settings keys. Voice in the web-host room starts enabled. Docs, manual,
catalogs and tests updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:46:46 +02:00
db9979andClaude Fable 5.1 952c4a35d4 Web client: state push over WebSocket, generated schema allowlists, chart culling probe
Phase 11 of plan 1.3. /ws/v2/state pushes the active role's projection
(same bytes as GET /api/v2/state, at most 4 Hz, heartbeat 2 s, latest
state only) with the sonar stream's Origin/cookie/subprotocol rules; the
browser consumes pushed states in its poll loop, keeps polling presence,
chart and feeds on a slow cadence, falls back to full polling after two
missed heartbeats and retries every 10 s. src/commander/v2/schema.py is
the single allowlist rendered into schema.js by tools/gen_web_schema.py
(--check in CI). The browser chart culls tracks in world coordinates
before transforming and exposes a frame-time probe. OffscreenCanvas is
deferred (documented in docs/resume.md).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:28:49 +02:00
db9979andClaude Fable 5.1 9351393a94 Graphics: anti-aliased chart lines option, chart light of the hour, weather hatch, shared horizon
Phase 10 of plan 1.3. Preferences.aa_lines (default off, options page 2)
routes chart and plot primitives through src/ui/lines.py, which uses
pygame.gfxdraw for one-pixel lines and polygon edges when enabled. The
chart water darkens in three stages from the game clock
(atmosphere.daylight_stage, theme.WATER_TINT) on the frigate, boat and
browser charts; rain and storms hatch the chart with dashed diagonals
(display only, both sides). src/ui/horizon.py is the shared horizon
renderer of the periscope and the new binoculars strip on the bridge
lookout page. Manual and catalogs updated; tests/test_graphics_1_3.py.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:14:17 +02:00
db9979andClaude Fable 5.1 07350d6ce8 Crewed submarine: periscope view, visual sightings, stadimeter, diesel snorkel noise
Phase 9 of plan 1.3. Third Command page and second Mast & ESM page show
the periscope (uboot_scope.py): eyepiece with day/night light, haze,
horizon motion from the wave slope, true-bearing scale and crosshair;
arrows train the scope, Enter reads the stadimeter. Sightings come from
the frigate lookout's contrast model at periscope eye height and live in
the crew block (save v15 crew.orders: scope_rel_deg, sightings,
sightings_seen). The stadimeter range becomes a VISUAL fix on the boat's
sonar contact, usable like a ping fix. Snorkelling diesels raise the
radiated level, lower the quiet factor and add 50/100 Hz lines. Web:
scope projection, canvas view, uboot_scope_bearing/uboot_scope_mark
commands and a Chromium contract. Manual, help and catalogs updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 04:53:20 +02:00
db9979andClaude Fable 5.1 60a84224fe Helicopter: sonobuoy patterns and the MAD run
A pattern (2x2 field, barrier across the waypoint bearing, circle; up to
four of the remaining buoys) is a queue of drop points the helicopter flies
one after the other with the ordinary single drop. The MAD run (30 m, 90 kn,
dome stowed) detects a submerged hull within 400 m slant range on a stateless
draw and publishes a MAD position fix without depth or course. Keys X and
Shift+M, browser controls and commands, helo save fields, manual updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 03:19:35 +02:00
db9979andClaude Fable 5.1 ff0cb8ed28 Ship and damage: counter-flooding, longitudinal trim, plant selection
Damage control can counter-flood the high hull side against a list of 5 deg
or more (0.5 %/s, cap 60 %, valve closes below 1 deg); fore/aft floodwater
trims the ship and costs 0.5 kn per degree plus bow-sonar noise bow down.
The engine room selects the plant: AUTO (as before), DIESEL (18 kn, -4 dB,
-10 % fuel) or TURBINE (+3 dB, +25 % fuel). Keys C and G, browser controls
and commands, damage.stability and propulsion.plant_mode projections,
save v15 fields compartments.counterflood and ship.plant_mode. Calibration
77/77 with the AUTO plant.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 03:02:40 +02:00
db9979andClaude Fable 5.1 13506278f5 Weapons: second lightweight torpedo, search patterns, enable point, salvo
frigate_torp_mk2 (55 kn, 8 NM) shares the tubes with Mk1 through a two-magazine
ownship loadout (2:1 split); selecting a type retasks a tube. Each torpedo
carries its terminal search pattern (snake, circle, helix) and seeker enable
point (0.6-3.0 NM); a salvo of two opens a +/-8 deg spread with rotated datums.
Keys W/X/,/./Y, browser settings card and command, weapon_settings save block,
manual and catalogs updated. Calibration 77/77 (defaults reproduce 1.0.0).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 02:19:26 +02:00
db9979andClaude Fable 5.1 ef45a4f8f1 Sonar audio: gapless streams on the uConsole mixer and in Remote Crew browsers
Browsers went silent after any host key press: every input-owner change bumped
the world epoch, the server cleared the audio ring and restarted numbering at
1, and the AudioWorklet dropped every "old" block until the count passed its
last sequence. Numbering is now monotonic per role for the server lifetime; a
cleared ring and a retuned receiver skip one number so browsers crossfade,
reconnects resume with ?after=<sequence>, duplicates are counted, and the audio
socket tolerates a six-second send stall.

Buffers sized for the 16 GB device: local lead 1.5 s with a 5 s queue, browser
lead 2 s with a 6 s maximum, refill 1 s, stale 3 s, SIM_CATCHUP_MAX_S 2.5 s
(queue >= lead + catch-up + block, pinned by a test), SDL mixer buffer 2048
samples. Remote Crew publication no longer spikes the main thread: sonar history
rows are cached per station with identical results, role states are shallow
copies, the compact sonar state is built from the dict, the roster is read at
4 Hz. New counters (mixer channel idle, late pump iterations, input gaps,
per-phase frame times, server stream stats) and tools/audio_soak.py, which runs
the game headless with simulated browsers or as a Wi-Fi client and reports
stream continuity. Docs, manual and install guide updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 22:17:33 +02:00
db9979andClaude Opus 5.5 4e04c899d0 Submarine stations: depth steps, water column, ESM rose, denser panels
Command and Navigation order periscope, snorkel, above/below the
measured layer (only after the boat's own BT) and deep in one step
(browser buttons, uConsole U/J/H). The browser boat stations get a wide
dock with large readouts, coloured mode and alarm chips, a water-column
graphic, an ESM/alarm bearing rose, explicit raise/lower buttons for
mast and snorkel and a compact two-column layout; the uConsole's Mast &
ESM page gets the rose and the engine room the water column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:41:29 +02:00
db9979andClaude Opus 5.5 9e5d32d0c1 Radar: a raised mast or snorkel is a bare blip the OPZ must mark
A submarine at periscope depth with its mast or snorkel up (crew mast,
snorkelling or at radio depth) returns a tiny, clutter-limited echo to
the surface radar. It shows only as a glowing dot without symbol or
track; clicking it (uConsole or browser OPZ) or pressing B marks it
into a radar track that later echoes update. Blips and marks are
transient; the AI and calibration are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:13:17 +02:00
db9979andClaude Opus 5.5 4d2500fceb Side choice: a new game asks which unit to play; solo can play the boat
The uConsole asks "Which unit do you play?" before every new game
(frigate or hostile submarine, last choice preselected). The browser
lobby first shows the unit, then its stations. A solo browser switches
all its stations to the boat's six (and back) from the host bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:52:15 +02:00