Repository navigation
Merge FredApps safety fixes (#32–#36) - #40
Merged
Merged
Conversation
fix: require fallback for deleted assets missing from HEAD Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: preserve runtime module dependency safety Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: preserve Maven module resource and dependency impact Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: preserve runner suites and route selected tests safely Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: fail closed for unmodeled Go runtime inputs Resolved conflicts with the telemetry-driven selection work: kept both sets of ImpactAnalyzer fields, and both release-manifest entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#32 makes every delta UNSAFE when any unresolved dynamic import exists, as its comment explains, because a computed target can be any changed file. The check used ref.dynamic, which is also true for literal import() calls. A literal import names its only possible target, so it is narrowed like any other unresolved import. On a dogfood repository a single import("./server.js") of a generated file had turned every selective analysis into a full run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#32 records require(...) calls with a non-literal argument as computed module loads. A local binding named require is not the loader: a dogfood repository's assertion helper `const require = (condition, code) => ...` produced nine computed specifiers such as `evidence?.tls === true`, each blocking every delta. Shadowing is tracked during the walk, since Program source files have no parent pointers; a binding initialised from createRequire(...) is still the loader. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tests #32 made every delta UNSAFE whenever any file in the repository loaded a computed module specifier. A computed import(name) or require(path) can load any file, but it can only change what a test observes if that test runs the importer. Every such test (the importer itself when it is a test, and each test depending on it) is now selected whenever anything other than documentation changed; an importer outside the dependency graph still requires full validation. Computed references no longer take part in reachability narrowing. On a dogfood repository four computed imports (two test files bundling with esbuild, a deploy script and a remote entry) had turned every analysis into a full run. #32's runtime-import tests now assert that the test running the loader is selected and the unrelated test is not. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 23, 2026
Merged
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
Merges FredApps' five safety PRs (#32–#36) onto current
main, keeping their original commits so each PR is recorded as merged and credited. Each PR was reviewed, and its regression tests were confirmed to fail on currentmainand pass with the fix.Merged with their own commits:
import = require, no longer drop dependency edges.rootDir) no longer leaks between suites, and tests are routed to every applicable configuration.Integration changes
ImpactAnalyzerfields and both release-manifest entries.GRAPH_CACHE_SCHEMA_VERSIONfrom 2 to 3. None of these changes, nor the graph changes from Narrow full-run fallbacks using dogfood telemetry #39, have been released, so a single bump to 3 invalidates every released cache.import("./server.js")names its only possible target and is narrowed like any other unresolved import.require(such as an assertion helper) is not a module load. AcreateRequire(...)binding still is.Verification
Thank you @FredApps for the careful review and the reproducible regressions.
🤖 Generated with Claude Code