Skip to content

Describe a SessionEnd Matcher by Its Shape in the Installer Report - #1841

Merged
ptr727 merged 3 commits into
developfrom
fix/sessionend-matcher-plural-wording
Sep 26, 2026
Merged

ptr727 merged 3 commits into
developfrom
fix/sessionend-matcher-plural-wording

Conversation

@ptr727

@ptr727 ptr727 commented Sep 26, 2026

Copy link
Copy Markdown
Owner

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_reason classifies 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

ptr727 and others added 3 commits September 25, 2026 17:08
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]>
Copilot AI lite review requested due to automatic review settings September 26, 2026 00:14
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Sep 26, 2026
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: fcff1661-6a07-4408-87e1-671cb86618e2


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Low severity

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_reason docstring 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.

@ptr727
ptr727 merged commit 6ae997b into develop Sep 26, 2026
9 checks passed
@ptr727
ptr727 deleted the fix/sessionend-matcher-plural-wording branch September 26, 2026 00:20
ptr727 added a commit that referenced this pull request Sep 26, 2026
… 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants