Repository navigation
Repos can prove copied open-source files match their upstream byte for byte (GST-3298) - #4646
Merged
capy-ai[bot] merged 8 commits intoNov 22, 2026
Merged
Conversation
…r byte (GST-3298) New gstack-vendored-verify checks that every file a repo copies from an open-source project is byte-for-byte that project's file, at a commit on its default branch or a tag, from a repository the base branch's review_vendored policy trusts. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… its error string from the network scanner Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n Windows Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d catches deleted vendored files Review-Finding: p11/outside-voice#1 reader=outside-voice Review-Finding: p11/outside-voice#2 reader=outside-voice Review-Finding: p11/outside-voice#3 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…es the upstream lacks, and reports submodules as a mode problem A star branch glob in the base policy no longer admits a commit that only a merge-queue branch holds. A named branch the upstream doesn't have is left out of the fetch instead of failing every pin of that upstream. An upstream submodule now gives VENDORED_MODE, and --json keeps the pin count, with the pin rows under pin_results. Review-Finding: p11/outside-voice#1 reader=outside-voice Review-Finding: p11/adversarial-native#3 reader=adversarial-native Review-Finding: p11/adversarial-native#1 reader=adversarial-native Review-Finding: p11/adversarial-native#5 reader=adversarial-native Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ed-against-upstream-pins
3 tasks done
capy-ai Bot
added a commit
that referenced
this pull request
Nov 22, 2026
…mes (GST-3440) (#4661) The nightly Windows test run no longer cancels a shard at its 15-minute limit: files without a Windows time use their Linux time instead of a 161 s guess, and the plan adds shards past eight until no shard holds more than 12 minutes. Why: one shard on #4646's tree held 946 s of Windows work against a 900 s job and was cancelled twice (run 44971202453); any PR adding test files could trip it. Nothing to do: the Windows run is nightly-only and this changes no test selection, timeout or retry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
New
gstack-vendored-verifychecks that every file a repo copies from an open-source project is byte-for-byte that project's file, at a commit on its default branch, a tag or a branch the base names, from a repository the base branch trusts.Why: harness-evals copies 1,056 upstream test files into its eval tasks and today hides them from review in tar archives; this proves the claim the archives only assert (1,054 of 1,056 verify on #504 in 19 seconds; 2 are upstream executables).
Nothing to do unless you vendor code: the new
review_vendoredpolicy key is off by default.What changed
lib/review-vendored.ts: thereview_vendoredkey's validation, thegstack-vendored/v1manifest, and the check. Fetches go anonymously to each upstream over https with no ambient git config, prompt or redirect, and a timeout; commit history and each pin's file listing are cached under the state root, so--offlineanswers from the cache.bin/gstack-vendored-verify --base <branch> [--all] [--offline] [--json]: one line per pin, one line per failure with its reason code and fix, exit 1 when a manifest claims something untrue. Meant as a required CI check.VENDORED_UNREACHABLE), even when the base's branch glob is*; so does a force-pushed one. A named branch the upstream lacks is skipped instead of failing the other pins. Executables, symlinks, submodules, renamed files, local edits and unlisted upstreams fail with their own codes.lib/ship-policy.tsregisters the key (validation lives in the new module; ship-policy.ts stays at its 800-line cap). Eight result codes with troubleshooting entries; docs/vendored-code.md; a ship-policy.md key row; a changelog fragment.Tests
test/review-vendored.test.ts(18 cases) builds local upstream repositories and runs the command against them: verified files; a one-byte edit; pull-ref, merge-queue and force-pushed pins; a base-namedrelease/*branch; a deleted upstream; an upstream the head tries to trust for itself; a*glob that must still refuse a merge-queue commit; a named branch the upstream lacks; an upstream submodule;--jsonkeeping its pin count; executable and renamed files; bad manifests; changed-only versus--allscope;--offlinereusing the cache; and a 401 server and a hanging server, both failing without prompting or hanging. Every consumer repo's global git config rewrites the upstream root to a missing folder, so a fetch that read ambient config would fail.Real run on harness-evals#504 (24a377ab with its tars unpacked and a generated manifest, 11 GitHub upstreams, 71 pins): checked=1056 verified=1054 failed=2, 19 s cold, 15 MB cache. The 2 failures are
tests/test_rr.pyin cachetools, executable upstream too (VENDORED_MODE).Agent notes
Documentation
Status: blocked. One factual correction is needed, and read-only mode can't make it.
Scope: 7 commits (dd61103..b6d4150) that add
gstack-vendored-verify, thereview_vendoredpolicy key, 8VENDORED_*result codes and their doctor anchors. Docs audited: docs/vendored-code.md (new), docs/troubleshooting.md, docs/ship-policy.md and the changelog.d fragment, checked against bin/gstack-vendored-verify and lib/review-vendored.ts. AGENTS.md, CLAUDE.md and README.md are unaffected.Documentation health:
review_vendoredrow leaves out pins from branches the base policy names ({ url, branches })Coverage debt:
gstack-vendored-verifyhas reference, how-to and explanation coverage in docs/vendored-code.md but no tutorial. That's a common gap and doesn't block. No architecture diagram drift was found.Documentation exception: accepted by GSTA-674 lane 2026-11-22 via GSTA-674 lane message to its /ship subagent, 2026-11-22 (option A): docs/ship-policy.md's review_vendored row leaves out base-named branches; the one-line fix ships in PR 2 (GST-3298)
Plan: handoffs/GST-vendored-review/plan.md, approved by Garry 2026-11-20 ("Do it"), autoplan run run-gfzivt-20261120181333. PR 1 of 2; PR 2 hooks review-exclude after #4574. /ship receipt follows.
Review (round 2 of 2 at 9e8fc0c, then one granted fix round at fb104d7, grant a-6c204277323f): the blocking finding (a
*branch glob admitted merge-queue holders, outside voice gpt-6.1-sol, also security specialist and native reader) and native FIXABLE #1 (missing named branch failed every pin) and #5 (submodule code,--jsonpin count) are fixed in fb104d7 with regression tests that fail without the fix. Fix-check: 0 blocking.Ruled note: lib/review-vendored.ts:204:adversarial at b6d4150 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-22) at 2026-11-22T02:15:24.504Z: fixed in fb104d7 with a failing-first regression test; fix-check 9e8fc0c..fb104d7 found 0 blocking (approval a-178a91105af1)
Ruled note: lib/review-vendored.ts:173:adversarial at b6d4150 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-22) at 2026-11-22T02:15:24.714Z: fixed in fb104d7 with a failing-first regression test; fix-check 9e8fc0c..fb104d7 found 0 blocking (approval a-bf2361775b93)
Ruled note: bin/gstack-vendored-verify:1:adversarial at b6d4150 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-22) at 2026-11-22T02:15:24.871Z: fixed in fb104d7 with a failing-first regression test; fix-check 9e8fc0c..fb104d7 found 0 blocking (approval a-77b6919c52f0)
Ruled note: lib/review-vendored.ts:173:outside-voice at b6d4150 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-22) at 2026-11-22T02:15:25.045Z: fixed in fb104d7 with a failing-first regression test; fix-check 9e8fc0c..fb104d7 found 0 blocking (approval a-46065a7c1bb4)
Open notes (below the floor, not fixed here):
refs/vendored/heads/<b>(the fetch skips that refspec, so--prunedoes not remove it), and a pin only that branch held still verifies. PR 2 fixes it withgit update-ref -dfor each skipped branch before anything uses the verdict.fetch-depth: 0); with a depth-1 checkout the merge base cannot be resolved and the command exits 3.--offlinetrusts the cache with no age limit, so an upstream force-push is not seen offline.GSTACK_VENDORED_FETCH_ROOTredirects every fetch (test setting; defense in depth only);local_prefixcan point into active folders such as.github/, which PR 2's review-skip must keep in review; the default scope does not recheck unchanged entries after the base narrows its allowlist (--alldoes).--jsonshape, a pin-only repin, usage errors).