Skip to content

fork(#48): fetch only upstream release tags not newer than the checkout (slice 14) - #65

Merged
nachumi-a2zoperations merged 1 commit into
blowzer/fork-onlyfrom
nachumi-a2zoperations/issue-48-tags-not-newer
Nov 16, 2026
Merged

nachumi-a2zoperations merged 1 commit into
blowzer/fork-onlyfrom
nachumi-a2zoperations/issue-48-tags-not-newer

Conversation

@nachumi-a2zoperations

Copy link
Copy Markdown

Refs #48 (slice 14: the preflight's "skill bundle manifest" check, red on fork-only with resources/skills/released-digests.json stale).

Cause

  • generate-skill-bundle-manifest.mjs builds the released-digest ledger from every skills/*/SKILL.md blob reachable from HEAD and every v* tag.
  • Slice 2's prelude (fetch-upstream-release-tags.mjs) fetched all of upstream's v* tags, including v1.4.256, which is newer than the fork's 1.4.255.
  • v1.4.256 carries skills/orca-cli/SKILL.md from upstream 1bdadc90 (2026-11-10, fix(skills): load Orca browser guidance for ordinary web tasks stablyai/orca#39916). The fork's ledger does not list that digest (06b7c1cc…), so the check asked for it and failed. Nothing else differed.

Fix (the lane lead's pick, option a)

  • The script lists upstream's v* tags (ls-remote --tags --refs) and fetches only those not newer than package.json's version. The refspecs go on stdin, so there is no command-line limit with ~1,100 tags.
  • With no readable version, it fetches every v* tag as before (the existing tests' path).
  • New --prune-newer: deletes local v* tags newer than the checkout. This is the one-time step for clones fetched before this change, and it is idempotent.
    • It refuses, and deletes nothing, when the version cannot be read.
    • It never touches non-release tags.
  • This matches slice 2's cap, where a newer release is never a baseline. The upstream generator is unchanged.

Tests (red first)

  • 4 new tests failed on fork-only d18bbcf4:
    • only the tags not newer than the version;
    • nothing when all are newer;
    • prune deletes only the newer release tags and keeps other tags, and is idempotent;
    • prune refuses with no version.
  • One more test (a tag equal to the version, annotated) already passed.
  • Now 16/16, plus the prelude test.

End to end (the shared fork clone on the MacBook)

  • Before: 1,106 v* tags, 1 newer than 1.4.255 (v1.4.256). The manifest check failed as described.
  • --prune-newer --if-missing deleted 1 tag (v1.4.256), and the manifest check then passed.
  • A full fetch from stablyai/orca afterwards: 1,105 → 1,105, v1.4.256 not re-fetched, and the manifest check still passed.

Gates (MacBook)

  • pnpm check:changed --base=origin/blowzer/fork-only --force: 13/13. The manifest check is not selected for these paths, so it was run directly: exit 0.
  • Run with ORCA_ALLOW_NODE_MISMATCH=1, since the host is Node 26.7 (PR 64).
  • The pre-commit hook (oxlint, oxfmt) ran clean.

For other clones

  • Any other clone of the fork that ran slice 2's prelude before this needs one run of node config/scripts/orca-fork/fetch-upstream-release-tags.mjs --prune-newer.
  • Worktrees of one clone share tags: the MacBook's ~/Documents/claude/orca-fork clone is already pruned.

…ut (slice 14)

The skill-bundle ledger check reads every skills/*/SKILL.md blob from
HEAD and every v* tag. Slice 2's prelude fetched ALL of upstream's v*
tags, including v1.4.256 (newer than the fork's 1.4.255), whose
orca-cli SKILL.md (stablyai#39916) the fork's ledger does not list, so the
preflight's "skill bundle manifest" check was red on fork-only.

fetch-upstream-release-tags.mjs now lists upstream's v* tags and fetches
only those not newer than package.json's version (refspecs on stdin);
with no readable version it fetches every v* tag as before. New
--prune-newer deletes local v* tags newer than the checkout, the
one-time step for clones fetched before this; it refuses when the
version cannot be read.

Refs #48

Signed-off-by: Nachumi Eliyahu <[email protected]>
@nachumi-a2zoperations
nachumi-a2zoperations merged commit 067045a into blowzer/fork-only Nov 16, 2026
2 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.

1 participant