Skip to content

fix: render fleet panes to drawn geometry - #55

Merged
levelupself merged 3 commits into
mainfrom
fm/fleet-pane-drawn-geometry
Aug 16, 2026
Merged

levelupself merged 3 commits into
mainfrom
fm/fleet-pane-drawn-geometry

Conversation

@levelupself

Copy link
Copy Markdown
Owner

Intent

Correct the captain-visible fleet-panel corruption caused by Herdr pane pty dimensions diverging from panes drawn rectangles. Implement the contained Firstmate workaround so the cockpit obtains authoritative drawn columns and lines for every fleet pane and the painter renders to those dimensions on every redraw and after layout changes, while preserving configured narrow side-by-side layouts. Treat the two-painter hypothesis and a Firstmate painting regression as disconfirmed. Add a red-first executable regression through a public interface that creates a pty-versus-drawn-rectangle mismatch and proves the rendered frame remains within drawn geometry, and cover the overflow-summary row so it is width-clipped and cannot wrap and scroll a correctly sized frame. Use the real visual-path counterfactual established by the diagnosis, review all supported runtime-backend integration surfaces for applicability, keep one contract owner, follow repository shell and Markdown style, run repository lint, and update maintained verification evidence only where the active guarantee requires it. State in the PR body that this is a workaround for separately tracked upstream Herdr pty-sizing defect herdr-pty-drawn-geometry-sync, not the permanent source fix. Pipeline-authored risk rationales, fix summaries, and PR bodies must use role-neutral prose with no second person and no captain, user, firstmate, or crewmate role nouns; this constraint does not apply to product code, prompts, or user-facing copy.

What Changed

  • Render each Herdr fleet pane using authoritative drawn columns and lines on every redraw, including after layout changes, while preserving narrow side-by-side layouts.
  • Width-clip overflow summaries so fitted frames cannot wrap and scroll beyond the drawn pane geometry.
  • Add regression coverage for pty-versus-drawn-rectangle mismatches. This is a workaround for the separately tracked upstream Herdr pty-sizing defect herdr-pty-drawn-geometry-sync, not the permanent source fix.

Risk Assessment

✅ Low: The change is well-bounded and source evidence shows the Herdr-specific painter re-reads authoritative drawn geometry on every redraw, clips rendered rows and overflow summaries to that geometry, preserves existing backend behavior elsewhere, and adds executable public-interface regression coverage for the diagnosed mismatch.

Testing

Change inspection, a real tmux pty-versus-drawn-rectangle mismatch, per-redraw geometry refresh, narrow overflow-summary clipping, short-pane preservation, and Herdr cockpit launch integration all passed; rendered HTML captures demonstrate the bounded end-user frames, with no transient worktree artifacts left behind.

Evidence: Rendered 14×4 geometry redraw
<!doctype html><meta charset="utf-8"><title>Fleet frame after drawn geometry narrows to 14 columns by 4 lines</title><style>body{background:#111;color:#eee;font:20px/1.25 monospace;padding:2rem}pre{display:inline-block;background:#000;border:1px solid #555;padding:1rem}</style><h1>Fleet frame after drawn geometry narrows to 14 columns by 4 lines</h1><pre>IN FLIGHT (8)
• demo1 · sta…
• demo2 · sta…
… 6 more rows…</pre>
Evidence: Rendered clipped overflow summary
<!doctype html><meta charset="utf-8"><title>Fleet frame with width-clipped overflow summary</title><style>body{background:#111;color:#eee;font:20px/1.25 monospace;padding:2rem}pre{display:inline-block;background:#000;border:1px solid #555;padding:1rem}</style><h1>Fleet frame with width-clipped overflow summary</h1><pre>IN FLIGHT (8)
• demo1 · state unav…
• demo2 · state unav…
• demo3 · state unav…
• demo4 · state unav…
• demo5 · state unav…
• demo6 · state unav…
… 2 more rows not sh…</pre>

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Inspected git diff 098be72164480652565a48d3a1e7d423453b880b..80e21bb28e8b8d174848cc24d36187bbd607ddb4 to map the acceptance criteria to executable paths.
  • FM_TEST_EVIDENCE_DIR=/tmp/no-mistakes-evidence/01M046NPDJ6JCYHBM08QKJ6NYK bash tests/fm-fleet-view-pane-fit-smoke.test.sh
  • bash tests/fm-cockpit.test.sh
  • Inspected both generated HTML artifacts to confirm they contain the actual captured terminal frames bounded to 14×4 and 21×8 drawn geometry.
  • git status --short and evidence-directory inspection confirmed only intentional test changes remain and evidence is confined to the designated directory.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@levelupself
levelupself merged commit 1977b81 into main Aug 16, 2026
14 checks passed
levelupself pushed a commit that referenced this pull request Aug 16, 2026
origin/main advanced by two commits while this branch waited on a merge
decision: #55 (render fleet panes to drawn geometry) and #57 (require local
suite evidence when CI is unavailable). The opencode primacy-probe fix (#54)
was already an ancestor of this branch.

One conflict, in bin/fm-brief.sh, and it lands on a file this branch had
already resolved once. #57 replaces the literal no-mistakes deliverable
sentence with a $READY_DELIVERABLE variable selected by whether the repository
can demonstrate a working CI check gate. The incoming variable is kept, because
that feature is the point of #57 - but both of its definitions reintroduced
"This project ships", silently reverting the per-task noun this branch had
unified across the direct-PR, local-only and no-mistakes blocks. The noun is
re-applied to both definitions, so the generated brief stays internally
consistent.

The other four files touched by the incoming work had also been resolved once
on this branch (AGENTS.md, bin/backends/herdr.sh, docs/herdr-backend.md,
tests/fm-brief.test.sh). Each auto-merged, and each round-one decision was
re-verified as still present rather than assumed.
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