Repository navigation
Narrow full-run fallbacks using dogfood telemetry - #39
Merged
Merged
Conversation
Telemetry from two dogfood repositories (256 verification receipts, 53 paired runs) showed most full runs were caused by over-broad fallback rules, not by changes that could affect tests. This narrows them while keeping every unresolvable case on full validation. Engine: - ops/ and other infrastructure trees: only conventionally loaded definitions (wrangler, Dockerfile, terraform) are global; code goes through the graph, Markdown is documentation, other files are resolved by reference. - .github/: only workflows and composite actions are configuration. A workflow change forces a full run only when the workflow can run tests. - package.json: version, files and non-test scripts are data, not behaviour. - Non-code files (site HTML, scripts, manifests, unimported assets) select the tests that read them, found by path, basename or directory references; files with no traceable reader stay unknown. - Global fallback reasons now name the files that triggered them. - The full suite is modelled from the test script, so selections stay a subset of what `npm test` runs; affected tests outside it are reported separately. - Tests that compile a named tsconfig project depend on every file in it. - Graph building no longer loads type libraries and memoises resolution probes. CLI: - `verify --baseline-on-failure` reruns a failed verification at the base commit to separate new failures from existing ones. - Receipts record DiffCI version, analysis time and graph confidence. - Selections longer than the shell's command-line limit run as batches. - Commands no longer inherit NODE_TEST_CONTEXT from a parent test runner. The CLI package still pins an earlier core commit; bump the pin after this lands. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release boundary audit only admits reviewed files; the eleven modules and tests added for telemetry-driven selection were missing from release-files.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The CLI's observe, verify and agent-selection paths use the new core modules (file references, script universe, compiled projects), which the previous pin 4c76be1 does not contain. Pin to 5fbbebb, the engine commit on this branch. Merge with a merge commit or rebase so that commit stays reachable from main; a squash merge requires bumping the pin again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 22, 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
Narrows DiffCI's full-run fallbacks using telemetry from two dogfood repositories (256 verification receipts, 53 paired runs). Most full runs came from over-broad fallback rules rather than from changes that could affect tests. Every case that still cannot be traced stays on full validation.
Engine
ops/and other infrastructure trees: only conventionally loaded definitions (wrangler, Dockerfile, terraform) force a full run. Code goes through the dependency graph, Markdown is documentation, and other files are resolved by reference..github/: only workflows and composite actions count as configuration. A workflow change forces a full run only when the workflow can run tests.package.json:version,filesand non-test scripts are treated as data, not behaviour.testscript, so a selection stays a subset of whatnpm testruns. Affected tests outside it are reported and run separately.CLI
verify --baseline-on-failurereruns a failed verification at the base commit, to separate new failures from existing ones.cmd.exestops at 8,191 characters).NODE_TEST_CONTEXTfrom a parent test runner.Evidence
Before merging
packages/diffci-clinow pins@diffci.com/coreto5fbbebb, the engine commit on this branch, because the CLI uses the new core modules. A squash merge would leave the pin pointing at a commit that is not onmain, and it would need bumping again.check,CLI packageand release-consistency steps pass locally (Windows); Linux CI results are on this PR.🤖 Generated with Claude Code