@diffci.com/diffci 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,131 +1,144 @@
1
- # DiffCI Distribution
2
-
3
- DiffCI has three install surfaces with the same initial contract: observe CI, write a report, and do
4
- not change what the host repository runs.
5
-
6
- The product model is open core. The npm CLI and basic GitHub Action are the open-source adoption path;
7
- DiffCI Cloud adds hosted history, organization dashboards, policies, managed operations, and support.
8
- See [`open-core-packaging.md`](open-core-packaging.md).
9
-
10
- ## Channel strategy
11
-
12
- Reviewed 2026-09-22. These channels have different jobs in the same adoption path:
13
-
14
- | Channel | Role for DiffCI | Next step |
15
- | --- | --- | --- |
16
- | npm | Developer discovery and local evaluation of `@diffci.com/diffci` | Lead with `observe`, a sample report, and the observation-only contract. |
17
- | GitHub Action | Repeatable CI adoption | Use the dedicated, non-blocking job below and verify the workflow before a pilot. |
18
- | GitHub Marketplace | CI-specific discovery of the same Action | [DiffCI observer is live](https://github.com/marketplace/actions/diffci-observer); keep the installation example and release pin current. |
19
- | MCP directories | Discovery for agents that install stdio tools | Publish matching npm and registry metadata, then submit to the official MCP Registry and Glama. |
20
- | Tidelift | Potential package maintenance assurance and maintainer income | Pursue package acceptance using the existing submission packet; do not present support as active. |
21
- | Commercial DiffCI | Paid hosted history, analytics, team workflows, and managed operations | Validate demand with design partners and distinguish available services from future acceleration capabilities. |
22
-
23
- The Action is the integration; Marketplace is a discovery channel for that integration. See
24
- [GitHub's publishing requirements](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace).
25
-
26
- Prioritize npm and Action activation, then Marketplace discovery. Keep Tidelift outreach in parallel
27
- without making adoption dependent on acceptance or expected payments. Defer PyPI, Cargo, and Homebrew
28
- until user demand and a maintained installation experience justify each additional surface.
29
-
30
- Measure successful first reports, repositories with repeat observations, completed pilot reviews,
31
- and qualified commercial interest. Downloads and listing views alone do not demonstrate adoption.
32
- Use voluntary pilot feedback or explicitly configured hosted reporting for these measurements;
33
- local observation does not imply permission to collect telemetry.
34
-
35
- Suggested positioning:
36
-
37
- > Install DiffCI through npm or GitHub Actions to inspect what your CI could avoid running while
38
- > leaving CI execution unchanged. Explore hosted reports and shared history with the DiffCI team.
39
-
40
- Acceleration and managed infrastructure remain product directions unless a specific capability is
41
- available and validated. Potential savings in shadow reports are not realized customer savings.
42
-
43
- Tidelift's published payment policy allows individuals, for-profit organizations, and nonprofits to
44
- receive payments with a signed agreement. A nonprofit recipient is therefore not inherently required.
45
- Payment depends on factors including subscriber usage and package importance; this does not establish
46
- DiffCI's eligibility, acceptance, or income. See [Tidelift's payment policy](https://support.tidelift.com/hc/en-us/articles/4406294816916-How-we-pay-lifters)
47
- and the [DiffCI submission packet](tidelift-submission.md).
48
-
49
- ## GitHub App
50
-
51
- The unified read-only DiffCI GitHub App is the lowest-friction research and design-partner path. It receives
52
- repository events, runs shadow analysis outside the repository's CI jobs, and reconciles predictions
53
- against real CI outcomes. Use it when a maintainer wants observation without adding a workflow step.
54
-
55
- ## GitHub Action
56
-
57
- The GitHub Action is the OSS dependency-graph path. A repository installs DiffCI as its own
58
- continue-on-error job:
59
-
60
- ```yaml
61
- jobs:
62
- diffci:
63
- runs-on: ubuntu-latest
64
- continue-on-error: true
65
- permissions:
66
- contents: read
67
- steps:
68
- - uses: actions/checkout@v4
69
- with:
70
- fetch-depth: 0
71
- - uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
72
- ```
73
-
74
- The example pins release `v0.2.7` to its qualified feature commit SHA. `npx "@diffci.com/diffci@latest" verify-workflow`
75
- checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
76
- of CI.
77
-
78
- ## npm CLI
79
-
80
- The CLI is the standalone npm package surface. The package name is `@diffci.com/diffci`:
81
-
82
- ```bash
83
- npx "@diffci.com/diffci@latest" observe
84
- npx "@diffci.com/diffci@latest" verify-workflow
85
- ```
86
-
87
- `observe` writes a JSON report outside the checkout by default. It never runs, skips, cancels, or
88
- reorders tests. A hosted endpoint is opt-in: reports are sent only when both `DIFFCI_API_URL` and
89
- `DIFFCI_TOKEN` are set, or when equivalent CLI flags are passed.
90
-
91
- ## Report Shape
92
-
93
- A shadow report should answer the adoption question before it asks for operational trust:
94
-
95
- ```text
96
- DiffCI - last 30 days
97
-
98
- CI runs observed 423
99
- Compute time 18,240 min
100
- Potentially avoidable 6,810 min
101
- Potential reduction 37.3%
102
-
103
- Estimated compute avoided xxx CPU-hours
104
- Estimated electricity xxx kWh
105
- Estimated CO2 xxx kg
106
- Estimated water xxx L
107
- ```
108
-
109
- That makes the open-source proposition explicit: install DiffCI, change nothing in CI, and learn
110
- how much compute may be wasted.
111
-
112
- ## Future Package Managers
113
-
114
- npm plus the GitHub Action are enough to establish the pattern. Later package surfaces can wrap the
115
- same observer contract:
116
-
117
- ```bash
118
- pip install diffci
119
- cargo install diffci
120
- brew install diffci
121
- ```
122
-
123
- Those should ship only after the npm CLI and Action have signed releases, provenance, pinned build
124
- workflows, and repeatable package verification.
125
-
126
- ## Supported OSS Channel
127
-
128
- Tidelift belongs to the open-source package channel. It can provide maintenance, security, license, and
129
- supply-chain assurance for the npm package without requiring a hosted DiffCI account. It should support
130
- the OSS core rather than define a separate feature tier. The readiness checklist lives in
131
- [`tidelift-package-support.md`](tidelift-package-support.md).
1
+ # DiffCI Distribution
2
+
3
+ DiffCI has three install surfaces with the same initial contract: observe CI, write a report, and do
4
+ not change what the host repository runs.
5
+
6
+ The product model is open core. The npm CLI and basic GitHub Action are the open-source adoption path;
7
+ DiffCI Cloud adds hosted history, organization dashboards, policies, managed operations, and support.
8
+ See [`open-core-packaging.md`](open-core-packaging.md).
9
+
10
+ ## Channel strategy
11
+
12
+ Reviewed 2026-09-22. These channels have different jobs in the same adoption path:
13
+
14
+ | Channel | Role for DiffCI | Next step |
15
+ | --- | --- | --- |
16
+ | npm | Developer discovery and local evaluation of `@diffci.com/diffci` | Lead with `observe`, a sample report, and the observation-only contract. |
17
+ | GitHub Action | Repeatable CI adoption | Use the dedicated, non-blocking job below and verify the workflow before a pilot. |
18
+ | GitHub Marketplace | CI-specific discovery of the same Action | [DiffCI observer is live](https://github.com/marketplace/actions/diffci-observer); keep the installation example and release pin current. |
19
+ | MCP directories | Discovery for agents that install stdio tools | Publish matching npm and registry metadata, then submit to the official MCP Registry and Glama. |
20
+ | Tidelift | Potential package maintenance assurance and maintainer income | Pursue package acceptance using the existing submission packet; do not present support as active. |
21
+ | Commercial DiffCI | Paid hosted history, analytics, team workflows, and managed operations | Validate demand with design partners and distinguish available services from future acceleration capabilities. |
22
+
23
+ The Action is the integration; Marketplace is a discovery channel for that integration. See
24
+ [GitHub's publishing requirements](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace).
25
+
26
+ Prioritize npm and Action activation, then Marketplace discovery. Keep Tidelift outreach in parallel
27
+ without making adoption dependent on acceptance or expected payments. Defer PyPI, Cargo, and Homebrew
28
+ until user demand and a maintained installation experience justify each additional surface.
29
+
30
+ Measure successful first reports, repositories with repeat observations, completed pilot reviews,
31
+ and qualified commercial interest. Downloads and listing views alone do not demonstrate adoption.
32
+ Use voluntary pilot feedback or explicitly configured hosted reporting for these measurements;
33
+ local observation does not imply permission to collect telemetry.
34
+
35
+ Suggested positioning:
36
+
37
+ > Install DiffCI through npm or GitHub Actions to inspect what your CI could avoid running while
38
+ > leaving CI execution unchanged. Explore hosted reports and shared history with the DiffCI team.
39
+
40
+ Acceleration and managed infrastructure remain product directions unless a specific capability is
41
+ available and validated. Potential savings in shadow reports are not realized customer savings.
42
+
43
+ Tidelift's published payment policy allows individuals, for-profit organizations, and nonprofits to
44
+ receive payments with a signed agreement. A nonprofit recipient is therefore not inherently required.
45
+ Payment depends on factors including subscriber usage and package importance; this does not establish
46
+ DiffCI's eligibility, acceptance, or income. See [Tidelift's payment policy](https://support.tidelift.com/hc/en-us/articles/4406294816916-How-we-pay-lifters)
47
+ and the [DiffCI submission packet](tidelift-submission.md).
48
+
49
+ ## GitHub App
50
+
51
+ The unified read-only DiffCI GitHub App is the lowest-friction research and design-partner path. It receives
52
+ repository events, runs shadow analysis outside the repository's CI jobs, and reconciles predictions
53
+ against real CI outcomes. Use it when a maintainer wants observation without adding a workflow step.
54
+
55
+ ## GitHub Action
56
+
57
+ The GitHub Action is the OSS dependency-graph path. A repository installs DiffCI as its own
58
+ continue-on-error job:
59
+
60
+ ```yaml
61
+ jobs:
62
+ diffci:
63
+ runs-on: ubuntu-latest
64
+ continue-on-error: true
65
+ permissions:
66
+ contents: read
67
+ steps:
68
+ - uses: actions/checkout@v4
69
+ with:
70
+ fetch-depth: 0
71
+ - uses: DiffCI/DiffCI.com@5458e133a549b24f7224b1364811ef487fa4e153
72
+ ```
73
+
74
+ The example pins release `v0.2.9` to its qualified feature commit SHA. `npx "@diffci.com/diffci@latest" verify-workflow`
75
+ checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
76
+ of CI.
77
+
78
+ ## npm CLI
79
+
80
+ The CLI is the standalone npm package surface. The package name is `@diffci.com/diffci`:
81
+
82
+ ```bash
83
+ npx "@diffci.com/diffci@latest" observe
84
+ npx "@diffci.com/diffci@latest" verify-workflow
85
+ ```
86
+
87
+ `observe` writes a JSON report outside the checkout by default. It never runs, skips, cancels, or
88
+ reorders tests. A hosted endpoint is opt-in: reports are sent only when both `DIFFCI_API_URL` and
89
+ `DIFFCI_TOKEN` are set, or when equivalent CLI flags are passed.
90
+
91
+ ## Report Shape
92
+
93
+ A shadow report should answer the adoption question before it asks for operational trust:
94
+
95
+ ```text
96
+ DiffCI - last 30 days
97
+
98
+ CI runs observed 423
99
+ Compute time 18,240 min
100
+ Potentially avoidable 6,810 min
101
+ Potential reduction 37.3%
102
+
103
+ Estimated compute avoided xxx CPU-hours
104
+ Estimated electricity xxx kWh
105
+ Estimated CO2 xxx kg
106
+ Estimated water xxx L
107
+ ```
108
+
109
+ That makes the open-source proposition explicit: install DiffCI, change nothing in CI, and learn
110
+ how much compute may be wasted.
111
+
112
+ ## Future Package Managers
113
+
114
+ npm plus the GitHub Action are enough to establish the pattern. Later package surfaces can wrap the
115
+ same observer contract:
116
+
117
+ ```bash
118
+ pip install diffci
119
+ cargo install diffci
120
+ brew install diffci
121
+ ```
122
+
123
+ Those should ship only after the npm CLI and Action have signed releases, provenance, pinned build
124
+ workflows, and repeatable package verification.
125
+
126
+ ## Supported OSS Channel
127
+
128
+ Tidelift belongs to the open-source package channel. It can provide maintenance, security, license, and
129
+ supply-chain assurance for the npm package without requiring a hosted DiffCI account. It should support
130
+ the OSS core rather than define a separate feature tier. The readiness checklist lives in
131
+ [`tidelift-package-support.md`](tidelift-package-support.md).
132
+
133
+ ## Release metadata invariant
134
+
135
+ `release-manifest.json` is the source of truth for the npm, MCP, directory, workflow, Action, website,
136
+ and documentation versions. Prepare a future release with:
137
+
138
+ ```bash
139
+ npm run release:sync -- 0.2.9 <qualified-40-character-action-sha>
140
+ npm run check:public-metadata
141
+ ```
142
+
143
+ The sync command updates every managed surface. The metadata check runs inside `npm run check` and the
144
+ tag-release workflow, so version or immutable Action-pin drift blocks both pull requests and releases.
@@ -1,118 +1,118 @@
1
- # Language and framework support
2
-
3
- DiffCI now has an extensible repository-adapter boundary and initial Vue, Go, and Maven support.
4
- These additions propose selections in the existing observer; they do not enable production CI skipping.
5
-
6
- | Surface | Implemented scope | Boundaries |
7
- | --- | --- | --- |
8
- | JavaScript / TypeScript | Existing dependency analysis and ten existing test-runner command mappings | Runner recognition is not a guarantee of complete framework semantics |
9
- | Vue | SFC parsing with `@vue/compiler-sfc`; script imports, literal Options API component registrations, empty script fixtures, compiled template asset imports; propagation into importing JS/TS tests; protected runtime-dependent tests in verified isolated scopes | Runtime uncertainty requires full validation unless protected by the isolated-suite policy below; preprocessors, external/custom SFC blocks, style URLs/imports, Nuxt conventions and glob imports require full validation |
10
- | Go | One root module; optional explicit root-module scope in a repository containing nested modules; native metadata, package-level transitive selection, embeds and Go test commands | Workspaces, changes inside excluded modules, inactive Go files, cgo/native objects, plugins, generation/linkname and incomplete metadata require full validation; root scoping rejects local replacements |
11
- | Maven / Java / Kotlin | Conventional multi-module reactors with `src/main/{java,kotlin}` and `src/test/{java,kotlin}`; module dependency propagation; Surefire-style test names; proposed reactor commands | Nonstandard layouts, generated sources, integration-test conventions, and POM changes may require full validation. Maven commands are observations and must match the repository's CI lifecycle and profiles. |
12
- | Mixed Go and JS/TS | Detected | Full validation until cross-language relationships are declared and modeled |
13
- | Python, Svelte, Astro, C#, Rust | No new semantic support in this release | Require additional adapters and qualification |
14
-
15
- ## Using the observer
16
-
17
- Use the existing `observe` command and commit range options. The observer now admits a root
18
- `go.mod`, Vue SFCs, or a conventional Maven reactor as well as a TypeScript project. Vue projects without a tsconfig have their
19
- JS/TS files parsed alongside their components. Existing TS-only corpus eligibility remains separate:
20
- this release does not silently enroll Go repositories in historical JS/TS research cohorts.
21
-
22
- For Maven, DiffCI proposes module-level commands but does not run them or change CI. The default
23
- goal is `test`. If the repository's CI runs `verify` with profiles, declare that command shape in
24
- `diffci.json` (or the `diffci` key in `package.json`):
25
-
26
- ```json
27
- { "maven": { "goal": "verify", "profiles": ["run-its"] } }
28
- ```
29
-
30
- This produces a command such as `mvn -pl tools -am verify -P run-its`. The `-am` option can also run
31
- tests in upstream modules. Check the proposed command against the actual CI workflow before using
32
- it for execution. A single Cloudflare Resolver run showed a candidate saving of 8.6% with a
33
- CI-aligned `verify -P run-its` command; it does not establish repeatable savings across repositories.
34
-
35
- For Go, install a compatible Go toolchain on the **same host and build environment** used for analysis
36
- and testing, and prepare the repository's dependencies first using its normal setup procedure.
37
- DiffCI invokes `go list -mod=readonly -deps -test -json ./...` with `GOTOOLCHAIN=local`, `GOPROXY=off`,
38
- `GOSUMDB=off`, and `GOWORK=off`. Missing toolchains or dependencies produce refusal/full fallback.
39
- Go may populate its own build cache but must not modify the checkout. It does not run `go generate`.
40
- Custom `GOFLAGS` currently require full validation. Discovered GOOS, GOARCH and CGO_ENABLED settings
41
- are carried into the structured test command.
42
-
43
- For CI that runs only the root module's `go test ./...`, a repository containing nested
44
- modules can explicitly declare that scope in a committed root `diffci.json`:
45
-
46
- ```json
47
- { "go": { "scope": "root-module" } }
48
- ```
49
-
50
- This does not cover nested-module CI jobs. Keep their validation unchanged. Without the
51
- declaration, nested modules still block selection. With it, nested module trees are
52
- excluded from the root test universe, but any change there (including a rename out of
53
- the tree) forces full validation. Scope/configuration changes also force full validation.
54
- Go workspaces and local replacements still block scoped selection. Reports identify the
55
- declared `goScope`; the structured commands continue to run root-relative packages.
56
-
57
- Empty-graph refusals now include the adapter's reason. Vue recognizes only direct imported
58
- component identifiers in literal `components` registrations. Unresolved runtime dependencies
59
- retain full execution unless the isolated-suite protection described below applies.
60
-
61
- The Reka selection candidate also resolves imported Vue macro types through TypeScript aliases,
62
- extended configurations and directory index files, and recognizes leading `./` in test globs.
63
- For an explicitly scoped Vue suite, a component-specific blocker can be excluded only when every
64
- test/setup/configuration root has been parsed and none can reach that component. This is not a
65
- directory-name exclusion: imported story fixtures retain their blockers. Unresolved dependencies
66
- and global configuration blockers still force full validation. Compiler-assisted components that
67
- probe JSON configuration are rebuilt instead of persistently cached until every compiler input can
68
- be tracked. See the [Reka experiment](research/2026-09-13-reka-selection.md) for qualification evidence.
69
-
70
- The runtime-protection candidate can always run every test file reaching an unresolved runtime
71
- component or directive, while selecting other tests normally. This requires a verified scoped
72
- Vitest suite and isolated execution. Shared setup reaching a runtime blocker, disabled or ambiguous
73
- isolation, custom runners/environments and unmodeled configuration keep full-suite fallback.
74
- This policy protects tests despite unknown runtime edges; it does not resolve those edges or claim
75
- support for non-isolated or order-dependent jobs. See the [runtime protection experiment](research/2026-09-13-vue-runtime-partition.md).
76
-
77
- A selection such as `lib/value_test.go` becomes:
78
-
79
- ```sh
80
- go test -mod=readonly -json -count=1 ./lib
81
- ```
82
-
83
- It runs the entire package. Consumers must honor the emitted `CommandSpec.env`, preserve the build
84
- context, and check fallback/command-synthesis status before execution. Commands are not portable
85
- between different GOOS/GOARCH/GOFLAGS contexts. The controlled runner command policies accept `go`;
86
- hosted images still need a Go installation before Go workloads can run. No deployment is performed
87
- by these code changes.
88
-
89
- Go result parsing counts failing **packages**, records failing test names, and rejects incomplete
90
- JSON streams. It does not invent test-file counts from package counts, so file-based economics
91
- qualification may still report an unsupported denominator for Go.
92
-
93
- ## Extension points
94
-
95
- - `src/repo/adapters/types.ts`: adapter context and graph contribution contract.
96
- - `src/repo/adapters/index.ts`: framework/language adapter registry and bounded file inventory.
97
- - `src/repo/adapters/vue.ts`: Vue compiler integration.
98
- - `src/repo/adapters/go.ts`: native Go package metadata and conservative dependency model.
99
- - `src/repo/adapters/go-test.ts`: structured Go outcome parsing.
100
- - `src/planner/test-command.ts`: runner command routing, including verified Go package targets.
101
-
102
- Adapters contribute source and asset nodes, dependency edges, virtual JS/TS source, runnable test
103
- identities and explicit blockers. Effective suite blockers persist into the profile and graph result
104
- and cannot be removed by delta-specific reachability refinement. Go graphs bypass the disk cache until every cache
105
- caller provides a complete toolchain/build-context identity. The cache schema was bumped to prevent
106
- reuse of graphs created before adapter support.
107
-
108
- ## Validation and qualification
109
-
110
- `tests/repo/language-adapters.test.ts` covers transitive Vue selection, unsupported-feature fallbacks,
111
- Go package imports and embeds, metadata failures, command routing, and incomplete output.
112
- When Go is on PATH, its native integration test runs the observer against a real Git fixture,
113
- compares successful full/subset test runs, and verifies the subset catches an introduced fault.
114
- Without Go, that native test is explicitly skipped.
115
-
116
- These are implementation checks, not prospective customer safety or savings evidence. Each new
117
- ecosystem still needs real repository shadow observations and economic qualification before broader
118
- support or savings claims are made.
1
+ # Language and framework support
2
+
3
+ DiffCI now has an extensible repository-adapter boundary and initial Vue, Go, and Maven support.
4
+ These additions propose selections in the existing observer; they do not enable production CI skipping.
5
+
6
+ | Surface | Implemented scope | Boundaries |
7
+ | --- | --- | --- |
8
+ | JavaScript / TypeScript | Existing dependency analysis and ten existing test-runner command mappings | Runner recognition is not a guarantee of complete framework semantics |
9
+ | Vue | SFC parsing with `@vue/compiler-sfc`; script imports, literal Options API component registrations, empty script fixtures, compiled template asset imports; propagation into importing JS/TS tests; protected runtime-dependent tests in verified isolated scopes | Runtime uncertainty requires full validation unless protected by the isolated-suite policy below; preprocessors, external/custom SFC blocks, style URLs/imports, Nuxt conventions and glob imports require full validation |
10
+ | Go | One root module; optional explicit root-module scope in a repository containing nested modules; native metadata, package-level transitive selection, embeds and Go test commands | Workspaces, changes inside excluded modules, inactive Go files, cgo/native objects, plugins, generation/linkname and incomplete metadata require full validation; root scoping rejects local replacements |
11
+ | Maven / Java / Kotlin | Conventional multi-module reactors with `src/main/{java,kotlin}` and `src/test/{java,kotlin}`; module dependency propagation; Surefire-style test names; proposed reactor commands | Nonstandard layouts, generated sources, integration-test conventions, and POM changes may require full validation. Maven commands are observations and must match the repository's CI lifecycle and profiles. |
12
+ | Mixed Go and JS/TS | Detected | Full validation until cross-language relationships are declared and modeled |
13
+ | Python, Svelte, Astro, C#, Rust | No new semantic support in this release | Require additional adapters and qualification |
14
+
15
+ ## Using the observer
16
+
17
+ Use the existing `observe` command and commit range options. The observer now admits a root
18
+ `go.mod`, Vue SFCs, or a conventional Maven reactor as well as a TypeScript project. Vue projects without a tsconfig have their
19
+ JS/TS files parsed alongside their components. Existing TS-only corpus eligibility remains separate:
20
+ this release does not silently enroll Go repositories in historical JS/TS research cohorts.
21
+
22
+ For Maven, DiffCI proposes module-level commands but does not run them or change CI. The default
23
+ goal is `test`. If the repository's CI runs `verify` with profiles, declare that command shape in
24
+ `diffci.json` (or the `diffci` key in `package.json`):
25
+
26
+ ```json
27
+ { "maven": { "goal": "verify", "profiles": ["run-its"] } }
28
+ ```
29
+
30
+ This produces a command such as `mvn -pl tools -am verify -P run-its`. The `-am` option can also run
31
+ tests in upstream modules. Check the proposed command against the actual CI workflow before using
32
+ it for execution. A single Cloudflare Resolver run showed a candidate saving of 8.6% with a
33
+ CI-aligned `verify -P run-its` command; it does not establish repeatable savings across repositories.
34
+
35
+ For Go, install a compatible Go toolchain on the **same host and build environment** used for analysis
36
+ and testing, and prepare the repository's dependencies first using its normal setup procedure.
37
+ DiffCI invokes `go list -mod=readonly -deps -test -json ./...` with `GOTOOLCHAIN=local`, `GOPROXY=off`,
38
+ `GOSUMDB=off`, and `GOWORK=off`. Missing toolchains or dependencies produce refusal/full fallback.
39
+ Go may populate its own build cache but must not modify the checkout. It does not run `go generate`.
40
+ Custom `GOFLAGS` currently require full validation. Discovered GOOS, GOARCH and CGO_ENABLED settings
41
+ are carried into the structured test command.
42
+
43
+ For CI that runs only the root module's `go test ./...`, a repository containing nested
44
+ modules can explicitly declare that scope in a committed root `diffci.json`:
45
+
46
+ ```json
47
+ { "go": { "scope": "root-module" } }
48
+ ```
49
+
50
+ This does not cover nested-module CI jobs. Keep their validation unchanged. Without the
51
+ declaration, nested modules still block selection. With it, nested module trees are
52
+ excluded from the root test universe, but any change there (including a rename out of
53
+ the tree) forces full validation. Scope/configuration changes also force full validation.
54
+ Go workspaces and local replacements still block scoped selection. Reports identify the
55
+ declared `goScope`; the structured commands continue to run root-relative packages.
56
+
57
+ Empty-graph refusals now include the adapter's reason. Vue recognizes only direct imported
58
+ component identifiers in literal `components` registrations. Unresolved runtime dependencies
59
+ retain full execution unless the isolated-suite protection described below applies.
60
+
61
+ The Reka selection candidate also resolves imported Vue macro types through TypeScript aliases,
62
+ extended configurations and directory index files, and recognizes leading `./` in test globs.
63
+ For an explicitly scoped Vue suite, a component-specific blocker can be excluded only when every
64
+ test/setup/configuration root has been parsed and none can reach that component. This is not a
65
+ directory-name exclusion: imported story fixtures retain their blockers. Unresolved dependencies
66
+ and global configuration blockers still force full validation. Compiler-assisted components that
67
+ probe JSON configuration are rebuilt instead of persistently cached until every compiler input can
68
+ be tracked. See the [Reka experiment](research/2026-09-13-reka-selection.md) for qualification evidence.
69
+
70
+ The runtime-protection candidate can always run every test file reaching an unresolved runtime
71
+ component or directive, while selecting other tests normally. This requires a verified scoped
72
+ Vitest suite and isolated execution. Shared setup reaching a runtime blocker, disabled or ambiguous
73
+ isolation, custom runners/environments and unmodeled configuration keep full-suite fallback.
74
+ This policy protects tests despite unknown runtime edges; it does not resolve those edges or claim
75
+ support for non-isolated or order-dependent jobs. See the [runtime protection experiment](research/2026-09-13-vue-runtime-partition.md).
76
+
77
+ A selection such as `lib/value_test.go` becomes:
78
+
79
+ ```sh
80
+ go test -mod=readonly -json -count=1 ./lib
81
+ ```
82
+
83
+ It runs the entire package. Consumers must honor the emitted `CommandSpec.env`, preserve the build
84
+ context, and check fallback/command-synthesis status before execution. Commands are not portable
85
+ between different GOOS/GOARCH/GOFLAGS contexts. The controlled runner command policies accept `go`;
86
+ hosted images still need a Go installation before Go workloads can run. No deployment is performed
87
+ by these code changes.
88
+
89
+ Go result parsing counts failing **packages**, records failing test names, and rejects incomplete
90
+ JSON streams. It does not invent test-file counts from package counts, so file-based economics
91
+ qualification may still report an unsupported denominator for Go.
92
+
93
+ ## Extension points
94
+
95
+ - `src/repo/adapters/types.ts`: adapter context and graph contribution contract.
96
+ - `src/repo/adapters/index.ts`: framework/language adapter registry and bounded file inventory.
97
+ - `src/repo/adapters/vue.ts`: Vue compiler integration.
98
+ - `src/repo/adapters/go.ts`: native Go package metadata and conservative dependency model.
99
+ - `src/repo/adapters/go-test.ts`: structured Go outcome parsing.
100
+ - `src/planner/test-command.ts`: runner command routing, including verified Go package targets.
101
+
102
+ Adapters contribute source and asset nodes, dependency edges, virtual JS/TS source, runnable test
103
+ identities and explicit blockers. Effective suite blockers persist into the profile and graph result
104
+ and cannot be removed by delta-specific reachability refinement. Go graphs bypass the disk cache until every cache
105
+ caller provides a complete toolchain/build-context identity. The cache schema was bumped to prevent
106
+ reuse of graphs created before adapter support.
107
+
108
+ ## Validation and qualification
109
+
110
+ `tests/repo/language-adapters.test.ts` covers transitive Vue selection, unsupported-feature fallbacks,
111
+ Go package imports and embeds, metadata failures, command routing, and incomplete output.
112
+ When Go is on PATH, its native integration test runs the observer against a real Git fixture,
113
+ compares successful full/subset test runs, and verifies the subset catches an introduced fault.
114
+ Without Go, that native test is explicitly skipped.
115
+
116
+ These are implementation checks, not prospective customer safety or savings evidence. Each new
117
+ ecosystem still needs real repository shadow observations and economic qualification before broader
118
+ support or savings claims are made.