Skip to content

fix(planning): say "seeded 1 question" when import-ledger seeds one - #12415

Merged
kyle-sexton merged 2 commits into
mainfrom
host-run/8611-artifact-transport
Nov 2, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
host-run/8611-artifact-transport

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

No related issue: a one-word plural fix in round.py import-ledger found during the #9529 run; no open issue asks for it.

Summary

round.py import-ledger printed "seeded 1 questions" when a ledger held one question. The noun now agrees with the count.

Fix

  • plugins/planning/surface/round.py: cmd_import_ledger prints question for a count of 1 and questions otherwise.
  • plugins/planning/surface/test_exporters.py: TestImportLedger.test_the_seeded_count_agrees_with_its_noun imports a one-row and a two-row ledger and checks both forms.
  • .changes/planning/: patch fragment.

Verification

  • The new test failed before the fix ('seeded 1 question from' not found in 'seeded 1 questions from ...') and passes after it; all 24 TestImportLedger tests pass.
  • scripts/check-affected.sh --tests on the committed head: 13 passed, 3 skipped, 0 failed.

Related

🤖 Generated with Claude Code

import-ledger printed "seeded 1 questions"; the noun now agrees with the
count. A test imports one-row and two-row ledgers and checks both forms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T16:13:37.476581Z 06292e3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of d319e3cd16cb3270cc0bf5a2e58f4528a5bfa6c3: no file of this pull request changed since the review of 06292e3.

Code review: no findings

This PR fixes one message: round.py import-ledger printed "seeded 1 questions" when it seeded one question.

  • plugins/planning/surface/round.py: cmd_import_ledger now saves len(doc["questions"]) as n and chooses question or questions from it. If the sidecar already holds questions, the command still stops earlier through sys.exit, so a count of 0 reaches this line only from an empty ledger import. It prints "0 questions", which is the right plural. The new line keeps the existing message format and the (rev …) suffix (round.py#L2911-L2914).
  • plugins/planning/surface/test_exporters.py: test_the_seeded_count_agrees_with_its_noun imports a one-row ledger and a two-row ledger, each into its own fresh session directory through self.rp(..., d=fresh). It checks both noun forms, so it would fail if the singular broke again. The ledger text uses the same Open-question register row format as the tests around it.
  • .changes/planning/…md: a bump: patch fragment, which is the right level for a fix to an output message.

Other checks

  • The PR only references feat(planning): claude.ai Artifact transport for the shared interview page #8611 ("Refs"), so there are no acceptance criteria to check against.
  • No plugin manifest changed.
  • None of the changed files match a trusted-path glob.
  • The one path-scoped rule that matches, .claude/rules/ruff-pin.md, says how to run lint, not how to write the code, so it sets no criteria for this diff.
  • The PR text contains no embedded instructions.
  • I ran nothing myself. The PR body says the new test failed before the fix and passes after it, and that check-affected.sh passes; neither is verified.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of d319e3cd16cb3270cc0bf5a2e58f4528a5bfa6c3: no file of this pull request changed since the review of 06292e3.

Security review: PR #12415

I found no security issues.

I read all three changed files in .claude-lane/pr.diff:

  • plugins/planning/surface/round.py: cmd_import_ledger now saves the question count in n and chooses question or questions for the success message. The message still interpolates the same values as before (a.ledger, doc['rev']). No new input reaches anything.
  • plugins/planning/surface/test_exporters.py: a new test writes one-row and two-row ledgers to the test's temp directory and checks the message for each.
  • .changes/planning/...md: a release-notes fragment for a patch bump.

None of the changed files matches a trusted-path glob. The PR doesn't touch any trust control, merge hold, plugin manifest or standing instruction, and nothing in it can cause a charge. The PR description contains no embedded instructions aimed at this review.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 06292e3747c5845df00dfe93c3a0e5b9a13fab06. What it wrote, as data:

Summary: The PR refs #8611, so it may deliver only part of that issue. #8611 asks for a claude.ai
  Artifact transport for the shared interview page. The diff instead fixes a plural in the message
  `round.py import-ledger` prints ("seeded 1 questions"), adds a test and a changelog fragment. The
  PR body itself says the Artifact transport is not in this PR. So the part it delivers is outside
  the issue's scope, and nothing #8611 asks for is delivered. The fix itself is correct and all CI
  jobs passed, but a refs PR whose part falls outside the issue's scope fails.
- plugins/planning/surface/round.py:2911 delivers no part of #8611. #8611's scope and acceptance
  criteria cover only the Artifact transport: the opt-in second transport behind the same switch as
  the named tunnel, the claude.ai sign-in and invite rule for guests, and the `sample` test with an
  invited guest. Fix: link this change to an issue that asks for the import-ledger plural fix (open
  one if none exists, for example from the #9529 finding), using `Closes: #<n>` or `Refs: #<n>`, and
  drop `Refs: #8611`.
- plugins/planning/surface/round.py:2911 the plural logic is correct, test_exporters.py:2237 checks
  both 1 and 2 rows, and every upstream job, test-python included, concluded success. Only the issue
  link blocks.
- PR body: its 'Remaining on #8611' section names the work still to do, but the part it claims to
  deliver (a 'same-plugin fix carried by the #8611 host run') is not within #8611's scope.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass at a new commit removes the label.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 2, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit e62105c Nov 2, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/8611-artifact-transport branch November 2, 2026 18:25
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.

1 participant