Repository navigation
feat(#851): build a slim release branch for the Anthropic plugin directory - #853
Merged
Merged
Conversation
…rectory The directory has held every version since v0.29.1: the full repository (474 files, 9.2 MB, a 611 KiB CHANGELOG.md) times out its validator and breaks its file rules. main keeps everything; a tag push now builds the tree the plugin actually runs and publishes it to `release`. - .github/scripts/build_release_tree.py: extracts a ref with git ls-tree + cat-file (no git archive, no export-ignore), drops the deny-list in .github/release-branch.json, cuts CHANGELOG.md to the latest released section, rewrites links into removed paths to absolute URLs on main. - .github/scripts/check_release_tree.py: the directory's pre-submission checklist, every mechanically decidable row, every offender named; credential reads reported as REVIEW lines, never failed. - .github/scripts/smoke_release_tree.py: claude plugin validate --strict, then every hooks.json command once against a copy of the tree with a temp HOME/project/TMPDIR and a fake claude; lingering children reaped. - .github/workflows/release-branch.yml: on v* tags and workflow_dispatch; read-only verify job (build, check, validate, smoke), then a publish job that rebuilds, requires the identical tree, and pushes one commit on top of `release` (own linear history, never forced). - docs/releasing.md: the new release sequence and the one manual portal step; linked from README.md and CONTRIBUTING.md. v0.36.0 builds to 73 files, 1,300,959 bytes; check and validate pass. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d not measure Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…teps, our marketplace, and reuse in other plugins Co-Authored-By: Max <noreply>
This was referenced Oct 2, 2026
README does not disclose everything the plugin runs, sends and stores (directory security scan)
#854
Closed
This was referenced Oct 2, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The Anthropic directory listing is stuck on v0.29.1. Every version since was held by directory policy. On v0.36.0 it fetched 474 files and 9.2 MB, then reported "Validation ran out of time". This PR adds a
releasebranch that carries only what the plugin runs, built and checked by CI whenever a version tag is pushed.maindoesn't change.Closes #851
What it adds
.github/scripts/build_release_tree.pybuilds the tree from a git ref, usinggit ls-treeandgit cat-file. It never usesgit archive, so noexport-ignoreis needed, and it never reads the working tree. It:main;.gitattributes..github/scripts/check_release_tree.pychecks the tree against every automated row of the directory's pre-submission checklist: the 256 KiB / 512-file / file-type rules, names valid on Windows and macOS,.gitattributes, README and LICENSE, hooks.json shape and command form, front matter, launchers, and lockfiles. Code that reads a credential is printed asREVIEWlines for README disclosure; those never fail the check..github/scripts/smoke_release_tree.pyrunsclaude plugin validate --strict, then every hook inhooks/hooks.jsononce, in an isolated temp HOME and project, with a fakeclaude/codexthat refuses every call..github/release-branch.jsonholds everything specific to this repo, so claude-jit-context and claude-supertool can reuse the scripts with their own config..github/workflows/release-branch.ymlruns onv*tags andworkflow_dispatch.verifyjob builds, checks and smoke-tests.publishjob is the only one withcontents: write. It rebuilds, refuses to push unless the tree hash matches the oneverifyproduced, and adds one commit on top ofrelease.docs/releasing.mdgives the new release sequence with the reason for each step. It also explains how the directory picks the branch it reads, the one-time portal switch, the effect on our own marketplace, and how to reuse this in another plugin.Measured on v0.36.0
claude plugin validate --strict(2.1.280): passes.Testing
tests/test_release_branch_{build,check,preflight,smoke}_851.py, written red first. Every "must remove / must fail" case is paired with a "must keep / must pass" control.pytest: 2970 passed, 60 skipped.Not in this PR
release. That's a one-time step in the portal, done after the firstreleasecommit exists.REVIEWlines point at. Tracked separately./oss:release. It should treat the tag push and this workflow run as a required step. Out of scope; filed as a follow-up.Cross-platform claims
GITHUB_TOKENwould not trigger the workflow. That's documented GitHub behaviour; our release flow pushes tags with the maintainer's own credentials.🤖 Generated with Claude Code
[AI-generated]