Repository navigation
feat(assess): fence chat output; Considered: block restores why-not flag reasoning - #857
Merged
Merged
Conversation
…lag reasoning Two /assess output regressions surfaced by a real batch run: 1. Chat alignment. The renderer's table header starts with ` # Action`, and #823's paste-verbatim rule explicitly forbade a code fence — but chat output is markdown-rendered, so the unfenced leading `#` parses as a heading: the column header is swallowed, the row is bolded, and the header misaligns from its own data rows. The skill now requires wrapping the renderer's stdout in a fenced code block for chat (content still verbatim). Posted issue comments stay unfenced so the `<!-- assess:… -->` markers remain invisible and machine-readable on GitHub. 2. Why-not reasoning. The original /solve format carried "Also consider: <flag> — explanation"; the v3.0 streamline (#453/8f38dca) dropped it and #522 restored reasons only for flags actually used, plus an omit-when-obvious carve-out that in practice deletes the Flags: section from bug-fix batches. This adds `considered[]` to the schema (top-level and per-issue): flags whose trigger was evaluated and declined, each with a one-line reason, rendered as a `Considered:` block after `Flags:` in both batch and single modes. The skill now requires a reason for every applied non-default flag (including -Q, carve-out removed) and a considered entry for declined triggers (--chain with 2+ PROCEED issues, --testgen/--security-review when checked). Skill worked example regenerated from the renderer (skill-examples.test.ts payload extended to match); all three mirrored skill dirs synced. Entire-Checkpoint: 30076aa7db24
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two
/assessoutput regressions observed in a real batch run (2026-07-29):1. Chat dashboard misalignment. The renderer's table header starts with
# Action …, and #823's paste-verbatim rule forbade a code fence — but chat output is markdown-rendered, so the unfenced leading#parses as an H1: the column header is swallowed, the row is bolded/underlined, and the header misaligns from its own data rows. The skill now requires wrapping the renderer's stdout in a fenced code block for chat only (content still verbatim; the no-editing rule is unchanged). Posted issue comments stay unfenced so the<!-- assess:… -->markers remain invisible and machine-readable on GitHub.2. Missing why-not flag reasoning. The original
/solveformat carriedAlso consider: <flag> — explanation. The v3.0 streamline (#453 /8f38dca) dropped it; #522 restored reasons only for flags actually used, plus an omit-when-obvious carve-out that in practice deletes theFlags:section from bug-fix batches. This PR:considered[]to the schema (top-level and per-issue): flags whose trigger was evaluated and declined, each with a one-line reasonConsidered:block afterFlags:in both batch and single modes (same two-column geometry)-Qincluded, gets a reason--chainwhy-not whenever a batch has 2+ PROCEED issues without a detected dependency, and--testgen/--security-reviewwhen their triggers were checked and not metExample:
Changes
src/lib/assess/types.ts—AssessConsideredSchema(reuses the flag shape), optionalconsidered[]onAssessResultandAssessIssuesrc/lib/assess/renderer.ts—consideredLines()builder; wired afterFlags:in the batch annotation group and the single-mode workflow bodysrc/lib/assess/renderer.test.ts— placement/geometry/empty-section tests for the new blocksrc/lib/assess/skill-examples.test.ts— worked-example payload extended (byte-for-byte guard still enforced)skills/assess/SKILL.md+ both mirrors — fence rule,considered[]schema/annotation/visibility/checklist updates, regenerated worked exampleTesting
vitest run src/lib/assess/— 64 passed (includes the byte-for-byte SKILL.md example guard across all three mirrors)vitest run src/commands/assess-render.test.ts— 10 passedtsc,eslint,npm run lint:skill-calls— cleansequant assess-renderagainst a payload withconsidered[]— block renders as shown above🤖 Generated with Claude Code