Repository navigation
test: judge the capsule's own .gitignore alone, not the enclosing repository's - #3
Merged
Merged
Conversation
…ository's The two ignore-rule tests asked Git in place. Inside a larger repository Git also applies that repository's rules, so a gap in the capsule's own .gitignore could pass unnoticed, and the proof depended on something outside the capsule. The tests now copy the capsule's .gitignore into an empty temporary repository and judge it there, with global excludes off and GIT_* variables dropped. They no longer need a Git checkout, so they also run in an exported tree. Reproduced first: nested in a bigger repository with the SQLite rules removed from the capsule, the old test passed; the new one fails and names the paths. Verified: suite 63/63, lint 0, typecheck 0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AGENTS.md and docs/neural-journey.md said the tests live only under components/. The test script has run app/**/*.test.mjs too since the initial import. Wording only; no runtime file changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
Comment only: the step runs every *.test.mjs under components/ and app/. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
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.
What changed
Test-only.
app/env-contract.test.mjsnow judges the capsule's own.gitignorealone, in an empty temporary repository, instead of asking Git in place.Why
Asked in place, Git also applies the rules of any repository that encloses this folder. Inside a larger repository, a gap in the capsule's own
.gitignorecould therefore pass unnoticed, and the proof leaned on something outside the capsule. A capsule must stand on its own.Verification
data.sqlite,local.sqlite3.gitSuite 63/63, lint 0, typecheck 0. No runtime file changed, so
buildanddeploy:dry-runwere not re-run locally.Follow-up commits (wording only)
035638c—AGENTS.mdanddocs/neural-journey.mdsaid the tests live only undercomponents/. Thetestscript has runapp/**/*.test.mjstoo since the initial import; both now say so. Handoff and verification notes updated.9dd8012— the same correction in a comment in.github/workflows/ci.yml. No step changed.Re-run locally after these commits:
lintexit 0,test63/63.https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
Generated by Claude Code