Repository navigation
Description
merge-and-release step 7 refreshes this machine's Skills from the newly promoted main, and step 8 then returns the base clone to develop. Those two steps disagree, and the disagreement is invisible because it only shows once develop moves ahead of main.
Two install channels, two different semantics
scripts/skills_install.py installs twice, and only one of them is a snapshot.
- Codex and opencode get a
shutil.copytree()of.agents/skills/into the agent skills directory under the user's home. That is a copy, taken at install time, and it keeps whatever HEAD the install ran against. - Claude Code gets a marketplace registration, and it is a
directorysource whoseinstallLocationis the hub checkout itself.claude plugin installstates that it loads in place from<root>/.claude-plugin/fleet-skills. Nothing is copied, so this channel does not hold a revision at all. It serves whatever the checkout's working tree holds at read time.
The consequence
Whichever branch the hub base clone sits on decides what every Claude Code session on that machine loads. Step 8 of merge-and-release deliberately puts that clone back on develop and repo-worktree "Listing and Cleanup" requires the same, so the documented steady state is a clone on develop. Every Claude Code session on the machine therefore loads unpromoted develop content, while the Codex and opencode copy holds the promoted main content that step 7 installed.
They agree immediately after a promotion, because develop and main carry the same tree then, and they diverge from the first feature merge afterwards. A feature branch checked out in the base clone would be served too.
Reproduction
Run the procedure and read the report after each step:
# step 7, with the clone on main
python3 scripts/skills_install.py
python3 scripts/skills_install.py --report # stale: false
# step 8
git checkout develop
python3 scripts/skills_install.py --report # stale: trueMeasured today, with main at the promotion merge and develop at its squash: the report read stale: false at the end of step 7 and stale: true after step 8, with the stamp naming main's tip and currentCommit naming develop's. Nothing drifted between the two reads. The procedure's own last step moved HEAD, so a run that completes correctly ends by reporting the machine stale.
What is not being claimed
Whether serving develop to Claude Code sessions in the hub is wrong is a separate question, and there is a real argument that a hub session should read the content it is editing. What is wrong is that the two channels answer differently while one procedure claims to refresh both, and that --report calls a correctly finished run stale.
Options, none of them chosen here
- Have step 7 state the split plainly, so a reader knows the Claude Code channel follows the checkout and the copy does not. Documentation only, no behaviour change.
- Point the marketplace at a location that does not move, so both channels hold a revision.
- Key
--reporton the stamp against the installed content rather than against the checkout's current HEAD, so a clone that has moved branch does not read as a stale install.
Filing rather than fixing, since which of these is wanted is a design call about what a hub session should load.
Credit
The in-place loading was established by another session on this machine, which had diffed a month-old plugin cache tree against the hub, found 25 files differing and five skills absent, and concluded sessions were loading stale skills. They were not: that cache is a leftover from an older CLI that copied files, and nothing reads it. The proof was that two skills present and current in the live session list did not exist in the cache being diffed. A second note worth carrying from that: do not read that cache to decide which skills a session has, read the session's own skill list or .agents/skills/ in the hub.
Activity
ptr727 commentedon Sep 21, 2026
Sharper framing of this issue's core, from the session that established the in-place loading, and better than the wording above.
"The machine is current" is two claims, not one, and
--reportanswers neither directly. The Codex and opencode side is acopytreesnapshot, so for that side "current" means the copy was taken from the revision you want. The Claude Code side loads live from the checkout, so for that side "current" means the checkout is sitting on the revision you want right now, which is a property of the working tree rather than of any install that ever ran. Those two can disagree, and they do from the first feature merge after a promotion.What
--reportcompares is the stamp against the checkout's current HEAD. That answers whether the checkout has moved since the last install, which is neither of the two claims above. It readsstalefor a machine whose snapshot is exactly right and whose live channel is serving precisely what the checkout holds, purely because the branch changed, and it would read current for a machine whose two channels disagree, as long as nobody moved the branch after installing.Option 3 in the issue body, re-keying
--reporton the installed content, should therefore be read as "decide which of the two claims the report is making, and say so", rather than as a comparison to swap in.ptr727 commentedon Sep 24, 2026
Decision (maintainer, 2026-09-23): document the split, and have
--reportanswer each channel separately.Live loading stays, because a hub session reading the content it is editing is worth keeping. So option 2, pinning the marketplace to a location that does not move, is declined. What changes:
merge-and-releasestep 7 states the split plainly. The Codex and opencode copy holds the revision it was taken from, and the Claude Code channel serves whatever the checkout holds at read time.--reportstops comparing the stamp against the checkout's HEAD as one verdict and answers the two claims by name. For the snapshot, it says which revision the copy was taken from and whether that is the one intended. For the live channel, it says which branch and commit the checkout is serving now. A correctly finished run then no longer reads as stale.Not started. This is the next item for implementation.
Report the Skills Snapshot and the Live Checkout Separately (#1755)