Repository navigation
Describe a SessionEnd Matcher by Its Shape in the Installer Report - #1841
Conversation
A matcher can name several exit reasons, so the report and the test docstring no longer say it narrows the sweep to one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The check classifies the matcher's shape rather than evaluating it, so a `.*` or a non-string matcher names no reason at all. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The changes are narrowly-scoped wording clarifications with no behavioral changes, and the sole finding is a minor docstring-summary punctuation fix.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
This PR tightens the installer/test wording around SessionEnd matcher reporting so the output describes the matcher shape being checked (absent/empty/*) and avoids over-claiming that a non-empty matcher “runs on that exit reason alone”.
Changes:
- Refines the
matcher_covers_every_exit_reasondocstring summary to describe the recognized “all-exit” shapes. - Updates the SessionEnd sweep reporting comment + message to hedge behavior for any matcher other than absent/empty/
*. - Adjusts a related test docstring to match the clarified semantics.
| File | Description |
|---|---|
| host-setup/agent-safety/claude/install.py | Clarifies SessionEnd matcher “shape” classification and softens installer report wording for non-absent matchers. |
| host-setup/agent-safety/claude/test_install.py | Updates test docstring language to align with the clarified matcher semantics. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
… Fixes to Main (#1839) Promotes `develop` to `main`. ## Carried - #1830: stops the prose gate reading a `#` after `$` or `${` as a comment marker, per #1646. - #1832: corrects the comment on the `pr_review.py` quota-refusal remedy, per #1647. - #1834: accepts an absent, empty, or wildcard SessionEnd matcher as covering every exit reason, per #1638. - #1838: routes every question and every offer of more work through the interface's prompt mechanism, blocking or not. - #1841: describes a SessionEnd matcher by its shape in the installer report, following #1834. Closes #1646 Closes #1647 Closes #1638 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
The SessionEnd matcher report said the sweep "runs on that exit reason alone", but a matcher can name several reasons, and
matcher_covers_every_exit_reasonclassifies the matcher's shape rather than evaluating it, so a.*or a non-string matcher names no reason at all. The report, the comments above it, the function's docstring summary, and a test docstring now describe the shape (anything other than absent, empty, or*) and hedge the effect ("may not run on every exit reason").Raised by Copilot on the promotion PR #1839.
Review
Three local strict review passes recorded. Rounds one and two found the replacement wording still over-claiming and two adjacent lines carrying the same claim, all fixed. The third found no defect in the changed lines. The match-all regex being reported at all is pre-existing behavior, filed as #1840.
🤖 Generated with Claude Code