Skip to content

Close gaps in the hold and audit gates for external skills - #273

Merged
yourconscience merged 6 commits into
mainfrom
fix-hold-gaps
Nov 15, 2026
Merged

yourconscience merged 6 commits into
mainfrom
fix-hold-gaps

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

An end-to-end run of 2.7.0 in a sandbox home, followed by an independent code review, found paths where outside content reached agents without a recorded override.

  • skill sources add --latest pinned and synced a head younger than 72 hours. It is now held: the lock records the hold but no pin, and nothing is linked until it is released. add takes --allow-fresh and --reason, as skill update does.
  • skill sources add did not run the audit gate, so a source with an unaccepted CRITICAL finding was pinned and linked. It is now blocked until doctor audit accept.
  • skill update of one source rebuilt the lock for every configured source at its cache head, which pinned a held or blocked source as a side effect. A source that is neither updated nor already pinned now gets no lock entry.
  • A release recorded for a held commit applies to that commit: sync keeps a held new source on the held commit, and a head that moved later gets its own hold.
  • A hold or block created by skill update is listed by status, sync, sync --dry-run and the view inventory, with a working override.
  • doctor audit header wording; docs say local sources are not held.

Checked: each gap reproduced with a binary built from main and rerun after the fix in a sandbox home (held and blocked variants); go build, go vet and go test ./... pass. No tests were added or deleted.

Summary by Sourcery

Close audit and freshness-gate gaps so external skill content cannot reach agents without an explicit, recorded override.

New Features:

  • Apply freshness holds and audit blocking when adding external skill sources, with explicit override and reason support.
  • Preserve held commits and expose held or blocked updates consistently across status, sync, dry-run, and inventory views.

Bug Fixes:

  • Prevent external source additions and partial updates from bypassing audit or freshness gates.
  • Avoid rebuilding lock entries for unselected, unpinned sources and prevent newer upstream heads from bypassing an existing hold.
  • Clarify that local sources are not freshness-held while retaining audit enforcement.

Enhancements:

  • Improve hold reporting and override commands for source additions and skill updates.
  • Clarify audit finding output and external-skill hold behavior in user-facing documentation.

Documentation:

  • Update command and skill documentation for freshness overrides, audit blocking, commit-specific releases, update holds, and local-source behavior.

@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 21 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e0a23b5a-be22-4d22-a5da-2ed92c885b67
Commits

Reviewing files that changed from the base of the PR and between 6592e0f and a7e0ba7.

Files selected for processing: 10

  • docs/commands.md
  • docs/skills.md
  • internal/app/app.go
  • internal/app/audit_cmd.go
  • internal/app/audit_gate.go
  • internal/app/external.go
  • internal/app/holds.go
  • internal/app/skill_sources.go
  • internal/app/sync.go
  • skills/tackroom/SKILL.md
  • 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.

Share

@yourconscience

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Reviewer's Guide

API

Expose --allow-fresh on skill sources add in the command syntax and flag parser.

  • internal/app/app.go L683
  • internal/app/skill_sources.go L495-496

Implementation

Gate a newly added source for unaccepted CRITICAL findings and, for --latest, freshness before writing any pin, while recording a hold when blocked.

  • internal/app/audit_gate.go L87-88, L101-114
  • internal/app/skill_sources.go L617-627, L632-641, L650-663 (+3 small edits)

Preserve existing pins for sources not selected during an update, and omit unpinned sources that were not updated so one update cannot bypass another source’s gate.

  • internal/app/external.go L375-396

Keep a new source on its held commit during the hold so releasing it applies to the commit that was reviewed.

  • internal/app/external.go L13, L130-132
  • internal/app/holds.go L208-220

Detect held or blocked update candidates without changing the lock or checkout, and include those holds in status, normal sync, and dry-run reporting with an update override command.

  • internal/app/audit_gate.go L420-421
  • internal/app/external.go L301-330
  • internal/app/sync.go L67-69, L246-252, L461-463

UI

Clarify that the audit finding totals count heuristic findings.

  • internal/app/audit_cmd.go L611

Documentation

Document the freshness hold and override behavior for skill sources add, including the rule that releases apply only to the held commit.

  • docs/commands.md L42
  • docs/skills.md L52, L87
  • skills/tackroom/SKILL.md L180

Explain that local sources are not freshness-held, and that adding a source uses the audit gate before it can be pinned.

  • docs/skills.md L85, L99

Clarify that status includes held skill updates and explain how to release a held update.

  • docs/skills.md L79

Describe the add freshness and override options in the skill command reference.

  • skills/tackroom/SKILL.md L40

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@yourconscience
yourconscience merged commit 590fdd2 into main Nov 15, 2026
13 checks passed
@yourconscience
yourconscience deleted the fix-hold-gaps branch November 15, 2026 15:56
@yourconscience

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Action not completed

Pull request is closed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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