stability: web+render hardening from the bug hunt (my lanes) + latex legibility #32

Merged
nicolas_naranjo merged 1 commit from integrator/stability into master 2026-10-24 08:39:47 -05:00
Owner

My-lane follow-up to the stability bug hunt (core/api findings filed as #29 for @claude-lane).

Web

  • RunPanel trace windowing (±200 steps) — a large input no longer builds one button per trace char (the 1.5M-step repro froze the tab)
  • Forwarder: 2 MiB body cap (mirrors the api limit; oversized uploads are answered 413 here instead of being fully buffered) + 300s upstream fetch ceiling via AbortSignal.timeout
  • pairId escapes >/\\ — contract-legal names like a>b no longer collide (duplicate edge ids / wrong-state transitions)
  • StateInspector parses edge ids via parsePairId (was hand-splitting on the first >)
  • deleteState clears dangling pendingConnection/selectedEdge (used to wedge the inspector with unknown state)
  • literal ε rejected as an alphabet symbol (display collision with ε-transitions)

Render

  • run_subprocess: stdin write now inside the timeout budget (child that stops reading stdin without exiting used to hang the write forever; regression test with sleep+1MiB stdin)
  • latex: every stroke raised to 1.2pt (dot2tex 0.4pt hairlines vanish at fit-to-width — the invisible-edges report) and the mangled \\$varepsilon\\$ label unescaped back to $\\varepsilon$ math mode

Viewer

  • drag-to-pan on the render preview + zoom ceiling 400% → 800%

Gates: cargo test/clippy/fmt (20 render tests), bun test 22, svelte-check clean, vite build clean. No cross-lane files touched.

My-lane follow-up to the stability bug hunt (core/api findings filed as #29 for @claude-lane). **Web** - RunPanel trace windowing (±200 steps) — a large input no longer builds one button per trace char (the 1.5M-step repro froze the tab) - Forwarder: 2 MiB body cap (mirrors the api limit; oversized uploads are answered 413 here instead of being fully buffered) + 300s upstream fetch ceiling via AbortSignal.timeout - pairId escapes `>`/`\\` — contract-legal names like `a>b` no longer collide (duplicate edge ids / wrong-state transitions) - StateInspector parses edge ids via parsePairId (was hand-splitting on the first `>`) - deleteState clears dangling pendingConnection/selectedEdge (used to wedge the inspector with `unknown state`) - literal ε rejected as an alphabet symbol (display collision with ε-transitions) **Render** - run_subprocess: stdin write now inside the timeout budget (child that stops reading stdin without exiting used to hang the write forever; regression test with sleep+1MiB stdin) - latex: every stroke raised to 1.2pt (dot2tex 0.4pt hairlines vanish at fit-to-width — the invisible-edges report) and the mangled `\\$varepsilon\\$` label unescaped back to `$\\varepsilon$` math mode **Viewer** - drag-to-pan on the render preview + zoom ceiling 400% → 800% Gates: cargo test/clippy/fmt (20 render tests), bun test 22, svelte-check clean, vite build clean. No cross-lane files touched.
stability: web+render hardening from the bug hunt; latex legibility
All checks were successful
ci / web (pull_request) Successful in 33s
ci / rust (pull_request) Successful in 1m58s
ci / image (., deploy/api.Dockerfile, rgxr-api) (pull_request) Has been skipped
ci / image (web, deploy/web.Dockerfile, rgxr-web) (pull_request) Has been skipped
ad2da91a58
Web (bug-hunt findings, refs #29):
- RunPanel: render only a sliding +/-200-step window around the
  current step — a large input previously built one button per trace
  char (1.5M-step run froze the tab)
- forwarder: cap forwarded bodies at 2 MiB (mirrors the api limit;
  a huge upload was fully buffered before the api could reject) and
  put a 300s ceiling on the upstream fetch (AbortSignal.timeout)
- fa.ts: escape '>' and '\' in pairId so contract-legal names like
  'a>b' can't collide (pairId('a>b','c') === pairId('a','b>c'))
- StateInspector: parse edge ids via parsePairId, not indexOf('>')
- editor: deleteState clears dangling pendingConnection/selectedEdge
  (commit used to fail with 'unknown state' until manual discard)
- alphabet: reject the literal ε character as an alphabet symbol
  (indistinguishable from the ε-transition display)

Render:
- run_subprocess: the stdin write now shares the timeout budget with
  the wait — a child that stops reading stdin without exiting could
  hang the write forever (regression test with sleep+1MiB stdin)
- latex pipeline: raise every stroke to 1.2pt (dot2tex's 0.4pt
  hairlines vanish when a wide graph scales down to fit the pane)
  and unescape the mangled \$varepsilon\$ label back to math mode

Viewer:
- drag-to-pan on the render preview + zoom ceiling 400% -> 800%
nicolas_naranjo deleted branch integrator/stability 2026-10-24 08:39:47 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
k8s-services/rgxr!32
No description provided.