Repository navigation
Conversation
A user install's ./setup now sets a git sparse checkout that leaves test/fixtures/ out of the working tree. The fixtures hold eval task material that every agent session and eval run in that home could read, and nothing an installed skill runs reads them. Contributor clones, CI and clones with the dev toolchain keep the full tree, and the next update trims existing installs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
setup hands the sparse patterns to git on stdin, so Git Bash on Windows cannot rewrite them, and reports the trim only when git stored exactly those patterns; otherwise it turns the sparse checkout off and warns. Review-Finding: p1/specialist-batched#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r cannot loop The shim found the real git by dropping the first PATH entry; a wrapper that walks PATH found the shim again and they exec'd each other until the timeout. It now runs the git from git --exec-path. Granted by GStack Minder (GSTA-36) as #4638's first exception. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Closing this without merging. Leaving the test fixtures out of installs through a sparse checkout in setup turned out to be fragile install machinery, and it can't clear the files from git's object store anyway. A new pull request removes the real eval task material from the repository and replaces it with synthetic test prompts. |
5 tasks done
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.
A fresh
./setupinstall, and the next update of an existing one, no longer putstest/fixtures/(gstack's test and eval data) on disk.Why: those files hold eval task material (real issues from other repos, held-out prompts) that every agent session and eval run in that home could read; nothing installed reads them.
Nothing to do: contributor clones (
git config gstack.contributor true), CI and clones with the dev toolchain keep the full tree.How it works
./setup: the README command, the Capy installer,/gstack-upgrade(fast-forward, reset or fresh clone) and the session auto-updater. Codex, Gemini and the other hosts get generated skill folders that link back into that checkout, so the checkout is the only placetest/lives.setupnow runs_trim_install_fixturesafter the build succeeds. For a user install (the same signal that already picks production-only dependencies: unmarked, not CI, no dev toolchain) it sets a git sparse checkout of/*and!/test/fixtures/. Git applies it on every later pull,resetandgstack-ff-update, so new fixtures never reach disk../setupagain brings the fixtures back.test/fixtures/is left out. The runtime imports 24 files undertest/helpers/, and the browse cookie integrity check hashes files underbrowse/test/, so those stay.What still carries the data
The working tree no longer has the files, but a shallow clone's git object store still holds them, compressed, for the checked-out commit:
git show HEAD:test/fixtures/...inside the install would print them. Removing that needs the eval material out of this repository's tree.Tests
test/setup-install-fixtures.test.ts(new; 7 of its 9 cases fail on main): a fresh shallow install has notest/fixtures/and keepstest/helpers/; fixtures stay out acrossbin/gstack-ff-updateandgit pull --ff-onlywhile other files move; an edited fixture is kept; contributor, CI,GSTACK_CONTRIBUTOR=1and dev-toolchain clones keep the tree; marking a clone restores it; a vendored copy and foreign sparse patterns are untouched; setup calls it once, after the build; the static import closure ofbin/,lib/,hosts/, the binaries' sources and the doc generator never reachestest/fixtures/, with a negative control../setup --host claudelefttest/fixtures/out with a cleangit status; a forced rebuild on the trimmed tree passed;gstack-skill-startstarted ship, review, qa-only and browse; the Capy installer (install.sh --for ship) endedgstack: okon the trimmed tree.Agent notes
GSTA-759 for GST-3402 (from GEVA-568 via GEVA-2). The /ship receipt is added here when /ship finishes.