Repository navigation
fix: fail closed for unmodeled Go runtime inputs - #36
Merged
adityankale190895 merged 1 commit intoOct 22, 2026
Merged
Conversation
FredApps
marked this pull request as ready for review
October 10, 2026 11:51
This was referenced Oct 23, 2026
Merged
Member
This was referenced Oct 26, 2026
Member
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.
Summary
Close the Go runtime-input false negative left outside the previous four safety patches. A Go test calling
os.ReadFile("data/settings.json")could receive an empty successful selective plan when that JSON changed outsidetestdata, becausego listdoes not report arbitrary runtime reads.testdata, hidden, underscore) and excluded-module fallback rules.This is an independent patch on
9d575cef7b1dd118300cd6298c9f85a8c1a44ad8, with no dependency on PRs #32–35. It also applies cleanly to their locally validated combination.Regression coverage
The synthetic repository contains a package reading JSON at runtime, a dependent service package, and an unrelated package. Valid synthetic
go listdescriptors feed the real graph builder, impact analyzer, planner, command synthesis, and graph cache.The new suite covers 21 unmodeled filename/path variants, all relevant change identities, generic non-Go graph nodes, unchanged runtime inputs during a source-only edit, production/test/external-test embeds, nonstandard embed extensions, discovery-excluded paths, and fresh/legacy cache behavior. Unsafe cases must produce
FULL, retain all discovered tests, skip none, and emit no selective command.Run the focused suite with:
Before the implementation, this suite reports 5 passing and 36 failing tests/subtests. After the implementation, all 41 pass. These counts include parent test groups, not 36 distinct bug classes.
Validation
npm run typecheck: passed.npm run build: passed.npm run audit:boundary: passed, including the new regression file inrelease-files.json.git diff --check: passed.Full serial command:
node --import tsx --test --test-concurrency=1 $(find tests -name '*.test.ts' | sort)Limits and tradeoffs
/usr/bin/gois an unrelated board-game executable, not a Go toolchain. Node 22 and Windows were not tested locally.