Skip to content

feat(assess): batch-posted issue comments should use the single-mode verdict templates #785

Closed

Description

@admarble

Problem

The assess skill defines rich per-verdict templates (header #N — Title, State · labels, separators, Commands: block with resolved CMD_PREFIX, <phases> · <N> ACs line) — but only for the displayed single-issue output. Batch mode's posting step (.claude/skills/assess/SKILL.md:671-680) specifies a much thinner comment body:

  • the action headline (→ ACTION — reason)
  • the workflow line (PROCEED/REWRITE only)
  • the HTML markers

The result is that comments posted from a batch run look like a different, broken format next to single-issue assessments. This was twice mistaken for a defect in real use (2026-07-18: #782–784 and admarble/ad-motion#76–78 — the latter initially misattributed to plugin-version skew, but the current 2.8.0 spec produces the same thin comments). A reader landing on the issue also gets no copy-pasteable run command — the single most useful line of an assessment.

This is a spec-consistency gap, not a rendering bug: the posted comments conform to lines 671–680 as written.

Proposal

The posting step should render each issue's comment body using the existing single-mode template for that issue's verdict (PROCEED / CLOSE / CLARIFY / PARK / MERGE / REWRITE), rather than the three-bullet minimal format. The batch dashboard shown in chat stays exactly as is — this changes only what lands on the issues.

Per-issue warnings from the batch dashboard (⚠ collision/conflict lines, churn warnings) that concern a given issue should be carried into that issue's comment, in the template's warning slot.

Not a reversal of #453: the single-mode templates are themselves the streamlined, scan-friendly format — this just stops posted comments from being a third, undocumented shape.

Acceptance Criteria

  • The batch posting step in SKILL.md specifies that each issue's comment body is rendered with the single-mode template matching its verdict, including the #N — Title / State · labels header, separators, Commands: block (resolved CMD_PREFIX, real current flags), and <phases> · <N> ACs line where the template defines them.
  • Per-issue ⚠ warnings from the batch dashboard are included in the corresponding issue's comment in the template's warning position.
  • Machine markers are unchanged (same 3-line <!-- assess:... --> block), and the supersession header from prior-assessment detection (feat(assess): detect prior assess markers — supersession note + re-assessment churn warning #555) still prepends immediately above the → ACTION line.
  • The chat batch dashboard output is unchanged.
  • The change is synced across all three skill mirrors (skills/, templates/skills/, .claude/skills/) and passes the mirror-consistency check.
  • SKILL.md includes one worked example of a batch run showing the dashboard (chat) beside one posted comment (issue), so the two formats are visibly distinct-by-design.

References

Activity

  1. added
    enhancement
    on Jul 18, 2026
  2. admarble commented on Jul 19, 2026

    @admarble
    ContributorAuthor

    Complexity: Standard (6 ACs, 1 skill / 3 mirror dirs)

    AC Quality Check

    All 6 ACs are concrete and content-verifiable against SKILL.md. No vague/unmeasurable/open-ended patterns. AC-1 enumerates the exact template elements to require (#N — Title, State · labels, separators, Commands: with resolved CMD_PREFIX, <phases> · <N> ACs), so it is checkable by content coverage rather than "looks right." AC-5 is machine-verifiable via the mirror-consistency script.


    Scope Assessment

    Non-Goals: Present and clear — (a) the chat batch dashboard stays byte-identical (AC-4); (b) not a reversal of #453 (lean single-mode templates are the target format).

    Metric Value Status
    Feature count 1 (batch posting-step spec) ✅
    AC items 6 ✅
    Directory spread 1 logical skill (× 3 mirror copies) ✅

    Verdict: ✅ SCOPE_OK — single cohesive prose change to one skill section; the 3-mirror spread is required duplication, not scope growth.


    Acceptance Criteria

    AC-1: Batch posting step renders each comment via the single-mode verdict template

    Verification: Manual (content coverage of SKILL.md)
    Scenario: Given the ## Persist Analysis step → When rewritten → Then it instructs: render each issue's posted comment with the single-mode template matching its verdict (PROCEED/CLOSE/CLARIFY/PARK/MERGE/REWRITE), including the #N — Title / State · labels header, separators, Commands: block (resolved CMD_PREFIX + real current flags), and <phases> · <N> ACs line where that template defines them.
    Assumptions: Single-mode templates (SKILL.md ~L488–645) are the source of truth and are referenced, not re-copied, to avoid drift.

    AC-2: Per-issue ⚠ warnings carried into that issue's comment

    Verification: Manual (content coverage)
    Scenario: Given a batch dashboard with per-issue ⚠ lines (collision/conflict/churn) → When the step is rewritten → Then it specifies each per-issue ⚠ is placed in the template's warning slot (between the trailing separators) of that issue's comment.

    AC-3: Machine markers unchanged; supersession header still prepends

    Verification: Manual (content coverage)
    Scenario: Given the posted comment → Then it keeps the same 3-line <!-- assess:action / phases / quality-loop --> block (single-mode form, not the batch compact one-liner), and buildSupersessionHeader(priors) still prepends immediately above → ACTION per #555.
    Assumptions: ⚠️ Subtlety for exec — batch dashboard markers are compact single-line <!-- #N assess:action=… -->; the posted comment must use the 3-line block. Don't unify them.

    AC-4: Chat batch dashboard output unchanged

    Verification: Manual (content coverage / negative check)
    Scenario: Given the Output Format → Batch Mode section and examples → When the posting step changes → Then the dashboard spec/examples are untouched; only the persist/posting text changes.

    AC-5: Synced across all three mirrors + passes mirror check

    Verification: Integration Test (npm run lint:skill-sync)
    Scenario: Given edits to skills/, templates/skills/, .claude/skills/ assess/SKILL.md → When npx tsx scripts/check-skill-sync.ts runs → Then exit 0 (all three byte-identical; today md5 820ab545…).

    AC-6: One worked example — dashboard beside one posted comment

    Verification: Manual (content coverage)
    Scenario: Given SKILL.md → When adding the example → Then it shows a batch run's chat dashboard next to one issue's rendered posted comment, so the two shapes read as distinct-by-design. Reuse an existing verdict (e.g. a PROCEED row) for consistency with L334–460 examples.


    Implementation Plan

    Phase 1: Rewrite the posting spec

    1. In .claude/skills/assess/SKILL.md ## Persist Analysis (currently ~L667–684 — note the issue's "671–680" is from an earlier revision), replace the three-bullet minimal body (action headline / workflow / markers) with: "render each issue's comment using the single-mode template for its verdict" + explicit element list from AC-1, cross-referencing the #### PROCEED/CLOSE/… templates by their section anchors.
    2. Add the AC-2 warning-slot rule and the AC-3 marker/supersession invariants (call out 3-line block ≠ batch compact marker).

    Phase 2: Worked example (AC-6)

    1. Add a "Batch: dashboard vs posted comment" example — a small dashboard fragment beside the single rendered comment it produces.

    Phase 3: Mirror + verify

    1. Apply identical edits to skills/assess/SKILL.md and templates/skills/assess/SKILL.md (read each independently before editing — mirror drift is easy here).
    2. Run npm run lint:skill-sync (AC-5) and npm run lint:skill-calls.

    Design Review

    1. Where does this logic belong? Purely in the assess SKILL.md prose — the LLM renders comments from the template. No TypeScript path; buildSupersessionHeader/findAllAssessComments already exist and are unchanged.
    2. Simplest correct approach? Point the posting step at the existing single-mode templates rather than duplicating template text into the persist section — one source of truth, no drift. Rejected: inlining a full template copy into Persist Analysis (guarantees future skew).
    3. Existing pattern? Same "single authoritative template, referenced by verdict" pattern the single-mode section already uses; batch persist becomes a thin dispatcher over it.
    4. What would a senior reviewer challenge? "Did you accidentally change the dashboard?" — AC-4 is a negative check; keep the diff scoped to Persist Analysis + the new example. Also: does the posted comment keep the 3-line markers vs the batch one-liner? (AC-3 — yes, explicitly.)

    Feature Quality Planning

    All standard checks pass. Notable items:

    • Drift risk — reference templates by anchor; do not paste template bodies into the persist step.
    • Mirror discipline — three copies; read each before editing (see project memory on mirrored-file edits). CI lint:skill-sync is the backstop.
    • No security/perf/data surface — prompt-text only.

    Open Questions

    1. Warning slot for CLOSE/PARK templates that omit Commands: — those templates still have the trailing ⚠ separator region, so AC-2 placement is well-defined. Recommendation: place ⚠ in the same between-separators slot for every verdict. Impact if wrong: a warning renders in an odd position for non-PROCEED verdicts.

    Recommended Workflow

    Phases: spec → exec → qa
    Quality Loop: disabled (single-section prose change, SCOPE_OK)
    Reasoning: Prompt/spec-only edit to one skill; no code, no browser surface, no new tests. qa verifies content coverage of each AC plus the mirror check. No testgen — the only automatable AC (AC-5) uses the existing lint:skill-sync script, not new stubs.


    Label Review

    Current: enhancement
    Recommended: enhancement (+ docs? optional — the change is skill-prose)
    Reason: Spec/prose change, no runtime behavior. enhancement is accurate.
    Quality Loop: Won't auto-enable — SCOPE_OK, single-file logical change.


  3. added
    planned
    on Jul 19, 2026
  4. admarble commented on Jul 19, 2026

    @admarble
    ContributorAuthor

    Exec Progress Update

    PR: #790

    AC Coverage

    AC Description Status
    AC-1 Posting step renders each comment via single-mode verdict template (header, separators, Commands: with resolved CMD_PREFIX + real flags, <phases> · <N> ACs) ✅ Implemented
    AC-2 Per-issue ⚠ warnings carried into the comment's warning slot ✅ Implemented
    AC-3 3-line markers unchanged; supersession header still prepends above → ACTION ✅ Implemented
    AC-4 Chat batch dashboard unchanged ✅ Implemented
    AC-5 Synced across three mirrors + passes mirror check ✅ Implemented
    AC-6 One worked example: dashboard beside a posted comment ✅ Implemented

    Implementation

    Rewrote the ## Persist Analysis step in assess/SKILL.md from a three-bullet minimal body into a four-step render spec that points at the existing single-mode #### PROCEED/CLOSE/CLARIFY/PARK/MERGE/REWRITE templates (referenced by anchor — one source of truth, no drift). Added a "Batch: dashboard vs posted comment" worked example (PROCEED #458) and one Output-Verification checkbox. The chat dashboard spec/examples are untouched (AC-4 negative check).

    Files Changed

    • .claude/skills/assess/SKILL.md
    • skills/assess/SKILL.md
    • templates/skills/assess/SKILL.md

    (All three byte-identical; package-lock.json working-tree noise was intentionally excluded from the commit.)

    Checks

    • npm run lint:skill-sync → 42 synced, 0 diverged (AC-5)
    • npm run lint:skill-calls → no violations
    • npm run build → clean
    • npm run lint → clean

    Quality Plan Alignment

    • Drift risk → templates referenced by anchor, not pasted (addressed)
    • Mirror discipline → three copies synced; lint:skill-sync backstop green
    • No security/perf/data surface — prompt-text only

    Notes / Next Steps

    • Prose-only change (no .ts/.tsx), so no unit-test impact; AC-5's automatable check reuses the existing lint:skill-sync script.
    • Ready for /qa (content-coverage verification per AC + mirror check).
  5. added a commit that references this issue on Jul 19, 2026
  6. admarble commented on Jul 19, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #785

    PR: #790 · Reviewed at: 5c91999 · Diff: markdown-only (3 skill mirrors + CHANGELOG), +220 / −30

    AC Coverage

    AC Description Status Notes
    AC-1 Posting step renders each comment via the single-mode verdict template (header, separators, Commands: w/ resolved CMD_PREFIX + real flags, <phases> · <N> ACs) ✅ MET SKILL.md Persist Analysis step 1; templates referenced by anchor #single-mode-1-issue (no re-copy → no drift, per AC-1 assumption)
    AC-2 Per-issue ⚠ warnings carried into the comment's warning slot ✅ MET Step 2; drops leading #N; also defines placement for CLOSE/CLARIFY/PARK/MERGE (resolves spec Open Question)
    AC-3 3-line marker block unchanged; supersession header still prepends above → ACTION ✅ MET Steps 3–4; explicitly warns against the batch compact one-liner (the AC-3 subtlety)
    AC-4 Chat batch dashboard unchanged ✅ MET Diff hunks touch only Persist Analysis (L668) + one Output-Verification checkbox; dashboard examples (L334–460), Output Format, and single-mode templates untouched
    AC-5 Synced across three mirrors + passes mirror check ✅ MET npm run lint:skill-sync → 42 synced, 0 diverged
    AC-6 One worked example: dashboard beside a posted comment ✅ MET "Batch: dashboard vs posted comment" (PROCEED #458); reuses the canonical single-mode #458 example + the dashboard ⚠ carried in

    Coverage: 6/6 AC items fully met

    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK (markdown-only)
    Deleted tests 0 OK
    Files changed 4 (.md only) OK
    Lines added / deleted +220 / −30 OK

    CI Status

    Check State Impact
    typecheck, validate-skills, validate-plugin, Hooks/Plugin/Setup validation, node-floor-guard SUCCESS ✅ MET
    build (22.x) PENDING ⏳ informational

    Markdown-only diff detected — pending build-matrix check treated as informational. Relaxed: build (22.x). No gating check is pending.

    Skill Command Verification

    Only pre-existing, valid commands referenced in changed prose (gh issue comment; npx sequant run … inside illustrative code blocks). No new flags or JSON fields. Status: Passed.

    Detection Pattern Verification

    N/A — the §6c heuristic precondition fired, but manual review confirms the matches are the / separators in the verdict list (PROCEED / CLOSE / CLARIFY / PARK / MERGE), not grep/awk/jq/sed commands or corpus-matching regex. No detection patterns were added. Status: Not Required.

    CHANGELOG Verification

    Check Status
    CHANGELOG.md exists ✅
    User-facing change (feat(#785)) ✅
    [Unreleased] entry ✅ Added in 5c91999 (under Fixed, with issue number)

    Initial review found the [Unreleased] entry missing (would have gated to AC_MET_BUT_NOT_A_PLUS); filled in-PR rather than bounced back.

    Risk Assessment

    • Likely failure mode: A future edit to a single-mode template could drift from what Persist Analysis promises — mitigated by referencing templates by anchor (one source of truth) instead of duplicating them.
    • Not tested: Prompt prose has no runtime test; AC-1/2/3/6 are content-coverage ACs verified by reading SKILL.md. AC-5 is covered by lint:skill-sync (CI validate-skills green).
    • Sibling sites considered: none — no other skill has a batch-persist section needing the same change; this is assess-specific. The three-mirror copies are the only siblings and are byte-identical.
    • Sibling-line audit: none — single-section prose change.

    Adversarial Re-Read

    Findings: No gaps. Cross-checked the worked posted-comment example against the canonical single-mode #458 PROCEED template (L525–542) — identical structure plus the ⚠ warning slot, correctly layering AC-1+AC-2; the dashboard excerpt matches the real batch dashboard's warning line and compact marker (L360/L378). Re-ran lint:skill-sync independently (42/0). Verified diff hunks touch only the Persist section + one checkbox (AC-4 negative check). Both issue Non-Goals honored — dashboard byte-unchanged, explicit "not a reversal of #453." Working tree clean (only pre-existing unrelated package-lock.json).

    Status: Clean

    Verdict: READY_FOR_MERGE

    All 6 ACs met with a minimal, well-scoped prose change; mirror-sync and skill-call lints green; CHANGELOG entry added. The only pending CI check is the markdown-only-relaxed build matrix (informational).

    Documentation

    Next Steps

    1. Merge feat(#785): batch-posted assess comments use single-mode verdict templates #790 once build (22.x) reports green (relaxed; markdown-only diff cannot affect it).
  7. added
    ready-for-review
    on Jul 19, 2026
  8. added a commit that references this issue on Jul 19, 2026
  9. admarble commented on Jul 19, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #785 — PR #790

    Verdict: READY_FOR_MERGE

    Prompt-only spec-consistency change to the assess skill (3 mirrors + CHANGELOG). Re-reviewed after a gap-fix pass on this PR.

    AC Coverage

    AC Description Status
    AC-1 Batch posting renders each comment with the single-mode template (header, separators, Commands: w/ resolved CMD_PREFIX + real flags, <phases> · <N> ACs) MET
    AC-2 Per-issue ⚠ warnings carried into the template's warning position MET
    AC-3 Machine markers unchanged (3-line block); #555 supersession header still prepends above → ACTION MET
    AC-4 Chat batch dashboard unchanged MET
    AC-5 Synced across all three mirrors + passes mirror-consistency check MET
    AC-6 One worked example showing dashboard beside posted comment MET

    Coverage: 6/6 met.

    Verification

    • Mirror sync: .claude/, skills/, templates/skills/ byte-identical; check-skill-sync.ts → 42 synced, 0 diverged, 0 missing.
    • CI: all 8 checks green on HEAD b051bb4 (typecheck, build 22.x, validate-skills, validate-plugin, node-floor-guard, Hooks Validation, Plugin Structure Validation, Setup Directory Creation).
    • CHANGELOG: [Unreleased] → Fixed entry present with (#785).
    • Worked examples verified against the actual single-mode templates (PROCEED lines 494–518, PARK 599–609) and the real batch example (341–383) — headers, separators, Commands:, <phases> · <N> ACs, warning-slot placement, and 3-line markers all consistent.

    Gap found in first pass, fixed on this PR (commit b051bb4)

    The original Step 2 told the author to place per-issue warnings "in the between-separators region" for CLOSE/CLARIFY/PARK/MERGE — but those four templates define no warning slot (single trailing separator), contradicting Step 1's "omit what the template omits." Churn/staleness warnings genuinely attach to those verdicts, so placement was ambiguous for 4 of 6 output shapes.

    Fixed by:

    1. Step 2 split by template shape — PROCEED/REWRITE use the existing ⚠ region; CLOSE/CLARIFY/PARK/MERGE add a separator-delimited warning block above the markers (the one sanctioned slot-less extension); no warning → template unchanged.
    2. Step 1 now spells out per-issue flag de-grouping (batched run 461 460 458 443 -Q → #N's own invocation) and adds the CLOSE Cleanup: block to the enumerated fields.
    3. Added a PARK-with-churn worked example so the docs exercise the slot-less placement the PROCEED example sidestepped.

    Risk Assessment

    • Likely failure mode: none functional — prose/template-only change; risk is future author confusion, mitigated by referencing the single-mode templates by anchor (single source of truth) rather than copying.
    • Not tested: no runtime surface (skill instructions are agent-executed, not compiled); correctness rests on template-reference accuracy, verified by hand.
    • Sibling sites: N/A — cross-file sibling scan doesn't apply; referenced templates confirmed present.

    Next Steps

    1. Merge PR feat(#785): batch-posted assess comments use single-mode verdict templates #790.
  10. added a commit that references this issue on Jul 19, 2026
  11. added 2 commits that reference this issue on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions