@diffci.com/diffci 0.2.4 → 0.2.5

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,62 +1,62 @@
1
- # Agent Adoption Targets
2
-
3
- Generated 2026-09-21 from GitHub search for repositories already centered on `AGENTS.md`,
4
- `CLAUDE.md`, Cursor/Codex/Claude Code workflows, or agent instruction templates.
5
-
6
- Do not open drive-by PRs blindly. Review each repository's contribution policy first and use the
7
- small optional-instruction PR from [`agent-adoption-kit.md`](agent-adoption-kit.md).
8
-
9
- ## Best First Targets
10
-
11
- | Repository | Why it fits |
12
- | --- | --- |
13
- | [`agentsmd/agents.md`](https://github.com/agentsmd/agents.md) | Defines the `AGENTS.md` convention. Proposal opened: [#245](https://github.com/agentsmd/agents.md/issues/245). |
14
- | [`FerroxLabs/agents-md`](https://github.com/FerroxLabs/agents-md) | Explicitly targets Claude Code, Codex, Gemini, Cursor, and verification loops. Proposal opened: [#2](https://github.com/FerroxLabs/agents-md/issues/2). |
15
- | [`ciembor/agent-rules-books`](https://github.com/ciembor/agent-rules-books) | Curated rules for AI coding agents; proposal opened: [#8](https://github.com/ciembor/agent-rules-books/issues/8). |
16
- | [`jbarbier/CLAUDE.md`](https://github.com/jbarbier/CLAUDE.md) | Drop-in Claude/Codex/Cursor instruction file; proposal opened: [#12](https://github.com/jbarbier/CLAUDE.md/issues/12). |
17
- | [`agent-sh/agnix`](https://github.com/agent-sh/agnix) | Linter/LSP for agent instruction files; possible future integration target. |
18
- | [`jsynowiec/node-typescript-boilerplate`](https://github.com/jsynowiec/node-typescript-boilerplate) | Real Node/TypeScript boilerplate with GitHub Actions and `AGENTS.md`, useful as a practical adoption example. |
19
-
20
- ## Secondary Targets
21
-
22
- | Repository | Why it fits |
23
- | --- | --- |
24
- | [`BayramAnnakov/claude-reflect`](https://github.com/BayramAnnakov/claude-reflect) | Syncs learning into `CLAUDE.md` and `AGENTS.md`; validation-command guidance may fit. |
25
- | [`josix/awesome-claude-md`](https://github.com/josix/awesome-claude-md) | Curated collection; submit DiffCI as a validation-pattern example. |
26
- | [`TheDecipherist/claude-code-mastery`](https://github.com/TheDecipherist/claude-code-mastery) | Guide-style repo; useful place for the agent-safe validation command. |
27
- | [`microsoft/skills`](https://github.com/microsoft/skills) | Agent skills and MCP ecosystem. Higher bar; review contribution rules before proposing. |
28
- | [`mxyhi/ok-skills`](https://github.com/mxyhi/ok-skills) | Curated skills/playbooks for Codex, Claude Code, Cursor, and other tools. |
29
-
30
- ## MCP Directory Targets
31
-
32
- | Directory | Submission path | Status |
33
- | --- | --- | --- |
34
- | [Official MCP Registry](https://github.com/modelcontextprotocol/registry) | Use the official `mcp-publisher` flow; do not open a seed-data PR. | Ready after registry package metadata is prepared. |
35
- | [Glama](https://glama.ai/) | Submit the GitHub repository URL and short description; optional `glama.json` metadata can improve indexing. | Ready to submit. |
36
- | [Smithery](https://smithery.ai/) | Publish through Smithery's server release flow/API. | Needs Smithery account/API key. |
37
- | [PulseMCP](https://www.pulsemcp.com/) | Submit/list the MCP server if their current listing flow accepts third-party servers. | Review current submission rules first. |
38
- | [MCP Central](https://mcpcentral.io/) | Follow the interactive server submission flow. | Ready to submit. |
39
-
40
- ## PR Order
41
-
42
- 1. Start with documentation/example repos, not large application repos.
43
- 2. Add only an optional validation instruction, never a required check.
44
- 3. Link to `https://diffci.com/docs/ai-agents.html` and `https://diffci.com/llms.txt`.
45
- 4. State that DiffCI sends nothing by default and changes no CI behavior.
46
- 5. If maintainers ask for a workflow, suggest `npx @diffci.com/diffci@latest init --workflow`.
47
-
48
- ## Minimal Patch Shape
49
-
50
- Add this to the repository's agent instruction file:
51
-
52
- ```md
53
- Before marking changes PR-ready, run:
54
-
55
- ```bash
56
- npx @diffci.com/diffci@latest check
57
- ```
58
-
59
- DiffCI check analyzes the change and runs inferred full and selected test commands to measure time.
60
- It writes reports outside the checkout and sends nothing. Test commands may write generated files.
61
- Existing required CI remains authoritative; use `observe --no-send` for analysis only.
62
- ```
1
+ # Agent Adoption Targets
2
+
3
+ Generated 2026-09-21 from GitHub search for repositories already centered on `AGENTS.md`,
4
+ `CLAUDE.md`, Cursor/Codex/Claude Code workflows, or agent instruction templates.
5
+
6
+ Do not open drive-by PRs blindly. Review each repository's contribution policy first and use the
7
+ small optional-instruction PR from [`agent-adoption-kit.md`](agent-adoption-kit.md).
8
+
9
+ ## Best First Targets
10
+
11
+ | Repository | Why it fits |
12
+ | --- | --- |
13
+ | [`agentsmd/agents.md`](https://github.com/agentsmd/agents.md) | Defines the `AGENTS.md` convention. Proposal opened: [#245](https://github.com/agentsmd/agents.md/issues/245). |
14
+ | [`FerroxLabs/agents-md`](https://github.com/FerroxLabs/agents-md) | Explicitly targets Claude Code, Codex, Gemini, Cursor, and verification loops. Proposal opened: [#2](https://github.com/FerroxLabs/agents-md/issues/2). |
15
+ | [`ciembor/agent-rules-books`](https://github.com/ciembor/agent-rules-books) | Curated rules for AI coding agents; proposal opened: [#8](https://github.com/ciembor/agent-rules-books/issues/8). |
16
+ | [`jbarbier/CLAUDE.md`](https://github.com/jbarbier/CLAUDE.md) | Drop-in Claude/Codex/Cursor instruction file; proposal opened: [#12](https://github.com/jbarbier/CLAUDE.md/issues/12). |
17
+ | [`agent-sh/agnix`](https://github.com/agent-sh/agnix) | Linter/LSP for agent instruction files; possible future integration target. |
18
+ | [`jsynowiec/node-typescript-boilerplate`](https://github.com/jsynowiec/node-typescript-boilerplate) | Real Node/TypeScript boilerplate with GitHub Actions and `AGENTS.md`, useful as a practical adoption example. |
19
+
20
+ ## Secondary Targets
21
+
22
+ | Repository | Why it fits |
23
+ | --- | --- |
24
+ | [`BayramAnnakov/claude-reflect`](https://github.com/BayramAnnakov/claude-reflect) | Syncs learning into `CLAUDE.md` and `AGENTS.md`; validation-command guidance may fit. |
25
+ | [`josix/awesome-claude-md`](https://github.com/josix/awesome-claude-md) | Curated collection; submit DiffCI as a validation-pattern example. |
26
+ | [`TheDecipherist/claude-code-mastery`](https://github.com/TheDecipherist/claude-code-mastery) | Guide-style repo; useful place for the agent-safe validation command. |
27
+ | [`microsoft/skills`](https://github.com/microsoft/skills) | Agent skills and MCP ecosystem. Higher bar; review contribution rules before proposing. |
28
+ | [`mxyhi/ok-skills`](https://github.com/mxyhi/ok-skills) | Curated skills/playbooks for Codex, Claude Code, Cursor, and other tools. |
29
+
30
+ ## MCP Directory Targets
31
+
32
+ | Directory | Submission path | Status |
33
+ | --- | --- | --- |
34
+ | [Official MCP Registry](https://github.com/modelcontextprotocol/registry) | Published with `mcp-publisher` as `io.github.adityankale190895/diffci`. | Published. |
35
+ | [Glama](https://glama.ai/) | Submit the GitHub repository URL and short description; optional `glama.json` metadata can improve indexing. | Ready to submit. |
36
+ | [Smithery](https://smithery.ai/) | Publish through Smithery's server release flow/API. | Needs Smithery account/API key. |
37
+ | [PulseMCP](https://www.pulsemcp.com/) | Submit/list the MCP server if their current listing flow accepts third-party servers. | Review current submission rules first. |
38
+ | [MCP Central](https://mcpcentral.io/) | Follow the interactive server submission flow. | Ready to submit. |
39
+
40
+ ## PR Order
41
+
42
+ 1. Start with documentation/example repos, not large application repos.
43
+ 2. Add only an optional validation instruction, never a required check.
44
+ 3. Link to `https://diffci.com/docs/ai-agents.html` and `https://diffci.com/llms.txt`.
45
+ 4. State that DiffCI sends nothing by default and changes no CI behavior.
46
+ 5. If maintainers ask for a workflow, suggest `npx @diffci.com/diffci@latest init --workflow`.
47
+
48
+ ## Minimal Patch Shape
49
+
50
+ Add this to the repository's agent instruction file:
51
+
52
+ ```md
53
+ Before marking changes PR-ready, run:
54
+
55
+ ```bash
56
+ npx @diffci.com/diffci@latest check
57
+ ```
58
+
59
+ DiffCI check analyzes the change and runs inferred full and selected test commands to measure time.
60
+ It writes reports outside the checkout and sends nothing. Test commands may write generated files.
61
+ Existing required CI remains authoritative; use `observe --no-send` for analysis only.
62
+ ```
package/docs/ai-agents.md CHANGED
@@ -1,102 +1,102 @@
1
- # DiffCI for AI Coding Agents
2
-
3
- DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
4
- pull request.
5
-
6
- The default command is:
7
-
8
- ```bash
9
- npx @diffci.com/diffci@latest check
10
- ```
11
-
12
- `check` analyzes the change and runs inferred full and selected test commands when possible. It
13
- prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
14
- the checkout. Use `observe --no-send` when you need analysis without running tests.
15
-
16
- ## Install Agent Instructions
17
-
18
- From a repository root:
19
-
20
- ```bash
21
- npx @diffci.com/diffci@latest init
22
- ```
23
-
24
- This writes:
25
-
26
- - `AGENTS.md`
27
- - `CLAUDE.md`
28
- - `.cursor/rules/diffci.mdc`
29
- - `.github/copilot-instructions.md`
30
- - `diffci.config.json`
31
-
32
- Existing files are kept. Pass `--force` only when you intentionally want to replace them.
33
-
34
- To also add a non-blocking GitHub Actions observer job:
35
-
36
- ```bash
37
- npx @diffci.com/diffci@latest init --workflow
38
- ```
39
-
40
- Then verify the workflow:
41
-
42
- ```bash
43
- npx @diffci.com/diffci@latest verify-workflow
44
- ```
45
-
46
- ## Copy-Paste Adoption
47
-
48
- For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
49
- use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
50
- For a first-pass list of repositories to review before opening PRs, see
51
- [`agent-adoption-targets.md`](agent-adoption-targets.md).
52
-
53
- Examples:
54
-
55
- - [`examples/agent-node`](../examples/agent-node)
56
- - [`examples/agent-python`](../examples/agent-python)
57
- - [`examples/agent-monorepo`](../examples/agent-monorepo)
58
-
59
- ## MCP
60
-
61
- Agents that support MCP can run DiffCI as a native stdio tool server:
62
-
63
- ```bash
64
- npx -p @diffci.com/diffci@latest diffci-mcp
65
- ```
66
-
67
- See [`mcp.md`](mcp.md).
68
-
69
- Minimal MCP config:
70
-
71
- ```json
72
- {
73
- "mcpServers": {
74
- "diffci": {
75
- "command": "npx",
76
- "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
77
- }
78
- }
79
- }
80
- ```
81
-
82
- ## Agent Policy
83
-
84
- Agents should:
85
-
86
- - run `diffci check` before PR-ready answers when Git and Node.js are available;
87
- - call `diffci_check` when connected through MCP;
88
- - read the printed verdict, selected tests, fallback reasons, and report path;
89
- - use DiffCI output to choose focused follow-up validation;
90
- - keep the repository's required CI commands authoritative.
91
-
92
- Agents should not:
93
-
94
- - skip required CI because DiffCI selected fewer tests;
95
- - treat `REFUSED` or `ERROR` as a passing validation;
96
- - configure hosted report sending unless the user explicitly supplies an endpoint and token.
97
-
98
- ## Open Core Boundary
99
-
100
- The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
101
- files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
102
- team analytics, managed runners, and support belong to commercial DiffCI.
1
+ # DiffCI for AI Coding Agents
2
+
3
+ DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
4
+ pull request.
5
+
6
+ The default command is:
7
+
8
+ ```bash
9
+ npx @diffci.com/diffci@latest check
10
+ ```
11
+
12
+ `check` analyzes the change and runs inferred full and selected test commands when possible. It
13
+ prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
14
+ the checkout. Use `observe --no-send` when you need analysis without running tests.
15
+
16
+ ## Install Agent Instructions
17
+
18
+ From a repository root:
19
+
20
+ ```bash
21
+ npx @diffci.com/diffci@latest init
22
+ ```
23
+
24
+ This writes:
25
+
26
+ - `AGENTS.md`
27
+ - `CLAUDE.md`
28
+ - `.cursor/rules/diffci.mdc`
29
+ - `.github/copilot-instructions.md`
30
+ - `diffci.config.json`
31
+
32
+ Existing files are kept. Pass `--force` only when you intentionally want to replace them.
33
+
34
+ To also add a non-blocking GitHub Actions observer job:
35
+
36
+ ```bash
37
+ npx @diffci.com/diffci@latest init --workflow
38
+ ```
39
+
40
+ Then verify the workflow:
41
+
42
+ ```bash
43
+ npx @diffci.com/diffci@latest verify-workflow
44
+ ```
45
+
46
+ ## Copy-Paste Adoption
47
+
48
+ For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
49
+ use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
50
+ For a first-pass list of repositories to review before opening PRs, see
51
+ [`agent-adoption-targets.md`](agent-adoption-targets.md).
52
+
53
+ Examples:
54
+
55
+ - [`examples/agent-node`](../examples/agent-node)
56
+ - [`examples/agent-python`](../examples/agent-python)
57
+ - [`examples/agent-monorepo`](../examples/agent-monorepo)
58
+
59
+ ## MCP
60
+
61
+ Agents that support MCP can run DiffCI as a native stdio tool server:
62
+
63
+ ```bash
64
+ npx -p @diffci.com/diffci@latest diffci-mcp
65
+ ```
66
+
67
+ See [`mcp.md`](mcp.md).
68
+
69
+ Minimal MCP config:
70
+
71
+ ```json
72
+ {
73
+ "mcpServers": {
74
+ "diffci": {
75
+ "command": "npx",
76
+ "args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
77
+ }
78
+ }
79
+ }
80
+ ```
81
+
82
+ ## Agent Policy
83
+
84
+ Agents should:
85
+
86
+ - run `diffci check` before PR-ready answers when Git and Node.js are available;
87
+ - call `diffci_check` when connected through MCP;
88
+ - read the printed verdict, selected tests, fallback reasons, and report path;
89
+ - use DiffCI output to choose focused follow-up validation;
90
+ - keep the repository's required CI commands authoritative.
91
+
92
+ Agents should not:
93
+
94
+ - skip required CI because DiffCI selected fewer tests;
95
+ - treat `REFUSED` or `ERROR` as a passing validation;
96
+ - configure hosted report sending unless the user explicitly supplies an endpoint and token.
97
+
98
+ ## Open Core Boundary
99
+
100
+ The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
101
+ files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
102
+ team analytics, managed runners, and support belong to commercial DiffCI.
@@ -9,19 +9,19 @@ See [`open-core-packaging.md`](open-core-packaging.md).
9
9
 
10
10
  ## Channel strategy
11
11
 
12
- Reviewed 2026-09-19. These channels have different jobs in the same adoption path:
12
+ Reviewed 2026-09-22. These channels have different jobs in the same adoption path:
13
13
 
14
14
  | Channel | Role for DiffCI | Next step |
15
15
  | --- | --- | --- |
16
16
  | npm | Developer discovery and local evaluation of `@diffci.com/diffci` | Lead with `observe`, a sample report, and the observation-only contract. |
17
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 | Confirm listing status and release requirements, then publish or improve its installation instructions. |
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. |
19
20
  | Tidelift | Potential package maintenance assurance and maintainer income | Pursue package acceptance using the existing submission packet; do not present support as active. |
20
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. |
21
22
 
22
- The Action is the integration; Marketplace is a discovery channel for that integration. GitHub documents
23
- Marketplace publication as a release-based process, so having `action.yml` alone does not establish
24
- that a listing is live. See [GitHub's publishing requirements](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace).
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
25
 
26
26
  Prioritize npm and Action activation, then Marketplace discovery. Keep Tidelift outreach in parallel
27
27
  without making adoption dependent on acceptance or expected payments. Defer PyPI, Cargo, and Homebrew
@@ -68,10 +68,10 @@ jobs:
68
68
  - uses: actions/checkout@v4
69
69
  with:
70
70
  fetch-depth: 0
71
- - uses: DiffCI/DiffCI.com@dee4f7b938a7720d077c1124ef2ea050aa2625d6
71
+ - uses: DiffCI/DiffCI.com@3aa76a84919691cf7e8f9d1f1f6a80399325d1ae
72
72
  ```
73
73
 
74
- The example pins release `v0.1.4` to its full commit SHA. `npx @diffci.com/diffci@latest verify-workflow`
74
+ The example pins release `v0.2.2` to its full commit SHA. `npx @diffci.com/diffci@latest verify-workflow`
75
75
  checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
76
76
  of CI.
77
77
 
@@ -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.