Skip to content

Spec 035: legs read-out, threshold slider, ownship overlays, target zig at 50 min, classical break scan - #60

Closed
IanMayo wants to merge 8 commits into
mainfrom
claude/practical-mccarthy-8zdaaj
Closed

IanMayo wants to merge 8 commits into
mainfrom
claude/practical-mccarthy-8zdaaj

Conversation

@IanMayo

@IanMayo IanMayo commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What

Five owner requests on the demonstrator, 2026-11-21:

  1. "Have we considered examining the points in the TMA solution and predicting steady legs?"
  2. "Expose the threshold as a slider."
  3. "For the course and speed charts, please add ownship course and speed (blue lines)."
  4. "We're presenting a worst case, when ownship and target turn at the same time ... modify the target zig scenario so that the target zigs at 50 minutes."
  5. A classical yardstick for where a manoeuvre is (chosen from the options offered).
  • tlm-s1-legs, -s2-, -s3-: the learned model's declared spans (spec 016's spans_from_logit, ported to tlm.js), a span ending in the window's last minute dropped, the first four kept, handed to tl-layer.onnx as chord knots with course and speed free. The shape of spec 016's learned-arc read-out, not its figures.
  • Manoeuvre threshold slider (0.05–0.95, learned solvers only, default spec 016's 0.5; DemoScenario.manoeuvre_threshold, in the URL and JSON).
  • Ownship course and speed in blue on the course and speed error charts: a Chart overlay on a scale of its own.
  • Target-turn preset: the target zigs at 50 min, between the ownship's turns at 30 and 60. The three golden files and the slide figures are regenerated.
  • break-scan (breakscan.js, nothing learned): the target holds one speed and changes course at most once, at once (five unknowns). The break time is scanned (every 4 min, then every minute round the best; none within 5 min of the window's ends), each candidate fitted by damped least squares, and the break declared when chi-square falls by more than 3 ln n against one leg; otherwise one leg is returned.
  • Schema 0.38.0: TmaSolution.manoeuvre_start_s / manoeuvre_end_s; manoeuvre_threshold on scenario and problem.
  • Checks: golden spans from Python on the committed logits; the JS span port on golden and hand-made cases; legs velocity changes only inside declared spans; the threshold reaches spans and legs and survives the URL; the break scan finds the preset's turn on three noise draws and declares none on the other four presets, deterministically (Node, 20 tests). The Chromium check selects the legs read-out, moves the slider, runs the break scan and finds the overlay on the course and speed charts only.

What it shows (one preset, three noise draws: a demonstration, not a result)

Solver Declared zig Range RMS error
One leg none 21 to 22%
Learned model, own track none 11 to 17%
Learned model read as legs, threshold 0.5 none 21 to 22%
Learned, legs, threshold 0.1 (seed 3) 30 and 58 to 61 min, both ownship turns 4 to 8%
Break scan 48 to 50 min, 39 to 41° 0.5 to 1.9%
Told the true time (49.3 to 50.6 min, 40°) 0.3 to 0.5%
  • The model's manoeuvre head states 0.00 to 0.02 within three minutes of the true zig on all three training seeds; where seed 3 states anything it is at an ownship turn. The 4 to 8% at a threshold of 0.1 comes from two free breaks either side of the zig absorbing it, not from finding it.
  • The bearings do hold the time of this zig. The physics layer's chord break (four free unknowns, a soft speed prior) leaves it flat from 30 to 65 min; holding speed exactly pins it. An earlier note of mine blamed the number of unknowns alone; the layer's "speed held" option was tested and changes nothing, because it is a soft prior.
  • Limits of the yardstick: it is told the kind of manoeuvre this preset uses, finds no speed change or second manoeuvre, treats a turn as instantaneous, and its threshold is a rule of thumb. The standing time-late system for the general case is ctl (specs 016 to 019), not in the browser.

Review

/code-review at medium on the first two items: seven nits, five taken. Two left, recorded: a slider change re-runs the 26 MB network although only the thresholding depends on it; and the slides deck gains no new slide, the "smaller changes between tasks" rule being applied with dated paragraphs in the kickoff post (the deck's target-turn figures and numbers are regenerated). The overlay, preset and break-scan commits came after that review and have not had one.

Local: Node tests 20/20, Chromium page check all ok, ruff, mypy and the related pytest pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78

Owner 2026-11-21: "predict steady legs" from the learned model's wandering own
track. Spec 016's read-out from the manoeuvre head is now in the demonstrator
beside the own track: tlm-sK-legs ports spans_from_logit to tlm.js (checked
against Python on the golden logits, demo/golden-spans.json), keeps the four
most probable spans and hands them to the physics layer as chords with both
knots free (solveLegs, shared with the oracle). TmaSolution gains
manoeuvre_start_s/end_s (schema 0.38.0); the page shades the declared spans and
states the head's largest probability. On every preset that is 0.19 or less,
so at the 0.5 threshold the read-out is one leg there.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Posts added or changed in this PR:

Built from 90649e4 · 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.

Owner: "expose the threshold as a slider". DemoScenario and TmaProblem gain
manoeuvre_threshold (0.05 to 0.95; spec 016's 0.5 when absent; kept in the
URL). The learned solvers' declared spans and the legs read-out follow it;
the page shows the slider for learned solvers and names the value in its
statement. Node test: lowered to 0.1 on the target-turn preset the head
declares spans and the legs change; the network's statement does not. The
Chromium check moves the slider.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
A declared span ending in the window's last minute is dropped before the
legs fit (its end knot would be undetermined); the own-track solvers no
longer cap declared spans at ten; wording and the schema description say
"the scenario's threshold" rather than 0.5; TmaProblem.manoeuvre_threshold
carries the same bounds as the scenario's; the Chromium check guards a
failed solution.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
…rget-turn preset zigs at 50 min

Owner: blue ownship course and speed on the course and speed error charts (an
overlay on a scale of its own); and the target-turn preset no longer turns at
the same moment as the ownship (60 min): the target zigs at 50 min, between
ownship turns. Golden least squares, the model golden and the golden spans are
regenerated from the new problems; first-leg windows end at 2,900 s.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
Slide figures regenerated by scripts/research/demo_charts.mjs; the slides
post, kickoff post, spec, tasks and AGENTS.md carry the new preset's numbers
and the ownship overlay.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
@IanMayo IanMayo changed the title Spec 035: the learned model read as steady legs Spec 035: the learned model read as steady legs, a threshold slider, ownship overlays, target zig at 50 min Nov 21, 2026
…manoeuvre is

Owner's choice. breakscan.js: the target holds one speed and changes course at
most once, at once (five unknowns); the break time is scanned and each
candidate fitted by damped least squares; declared when chi-square falls by
more than 3 ln n against one leg, else one leg. On the target-turn preset it
declares the turn at 48-50 min (truth 49.3-50.6) with 39-41 degrees and
0.5-1.9% range error; none on the presets without a manoeuvre. Node and
Chromium checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
…ays on screen

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPaj9MahQCJ6Y92q5E78
@IanMayo IanMayo changed the title Spec 035: the learned model read as steady legs, a threshold slider, ownship overlays, target zig at 50 min Spec 035: legs read-out, threshold slider, ownship overlays, target zig at 50 min, classical break scan Nov 21, 2026
@IanMayo IanMayo closed this Nov 22, 2026
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