Skip to content

Demonstrator: lose bearings during ownship turns and 120 s after - #63

Merged
IanMayo merged 2 commits into
mainfrom
claude/awesome-einstein-g09d2y
Nov 22, 2026
Merged

IanMayo merged 2 commits into
mainfrom
claude/awesome-einstein-g09d2y

Conversation

@IanMayo

@IanMayo IanMayo commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Owner 2026-11-22: bearings are lost during a turn and for two minutes after it ends. The demonstrator now masks them by default.

What changed

  • DemoScenario.turn_loss_s sets the tail after each ownship course turn (default 120 s; null keeps every bearing). Scenarios saved earlier take the default. A checkbox and a seconds box sit beside the interval control.
  • TmaProblem.bearing_valid (schema 0.40.0; main's demo follow-up took 0.39.0): lost bearings keep their rows and are flagged 0. That keeps the time grids regular, which the learned model and C need. Least squares, the physics layer, C, the arctan splitters and the learned model's inputs (bearing features zeroed, frame from the first valid bearing, smoothed bearing interpolated over gaps, as in Python's frame.features and smoothed_bearing) all skip the lost rows. The bound and the residuals skip them too. The plot and bearings chart hide them, and the chart shades the lost intervals.
  • The noise is still drawn for every row, so the bearings that are kept are unchanged.

Choices (owner may overrule)

  • "A turn" is read as an ownship course change. A target turn is not seen by the array, and an ownship speed change is not masked.
  • Spec 035's golden problems (demo_problems.mjs) and spec 036's readings and figures scripts pin turn_loss_s: null, so their digests and records still reproduce.

Observed (one draw, not a result)

On the good-geometry preset, 120 of 1,429 bearings are lost. With the loss on, joined legs on the two-turn preset seed 1 places the first target turn at 50 min instead of 46.5, outside the 120 s match. Seeds 2, 3 and 5 still find both turns. Spec 036's test for that case runs with the loss off.

Checks (after merging main)

  • node --test demo_node.mjs: 28/28, including three new tests: the masking intervals, least squares with the flag equals least squares on the received rows only, and the learned model's inputs for a lost row.
  • demo_page.mjs in Chromium: 30/30, including a new one for the control.
  • gen_types --check, demo_schema --check, ruff, mypy and the schema-version tests are clean; CI green.

Record: a dated paragraph on site/blog/2026-11-21-leg-splitters-kickoff.md and a line in AGENTS.md.

…er 2026-11-22)

DemoScenario.turn_loss_s (default 120 s; null keeps every bearing) and
TmaProblem.bearing_valid (schema 0.39.0). Lost rows keep their place so
solver and splitter grids stay regular; least squares, the physics layer,
C, the arctan splitters and the learned model's inputs skip them; the plot,
bearings chart and residuals hide them; a checkbox turns the loss off.
Spec 035 golden problems and spec 036 readings pin turn_loss_s null.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaifx4M4ukjZYeFJ21Y
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Preview: https://debrief.github.io/gitma2/pr/63/

Posts added or changed in this PR:

Built from 7954aac · all previews: https://debrief.github.io/gitma2/previews

Rebuilt on every push to this PR and kept after it closes. GitHub Pages can take a minute or two to update.

Main's demo follow-up took schema 0.39.0; this branch's turn_loss_s and
bearing_valid are now 0.40.0. AGENTS.md and the kickoff post keep both
entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaifx4M4ukjZYeFJ21Y
@IanMayo
IanMayo merged commit 5b74554 into main Nov 22, 2026
13 checks passed
@IanMayo
IanMayo deleted the claude/awesome-einstein-g09d2y branch November 22, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants