Skip to content

fix(docs): document Mode-B ## Files exclusion-cue caveat in /pharn-plan - #137

Merged
PrzemekGalarowicz merged 2 commits into
mainfrom
feat/f13-modeb-cue
Aug 12, 2026
Merged

fix(docs): document Mode-B ## Files exclusion-cue caveat in /pharn-plan#137
PrzemekGalarowicz merged 2 commits into
mainfrom
feat/f13-modeb-cue

Conversation

@PrzemekGalarowicz

@PrzemekGalarowicz PrzemekGalarowicz commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Documents that a bare, non-blockquote prose line under a PLAN's ## Files can trigger Mode-B's exclusion-cue fallback and silently truncate the authorized writes-scope.
  • Names the three safe patterns (blockquote, path-item description, or ### Explicitly not touched) and clarifies that non-path lines under ## Files are not harmless.
  • Bumps SKILLS_VERSION to 2.5.3 (patch) with matching README badge and CHANGELOG entry; includes the f13-modeb-cue audit trail.

Test plan

  • Confirm npm test / npm run check stay green (verify already recorded PASS)
  • Spot-check .claude/commands/pharn-plan.md Mode-B ## Files blockquote reads clearly next to the three existing parse rules
  • Confirm README badge and SKILLS_VERSION both read 2.5.3
  • Confirm no behavior change to set-writes-scope.cjs (docs-only clarification)

Made with Cursor

Summary by CodeRabbit

  • Documentation
    • Clarified how file paths and exclusions are interpreted in planning guidance.
    • Added release documentation, validation reports, and regression records for the update.
  • Bug Fixes
    • Prevented ambiguous prose from prematurely ending the authorized file-path list.
    • Preserved fail-closed write-scope behavior.
  • Chores
    • Updated the documented version from 2.5.2 to 2.5.3.
    • Added a changelog entry describing the scope-parsing clarification.

A bare narrative line under ## Files can truncate writes-scope; name the trap and the three safe patterns, and bump SKILLS_VERSION to 2.5.3.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@PrzemekGalarowicz, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9f0426ec-8c34-4684-bd33-a74b81c44018

📥 Commits

Reviewing files that changed from the base of the PR and between b955bd4 and 0382d65.

📒 Files selected for processing (4)
  • .claude/commands/pharn-plan.md
  • CHANGELOG.md
  • README.md
  • SKILLS_VERSION
📝 Walkthrough

Walkthrough

This documentation-only change clarifies fail-closed /pharn-plan.md ## Files parsing, updates version metadata to 2.5.3, and adds planning, regression, verification, review, grill, and shipment records.

Changes

Mode-B exclusion-cue documentation

Layer / File(s) Summary
Scope contract and version metadata
.claude/commands/pharn-plan.md, CHANGELOG.md, SKILLS_VERSION, README.md
The plan command defines how exclusion-like prose truncates authorized paths. The changelog and version indicators record release 2.5.3.
Execution and regression records
.dev/features/f13-modeb-cue/PLAN.md, .dev/features/f13-modeb-cue/GRILL.md, .dev/features/f13-modeb-cue/REGRESSION.md, .dev/features/f13-modeb-cue/regression-report.json
The feature records its documentation-only plan, grill checks, initial badge mismatch, correction, and final no-regressions result.
Verification, review, and shipment records
.dev/features/f13-modeb-cue/VERIFY.md, .dev/features/f13-modeb-cue/verify-report.json, .dev/features/f13-modeb-cue/REVIEW.md, .dev/features/f13-modeb-cue/SHIP.md
The reports record passing gates, review findings, a lesson candidate for version consistency, shipment stages, and the remaining human-controlled release decision.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the documentation change for the Mode-B ## Files exclusion-cue caveat in /pharn-plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/f13-modeb-cue

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/commands/pharn-plan.md:
- Around line 240-242: Update the placeholder guidance in the touched-heading
rule to show an angle-bracket path as a list item matching pathsFromPlanFiles,
such as “- `<path>`”, and explicitly state that a bare “- `path`” item is unsafe
because it parses as a real scope path.

In @.dev/features/f13-modeb-cue/GRILL.md:
- Around line 48-60: Reconcile the final scope with the grill gate: in
.dev/features/f13-modeb-cue/GRILL.md lines 48-60, review README.md or record an
approved post-grill scope amendment; in lines 71-82, update the summary and
verdict to cover the final scope; and in .dev/features/f13-modeb-cue/SHIP.md
lines 18-30, rerun the grill or record the required human approval before
closing the chain.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3794458d-ce2d-43f2-9e07-6875f07aafff

📥 Commits

Reviewing files that changed from the base of the PR and between 84c6f15 and b955bd4.

📒 Files selected for processing (12)
  • .claude/commands/pharn-plan.md
  • .dev/features/f13-modeb-cue/GRILL.md
  • .dev/features/f13-modeb-cue/PLAN.md
  • .dev/features/f13-modeb-cue/REGRESSION.md
  • .dev/features/f13-modeb-cue/REVIEW.md
  • .dev/features/f13-modeb-cue/SHIP.md
  • .dev/features/f13-modeb-cue/VERIFY.md
  • .dev/features/f13-modeb-cue/regression-report.json
  • .dev/features/f13-modeb-cue/verify-report.json
  • CHANGELOG.md
  • README.md
  • SKILLS_VERSION

Comment thread .claude/commands/pharn-plan.md Outdated
Comment on lines +48 to +60
- **P3 (one axis of change / no sibling imports):** the three touched files (`pharn-plan.md`,
`CHANGELOG.md`, `SKILLS_VERSION`) are one coherent change-reason (documenting a caveat + its mandatory
version/changelog bookkeeping under this repo's own SKILLS_VERSION discipline) — not two unrelated
reasons bundled. No sibling-module reference is introduced; a command doc is not part of the
`pharn-contracts` layer tree.
- **P5 (determinism):** both prior open questions (option A vs B; the 2.5.1-vs-2.5.2 version-base
discrepancy) were resolved by asking the human at GATE 1, not guessed. The plan's own remaining
branches (which file gets which edit) are fixed, not classified.
- **P7 (honest scope / no speculation):** the plan explicitly excludes touching
`set-writes-scope.cjs` (option B) and `pharn-dev-plan.md` (no parity edit requested by the build
prompt) under `### Explicitly not touched`, with reasons — the smallest coherent increment, not two
bundled. The lesson L18 citation is genuinely on-point (same code path, adjacent failure mode), not a
padded citation.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Reconcile the final scope with the grill gate.

The final plan contains README.md, but the grill analyzes only three files. The shipment record confirms that the file was added after the grill and that no grill rerun occurred.

  • .dev/features/f13-modeb-cue/GRILL.md#L48-L60: review README.md or record an approved post-grill scope amendment.
  • .dev/features/f13-modeb-cue/GRILL.md#L71-L82: update the summary and verdict to cover the final scope.
  • .dev/features/f13-modeb-cue/SHIP.md#L18-L30: rerun the grill or record the required human approval before closing the chain.
📍 Affects 2 files
  • .dev/features/f13-modeb-cue/GRILL.md#L48-L60 (this comment)
  • .dev/features/f13-modeb-cue/GRILL.md#L71-L82
  • .dev/features/f13-modeb-cue/SHIP.md#L18-L30
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.dev/features/f13-modeb-cue/GRILL.md around lines 48 - 60, Reconcile the
final scope with the grill gate: in .dev/features/f13-modeb-cue/GRILL.md lines
48-60, review README.md or record an approved post-grill scope amendment; in
lines 71-82, update the summary and verdict to cover the final scope; and in
.dev/features/f13-modeb-cue/SHIP.md lines 18-30, rerun the grill or record the
required human approval before closing the chain.

@PrzemekGalarowicz
PrzemekGalarowicz merged commit 08f6fd1 into main Aug 12, 2026
8 checks passed
@PrzemekGalarowicz
PrzemekGalarowicz deleted the feat/f13-modeb-cue branch August 12, 2026 14:38
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