Repository navigation
Add trusted_packages for packages that skip the cooldown - #297
Conversation
|
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 4 hours by commenting |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Reviewer's GuideData structuresAdd the configuration field that distinguishes an absent trusted-package list from an explicitly empty one.
ImplementationApply trusted-package exemptions to cooldown reference selection and package-age checks, and define the defaults and entry validation they rely on.
ConfigurationPreserve trusted-package overrides while merging configuration and reject entries that are not valid ecosystem-qualified package names.
DocumentationDocument the trusted-package defaults and override behavior, and correct the stated PyPI pre-release cooldown gap.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
What and why
One package was exempt from the 72-hour cooldown in code:
@openai/codex. This makes the exemption a setting.trusted_packages:intackroom.yaml(ortackroom.local.yaml) lists packages asnpm:<name>orpypi:<name>. A new version of a listed package is never in cooldown: no registry lookup, nothing in the lock.npm:@openai/codex,npm:@anthropic-ai/claude-codeandnpm:@earendil-works/pi-coding-agent. The Pi package is the one tackroom itself names, and the registry listsgithub.com/earendil-works/pias its repository.trusted_packages: []gates every package.config trusted_packages entry "foo" must be npm:<name> or pypi:<name>.doctornames the trusted packages its package age check skipped.Two reported gaps were checked on the way and turned out not to exist, so no code changed for them:
1.0rc1is not gated. It is, onmaintoo.docs/skills.mdnow states the real, narrower gap: a single number followed by a tag (2a3), an underscore form, or an epoch.--allow-fresh. The claim was that a recorded skip carries over to a new head when upstream rewrites history. It does not: the decision is keyed by item and commit, and a new head got its own cooldown entry in a run against a rewritten repo.The 3.0 release note comes with the PR that collects the notes for these 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, an MCP server on
npx -y @openai/[email protected](a version that does not exist, so "publish time unknown" proves a lookup happened):doctorprints1 package-age exception (trusted_packages: npm:@openai/codex).trusted_packages: []:cooldown mcp:codex-x: publish time unknown for npm:@openai/[email protected].trusted_packages: [codex]:config validatefails with the message above.The same with the list in
tackroom.local.yamland with apypi:entry;config print,config inventoryandconfig setwork with the key present and absent.Not run: the web view in a browser with the new key.
go test ./...andgo vet ./...passI can explain this change without an AI tool
Summary by Sourcery
Make package cooldown exemptions configurable while retaining sensible defaults and exposing skipped trusted packages in diagnostics.
New Features:
Bug Fixes:
Enhancements:
Documentation: