Skip to content

fix(claude-code): detect upstream-sync skill edits without a version bump - #318

Open
gatezh wants to merge 7 commits into
claude-code/sandbox-readonly-devcontainerfrom
claude-code/upstream-sync-version
Open

gatezh wants to merge 7 commits into
claude-code/sandbox-readonly-devcontainerfrom
claude-code/upstream-sync-version

Conversation

@gatezh

@gatezh gatezh commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

What

Release devcontainer-upstream-sync 1.4.0. Its self-update now compares file content as well as version:, CI fails a skill edit that doesn't bump the version, and the skill handles the sandbox's read-only .devcontainer/ from #319.

Why

The skill changed in four commits on 2026-10-22 without a bump from 1.3.0. Workflow 4 compared only version: values, so projects that adopted 1.3.0 earlier report "up to date" and never got those changes. The missed changes include moving init-firewall.sh to "Retired paths" and removing patch-playwright-mcp calls (#283). Separately, #319 makes .devcontainer/ read-only in the sandbox, so the skill's adopt step can't write there anymore.

Changes

Skill (claude-code/.claude/skills/devcontainer-upstream-sync/SKILL.md)

  • version: 1.3.0 → 1.4.0. Copies still on 1.3.0 compare only versions, so they need this bump to see the release.
  • Workflow 4 diffs the whole upstream file first. If the files differ and the versions match, it reports drift: same version, different content. The decision-flow node "Skill version stale?" becomes "Skill differs from upstream?".
  • Workflow 1's fetch uses curl -f --create-dirs and saves each row under its full upstream path. Before this:
    • /tmp/upstream-sync/ was never created, so curl failed.
    • A 404 page was diffed as if it were the file.
    • The three SKILL.md rows overwrote each other's temp file.
  • Sandbox: the skill checks test -w .devcontainer before Workflow 2. In the sandbox it audits and reports, and tells the user to adopt .devcontainer/ changes on the host or in the default variant, instead of starting edits that fail halfway.
  • Workflow 1 adds security findings. A sandbox docker-compose.yml without the read-only .devcontainer mount is reported as a security finding ([BUG] sandbox: agent can write .git/ and .devcontainer/, which the host then runs #289). The file is starter-customize, so the skill shows the mount line and asks before adding it.
  • The one-time install uses curl -fsSL --create-dirs -o. A failed download now leaves no file, instead of a 404 page or an empty SKILL.md.

CI (.github/workflows/ci.yml)

  • New skill-version job: when a PR changes the skill, it requires a strictly higher version: (sort -V). The job compares against HEAD^1 of the PR merge commit, so it needs fetch-depth: 2. It's added to ci-complete.needs.

README (claude-code/README.md)

  • The upstream-sync section says the skill updates whenever upstream's copy changes, and uses the new install snippet.

Notes

Closes #283

…bump

devcontainer-upstream-sync changed four times on 2026-10-22 without
bumping version: from 1.3.0, and Workflow 4 (self-update) compared only
version: values. Projects that adopted 1.3.0 earlier reported "up to
date" and missed the init-firewall.sh retirement and the
patch-playwright-mcp removal.

Bump to 1.4.0, so existing copies, which still compare versions only,
pick up this release. Workflow 4 now diffs the whole file first and
reports "same version, different content" as drift, so a future edit
without a bump still reaches projects on 1.4.0 or later.
Copies of devcontainer-upstream-sync at 1.3.0 or older self-update only
when version: changes, so an unbumped edit never reaches them (#283).
The new skill-version job diffs the skill against the PR's base (HEAD^1
of the merge commit, hence fetch-depth: 2) and, if it changed, requires
a strictly higher version: (sort -V). It runs in seconds on
ubuntu-latest and is added to ci-complete's needs.
…r-row

Workflow 1's curl wrote to /tmp/upstream-sync/ without creating it
(curl exits 56), saved a 404 body as if it were the file (no -f), and
named the temp file by basename, so the three SKILL.md rows shared one
file. Use curl -f --create-dirs and keep the upstream path under
/tmp/upstream-sync/.
curl -sSL > file wrote a 404 page, or an empty file, into SKILL.md when
the download failed. curl -f --create-dirs -o fails without writing and
replaces the mkdir -p.
…ntainer

The sandbox now mounts .devcontainer/ read-only (#289, PR #319). The
skill checks test -w .devcontainer first and, when it fails, audits and
reports instead of starting edits it can't finish; run the sync on the
host or in the default variant. Workflow 1 also flags a sandbox
docker-compose.yml without the read-only mount as a security finding,
next to the existing shared-volumes one. The compose file is
starter-customize, so the skill surfaces the line and asks.

Part of the 1.4.0 release; no further bump.
@gatezh
gatezh changed the base branch from master to claude-code/sandbox-readonly-devcontainer November 27, 2026 20:22
@gatezh
gatezh added this pull request to stack #321 November 27, 2026 20:22
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.

[BUG] devcontainer-upstream-sync changed after 1.3.0 without a version bump

1 participant