You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting DOCKET_HOOKS=off makes hooks/guard_ledger.py exit silently for every call (no ask on ledger writes, no guidance, no governing-decisions context, no feature nudge). docket context still prints the ledger but drops the no-feature hint and the update and merge notices. Unset behaves as before. Tests added next to the hook tests; README paragraph and changelog entry.
Summary by CodeRabbit
New Features
Set DOCKET_HOOKS=off to silence edit-hook prompts and feature, update, and merge notices in the session briefing. The ledger output remains visible.
Setting DOCKET_HOOKS=off now silences the ledger edit hook and suppresses feature, update, and merge notices in the session briefing. The briefing still prints the ledger. Tests cover the opt-out and the existing prompt behavior when the setting is on.
Changes
Hook and briefing opt-out
Layer / File(s)
Summary
Silence the ledger edit hook hooks/guard_ledger.py, tests/test_guard_ledger.py
When DOCKET_HOOKS is exactly off, the guard returns success without reading input or printing output. Tests cover ledger and project-file edits. A test also confirms that on still prompts for a ledger edit.
When DOCKET_HOOKS is exactly off, the context command suppresses the feature hint and update and merge notices. The ledger output remains. Tests and documentation cover the setting.
NovusEdge/docket issue 32: The opt-out suppresses the guard_ledger prompt reported for flocc commit, but does not classify that command as a permitted ledger operation.
NovusEdge/docket issue 31: The opt-out suppresses the guard_ledger prompt reported for read-only grep, but does not change quote-aware command parsing.
Merge Risk: Low · up to 46d56
The opt-out silences hooks and briefing notices while retaining ledger output. This is mergeable with follow-up tests for notice suppression and stderr silence.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit sets the hooks to rest The ledger stays, as rabbits guessed No feature hint hops into view Update and merge notices too The quiet briefing prints its best
Comment @coderabbitai help to get the list of available commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setting
DOCKET_HOOKS=offmakes hooks/guard_ledger.py exit silently for every call (no ask on ledger writes, no guidance, no governing-decisions context, no feature nudge).docket contextstill prints the ledger but drops the no-feature hint and the update and merge notices. Unset behaves as before. Tests added next to the hook tests; README paragraph and changelog entry.Summary by CodeRabbit
DOCKET_HOOKS=offto silence edit-hook prompts and feature, update, and merge notices in the session briefing. The ledger output remains visible.DOCKET_HOOKS=offsetting.