Skip to content

fix(planning): brief TLDR reads "1 question" for a single question - #9540

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9378-40050685882-1
Oct 24, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9378-40050685882-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9378

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The brief TLDR line now pluralizes by row count, so exactly one question reads "- 1 question: ..." while zero or two or more are unchanged. A regression test and a planning changelog fragment accompany the fix.

Not verified

  • The new Python test was not executed: this run's shell allows only the named wrapper scripts, so no test runner could be started. check-affected passed.
  • No fresh-context review subagent was run on the one-line diff; review-venue.txt was absent. The change is a one-expression pluralization.
  • new-changelog-fragment could not run (HEAD is detached, so it has no branch name); the fragment was written by hand in the same format and validated by check-changelog-fragments.
  • Changes are left uncommitted in the working tree, as the run instructions require.

Fix

  • plugins/planning/surface/exporters.py: the TLDR question count uses a singular "question" when len(rows) == 1
  • plugins/planning/surface/test_exporters.py: added test_a_single_question_brief_tldr_reads_question_in_the_singular
  • .changes/planning/fix-9378-brief-tldr-singular-question-7c2e4a91.md: patch-bump changelog fragment for planning

Verification

The runner ran each check from the base copy against 9e4b297:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#9378

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9e4b2979645e74333d8a878c91701d3c4fe4ff6e: 0 finding(s), 0 as inline comments.

No security issues found in this pull request.

The diff has no security-relevant surface:

  • plugins/planning/surface/exporters.py changes one f-string so the brief's TLDR line pluralizes "question" by row count. len(rows) is an integer, so no untrusted input reaches the new expression.
  • plugins/planning/surface/test_exporters.py adds one unit test.
  • .changes/planning/...md is a changelog fragment.

No plugin manifest, userConfig key, workflow, hook, permission, instruction file or trust-gate path is touched. No instruction-surface rule is deleted or softened. The PR context contains no embedded directives.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 9e4b2979645e74333d8a878c91701d3c4fe4ff6e: 0 finding(s), 0 as inline comments.

No findings. I read the full diff and the PR context, and I did not run the new test myself.

What changed. plugins/planning/surface/exporters.py:944 now pluralizes the TLDR line by len(rows). Exactly one row reads - 1 question: ..., and zero or two or more still read questions. It uses the same inline idiom as the commitment{'' if ... else 's'} line just below it.

Closing issue #9378.

  • "With exactly one row the line reads '- 1 question: ...'; with zero or two or more it is unchanged." Met. The new test test_a_single_question_brief_tldr_reads_question_in_the_singular asserts - 1 question: 1 answered and that 1 questions is absent, so it would fail if the fix were reverted.
  • scripts/check-affected.sh --uncommitted passes. Not checked by me. The PR description reports it as passing, and I treat that as author-claimed.

Test setup. The new test writes only a ledger and calls no self.session(...). That works: read() falls back to empty defaults when questions.json and responses.json are missing. export_brief also keeps every ledger-only row, so the single Q1 row reaches the TLDR count. I traced this by reading the code, not by running it.

Manifest. The diff touches no plugin.json or marketplace.json, so no manifest lines apply.

Changelog fragment. bump: patch is right for a user-visible text fix.

Hold. None. The change adds no model spend and touches no trust-gate files.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 24, 2026
@kyle-sexton
kyle-sexton removed this pull request from the merge queue due to a manual request Oct 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 9e4b2979645e74333d8a878c91701d3c4fe4ff6e.

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.

fix(planning): brief TLDR prints "1 questions" for a single question

0 participants