Skip to content

Fix status and sync output for skipped sources - #292

Merged
yourconscience merged 2 commits into
mainfrom
sync-output
Nov 17, 2026
Merged

yourconscience merged 2 commits into
mainfrom
sync-output

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

What and why

Six output defects in status and sync around sources that sync skips (in cooldown or blocked). Five came from the pre-release test of the 3.0 line; the sixth turned up while checking them. All but the last also exist in 2.8.0.

  • status said "none configured" for the external skill lock when every configured source was in cooldown or blocked. It now shows the counts, for example 0 sources pinned and in sync; 1 in cooldown, 0 blocked (skipped by sync). A config with no sources still says none configured.
  • --allow-fresh=<name> with a name that matches nothing was silent. sync, sync --dry-run, skill update and skill sources add now print one line on stderr per such name: --allow-fresh: nothing in cooldown is named "bogus"; in cooldown: skill:review-kit. The exit code stays 0, so a script that names an item keeps working after its cooldown ends. A pending skill update that sync cannot release gets the command that does.
  • sync --dry-run --allow-fresh=<item> planned nothing although the real run then added the skills. The dry run now plans the skills a materialized source would copy in, and still writes nothing, the lock included.
  • status --json and sync --json had no list of skipped items. Both now carry skipped, with the same shape as in sync --dry-run --json, [] when empty. No existing key changed, and the dry-run document has the same keys as before, so the Herdr panel's input is unchanged.
  • materialized a -> b was printed on every sync, even with changes none. It now prints only when the copy was created or changed.
  • sync --json did not parse with a blocked source: git's HEAD is now at ... landed on stdout ahead of the document. git's own output from clone, fetch and reset now goes to stderr.

The 3.0 release notes for these come with the docs PR that collects the notes for the pre-release fixes.

How I checked it

  • go build, go vet, go test ./... pass; lint reports 0 issues; the docs site builds with no warnings. No test was deleted.

  • With a binary from this branch in throwaway homes, against sources served from a loopback git server:

    • a source in cooldown: status prints the counts line; status --json and sync --json list it under skipped with "kind": "cooldown".
    • sync --allow-fresh=bogus prints the warning and exits 0.
    • sync --dry-run --allow-fresh=skill:review-kit prints planned +1 skills (claude, codex) and leaves tackroom.lock with the same checksum; the real run prints changes +1 skills (claude, codex).
    • a second plain sync prints no materialized line.
    • a blocked source: sync --json parses, and the git lines are on stderr.
  • go test ./... and go vet ./... pass

  • I can explain this change without an AI tool

Summary by Sourcery

Improve status and sync reporting for sources skipped due to cooldown or blocking.

New Features:

  • Expose skipped cooldown and blocked sources in status and sync JSON output.
  • Plan pending skills from materialized sources during sync dry runs.
  • Report unmatched --allow-fresh names without failing the command.

Bug Fixes:

  • Correct status reporting when all configured sources are skipped.
  • Keep sync JSON valid by routing Git output away from stdout.
  • Suppress unchanged materialization messages.

Enhancements:

  • Preserve configured source counts while filtering skipped sources from synchronization.

Documentation:

  • Document the skipped items included in status and sync JSON output.

@sourcery-ai

sourcery-ai Bot commented Nov 17, 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 1 day and 6 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

  • Trigger review

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

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: f8b8200a-5f7b-4067-b9c7-5392312e4f8c
  • 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

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Add skipped to the status JSON structure so status and sync can expose gated items.

  • internal/app/json_output.go L47-49, L64

Retain configured external sources separately from the filtered sources so status lock checks still count sources skipped by sync.

  • internal/app/app.go L31-34

Implementation

Track matched --allow-fresh names and report unmatched names or cooldown items that require another command.

  • internal/app/cooldown.go L81-125, L231-235 (+5 small edits)
  • internal/app/external.go L187
  • internal/app/skill_sources.go L593-596, L602-606
  • internal/app/sync.go L464-467 (+3 small edits)

Build dry-run expectations for materialized skills that a real sync would copy into the config root.

  • internal/app/sync.go L495, L727-749

Avoid reporting unchanged materialized skill copies as new materializations.

  • internal/app/external.go L788-793, L800

Route git clone, fetch and reset output to stderr so it cannot precede sync JSON on stdout.

  • internal/app/external.go L414-418 (+5 small edits)

Factor skipped-item JSON construction into a helper and populate skipped items in status, sync and dry-run reports.

  • internal/app/sync.go L652-661 (+5 small edits)

Check the lock against all configured sources and remove redundant command advice from its status detail.

  • internal/app/report.go L624-632

Documentation

Document that status and sync JSON reports include skipped items, with an empty array when none are skipped.

  • docs/commands.md L258

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 28a0a3b into main Nov 17, 2026
11 checks passed
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