Skip to content

feat(markdown-format): report end-of-turn lint findings by default without continuing the turn #11502

Description

@kyle-sexton

Parent

Refs #9154

Depends on

  • none: on the frontier now

Outcome

By default, when a turn ends with Markdown lint findings in the uncommitted changes, the user sees them in a warning and the turn ends. A user who opted in to today's hand-back keeps it.

Demo: on a default install, leave a lint finding in an uncommitted Markdown file and end the turn: a warning shows the finding and Claude does not continue. Set the hand-back option and repeat: Claude receives the findings and continues once.

Decisions

Key interfaces

  • The markdown_format_end_of_turn option of the markdown-format plugin: it gains a reporting state, the default. Today's true keeps today's behavior.
  • The Stop row's output in the reporting state: exit 0 with systemMessage, and no decision, exit 2 or additionalContext.
  • The row's existing guards stay: stop_hook_active, and the quiet exit when markdownlint-cli2 is missing, which the session start probe already reports.

Done when

  • AC1: With no option set and a lint finding in the uncommitted changes, a test shows the Stop row exits 0 with a systemMessage carrying the finding.
  • AC2: With no option set and a clean tree, a test shows the row prints nothing.
  • AC3: With the option true, a test shows findings still exit 2 at most once per turn.
  • AC4: With the option false, or MARKDOWN_FORMAT_ENABLED false, the row runs no check, shown by a test.
  • AC5: The option's description and the plugin README state the new default.

Out of scope

  • The PostToolBatch rewrite, which is unchanged.
  • The pre-commit check's rules.

Activity

  1. added
    agent-ready
    on Oct 31, 2026
  2. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: add a default reporting state to the markdown_format_end_of_turn option. At the end of a turn, lint findings in uncommitted Markdown show as a systemMessage and exit 0, and Claude does not continue. true keeps today's exit-2 hand-back. false or MARKDOWN_FORMAT_ENABLED false runs no check. The issue has exact acceptance criteria AC1-AC5 and records its design decisions, so nothing is missing for triage.

    An earlier lane run left partial work on a branch. It stopped because the hook-budget measurement for the now default-on Stop row needs a host run. That is a host step, not an open question. No duplicates found among the open issues.

    Automated triage, applied by the lanes App.

  3. added
    status: ready
    on Oct 31, 2026
  4. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  5. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  6. added
    host-run
    on Oct 31, 2026
  7. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (host-only): the run reports the work needs a host run the lane cannot make.
    It added host-run and removed agent-ready: an agent run on a host builds it, and it waits on no decision from a person.

    In the run's words:

    host-only: the change is complete in the working tree and meets AC1-AC5, but making markdown-format's Stop row run by default widens an always-on hook, and docs/contracts/hook-budget/README.md Rule 1 requires its k and measured cost in S in the README plus a spawns ratchet or strace budget case for that path. Measuring it needs scripts/hook-census.sh under strace (no --env, a clean tree and a repo with no markdownlint config), which this lane cannot run. A host run should measure it, add a .performance/ratchets.json entry for the default path, and replace the README's 'not measured yet' line with the figures.

    What the run says it did not do:

    • hook-budget Rule 1 for the now default-on Stop row: the default path's spawn count (k) and wall time (S) are unmeasured, and no ratchet or strace budget case covers it. This needs scripts/hook-census.sh under strace, which this lane cannot run. It is the stop reason.
    • plugins/markdown-format/hooks/markdown-format-end-of-turn.test.sh and markdown-format.test.sh were not executed here (the lane runs no bash test suites); left to the PR's CI.
    • Tidy skipped: the change is 12 files across 3 areas (plugins/markdown-format, docs/contracts, .performance), over the 10-file and 1-area cutoffs.
    • Not verified: whether the /plugin configure dialog saves false for this boolean (now with no default) when a user edits a different option, which would turn the report off for them. No smoke test in the repo covers it; it needs a host run of Claude Code.
    • The README's generated options block was edited by hand to match what scripts/sync-plugin-options-docs.py renders for an option with no default; the generator was not run here (not an allowed wrapper). Its CI drift check will confirm.
    • Untracked files present at the checkout root before this run (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are not part of this change and were left untouched.

    Partial work is on the branch work-resolve-issue/issue-11502-41189504991-1. The next run continues from it while it is not behind the default branch, and otherwise starts fresh.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41189504991

    To hand it back to the lane, remove host-run and add agent-ready again.

  8. removed
    agent-ready
    on Oct 31, 2026
  9. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Intake triage did not triage this issue after 2 dispatches, so the sweep no longer dispatches it and labeled it needs-triage for a maintainer. Triage it by hand, and read the runs for why intake did not:

  10. added
    needs-triage
    on Oct 31, 2026
  11. self-assigned this
    on Oct 31, 2026
  12. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  13. removed
    needs-triage
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

host-runstatus: ready

Fields

No fields configured for Feature.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions