Skip to content

Call the 72-hour wait a cooldown (breaking, for 3.0.0) - #287

Merged
yourconscience merged 15 commits into
mainfrom
cooldown-rename
Nov 17, 2026
Merged

yourconscience merged 15 commits into
mainfrom
cooldown-rename

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Renames the concept everywhere a user or a script sees it. The 72-hour wait on new third-party pins and new package versions is a cooldown; the threshold is the minimum release age. "hold" and "held" are gone from output, the lock file and JSON.

Draft: breaking, meant for 3.0.0. The code, the wording pass and the launch video are complete.

What changed

  • Lock file: holds: becomes cooldowns: and hold_until becomes cooldown_until. Old keys are still read with the same meaning and rewritten on the next write. For the same item and ref under both keys, the cooldowns: entry wins and a skip decision is never carried over from the old entry.
  • JSON: sync --dry-run --json lists skipped items under skipped (was held), each with kind cooldown or blocked. /api/inventory lock rows use state cooldown. freshness_unchecked and would_release_with_allow_fresh keep their names.
  • Output: status, sync, doctor, setup, skill update, the TUI and the web view use the new words. --allow-fresh keeps its name and now "skips the cooldown".
  • Herdr panel: reads skipped, and still reads held from an older binary.
  • Upgrade note added under Unreleased.

How it was checked

  • Built binary in a clean home against a lock written by 2.8.0: the item stays in cooldown, read-only commands leave the old lock byte-identical, the first write rewrites the keys, --allow-fresh still skips it.
  • A lock with the same item and ref under both keys, in three combinations (skip recorded only under the old key, only under the new key, identical): one entry after a write, and the item stays in cooldown unless the new-key entry records the skip.
  • go vet, go build, go test pass; no test needed deleting. An independent review found no path that releases, pins or syncs an item early.
  • Not exercised: the interactive TUI and the Herdr panel in a running Herdr.

Vocabulary

Old New
a hold, the hold a cooldown, the cooldown
held (state) in cooldown
held 41h of 72h cooldown 41h of 72h
is held for 72 hours is in cooldown for 72 hours, or has a 72-hour minimum release age
release a hold skip the cooldown
the hold ends the cooldown ends
freshness hold, 72h hold (the rule) minimum release age (72 hours)
"freshness not checked" "minimum release age not checked"

No other synonyms. --allow-fresh, blocked and the audit gate keep their names.

Prose, site and images: done

main is merged in (only docs/upgrading.md conflicted). The wording pass covers the README, every docs page, the skill, the Herdr recipe, the brand pages, the landing page with its sample lock, the stylesheet classes, og.svg and og.png, and both README images. The heading in docs/skills.md is now "The 72 hour cooldown" and every link to the old anchor is updated.

Checked after the merge:

  • go build, go vet, go test ./... and lint pass. The docs site builds with no anchor warnings.
  • A lock written with holds: and hold_until is read with the same meaning; status, sync --dry-run and doctor leave it byte-identical; the first write turns the keys into cooldowns: and cooldown_until.
  • The docs quote real output from this branch, for example in cooldown or blocked (skipped by sync) and skipped 1 blocked item(s) and 1 item(s) in cooldown; see tackroom status.

Left as they are on purpose: the ordinary English word, release history under ## To 2.x in docs/upgrading.md, and the identifiers that read old data (holds:, hold_until, the Herdr held fallback) or keep a public name (freshness_unchecked).

The launch video docs/site/brag.mp4 and its poster docs/site/brag.jpg are re-rendered: the headline is "Pin. Audit. Cool down." and the tag reads cooldown 41h of 72h. Only the lock scene changed (frames 136 to 376); the other 480 frames and the soundtrack are identical to the previous file.

Not exercised: the interactive TUI, the web view in a browser, and the Herdr panel in a running Herdr.

@coderabbitai

coderabbitai Bot commented Nov 16, 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: e8d653cc-22a2-424f-b525-ed90f7285675
  • 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 16, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Schema and migrations

Rename persisted lock entries to cooldowns and cooldown_until, while decoding legacy hold keys with the documented precedence and migration behavior.

  • internal/app/lock.go L8, L21-48

Data structures

Rename the shared gate state and setup summary fields that carry cooldown decisions through the application.

  • internal/app/app.go L26-30, L248
  • internal/app/setup_summary.go L24, L297-298

API

Change the dry-run JSON contract to expose skipped items with cooldown kinds, and change inventory lock rows to report cooldown state.

  • internal/app/audit_gate.go L95-107, L199-234, L383-391 (+15 small edits)
  • internal/app/sync.go L57-70, L232-244, L451-462 (+21 small edits)

Uses of the API

Update command paths and inspection callers to consume and report the renamed cooldown gate decisions consistently.

  • internal/app/audit.go L119, L124-125, L137
  • internal/app/doctor.go L561-651 (5 small edits)
  • internal/app/external.go L91-100, L183-191, L299-314 (+12 small edits)
  • internal/app/mcp.go L59, L68-70
  • internal/app/skill_sources.go L618-627, L632-641, L660-663 (+5 small edits)
  • internal/app/view_inventory.go L383, L389

Implementation

Update package-age diagnostics to describe the existing minimum-age rule using cooldown terminology.

  • internal/app/package_age.go L83

UI

Present cooldown terminology in the TUI and web view, and have the Herdr panel read the new skipped list while retaining its older-binary fallback.

  • herdr/tackroom/mods/tackroom/main.js L8-359 (5 small edits)
  • internal/app/tui.go L447-450 (+3 small edits)
  • internal/app/web/app.js L366-369 (+5 small edits)
  • internal/app/web/style.css L448

Documentation

Document the terminology and breaking interface changes, legacy lock migration, and shared-lock upgrade requirements.

  • docs/upgrading.md L12-15

Other changes

Files not grouped.

  • internal/app/holds.go L12-46, L152-218, L349-356 (+15 small edits)

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

Comment thread internal/app/sync.go Fixed
@yourconscience
yourconscience marked this pull request as ready for review November 17, 2026 05:08
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Sorry @yourconscience, your pull request is larger than the review limit of 150,000 diff characters

@yourconscience
yourconscience merged commit b79fa38 into main Nov 17, 2026
9 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.

2 participants