Skip to content

fix(hooks): inject priming notes whole or not at all; default profile is balanced (#238) - #245

Merged
CryptoJones merged 1 commit into
mainfrom
fix/238-capsule-whole-note-or-stub
Aug 14, 2026
Merged

fix(hooks): inject priming notes whole or not at all; default profile is balanced (#238)#245
CryptoJones merged 1 commit into
mainfrom
fix/238-capsule-whole-note-or-stub

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Fixes the primary "reads OMI, then ignores it" mechanism from the 2026-08-14 investigation.

  • Whole-note-or-stub allocation in _allocate_sections: a section is included whole or replaced by an omitted-stub naming the exact recall-note call ({"name": …, "max_chars": …}); never a mid-body cut that reads as complete. index.md (catalog) may still truncate mid-list.
  • Default profile economybalanced (8k capsule) — two of three fleet boxes were silently on 4k capsules.
  • Rules.md added as first-priority priming: an optional operator note of imperative one-liners guaranteed to inject whole on every profile (documented in README, ~3,500-char guidance).
  • Per-note digest cap for priming files raised from 1,200 to the 16k runaway guard so the allocator, not a hidden pre-clip, decides inclusion; an upstream-clipped digest is stubbed, not shipped partial.
  • Tests: fix(hooks): capsule budget shreds priming notes into preamble-only stubs — fit whole notes, drop don't shred #238's acceptance scenarios (4k cap + 8k Playbook → whole-or-stub, Rules.md whole with everything else oversized, index still truncatable) plus updates to the capsule tests that pinned the shredding behavior. Full suite: 943 passed; ruff clean.
  • Version 8.2.7 → 8.3.0, CHANGELOG entry.

Closes #238

🤖 Generated with Claude Code

… is balanced (#238)

The capsule allocator pro-rated its budget across sections, so on the
economy profile (the shipped default, live on two of three fleet boxes)
an 8k Playbook arrived as ~400 chars of preamble with zero rules — the
agent was blamed for ignoring rules that were never in context. Sections
now fit whole in priority order; an oversized note becomes a one-line
stub naming the exact recall-note call (index.md, a catalog, may still
truncate mid-list). Rules.md joins PRIMING_FILES first so a compact
operator rules note always arrives whole. Default profile: balanced.

Closes #238

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 114 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b986794d-dbd4-498a-8587-5c20a0a83efd

📥 Commits

Reviewing files that changed from the base of the PR and between 3816751 and f942717.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (9)
  • CHANGELOG.md
  • README.md
  • pyproject.toml
  • src/omind/__init__.py
  • src/omind/ai_usage.py
  • src/omind/hooks.py
  • tests/test_ai_usage.py
  • tests/test_hooks.py
  • tests/test_web.py

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.

@CryptoJones
CryptoJones merged commit 4957049 into main Aug 14, 2026
16 checks passed
@CryptoJones
CryptoJones deleted the fix/238-capsule-whole-note-or-stub branch August 14, 2026 15:00
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(hooks): capsule budget shreds priming notes into preamble-only stubs — fit whole notes, drop don't shred

1 participant