@diffci.com/diffci 0.3.9 → 0.3.11
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.
- package/LICENSE +7 -5
- package/README.md +18 -418
- package/dist-client/src/client/workflow-guard.js +1 -1
- package/node_modules/@diffci.com/core/README.md +33 -0
- package/package.json +17 -129
- package/.agents/plugins/marketplace.json +0 -12
- package/COMMERCIAL.md +0 -35
- package/SECURITY.md +0 -61
- package/SUPPORT.md +0 -47
- package/action.yml +0 -155
- package/docs/adoption-metrics.md +0 -161
- package/docs/adoption-outreach.md +0 -156
- package/docs/agent-adoption-kit.md +0 -97
- package/docs/agent-adoption-targets.md +0 -62
- package/docs/agent-plugin.md +0 -80
- package/docs/ai-agents.md +0 -123
- package/docs/claude-code.md +0 -18
- package/docs/codex.md +0 -18
- package/docs/copilot.md +0 -18
- package/docs/cursor.md +0 -19
- package/docs/distribution.md +0 -153
- package/docs/grok.md +0 -18
- package/docs/language-support.md +0 -118
- package/docs/mcp.md +0 -104
- package/docs/npm-adoption.md +0 -165
- package/glama.json +0 -12
- package/llms.txt +0 -41
- package/packaging/agent-plugin/.claude-plugin/plugin.json +0 -6
- package/packaging/agent-plugin/.codex-plugin/plugin.json +0 -8
- package/packaging/agent-plugin/.mcp.json +0 -13
- package/packaging/agent-plugin/skills/diffci-verify/SKILL.md +0 -35
- package/server.json +0 -43
- package/site/assets/calcom-runtime-evidence.svg +0 -11
- package/site/llms.txt +0 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diffci.com/diffci",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "Fail-closed, change-aware verification for AI coding agents with conservative affected-test selection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -24,10 +24,17 @@
|
|
|
24
24
|
"mcpName": "io.github.DiffCI/diffci",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/DiffCI/
|
|
27
|
+
"url": "git+https://github.com/DiffCI/core.git",
|
|
28
|
+
"directory": "packages/diffci-cli"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/DiffCI/core/issues"
|
|
28
32
|
},
|
|
29
33
|
"homepage": "https://diffci.com/",
|
|
30
34
|
"private": false,
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
31
38
|
"type": "module",
|
|
32
39
|
"engines": {
|
|
33
40
|
"node": ">=22.5.0"
|
|
@@ -37,145 +44,26 @@
|
|
|
37
44
|
"diffci-mcp": "dist-client/src/client/mcp.js"
|
|
38
45
|
},
|
|
39
46
|
"files": [
|
|
40
|
-
"action.yml",
|
|
41
47
|
"dist-client/src/client",
|
|
42
48
|
"dist-client/src/preflight",
|
|
43
49
|
"README.md",
|
|
44
|
-
"
|
|
45
|
-
"server.json",
|
|
46
|
-
"glama.json",
|
|
47
|
-
"llms.txt",
|
|
48
|
-
"docs/ai-agents.md",
|
|
49
|
-
"docs/adoption-outreach.md",
|
|
50
|
-
"docs/adoption-metrics.md",
|
|
51
|
-
"docs/agent-adoption-kit.md",
|
|
52
|
-
"docs/agent-adoption-targets.md",
|
|
53
|
-
"docs/mcp.md",
|
|
54
|
-
"docs/codex.md",
|
|
55
|
-
"docs/claude-code.md",
|
|
56
|
-
"docs/cursor.md",
|
|
57
|
-
"docs/copilot.md",
|
|
58
|
-
"docs/grok.md",
|
|
59
|
-
"docs/distribution.md",
|
|
60
|
-
"docs/npm-adoption.md",
|
|
61
|
-
"docs/language-support.md",
|
|
62
|
-
"SECURITY.md",
|
|
63
|
-
"SUPPORT.md",
|
|
64
|
-
"COMMERCIAL.md",
|
|
65
|
-
".agents/plugins/marketplace.json",
|
|
66
|
-
"docs/agent-plugin.md",
|
|
67
|
-
"packaging/agent-plugin"
|
|
50
|
+
"LICENSE"
|
|
68
51
|
],
|
|
69
|
-
"exports": {
|
|
70
|
-
"./*": {
|
|
71
|
-
"types": "./dist/src/*.d.ts",
|
|
72
|
-
"default": "./dist/src/*.js"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
52
|
"scripts": {
|
|
76
53
|
"typecheck": "tsc --noEmit",
|
|
77
|
-
"build": "
|
|
78
|
-
"test": "tsx --test \"tests/**/*.test.ts\"",
|
|
79
|
-
"check": "npm run check:public-metadata && npm run typecheck && npm run test",
|
|
80
|
-
"prepack": "npm run build:client",
|
|
81
|
-
"package:smoke": "node scripts/package-smoke.mjs",
|
|
82
|
-
"diffci": "tsx scripts/diffci.ts",
|
|
83
|
-
"diffci:verify": "tsx src/client/cli.ts verify --changed --json",
|
|
84
|
-
"impact": "tsx scripts/diffci.ts impact",
|
|
85
|
-
"observe": "tsx src/client/cli.ts observe",
|
|
86
|
-
"verify-workflow": "tsx src/client/cli.ts verify-workflow",
|
|
54
|
+
"build": "npm run build:client",
|
|
87
55
|
"build:client": "tsc -p tsconfig.client.json && node scripts/ensure-client-executables.mjs",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"dogfood:report": "tsx scripts/dogfood-report.ts",
|
|
92
|
-
"dogfood:mutate": "tsx scripts/dogfood-mutate.ts",
|
|
93
|
-
"dogfood:qualify": "tsx scripts/dogfood-qualify.ts",
|
|
94
|
-
"dogfood:freeze": "tsx scripts/dogfood-freeze.ts",
|
|
95
|
-
"shadow": "tsx scripts/diffci-shadow.ts",
|
|
96
|
-
"shadow-report": "tsx scripts/diffci-shadow-report.ts",
|
|
97
|
-
"evidence:dentalpresence": "tsx scripts/dentalpresence-evidence-report.ts",
|
|
98
|
-
"evidence:dentalpresence-pairs": "tsx scripts/dentalpresence-pair-report.ts",
|
|
99
|
-
"check:dentalpresence": "tsx scripts/check-dentalpresence.ts",
|
|
100
|
-
"audit:dentalpresence": "tsx scripts/audit-dentalpresence-graph.ts",
|
|
101
|
-
"audit:dentalpresence-impact": "tsx scripts/audit-dentalpresence-impact.ts",
|
|
102
|
-
"research:stage0": "tsx src/research/cli/run-stage0.ts",
|
|
103
|
-
"research:sandbox:deploy": "wrangler deploy --config wrangler.research-sandbox.jsonc",
|
|
104
|
-
"shadow:upload-source": "tsx scripts/upload-shadow-source.ts",
|
|
105
|
-
"shadow:deploy": "tsx scripts/deploy-research-sandbox.ts",
|
|
106
|
-
"shadow:screen": "tsx scripts/screen-shadow-eligibility.ts",
|
|
107
|
-
"shadow:status": "node scripts/shadow-status.mjs",
|
|
108
|
-
"shadow:report": "tsx scripts/generate-shadow-report.ts",
|
|
109
|
-
"shadow:freshness": "tsx scripts/check-deployment-freshness.ts",
|
|
110
|
-
"shadow:missed-commits": "tsx scripts/derive-missed-commits.ts",
|
|
111
|
-
"github-runner:deploy": "wrangler deploy --config wrangler.github-runner.jsonc",
|
|
112
|
-
"product:deploy": "wrangler deploy --config wrangler.product.jsonc",
|
|
113
|
-
"product:migrate": "tsx scripts/migrate-product-db.ts",
|
|
114
|
-
"site:dev": "wrangler dev --config wrangler.site.jsonc --port 8788",
|
|
115
|
-
"site:check": "tsx --test tests/site/seo.test.ts tests/site/site-worker.test.ts",
|
|
116
|
-
"site:prepare": "npm run site:sitemap && npm run site:check",
|
|
117
|
-
"site:deploy": "npm run site:prepare && wrangler deploy --config wrangler.site.jsonc && npm run site:indexnow",
|
|
118
|
-
"site:sitemap": "node scripts/generate-site-sitemap.mjs",
|
|
119
|
-
"site:indexnow": "node scripts/submit-indexnow.mjs",
|
|
120
|
-
"release:sync": "node scripts/sync-public-metadata.mjs",
|
|
121
|
-
"study:render": "tsx scripts/render-open-study.ts",
|
|
122
|
-
"validation:deploy": "wrangler deploy --config wrangler.validation-env.jsonc",
|
|
123
|
-
"validation:pack": "tsx scripts/diffci-validation-cli.ts pack",
|
|
124
|
-
"validation:start": "tsx scripts/diffci-validation-cli.ts start",
|
|
125
|
-
"validation:status": "tsx scripts/diffci-validation-cli.ts status",
|
|
126
|
-
"validation:collect": "tsx scripts/diffci-validation-cli.ts collect",
|
|
127
|
-
"dogfood:compare": "tsx scripts/dogfood-compare.ts",
|
|
128
|
-
"verify:savings-pilot": "tsx scripts/verify-savings-pilot.ts",
|
|
129
|
-
"test:calibration": "tsx --test \"tests/scripts/harness-calibration.test.ts\" \"tests/scripts/compute-usage.test.ts\"",
|
|
130
|
-
"agent:equivalence": "tsx scripts/agent-equivalence.ts",
|
|
131
|
-
"dogfood:economics": "tsx scripts/dogfood-economics.ts",
|
|
132
|
-
"analyze:buckets": "tsx scripts/analyze-selection-buckets.ts",
|
|
133
|
-
"trace:selection": "tsx scripts/trace-selection-provenance.ts",
|
|
134
|
-
"diagnose:symbols": "tsx scripts/diagnose-symbol-precision.ts",
|
|
135
|
-
"eligibility": "tsx scripts/economic-eligibility.ts",
|
|
136
|
-
"calibrate": "tsx scripts/calibrate-repository.ts",
|
|
137
|
-
"survey": "tsx scripts/survey-run.ts",
|
|
138
|
-
"diagnose:candidate": "tsx scripts/diagnose-candidate.ts",
|
|
139
|
-
"select:candidate": "tsx scripts/select-source-candidate.ts",
|
|
140
|
-
"survey:density": "tsx scripts/survey-mapping-density.ts",
|
|
141
|
-
"trace:imports": "tsx scripts/trace-import-resolution.ts",
|
|
142
|
-
"select:compute-proof": "tsx scripts/select-compute-proof.ts",
|
|
143
|
-
"funnel:qualification": "tsx scripts/qualification-funnel.ts",
|
|
144
|
-
"select:mechanism-proof": "tsx scripts/select-mechanism-proof.ts",
|
|
145
|
-
"observe:pairs": "tsx scripts/observe-named-pairs.ts",
|
|
146
|
-
"qualify:universe": "tsx scripts/qualify-universe.ts",
|
|
147
|
-
"corpus:register": "tsx scripts/register-corpus-entry.ts",
|
|
148
|
-
"ci:benchmark": "tsx scripts/ci-inference-benchmark.ts",
|
|
149
|
-
"ci:reproduce": "tsx scripts/ci-reproduction.ts",
|
|
150
|
-
"cloud:pilot": "tsx scripts/diffci-analysis-fanout-cli.ts",
|
|
151
|
-
"check:oss-boundary": "node scripts/check-oss-boundary.mjs",
|
|
152
|
-
"check:public-metadata": "node scripts/check-public-metadata.mjs",
|
|
153
|
-
"registry:verify": "node scripts/verify-mcp-registry.mjs"
|
|
56
|
+
"prepack": "npm run build:client",
|
|
57
|
+
"package:check": "node scripts/check-package-boundary.mjs",
|
|
58
|
+
"package:smoke": "node scripts/package-smoke.mjs"
|
|
154
59
|
},
|
|
155
60
|
"dependencies": {
|
|
156
|
-
"@diffci.com/core": "git+https://github.com/DiffCI/core.git#
|
|
157
|
-
"@types/node": "^22.15.12",
|
|
158
|
-
"@vue/compiler-sfc": "3.5.42",
|
|
159
|
-
"typescript": "^5.8.3",
|
|
61
|
+
"@diffci.com/core": "git+https://github.com/DiffCI/core.git#4c76be14cec37d94eb7df93922f3c29d202f4e65",
|
|
160
62
|
"yaml": "^2.9.0"
|
|
161
63
|
},
|
|
162
64
|
"devDependencies": {
|
|
163
|
-
"@
|
|
164
|
-
"
|
|
165
|
-
"esbuild": "^0.28.2",
|
|
166
|
-
"pdf-lib": "^1.17.1",
|
|
167
|
-
"tsx": "^4.23.12",
|
|
168
|
-
"wrangler": "4.120.0"
|
|
169
|
-
},
|
|
170
|
-
"diffci": {
|
|
171
|
-
"alwaysRunTests": [
|
|
172
|
-
"**/security.test.*",
|
|
173
|
-
"**/test-security.*",
|
|
174
|
-
"**/*api-guardrails*",
|
|
175
|
-
"**/verify-*.test.*",
|
|
176
|
-
"**/validate-*.test.*",
|
|
177
|
-
"scripts/**/*.test.mjs"
|
|
178
|
-
]
|
|
65
|
+
"@types/node": "^22.15.12",
|
|
66
|
+
"typescript": "^5.8.3"
|
|
179
67
|
},
|
|
180
68
|
"bundleDependencies": [
|
|
181
69
|
"@diffci.com/core"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "diffci-local",
|
|
3
|
-
"interface": { "displayName": "DiffCI" },
|
|
4
|
-
"plugins": [
|
|
5
|
-
{
|
|
6
|
-
"name": "diffci",
|
|
7
|
-
"source": { "source": "local", "path": "./packaging/agent-plugin" },
|
|
8
|
-
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
|
|
9
|
-
"category": "Productivity"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
}
|
package/COMMERCIAL.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Commercial DiffCI boundary
|
|
2
|
-
|
|
3
|
-
DiffCI is an open-core project with two separate software boundaries.
|
|
4
|
-
|
|
5
|
-
## Open-source core
|
|
6
|
-
|
|
7
|
-
DiffCI Core is the installable observation-only package published as `@diffci.com/diffci`.
|
|
8
|
-
|
|
9
|
-
It is licensed AGPL-3.0-only and includes:
|
|
10
|
-
|
|
11
|
-
- the engine/client/action code shipped in the npm package;
|
|
12
|
-
- local analysis;
|
|
13
|
-
- local JSON reports;
|
|
14
|
-
- the basic GitHub Action;
|
|
15
|
-
- optional submission to a configured hosted endpoint.
|
|
16
|
-
|
|
17
|
-
The exact package boundary is recorded in [`docs/oss-boundary.md`](docs/oss-boundary.md).
|
|
18
|
-
|
|
19
|
-
## Commercial DiffCI
|
|
20
|
-
|
|
21
|
-
Commercial DiffCI is proprietary software. It includes code and services for:
|
|
22
|
-
|
|
23
|
-
- DiffCI Cloud;
|
|
24
|
-
- organization dashboards;
|
|
25
|
-
- private report access;
|
|
26
|
-
- historical analytics;
|
|
27
|
-
- enterprise policies;
|
|
28
|
-
- managed runners;
|
|
29
|
-
- team and organization features;
|
|
30
|
-
- billing, ledger, usage, and entitlement systems;
|
|
31
|
-
- deployment, research, operations, and control-plane infrastructure.
|
|
32
|
-
|
|
33
|
-
Commercial DiffCI is not licensed under the AGPL merely because it lives in the same repository. Files
|
|
34
|
-
outside the OSS package boundary remain proprietary unless a later change explicitly moves them into the
|
|
35
|
-
OSS package boundary.
|
package/SECURITY.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Security policy
|
|
2
|
-
|
|
3
|
-
## Supported project
|
|
4
|
-
|
|
5
|
-
This policy covers the DiffCI open-source core package, published as `@diffci.com/diffci`.
|
|
6
|
-
|
|
7
|
-
Covered surfaces:
|
|
8
|
-
|
|
9
|
-
- `diffci observe`
|
|
10
|
-
- `diffci verify-workflow`
|
|
11
|
-
- the basic GitHub Action in `action.yml`
|
|
12
|
-
- local report generation
|
|
13
|
-
- optional report submission to a configured endpoint and token
|
|
14
|
-
|
|
15
|
-
Commercial DiffCI, including DiffCI Cloud, hosted dashboards, managed runners, billing, organization
|
|
16
|
-
management, private report access, and enterprise policy features, is separate proprietary software and
|
|
17
|
-
is handled through commercial support channels.
|
|
18
|
-
|
|
19
|
-
## Supported versions
|
|
20
|
-
|
|
21
|
-
The supported OSS package line is the latest published npm release. Security fixes are released as a
|
|
22
|
-
new npm version and Git tag.
|
|
23
|
-
|
|
24
|
-
DiffCI Core requires Node.js `>=22.5.0`.
|
|
25
|
-
|
|
26
|
-
## Reporting a vulnerability
|
|
27
|
-
|
|
28
|
-
Do not open a public issue for a suspected vulnerability.
|
|
29
|
-
|
|
30
|
-
Report security issues by email to:
|
|
31
|
-
|
|
32
|
-
```text
|
|
33
|
-
security@diffci.com
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Include:
|
|
37
|
-
|
|
38
|
-
- affected package/version;
|
|
39
|
-
- affected command or GitHub Action path;
|
|
40
|
-
- reproduction steps;
|
|
41
|
-
- expected impact;
|
|
42
|
-
- whether any token, report, repository data, or CI behavior is exposed or modified.
|
|
43
|
-
|
|
44
|
-
## Response target
|
|
45
|
-
|
|
46
|
-
For the OSS package:
|
|
47
|
-
|
|
48
|
-
- acknowledge within 3 business days;
|
|
49
|
-
- provide an initial assessment within 7 business days;
|
|
50
|
-
- publish a fix or mitigation plan when the issue is confirmed.
|
|
51
|
-
|
|
52
|
-
## Security boundaries
|
|
53
|
-
|
|
54
|
-
DiffCI Core is observation-only. A security issue is especially important if it causes the observer to:
|
|
55
|
-
|
|
56
|
-
- modify the repository checkout without reporting it;
|
|
57
|
-
- affect another CI job's conclusion;
|
|
58
|
-
- expose tokens or report submission credentials;
|
|
59
|
-
- submit a report to the wrong repository or organization;
|
|
60
|
-
- include source file contents when the report schema says it does not;
|
|
61
|
-
- bypass the OSS package boundary and include commercial/control-plane code.
|
package/SUPPORT.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Support policy
|
|
2
|
-
|
|
3
|
-
## Open-source core
|
|
4
|
-
|
|
5
|
-
Supported package:
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
@diffci.com/diffci
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Supported surfaces:
|
|
12
|
-
|
|
13
|
-
- `diffci observe`
|
|
14
|
-
- `diffci verify-workflow`
|
|
15
|
-
- `diffci version`
|
|
16
|
-
- the basic GitHub Action in `action.yml`
|
|
17
|
-
- local JSON observation reports
|
|
18
|
-
- optional report submission to a configured endpoint and token
|
|
19
|
-
|
|
20
|
-
Supported runtime:
|
|
21
|
-
|
|
22
|
-
```text
|
|
23
|
-
Node.js >=22.5.0
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
The open-source support commitment is limited to the latest published npm release unless a security
|
|
27
|
-
advisory says otherwise.
|
|
28
|
-
|
|
29
|
-
## Commercial DiffCI
|
|
30
|
-
|
|
31
|
-
Commercial DiffCI is separate proprietary software. It includes:
|
|
32
|
-
|
|
33
|
-
- DiffCI Cloud;
|
|
34
|
-
- hosted dashboards and private report access;
|
|
35
|
-
- organization/team management;
|
|
36
|
-
- historical analytics;
|
|
37
|
-
- enterprise policies;
|
|
38
|
-
- managed runners;
|
|
39
|
-
- billing, ledger, and support operations;
|
|
40
|
-
- deployment and control-plane infrastructure.
|
|
41
|
-
|
|
42
|
-
Those features are not included in Tidelift package support for the OSS dependency.
|
|
43
|
-
|
|
44
|
-
## Tidelift boundary
|
|
45
|
-
|
|
46
|
-
Tidelift support, if accepted, should cover the open-source npm package as a dependency. It should not be
|
|
47
|
-
used to represent DiffCI Cloud, managed runners, or enterprise policy features as open source.
|
package/action.yml
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
# DiffCI observer - the GitHub Action a third-party repository installs (Phase 02, 2026-08-26).
|
|
2
|
-
#
|
|
3
|
-
# WHAT THIS DOES: analyses one commit range against the checkout the job already has, writes a JSON
|
|
4
|
-
# report to the runner's temp directory, prints a summary to the job log and the job summary, optionally
|
|
5
|
-
# uploads the report as an artifact, and - only when `api-url` and `api-token` are both set - sends that
|
|
6
|
-
# same report to DiffCI. With no token configured nothing leaves the runner at all.
|
|
7
|
-
#
|
|
8
|
-
# WHAT THIS DOES NOT DO, and cannot: run tests, skip tests, cancel a job, re-order steps, write to the
|
|
9
|
-
# repository, comment on a pull request, or set a check status. There is no input below that turns any
|
|
10
|
-
# of that on, because the claim being tested for seven days is that installing DiffCI leaves CI
|
|
11
|
-
# byte-identical, and a flag that could change what CI runs would eventually be set by accident.
|
|
12
|
-
#
|
|
13
|
-
# INSTALL IT AS ITS OWN JOB. A job of its own is what makes the claim structural rather than careful:
|
|
14
|
-
#
|
|
15
|
-
# jobs:
|
|
16
|
-
# diffci:
|
|
17
|
-
# runs-on: ubuntu-24.04
|
|
18
|
-
# continue-on-error: true # a DiffCI failure must not become the workflow's conclusion
|
|
19
|
-
# permissions:
|
|
20
|
-
# contents: read
|
|
21
|
-
# steps:
|
|
22
|
-
# - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
-
# with:
|
|
24
|
-
# fetch-depth: 0 # the base commit must exist locally, or DiffCI refuses
|
|
25
|
-
# - uses: DiffCI/DiffCI.com@<40-character commit sha>
|
|
26
|
-
#
|
|
27
|
-
# `diffci verify-workflow` checks those properties against your own workflow files and exits non-zero
|
|
28
|
-
# if any of them does not hold. Run it before the observation window starts.
|
|
29
|
-
name: DiffCI observer
|
|
30
|
-
description: Observation-only change-aware CI analysis. Runs nothing, changes nothing, skips nothing.
|
|
31
|
-
branding:
|
|
32
|
-
icon: eye
|
|
33
|
-
color: gray-dark
|
|
34
|
-
|
|
35
|
-
inputs:
|
|
36
|
-
repository-path:
|
|
37
|
-
description: The checkout to observe. Defaults to the workspace.
|
|
38
|
-
required: false
|
|
39
|
-
default: ${{ github.workspace }}
|
|
40
|
-
base-sha:
|
|
41
|
-
description: Base commit. Leave empty to derive it from the event (pull request base, push before).
|
|
42
|
-
required: false
|
|
43
|
-
default: ""
|
|
44
|
-
head-sha:
|
|
45
|
-
description: Head commit. Must be given together with base-sha.
|
|
46
|
-
required: false
|
|
47
|
-
default: ""
|
|
48
|
-
node-version:
|
|
49
|
-
description: Node version used to run the observer. Only affects this job.
|
|
50
|
-
required: false
|
|
51
|
-
default: "22"
|
|
52
|
-
report-path:
|
|
53
|
-
description: Where to write the report. Must be outside the checkout. Defaults to RUNNER_TEMP.
|
|
54
|
-
required: false
|
|
55
|
-
default: ""
|
|
56
|
-
redact-paths:
|
|
57
|
-
description: Replace every file path in the report with a stable 12-character digest.
|
|
58
|
-
required: false
|
|
59
|
-
default: "false"
|
|
60
|
-
upload-artifact:
|
|
61
|
-
description: Upload the report as a workflow artifact.
|
|
62
|
-
required: false
|
|
63
|
-
default: "true"
|
|
64
|
-
artifact-name:
|
|
65
|
-
description: Name of the uploaded artifact.
|
|
66
|
-
required: false
|
|
67
|
-
default: diffci-observation
|
|
68
|
-
artifact-retention-days:
|
|
69
|
-
description: Retention for the uploaded artifact.
|
|
70
|
-
required: false
|
|
71
|
-
default: "7"
|
|
72
|
-
api-url:
|
|
73
|
-
description: >-
|
|
74
|
-
DiffCI ingest endpoint. Leave empty and nothing is sent anywhere - the report stays on the runner
|
|
75
|
-
as an artifact. Must be https.
|
|
76
|
-
required: false
|
|
77
|
-
default: ""
|
|
78
|
-
api-token:
|
|
79
|
-
description: >-
|
|
80
|
-
Ingest token for THIS repository, from a repository secret. Pass it as the workflow expression
|
|
81
|
-
for secrets.DIFFCI_TOKEN, never as a literal. Nothing is sent without it. (This text deliberately
|
|
82
|
-
does not spell out the expression: GitHub evaluates expressions inside action metadata, and
|
|
83
|
-
"secrets" is not a context an action file may use - a literal expression here made the whole
|
|
84
|
-
action fail to load on every run until 2026-09-06.)
|
|
85
|
-
required: false
|
|
86
|
-
default: ""
|
|
87
|
-
fail-on-error:
|
|
88
|
-
description: >-
|
|
89
|
-
Fail this step when the observation refuses or errors. Default false, so a DiffCI problem never
|
|
90
|
-
shows up as a red step in your CI. Turn it on only while debugging an installation.
|
|
91
|
-
required: false
|
|
92
|
-
default: "false"
|
|
93
|
-
|
|
94
|
-
outputs:
|
|
95
|
-
report-path:
|
|
96
|
-
description: Absolute path of the written report.
|
|
97
|
-
value: ${{ steps.observe.outputs.report-path }}
|
|
98
|
-
status:
|
|
99
|
-
description: OBSERVED, REFUSED, or ERROR.
|
|
100
|
-
value: ${{ steps.observe.outputs.status }}
|
|
101
|
-
|
|
102
|
-
runs:
|
|
103
|
-
using: composite
|
|
104
|
-
steps:
|
|
105
|
-
- name: Set up Node for the observer
|
|
106
|
-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
107
|
-
with:
|
|
108
|
-
node-version: ${{ inputs.node-version }}
|
|
109
|
-
|
|
110
|
-
# Installed into the action's own directory, never into the observed repository: nothing here
|
|
111
|
-
# touches the workspace, its node_modules, or its lockfile. --omit=dev keeps this to TypeScript and
|
|
112
|
-
# a YAML parser; --ignore-scripts means no dependency of DiffCI's runs code on your runner.
|
|
113
|
-
- name: Install observer dependencies
|
|
114
|
-
shell: bash
|
|
115
|
-
working-directory: ${{ github.action_path }}
|
|
116
|
-
run: npm ci --omit=dev --no-audit --fund=false --ignore-scripts
|
|
117
|
-
|
|
118
|
-
- name: Build observer
|
|
119
|
-
shell: bash
|
|
120
|
-
working-directory: ${{ github.action_path }}
|
|
121
|
-
run: node_modules/.bin/tsc -p tsconfig.client.json
|
|
122
|
-
|
|
123
|
-
- name: Observe
|
|
124
|
-
id: observe
|
|
125
|
-
shell: bash
|
|
126
|
-
env:
|
|
127
|
-
DIFFCI_REPO: ${{ inputs.repository-path }}
|
|
128
|
-
DIFFCI_BASE: ${{ inputs.base-sha }}
|
|
129
|
-
DIFFCI_HEAD: ${{ inputs.head-sha }}
|
|
130
|
-
DIFFCI_OUT: ${{ inputs.report-path }}
|
|
131
|
-
DIFFCI_REDACT: ${{ inputs.redact-paths }}
|
|
132
|
-
DIFFCI_FAIL_ON_ERROR: ${{ inputs.fail-on-error }}
|
|
133
|
-
# Passed through the environment, never on the command line: an argv is visible to every other
|
|
134
|
-
# process on the runner and shows up in traces. The observer reads these directly and never
|
|
135
|
-
# prints them.
|
|
136
|
-
DIFFCI_API_URL: ${{ inputs.api-url }}
|
|
137
|
-
DIFFCI_TOKEN: ${{ inputs.api-token }}
|
|
138
|
-
run: |
|
|
139
|
-
set -euo pipefail
|
|
140
|
-
args=(observe --repo "$DIFFCI_REPO")
|
|
141
|
-
if [ -n "$DIFFCI_BASE" ]; then args+=(--base "$DIFFCI_BASE"); fi
|
|
142
|
-
if [ -n "$DIFFCI_HEAD" ]; then args+=(--head "$DIFFCI_HEAD"); fi
|
|
143
|
-
if [ -n "$DIFFCI_OUT" ]; then args+=(--out "$DIFFCI_OUT"); fi
|
|
144
|
-
if [ "$DIFFCI_REDACT" = "true" ]; then args+=(--redact-paths); fi
|
|
145
|
-
if [ "$DIFFCI_FAIL_ON_ERROR" = "true" ]; then args+=(--fail-on-error); fi
|
|
146
|
-
node "$GITHUB_ACTION_PATH/dist-client/src/client/cli.js" "${args[@]}"
|
|
147
|
-
|
|
148
|
-
- name: Upload observation report
|
|
149
|
-
if: ${{ inputs.upload-artifact == 'true' && steps.observe.outputs.report-path != '' }}
|
|
150
|
-
uses: actions/upload-artifact@v4
|
|
151
|
-
with:
|
|
152
|
-
name: ${{ inputs.artifact-name }}
|
|
153
|
-
path: ${{ steps.observe.outputs.report-path }}
|
|
154
|
-
retention-days: ${{ inputs.artifact-retention-days }}
|
|
155
|
-
if-no-files-found: warn
|
package/docs/adoption-metrics.md
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
# DiffCI Adoption Metrics
|
|
2
|
-
|
|
3
|
-
Track adoption weekly after each outreach batch.
|
|
4
|
-
|
|
5
|
-
## Conversion goal
|
|
6
|
-
|
|
7
|
-
Every discovery surface should move a maintainer toward one concrete action:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx "@diffci.com/diffci@latest" check
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
The desired conversion is not a directory view. It is a first report that a maintainer can understand,
|
|
14
|
-
share, and use to decide whether a seven-day non-blocking observation pilot is worthwhile.
|
|
15
|
-
|
|
16
|
-
Use the same call to action across npm, GitHub Marketplace, Context7, MCP directories, GitHub, and
|
|
17
|
-
community posts:
|
|
18
|
-
|
|
19
|
-
> Try DiffCI locally with `npx "@diffci.com/diffci@latest" check`. It analyzes the current change, runs
|
|
20
|
-
> inferred full and selected commands when safe, writes reports outside the checkout, and sends nothing
|
|
21
|
-
> by default. Existing CI remains authoritative.
|
|
22
|
-
|
|
23
|
-
Route maintainers who have already run it to the
|
|
24
|
-
[`Share a first DiffCI report`](../.github/ISSUE_TEMPLATE/first-diffci-report.yml) issue template.
|
|
25
|
-
|
|
26
|
-
## Adoption definitions
|
|
27
|
-
|
|
28
|
-
Count independently owned repositories, excluding DiffCI-owned repositories, internal dogfood runs,
|
|
29
|
-
and benchmark-only sandbox replays. Deduplicate by repository; retain the evidence link and date.
|
|
30
|
-
|
|
31
|
-
| Metric | Evidence required |
|
|
32
|
-
| --- | --- |
|
|
33
|
-
| First successful report | Maintainer-shared completed analysis or verification receipt. Record selective and full-fallback results separately; refusals/errors are attempts, not activation. |
|
|
34
|
-
| Recurring installation | Maintainer-approved installation plus executions on at least two distinct days within seven days. A merged PR alone is an installation milestone. |
|
|
35
|
-
| Known active repositories | Distinct independent repositories with an evidenced completed execution in the trailing seven days, through public workflow activity or consenting pilot reports. Report observation and verification separately. |
|
|
36
|
-
| Four-week retention | Activated repositories with an evidenced completed execution in days 22–28 after activation, divided by activated repositories whose full 28-day window has elapsed. Report numerator and denominator. |
|
|
37
|
-
| Measured net runtime savings | Comparable full/selected runs including analysis overhead, with checkout identity, command coverage, exit codes, cache conditions, and repeated timings recorded. Include zero/negative results; do not infer runtime from selection counts. |
|
|
38
|
-
| External contributors | Distinct independent people with an accepted code, fixture, documentation, or reproducible benchmark contribution during the reporting period. |
|
|
39
|
-
|
|
40
|
-
Maintain one weekly row per consenting pilot or publicly evidenced repository in the canonical
|
|
41
|
-
[DiffCI Outreach Tracker](https://docs.google.com/spreadsheets/d/1TvZo9YnDawOLR75WTyPSAf95vQ5VdoBx6iBeqJF_d60/edit):
|
|
42
|
-
repository, acquisition channel, first attempt/report dates, outcome, installation evidence,
|
|
43
|
-
latest execution evidence/date, observation or verification, retention eligibility/result,
|
|
44
|
-
runtime evidence, blocker, and next action. Use consented identifiers for private pilots.
|
|
45
|
-
Unknown activity stays unknown; do not interpret unavailable evidence as confirmed inactivity.
|
|
46
|
-
|
|
47
|
-
Known active repositories is a lower bound on evidenced usage, not total active repositories.
|
|
48
|
-
Current anonymous opt-in events cannot establish unique repositories or retention.
|
|
49
|
-
|
|
50
|
-
## Opt-in CLI usage
|
|
51
|
-
|
|
52
|
-
Users can run `diffci check --share-usage` or set `DIFFCI_SHARE_USAGE=1` for `check` and
|
|
53
|
-
`observe`. `--no-send` overrides the opt-in. The CLI sends one HTTPS event after analysis to
|
|
54
|
-
`https://app.diffci.com/v1/usage-events` with only the command (`check` or `observe`), analysis
|
|
55
|
-
outcome (`observed`, `refused`, or `error`), and package version. It sends no repository identity,
|
|
56
|
-
paths, commits, test names, report, token, or stable installation identifier. Delivery failure is
|
|
57
|
-
best effort and cannot fail validation. The product Worker records `cli_usage_opt_in` in PostHog
|
|
58
|
-
when its existing `POSTHOG_API_KEY` is configured.
|
|
59
|
-
|
|
60
|
-
Count these events as **opted-in executions**, not unique users or repositories. Report the opt-in
|
|
61
|
-
count separately from npm downloads and external merged integrations. Because there is no stable
|
|
62
|
-
identifier, repeated runs by one user cannot be deduplicated. Network providers may still observe
|
|
63
|
-
connection metadata such as IP address.
|
|
64
|
-
|
|
65
|
-
## Package
|
|
66
|
-
|
|
67
|
-
- npm latest version: `npm view "@diffci.com/diffci" version`
|
|
68
|
-
- npm weekly downloads: `curl "https://api.npmjs.org/downloads/point/last-week/%40diffci.com%2Fdiffci"`
|
|
69
|
-
- MCP binary presence: `npm view "@diffci.com/diffci" bin --json`
|
|
70
|
-
|
|
71
|
-
## Repository
|
|
72
|
-
|
|
73
|
-
- GitHub stars, forks, watchers, and release views.
|
|
74
|
-
- Issues or PRs opened by users asking about `diffci check`, `diffci init`, or `diffci-mcp`.
|
|
75
|
-
- External PRs merged that mention DiffCI agent validation.
|
|
76
|
-
|
|
77
|
-
## Site
|
|
78
|
-
|
|
79
|
-
- Visits to `https://diffci.com/docs/ai-agents`.
|
|
80
|
-
- Visits to `https://diffci.com/llms.txt`.
|
|
81
|
-
- Clicks from the homepage agent and MCP links.
|
|
82
|
-
- Referrers from MCP directories, awesome lists, and agent-template repositories.
|
|
83
|
-
|
|
84
|
-
## Outreach
|
|
85
|
-
|
|
86
|
-
Record each submission in `docs/agent-adoption-targets.md` or a dated note. For directory listings,
|
|
87
|
-
track conversion signals, not only application status:
|
|
88
|
-
|
|
89
|
-
| Channel | Status | Primary CTA | Signal to watch | Next action |
|
|
90
|
-
| --- | --- | --- | --- | --- |
|
|
91
|
-
| npm | Live | `npx "@diffci.com/diffci@latest" check` | Weekly downloads, package-page visits, first-report issues | Keep README first-run copy current. |
|
|
92
|
-
| GitHub Marketplace | Live | Install non-blocking Action or run local check first | Action installs, workflow questions, first-report issues | Keep pinned SHA and Marketplace copy current. |
|
|
93
|
-
| GitHub repository | Live | Open a first-report issue | Stars, issues, forks, discussion quality | Reply quickly and convert strong reports into pilot packets. |
|
|
94
|
-
| Context7 | Live | Agent-safe `check` command | Agent docs referrals, copied snippets, MCP questions | Keep agent instructions concise and current. |
|
|
95
|
-
| Official MCP Registry | Published | `diffci-mcp` setup | MCP install questions, tool-call reports | Keep package metadata and MCP examples aligned. |
|
|
96
|
-
| Glama | Applied | MCP server install | Listing visits, MCP questions | Update copy with exact first-run command once accepted. |
|
|
97
|
-
| PulseMCP | Applied | MCP server install | Listing visits, MCP questions | Watch for accepted listing and questions. |
|
|
98
|
-
| Smithery | Applied | MCP server install | Listing visits, install attempts | Watch for accepted listing and questions. |
|
|
99
|
-
| Libraries.io | Applied | npm package page | Dependency watchers, source referrals | Keep package metadata clean. |
|
|
100
|
-
| AlternativeTo | Applied | Local `check` command | Referral visits, comparison comments | Emphasize observation-only CI. |
|
|
101
|
-
| StackShare | Applied | Local `check` command | Stack adds, referral visits | Emphasize developer workflow fit. |
|
|
102
|
-
| Open Hub | Applied | GitHub repo | Project watchers, referral visits | Keep project metadata accurate. |
|
|
103
|
-
| devtools/ | Applied | Local `check` command | Referral visits, first-run issues | Keep one-command CTA visible. |
|
|
104
|
-
|
|
105
|
-
Weekly loop:
|
|
106
|
-
|
|
107
|
-
1. Review first reports, recurring installations, known active repositories, mature four-week
|
|
108
|
-
retention cohorts, measured savings, and external contributions. Record evidence and denominators.
|
|
109
|
-
Review downloads, traffic, directory listings, and anonymous usage separately as discovery signals.
|
|
110
|
-
2. Label first-run reports with `first-report` and record whether they are selective, full fallback,
|
|
111
|
-
refused, or errored.
|
|
112
|
-
3. Reply to every first-report issue with one next step: inspect fallback/refusal, repeat with controlled
|
|
113
|
-
cache state, open a non-blocking Action PR, or stop because the repo is unsupported.
|
|
114
|
-
4. Move strong candidates into a maintainer review packet and ask for a seven-day pilot.
|
|
115
|
-
5. Stop adding new directories unless an existing channel produces reports or maintainer conversations.
|
|
116
|
-
|
|
117
|
-
## Baseline snapshot — 2026-09-25
|
|
118
|
-
|
|
119
|
-
This snapshot separates distribution activity from verified adoption. npm and GitHub traffic counts
|
|
120
|
-
can include DiffCI's own CI, release automation, crawlers, and repeated activity by the same person.
|
|
121
|
-
They are supporting signals only.
|
|
122
|
-
|
|
123
|
-
| Signal | Value | Interpretation |
|
|
124
|
-
| --- | ---: | --- |
|
|
125
|
-
| npm latest version | `0.3.9` | Current CLI and MCP binaries are publicly available. |
|
|
126
|
-
| npm downloads, last complete registry week (`2026-09-15`–`2026-09-21`) | 1,929 | Distribution activity; not unique users or repositories. |
|
|
127
|
-
| GitHub stars / forks / watchers | 0 / 0 / 0 | No repository-level community conversion yet. |
|
|
128
|
-
| GitHub views, available 14-day window | 18 views / 4 unique visitors | Early discovery signal. |
|
|
129
|
-
| GitHub clones, available 14-day window | 1,088 clones / 226 unique cloners | Likely includes automation; not adoption proof. |
|
|
130
|
-
| External GitHub code references to the npm CLI, Action, or MCP binary | 0 found | No independently verifiable installation yet. |
|
|
131
|
-
| Outreach proposals | 4 open / 0 maintainer replies | Follow up once, then prioritize a maintainer who supplies a first report. |
|
|
132
|
-
| Opted-in `cli_usage_opt_in` executions | Not verified | Restore PostHog query access before the next weekly review. Count executions, not users. |
|
|
133
|
-
| Independently owned first reports or pilots | 0 verified | Primary conversion target. |
|
|
134
|
-
|
|
135
|
-
The next adoption milestone is one independently owned repository that shares a first report or
|
|
136
|
-
completes a non-blocking observation pilot. Do not claim user or repository counts from downloads,
|
|
137
|
-
clones, or opted-in executions.
|
|
138
|
-
|
|
139
|
-
## Agent-verification checkpoint — 2026-10-02
|
|
140
|
-
|
|
141
|
-
The stable 0.3.0 release gate uses two real repository integrations rather than three. DiffCI.com and
|
|
142
|
-
DentalPresence.in both completed the install-to-verification path and passed their remote verification
|
|
143
|
-
workflows. This is product-integration evidence, not independent adoption: both repositories are
|
|
144
|
-
maintainer-owned, and the independently owned pilot count remains zero.
|
|
145
|
-
|
|
146
|
-
Existing outreach log:
|
|
147
|
-
|
|
148
|
-
| Date | Target | Type | Link | Status | Follow-up |
|
|
149
|
-
| --- | --- | --- | --- | --- | --- |
|
|
150
|
-
| 2026-09-22 | agentsmd/agents.md | Issue | https://github.com/agentsmd/agents.md/issues/245 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
|
|
151
|
-
| 2026-09-22 | FerroxLabs/agents-md | Issue | https://github.com/FerroxLabs/agents-md/issues/2 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
|
|
152
|
-
| 2026-09-22 | ciembor/agent-rules-books | Issue | https://github.com/ciembor/agent-rules-books/issues/8 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
|
|
153
|
-
| 2026-09-22 | jbarbier/CLAUDE.md | Issue | https://github.com/jbarbier/CLAUDE.md/issues/12 | Open; no reply as of 2026-09-25 | Follow up once on 2026-09-30; offer a PR only if invited. |
|
|
154
|
-
| 2026-09-22 | Official MCP Registry | Directory | `io.github.adityankale190895/diffci` | Published | Consider moving to `io.github.DiffCI/diffci` after GitHub org namespace authorization is available. |
|
|
155
|
-
| 2026-09-25 | Official MCP Registry | Directory | `io.github.DiffCI/diffci` | Published | Organization namespace authorized through GitHub OIDC; the listing uses the versioned `https://diffci.com/mcp/v1` remote. |
|
|
156
|
-
| 2026-09-22 | Glama | Directory | TBD | Planned | Submit repository URL. |
|
|
157
|
-
| 2026-09-22 | Smithery | Directory | TBD | Blocked | Needs Smithery account/API key. |
|
|
158
|
-
|
|
159
|
-
Use independently evidenced subsequent executions and retention as the primary adoption signals.
|
|
160
|
-
Merged installation PRs are installation milestones; accepted directory listings are distribution
|
|
161
|
-
milestones. Stars, downloads, and page views support discovery analysis and do not prove usage.
|