Repository navigation
Description
Summary
/assess output fails in two ways, both recurring:
- The formatted output block is silently replaced by a prose summary — no table, no
Commands:block, no annotations, no HTML markers. - When the table is rendered, columns and label gutters are misaligned — because the skill's own examples are misaligned and every rendering copies the drift.
Both defects share one root cause: the model is asked to do deterministic formatting work by hand. The fix is to move rendering into code and leave the model doing judgment (triage verdicts) only.
The template is not damaged. skills/assess/SKILL.md, .claude/skills/assess/SKILL.md, and templates/skills/assess/SKILL.md are md5-identical and still carry the full ## Output Format spec plus a 17-item verification checklist. Nothing was deleted — nothing forces the block to be emitted, and the geometry it should be emitted at is never actually specified.
Evidence
Defect 1 — the output block is skipped
A five-issue batch (assess 804 817 818 819 820) produced:
Steps 1-5 analysis (tool calls)
→ AskUserQuestion "Post these assessments as comments?"
→ "Assessment complete — nothing posted."
→ "TLDR: all five issues are PROCEED ..." (prose paragraph)
No table, no Commands: block, no Order: / ⚠ / Flags:, no <!-- assess:action=... --> markers. All specified; all omitted. Note the question came first — that inversion is the detectable symptom.
Why nothing caught it:
- The Assessment Process is imperative from
### Step 1(skills/assess/SKILL.md:56) through### Step 5(:209), then stops at:234. Rendering lives in## Output Format(:238) — a descriptive section, not a step. Completing Step 5 completes the documented procedure. - The only ordering statement is a subordinate clause 435 lines later, at
## Persist Analysis(:673): "After displaying output, prompt the user to save..." — the weakest possible placement for a mandatory step. ## Output Verification(:776) verifies properties of a table ("Every issue has exactly one action in the table", "Run column uses correct symbol"). All 17 items pass vacuously when no table exists. None assert that it exists.
Defect 2 — misalignment
skills/assess/SKILL.md:244 currently instructs:
"Column widths should adapt to content — do not force a fixed table width."
That requires measuring the longest cell and padding every row to match — the same arithmetic that got box-drawing removed in #494. The prohibition survived for borders; the identical requirement was left in place for columns.
Measured start column of the Run field across every dashboard example (east-asian-width aware):
| Block | Header | Data rows | Distinct offsets |
|---|---|---|---|
:246 (normative template) |
60 | 61, 61 | 2 |
:344 (main batch example) |
53 | 54, 55×6, 56 | 4 |
:394 (ACs-column example) |
54 | 55, 55 | 2 |
:423 |
53 | 55, 55, 55 | 2 |
:444 (13-issue example) |
58 | 60×13 | 2 |
:710 (dashboard-vs-comment) |
53 | 55 | 2 |
Every block has its header offset from its own data rows. The normative template at :246 — the one that must be exact — is off by one. From :345-347, three lines with three different Run columns:
# Action Reason Run
462 PARK Manual measurement task ‖
461 PROCEED Exact label matching spec → exec → qa
Label gutters drift too: the Flags: value column sits at 24 (:264), 34 (:369-371), 24 (:412), and 9 (:720) — four different offsets. Commands: inline comments at 45 (:254) vs 46 (:359-360). Cleanup: is consistent at 39.
Separators are not part of this defect — all 45 are exactly 64 characters.
Examples are the strongest signal in a prompt. Fixing the render gate without fixing geometry yields a dashboard that reliably appears and reliably looks ragged.
Why prompt-level enforcement is the wrong lever
#22 already tried it, and this is its recurrence. "Skill output reliability: validation layers, schemas, and structured logging" (closed COMPLETED 2026-01-08) opens with: "Skills like /solve don't consistently follow their instructions. For example, /solve 12 sometimes omits the sequant run CLI command even though it's specified in the skill." Same failure, same skill lineage (/solve → /assess).
#22 proposed four layers and its validation matrix assigns /assess: Checklist ✓ · Hook ✓ · Schema ✓. Only Layer 1 shipped — the "Output Verification / DO NOT respond until verified" checklist, which is verbatim what sits at :776 today and which did not fire. The hook and schema layers were specified for /assess and never built.
Hardening the checklist again would be applying more Layer 1 to a Layer 1 failure.
Deterministic formatting is a solved problem in this repo — just not with the helpers that look closest. src/lib/cli-ui.ts exposes table(), box(), divider(), and sectionHeader(), but none are usable here (see "Why not the existing terminal UI" below). The reusable piece is the string-width dependency and the precedent set by src/lib/cli-ui/format.ts — a zero-import module of pure deterministic string formatting. The alignment defect persists because the skill hand-draws ASCII rather than calling code of that kind.
Existing anti-pattern to correct. src/lib/assess-collision-detect.ts is cited in the skill (:219) as "the detector lives at… and exposes three pure functions", but the skill never executes it — the model reimplements the logic in-context from prose. (The module is imported by src/lib/workflow/chain-preflight.ts:33, so it is not dead code — it is simply never reached from the skill.) TS-module-as-documentation rather than implementation is the pattern this issue corrects.
Design
Make rendering a tool call rather than text the model writes. A tool call either happened or it did not — observable, and it removes all arithmetic from the model.
Delivery: a CLI subcommand, not a scripts/ shell-out
This distinction determines whether end users get the fix. skills/spec/SKILL.md:78 establishes the constraint:
"Guard: Only run
npx tsxblocks if./src/lib/ac-parser.tsexists (sequant repo). Otherwise, perform all analysis inline by reading the issue text directly."
A scripts/ shell-out therefore works only in this repo — end users fall back to inline and stay broken. A subcommand ships via package.json bin (sequant → dist/bin/cli.js, files: ["dist", ...]) and is present for every sequant user by definition. Assess Step 1 already probes CMD_PREFIX (global sequant vs npx sequant), so this introduces no new user-facing concept.
Flow
Steps 1-5 (unchanged) → build AssessResult JSON
↓
sequant <render-subcommand> <file>
↓ (padding computed, not counted)
aligned dashboard + markers, pasted verbatim
↓
Persist Analysis (unchanged)
Expected output
Produced by a prototype renderer against the five-issue batch that failed, so the alignment below is machine-generated rather than hand-drawn. The Run column start offset is identical across the header and all five rows; long workflow values print in full rather than clipping.
# Action Reason Run
820 PROCEED CI billing-lockout misclassi… spec → exec → qa
819 PROCEED Shared trust-model block spec → security-review → exec → qa
818 PROCEED merge --watch, kills polling… spec → exec → qa
817 PROCEED run --ready-gate spec → exec → qa
804 PROCEED Unblocked — #782 closed spec → exec → qa
──────────────────────────────────────────────────────────────────────────────
Commands:
sequant run 820 819 818 817 804 -Q
──────────────────────────────────────────────────────────────────────────────
Order: 820 → 819 (both edit qa/loop skill files)
Order: 820 → 817 (ready-gate would auto-loop on the CI
misclassification 820 fixes)
⚠ #804 "Blocked by #782" is stale — #782 closed completed
Flags:
-Q 9+ ACs or multi-file scope
--security-review #819 prompt-injection hardening
──────────────────────────────────────────────────────────────────────────────
Cleanup:
gh issue edit 804 --add-label enhancement,cli # no labels
──────────────────────────────────────────────────────────────────────────────
The ACs-column variant renders with the same Run offset, so the two table forms stay visually interchangeable.
Why not the existing terminal UI
sequant run already has a renderer, so reusing it is the obvious first instinct. It is the wrong tool, for reasons worth recording so this is not re-litigated:
Different medium. The run TUI owns a live TTY, repaints in place, and is ephemeral. Assess output is a static artifact: it lands in the chat transcript and is posted to GitHub by the Persist step via gh issue comment, then re-parsed later by src/lib/assess-comment-parser.ts. It must be byte-stable, ANSI-free, and copy-pasteable. log-update repaint is meaningless against captured stdout, and ANSI escapes in a GitHub comment are corruption.
The helpers self-disable off a TTY. From src/lib/cli-ui.ts:
export function box(content, style) {
if (config.jsonMode) return "";
if (!shouldShowDecorative()) return content; // returns UNBOXED content
}
// shouldShowDecorative() === !config.jsonMode && !config.minimal && config.isTTYThe renderer is invoked from a Bash call, so stdout is a pipe and config.isTTY is false. box() would silently return unboxed content and jsonMode would return an empty string — output whose shape depends on invocation context, which is the exact non-determinism this issue removes.
table() is doubly wrong. It injects chalk.cyan.bold() headers and gray borders (ANSI), and delegates to cli-table3, which draws its own | + - bordered grid — not the separator format this issue targets.
The run renderer carries the wrong baggage. src/lib/cli-ui/run-renderer.ts imports chalk and log-update, backed by scrollback-harness.ts and dedicated regression suites for frame stability (run-renderer-624.test.ts) and the in-place phase matrix (run-renderer-672.test.ts). Its corruption history — #624, #647, #655, #672 — is in the same bug class this issue is trying to eliminate.
Conclusion: share the string-width dependency and nothing else. Model the new module on src/lib/cli-ui/format.ts, which has zero imports and is pure deterministic string formatting.
Measured cost
| Value | |
|---|---|
CLI startup, warm (sequant --version ×5) |
0.23–0.24s |
| Typical assess batch run | ~1m45s |
| Renderer overhead | ~0.2% of one run |
## Output Format prompt cost today (:238-653) |
416 lines / 24KB — 48% of the 797-line skill |
Net effect is cheaper per invocation: ~250ms added, most of a 24KB formatting spec removed from every assess prompt.
Acceptance Criteria
Schema and renderer
- A schema module defines the
AssessResultshape covering issues, actions, ACs count, reasons, run symbols, order annotations, warnings, chain suggestion, flags, cleanup commands, and resolved command prefix. - The schema validates input and fails with an actionable error message naming the offending field when given malformed data.
- A renderer module converts a validated
AssessResultinto the batch dashboard, computing all column padding programmatically with no hand-authored offsets. - The renderer is a pure module with no dependency on
chalk,boxen,cli-table3,log-update, or any TTY-detection state, so its output is byte-identical whether stdout is a terminal or a pipe. - The renderer does not reuse
cli-ui.ts'stable()/box()/divider()/sectionHeader()helpers, which emit ANSI viachalk, gate onconfig.isTTY/config.jsonMode, and intable()'s case draw acli-table3bordered grid — all wrong for output destined for a GitHub comment. - The renderer reuses the existing
string-widthdependency for width calculation rather than hand-rolling east-asian width handling. - The rendered output contains no ANSI escape sequences, verified by a test asserting the output matches a plain-text-only pattern.
- Column width calculation is east-asian-width aware so wide characters in reasons or titles do not shift the
Runcolumn. - The
Runcolumn value is never truncated; rows may overflow past the separator width so long workflows such asspec → security-review → exec → qaprint in full. - Only the
Reasoncolumn truncates, with a trailing ellipsis at a word boundary where possible. - The target layout keeps typical rows within roughly 80 columns, with the
Runcolumn start offset documented in the renderer as the single source of truth. - The renderer emits both table variants (with and without the
ACscolumn) with theRuncolumn starting at the same offset in each. - The renderer honours the existing Section Visibility Rules, omitting
Order:/⚠/Chain:/Flags:/Cleanup:sections and their adjacent separators when empty. - The renderer emits the HTML marker block for every assessed issue.
- The renderer supports single-mode output, emitting the correct verdict template for PROCEED, CLOSE, CLARIFY, PARK, MERGE, and REWRITE.
- All separator lines emitted by the renderer are exactly 64 characters and no box-drawing border characters are introduced.
CLI surface
- A
sequantsubcommand accepts a path to anAssessResultJSON file and prints the rendered output to stdout. - The subcommand is registered in
bin/cli.tsvia.command()and appears in help output only if intended as user-facing, otherwise is documented as internal. - The subcommand exits non-zero with a readable error when the input file is missing, unreadable, or fails schema validation.
- The subcommand is verified to work from an installed package (via the
distbuild) and not only from the development repo.
Skill integration
-
skills/assess/SKILL.mdgains a### Step 6: Render Outputat the end of the Assessment Process instructing the model to build the JSON, invoke the renderer, and paste its stdout verbatim. - Step 6 states that the rendered block is emitted before any prose, preamble, or
AskUserQuestion, and that a narrative or TLDR summary never satisfies the step. - Step 6 uses the Step-1
CMD_PREFIXfor the renderer invocation, consistent with howsequant runcommands are emitted. - Step 6 defines a degraded fallback: if the renderer invocation fails, the model emits the dashboard by hand from the documented format and reports the failure, never substituting prose.
-
## Persist Analysisopens with an explicit precondition that Step 6 has already emitted the output block, replacing the "After displaying output," subordinate clause at line 673. -
## Output Verificationgains as its first item a check that the response opens with the rendered output block rather than a summary, preamble, or question. - The
## Output Formatsection is reduced to the schema, one worked example, and the semantic rules (run symbols, action vocabulary, visibility rules), with hand-drawn geometry guidance removed. - The "Column widths should adapt to content — do not force a fixed table width" instruction at line 244 is removed, since width is no longer the model's concern.
- The reduction in
## Output Formatis measured and reported in the PR, with the before figure being 416 lines / 24KB.
Tests
- Snapshot tests cover the batch dashboard with and without the
ACscolumn, and every single-mode verdict template. - A test asserts the alignment invariant directly: for any rendered table, the
Runcolumn start offset is identical across the header and all data rows. - A test covers a reason string long enough to require truncation and asserts the
Runcolumn does not shift. - A test covers wide/east-asian characters in a reason field and asserts alignment holds.
- Tests cover section omission so that absent warnings, chain, flags, and cleanup produce no orphaned separators.
- Schema validation tests cover a valid payload, a missing required field, and a malformed action value.
- Any dashboard examples remaining in
SKILL.mdare generated from renderer output rather than hand-edited, so they cannot drift from the implementation.
Distribution
- All skill changes are mirrored identically across
skills/assess/SKILL.md,.claude/skills/assess/SKILL.md, andtemplates/skills/assess/SKILL.md, verified by matching md5 and bynpm run lint:skill-sync. - A CHANGELOG entry is added describing the behaviour change.
Deferred follow-up (do not scope into this issue)
Stop-hook enforcement (#22's Layer 3). A Stop hook asserting the marker block is present in the response would close the adherence gap completely, but it is deliberately deferred:
- Sequant ships no Stop hook today (
templates/hooks/contains onlypre-tool.sh,post-tool.sh,relay-check.sh), so this means a new hook type plus a settings.json merge for every user. - A blocking hook that false-positives is worse than the defect it prevents.
- Once rendering is a tool call, a skipped render is already visible in the transcript, so the hook's marginal value drops.
File it only if recurrence is measured after this issue ships — with evidence rather than assumption.
Non-goals
-
Reviving box-drawing borders.
╭─╮ │ ╰stay out, but note the reason has changed. fix: /assess batch output corrupts with 9+ issues + label-priority spec-skip bug #494's rationale — "LLMs cannot reliably count character widths" — is void once a renderer draws the output; a prototype confirmed 78-char borders render identically every time. Boxes were re-evaluated on that basis and still rejected, for two reasons that survive:- Copy-paste fidelity. A leading
│on every line means selecting theCommands:block drags border characters into the clipboard. fix(assess): multi-command output drops second command on paste — use line-continuation in Commands block #681 was filed for exactly this failure mode. Bare, selectable command lines are worth more than visual containment. - Forced truncation. A box must clip to its width. In the prototype,
#819's workflow rendered asspec → security-review → exec →…, losing information precisely on the issues with the longest and least predictable workflows. The separator format lets rows overflow past the separator and print in full.
The
────separator plus labeled-header format is the target. Prototype comparisons of both formats are recorded in the scoping discussion for this issue. - Copy-paste fidelity. A leading
-
Redesigning the dashboard's information architecture. Columns, run symbols, action vocabulary, and section set are unchanged; Streamline /assess output format — reduce verbosity for scan-friendly results #453 already settled scan-friendliness.
-
Changing posted-comment format. feat(assess): batch-posted issue comments should use the single-mode verdict templates #785 settled that batch-posted comments use single-mode verdict templates. This issue touches the persist path only to add the precondition.
Prior art
- Skill output reliability: validation layers, schemas, and structured logging #22 — validation layers, schemas, structured logging. Assigned
/assessChecklist + Hook + Schema; only the checklist shipped. This issue builds its Schema layer. - fix: /assess batch output corrupts with 9+ issues + label-priority spec-skip bug #494 — batch output corrupts with 9+ issues; source of the box-drawing removal and the "no character counting" rule.
- fix: restore /solve feature parity in /assess — chain detection, testgen, flag reasoning, output polish #522 — output polish and the separator-format design decision.
- Streamline /assess output format — reduce verbosity for scan-friendly results #453 — streamlined the output format for scan-friendliness.
- fix(assess): multi-command output drops second command on paste — use line-continuation in Commands block #681 —
Commands:block paste defect; precedent for treating output-block mechanics as a real bug class.
Activity
admarble commentedon Jul 27, 2026
Plan (/spec)
Complexity: Complex — 38 ACs, 7 directories,
complexlabel.Scope verdict
performScopeAssessmentreturns SCOPE_SPLIT_RECOMMENDED (feature count 4 / AC items 38 / directory spread 7 — all red). Recommending override — proceed as one issue.The detector counts facets, not features. Schema → renderer → CLI → skill are sequential layers of one change and none ships alone: the skill edit is inert without the subcommand, the subcommand is inert without the renderer, the renderer is untestable without the schema. 24 of the 38 ACs are single-assertion test/invariant statements. Real surface: 2 new modules + 1 CLI registration + 1 skill file (x3 mirrors) + 2 test files.
AC quality
lintAcceptanceCriteria: 1/38 flagged.Runis never truncated") is measurable regardless.Note:
extractAcceptanceCriteriareturned 0 — the ACs are bare- [ ]lines withoutAC-N:prefixes, so the line-anchored parser cannot see them. Mapped to sequentialAC-1..AC-38in body order for tracking.Geometry (measured, not assumed)
Measured the prototype block in the issue body with
string-width: theRuncolumn starts at column 47, uniformly across the header and all five rows. Adopting 47 as the documented single-source-of-truth constant.RUN_COLActionat 6ActionwidthReasonat 17 (no-ACs variant)ACswidthReasonat 21 (ACs variant)ReasonwidthRUN_COL - reasonStart - 1RUN_COLis invariant (AC-12)Flags:/Commands:Implementation plan
Phase 1 — Schema + renderer (AC-1..AC-16)
src/lib/assess/types.ts— zodAssessResultSchema+parseAssessResult()rethrowing with the offending field path. Mirrorssrc/lib/scope/types.ts.src/lib/assess/renderer.ts— pure module,string-widthits only import. Modeled onsrc/lib/cli-ui/format.ts. ExportsrenderBatch()/renderSingle()/render().src/lib/assess/index.ts— barrel.Phase 2 — CLI surface (AC-17..AC-20)
4. Register
assess-render <file>inbin/cli.tsvia.command(), hidden from top-level help, described as internal. Read -> validate -> render -> stdout; non-zero exit with readable stderr on ENOENT / bad JSON / schema failure.5. Verify through the built
distbin entry, not onlytsx.Phase 3 — Skill rewrite (AC-21..AC-29)
6. Add
### Step 6: Render Outputat the end of the Assessment Process (Step 5 currently ends at:234): build JSON -> temp file ->$CMD_PREFIX assess-render <file>-> paste stdout verbatim, before any prose orAskUserQuestion, with a hand-render fallback on failure.7. Reduce
## Output Format(currently:238-653, 416 lines / 24KB) to schema + one renderer-generated example + semantic rules (run symbols, action vocabulary, visibility rules). Delete the width instruction at:244.8. Rewrite the
## Persist Analysisopener (:673) as an explicit Step-6 precondition; add "response opens with the rendered block" as item 1 of## Output Verification(:776).9. Regenerate remaining SKILL.md examples from renderer output (AC-36) — must run after the renderer is green. Mirror to all 3 dirs; verify md5 +
npm run lint:skill-sync.Phase 4 — Tests + distribution (AC-30..AC-38)
10.
renderer.test.ts— snapshots (both variants, all 6 verdicts), alignment invariant, truncation, CJK, section omission.types.test.ts— schema validation trio.11. CHANGELOG entry; report the
## Output Formatbefore/after delta in the PR.Design review
src/lib/assess/— a sibling ofsrc/lib/scope/, deliberately notsrc/lib/cli-ui/. That namespace is TTY-coupled by convention (chalk,log-update,config.isTTY); putting a deliberately TTY-free module there invites someone to later wire it toshouldShowDecorative(). The directory boundary encodes the constraint..command(). Rejected: reusingcli-ui.table()(emits ANSI + acli-table3grid); ascripts/shell-out (works only in this repo per thespec/SKILL.md:78guard, so end users stay broken); a Stop hook (explicitly deferred by the issue).src/lib/scope/for schema-module + barrel;src/lib/cli-ui/format.tsfor zero-import pure formatting;assess-collision-detect.tsas the anti-pattern being corrected.Verified AC-5's premise:
cli-ui.ts:390 box()and:461 table()both gate onshouldShowDecorative()(:79), which includesconfig.isTTY. The AC's reasoning holds.Gaps and concerns
## Persist Analysisdelegates to the#### PROCEED/#### CLOSE/ ... anchors ("Reference these templates rather than re-copying their bodies here — they are the single source of truth"). Deleting those ASCII templates breaks that contract. Handled by repointing Persist at the renderer's single-mode output — flagged so it is not read as unplanned scope.Derived ACs
assess-comment-parser.parseAssessCommentand asserts markers round-trip## Persist Analysiscross-references still resolve after the Output Format reduction — no dangling anchorsOpen questions
--help? — Proceeding with hidden, since AC-18's phrasing treats visibility as an assertion of user-facing intent and this is a skill-internal surface.assess-render --helpstill works.assess-render. Reads consistently withmerge --check/state rebuild.Recommended workflow
Phases: spec -> exec -> qa
Quality loop: enabled (auto —
complexlabel, AC count red)Reasoning: no UI surface, so no
/test.testgenis warranted in principle by AC-30..AC-35, but/fullsolveruns spec -> exec -> qa and exec authors those tests directly against ACs it already holds; inserting testgen would generate stubs the same phase then rewrites.Labels
Current
bug,cli,complex— unchanged. Accurate, andcomplexcorrectly auto-enables the quality loop.admarble commentedon Jul 27, 2026
QA Review for Issue #823
Reviewed inline (no sub-agents) — QA agents hallucinate on worktree code, and the substantive half of this diff is prose whose correctness is not mechanically checkable.
AC Coverage
Issue ACs are bare
- [ ]lines withoutAC-N:prefixes, soextractAcceptanceCriteriareturns 0. Mapped to sequentialAC-1..AC-38in body order.Schema and renderer
issues/action/acCount/reason/run/orders/warnings/chain/flags/cleanup/commandPrefix— 11/11 present intypes.tsissues[0].action: Invalid option: expected one of "PROCEED"|...; verified throughdistRUN_COL), all offsets derived — see divergence note 2string-width+ local types; test flipsprocess.stdout.isTTYand asserts equalitycli-ui.tshelperschalk|boxen|cli-table3|log-update|isTTY|jsonMode|cli-uiacrosssrc/lib/assess/+ the command: matches are comments onlystring-widthrenderer.ts:31!includes(ESC)and a plain-text-only regexRunnever truncatedReasontruncates, word boundary where possibleRunoffset in both variantsCLI surface
sequant assess-render <file>.command(), help behaviorbin/cli.ts; hidden from top-level help (0 matches), documented internal in the description + module headernode dist/bin/cli.js, not justtsxSkill integration
### Step 6: Render Outputat end of Assessment ProcessCMD_PREFIX$CMD_PREFIX assess-render "$ASSESS_JSON"⚠ assess-render failed:line and mandates hand-renderTests
Runoffset on header + every rowRunDistribution
ce17f8a4...×3;lint:skill-sync42/42[Unreleased] → Fixed, includes(#823)Derived (from spec)
assess-comment-parser#### PROCEEDetc. returns nothing; the three remaining anchor links all resolveCoverage: 40/40 met.
AC-literal correction found during review
AC-27 says Output Format reduces to "the schema, one worked example, and the semantic rules." My first pass left two — the batch dashboard plus a single-mode PROCEED block. The second was also a verbatim duplicate of the posted comment already shown under
## Persist Analysis: two copies to keep in sync, which is the exact drift this issue removes.Fixed in
4778732rather than rationalized as "reasonable." Replaced with a cross-reference. This also improved the reduction from −47% to −52% lines.AC-36 needed more than regeneration
"Generated from renderer output so they cannot drift from the implementation" — regenerating once satisfies the first clause, not the second. Added
skill-examples.test.ts:RUN_COL, every separator is 64, and no box-drawing appears — this catches examples added later whose payloads live nowhere.Mutation-tested, not assumed. Shifting one data row by a single space — the exact #823 defect — fails 2 tests. Widening one separator to 78 fails 2 tests.
Regenerating also surfaced live evidence for the issue's premise: 2 of the 3 examples in "dashboard vs posted comment" had already drifted from renderer output.
CI Status
build (22.x),typecheck,node-floor-guardvalidate-skills,validate-plugin,Plugin Structure ValidationHooks Validation,Setup Directory Creation8 passed, 0 pending, 0 failed.
mergeable: MERGEABLE, 0 commits behind main.Quality Metrics
any) addedsrc/lib/assess/--max-warnings 0Test Coverage Analysis
src/lib/assess/renderer.tsrenderer.test.ts,skill-examples.test.tssrc/lib/assess/types.tstypes.test.tssrc/commands/assess-render.tsdist-level smoke tests (6 exit-code paths), not unit testsbin/cli.ts--helpon source anddistGap, stated plainly:
assess-render.tshas no unit test. It is 60 lines of read → parse → render → print with three catch arms, all six paths exercised against the built artifact. A unit test would mockreadFileand assert the same three branches — I judged thedist-level check the stronger evidence, but it is a real coverage gap rather than an absence of risk.Smoke Test
assess-render <6-issue payload>assess-render <PROCEED payload>assess-render /nope.jsoncannot read+ ENOENT, exit 1assess-render /tmpcannot read+ EISDIR, exit 1assess-render bad2.jsonassess-render bad3.jsonissues[0].reasonand thereasonntypo, exit 1Status: Complete.
Skill Command Verification
The only new executable command in the skill is
$CMD_PREFIX assess-render "$ASSESS_JSON", verified above from bothtsxanddist. Other commands in the diff (gh issue close/edit) are illustrative example output with unchanged semantics.Status: Passed.
Detection Pattern Verification
Omitted — hard precondition false. Zero added skill-markdown lines contain
grep/awk/jq/sedliterals (checked per-mirror against diff hunks, not file content).Adversarial Re-Read
Five things I went looking for:
alignedBlockreturns-Infinityon an empty array (Math.max(...[])). Traced all four call sites — every one is guarded by a.lengthcheck or a non-empty literal. Not reachable, but it is a latent footgun for a future caller and I'm recording it rather than calling it clean.parseAssessMarkers("<!-- #462 assess:action=PARK -->")returns{}; the single form returns{action:"PARK"}.ASSESS_HTML_MARKER_PATTERNrequiresassess:immediately after<!--. This is pre-existing and by design — the compact form is chat-only and the skill forbids posting it — but the renderer now generates that form, so anyone who posts a dashboard gets markers invisible to the parser. AC-39's round-trip test is correctly scoped to single mode.Flags:gutter moved, from a hand-written 5 spaces to a computed one. Calling that out rather than burying it: the issue documents four differentFlags:offsets (24/34/24/9) in the old file, so making it deterministic is the intent, not scope creep.origin/mainbefore patching and matches the issue's stated number exactly.Status: Gaps Found — items 1 and 2 are latent/boundary conditions rather than defects, and item 3 is a real if minor format change. None blocks merge; none maps to an unmet AC.
Risk Assessment
## Output Formatwas. This is weaker than the old failure (a missing Bash call is visible in the transcript where a missing paragraph is not, and Step 6 now sits in the imperative section) but not eliminated; full closure needs the Stop hook the issue explicitly defers.assess-render.tsunit coverage (see above). Also untested: whether the model actually follows Step 6 — unfalsifiable in CI by construction, and the honest answer to AC-21..AC-26 is that they verify the prompt says the right thing, not that the model obeys.assess/SKILL.md; I checked whether other skills embed aligned ASCII tables and they do not.assess-collision-detect.tsremains "cited but never executed" (the anti-pattern this issue names), but converting it is out of scope and not an AC.CHANGELOG Verification
CHANGELOG.mdexistsfeat:/fix:commits)[Unreleased]entry### Fixed(#823)Verdict: AC_MET_BUT_NOT_A_PLUS
All 38 issue ACs plus both derived ACs are met, CI is fully green, and the anti-drift guard is mutation-tested. Not A+ for two reasons I'd rather state than paper over:
src/commands/assess-render.tshas no unit test — onlydist-level smoke coverage.-Infinityedge inalignedBlockand a small unadvertised change to the posted-commentFlags:gutter.Both are notes for the reviewer, not blockers. Two deliberate divergences are documented in the PR body: separator width 64 (AC-16) against the issue's own prototype block, which measures 78; and
RUN_COLbeing the one hand-chosen constant, which AC-11 explicitly requires.PR: #824
Next Steps
assess-render.ts's three catch arms./assessrun is the true end-to-end check.fix(#823): close QA gaps — command tests, single visibility owner, gu…
admarble commentedon Jul 27, 2026
QA Re-Review for Issue #823 — gap fixes
All three gaps from the prior review are closed in
984a45a. One of them turned out to be a different (and better) defect than I first reported.Gap 1 —
assess-render.tshad no unit testClosed. 12 tests over real temp files rather than a mocked
readFile. The command is 60 lines of read → parse → render → print; mocking the read would have left the test asserting its own branching, and real files exercise the ENOENT vs EISDIR distinction the error messages depend on.Covers: both success paths, both unreadable paths (missing file, directory), three schema paths (bad enum, unknown key, missing top-level field), and output hygiene — no ANSI under a simulated TTY, and the block emitted as exactly one
console.logso nothing can interleave into the middle of output the caller pastes verbatim.Gap 2 —
alignedBlockreturned-Infinityon an empty arrayClosed, but my first fix was wrong and the mutation test caught it.
I added a guard to each builder. Then deleted all four guards to confirm the tests failed — they didn't. 35 passed either way. Every call site already guarded on
.length, so the builders were unreachable with empty input and my new tests were tautological.The real defect underneath: section visibility was decided in two places at once — once at the call site, once (now) in the builder. Restructured so callers ask the builder "did that produce anything?" instead of re-deriving emptiness. The builder is now the single decision point, and the guards are load-bearing — deleting them fails 8 tests. Also removed a duplicated
cleanupLines()call and three redundant.lengthchecks.Worth recording that the guard-only version would have shipped looking correct.
Gap 3 —
Flags:gutter change was unadvertisedClosed. Documented in the CHANGELOG, including why there was no single prior spacing to preserve: the old file specified that gutter at four different offsets (24, 34, 24, 9). Structure is unchanged and #785's rule still holds.
Also locked in
The batch-vs-single marker asymmetry is now asserted in both directions rather than left as an accident: the compact batch form is chat-only and
parseAssessMarkersdoes not read it, which the skill depends on.Verification
src/lib/assess/+ command testsmergeable--max-warnings 0ce17f8a4...×3, untouched this rounddistre-verifiedVerdict: READY_FOR_MERGE
40/40 ACs met, all three gaps closed, no new gaps introduced. Both guard sets are mutation-verified rather than assumed.
Two documented divergences stand and are the reviewer's call, not defects:
RUN_COLis the single hand-chosen number — required by AC-11, with everything else derived.The remaining honest limit is unchanged: AC-21–26 verify the prompt says the right thing, not that the model obeys it. Full closure needs the Stop hook the issue defers.
PR: #824
fix(#834): §7 gates must be reachable — lint /qa's own enforcement ch…
feat(assess): fence chat output; Considered: block restores why-not f…
feat(#993): assess-dashboard eval case (AC-3) via scaffolded fixtures
feat(#993): claude plugin eval cases for /qa and /spec, null-run cana…