Skip to content

Merge FredApps safety fixes (#32–#36) - #40

Merged
adityankale190895 merged 13 commits into
mainfrom
integrate/fredapps-safety-fixes
Oct 22, 2026
Merged

adityankale190895 merged 13 commits into
mainfrom
integrate/fredapps-safety-fixes

Conversation

@adityankale190895

Copy link
Copy Markdown
Member

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 current main and pass with the fix.

Merged with their own commits:

Integration changes

Verification

  • 478 core tests pass, plus typecheck, build, boundary audit, agent packaging, benchmark, release consistency, and the CLI package build, boundary and smoke checks (run locally on Windows).
  • Replaying the 30 selective commit ranges from two dogfood repositories: all remain selective, each selecting a few more tests (the tests that run computed loaders).

Thank you @FredApps for the careful review and the reproducible regressions.

🤖 Generated with Claude Code

FredApps and others added 13 commits October 9, 2026 21:34
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]>
@adityankale190895
adityankale190895 merged commit e7ffdaf into main Oct 22, 2026
14 checks passed
@adityankale190895
adityankale190895 deleted the integrate/fredapps-safety-fixes branch October 22, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants