agentic-sdlc-mcp 1.9.0 → 2.0.0

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.
Files changed (185) hide show
  1. package/README.md +73 -14
  2. package/README_zh.md +432 -0
  3. package/dist/assessment/acceptance.d.ts +155 -0
  4. package/dist/assessment/acceptance.d.ts.map +1 -0
  5. package/dist/assessment/acceptance.js +278 -0
  6. package/dist/assessment/acceptance.js.map +1 -0
  7. package/dist/assessment/continuity.d.ts +266 -0
  8. package/dist/assessment/continuity.d.ts.map +1 -0
  9. package/dist/assessment/continuity.js +246 -0
  10. package/dist/assessment/continuity.js.map +1 -0
  11. package/dist/assessment/current-check.d.ts +36 -0
  12. package/dist/assessment/current-check.d.ts.map +1 -0
  13. package/dist/assessment/current-check.js +303 -0
  14. package/dist/assessment/current-check.js.map +1 -0
  15. package/dist/assessment/github-session.d.ts +15 -0
  16. package/dist/assessment/github-session.d.ts.map +1 -0
  17. package/dist/assessment/github-session.js +157 -0
  18. package/dist/assessment/github-session.js.map +1 -0
  19. package/dist/assessment/pr-assessment.d.ts +168 -0
  20. package/dist/assessment/pr-assessment.d.ts.map +1 -0
  21. package/dist/assessment/pr-assessment.js +140 -0
  22. package/dist/assessment/pr-assessment.js.map +1 -0
  23. package/dist/briefing/work-item-brief.d.ts.map +1 -1
  24. package/dist/briefing/work-item-brief.js +58 -12
  25. package/dist/briefing/work-item-brief.js.map +1 -1
  26. package/dist/cli/arguments.d.ts +14 -0
  27. package/dist/cli/arguments.d.ts.map +1 -0
  28. package/dist/cli/arguments.js +62 -0
  29. package/dist/cli/arguments.js.map +1 -0
  30. package/dist/cli/doctor.d.ts +28 -0
  31. package/dist/cli/doctor.d.ts.map +1 -0
  32. package/dist/cli/doctor.js +56 -0
  33. package/dist/cli/doctor.js.map +1 -0
  34. package/dist/cli/github-client.d.ts +4 -0
  35. package/dist/cli/github-client.d.ts.map +1 -0
  36. package/dist/cli/github-client.js +11 -0
  37. package/dist/cli/github-client.js.map +1 -0
  38. package/dist/cli/run.d.ts +12 -0
  39. package/dist/cli/run.d.ts.map +1 -0
  40. package/dist/cli/run.js +204 -0
  41. package/dist/cli/run.js.map +1 -0
  42. package/dist/cli.d.ts +3 -0
  43. package/dist/cli.d.ts.map +1 -0
  44. package/dist/cli.js +14 -0
  45. package/dist/cli.js.map +1 -0
  46. package/dist/config.d.ts.map +1 -1
  47. package/dist/config.js +15 -3
  48. package/dist/config.js.map +1 -1
  49. package/dist/contracts/mcp-manifest.d.ts +70 -0
  50. package/dist/contracts/mcp-manifest.d.ts.map +1 -0
  51. package/dist/contracts/mcp-manifest.js +615 -0
  52. package/dist/contracts/mcp-manifest.js.map +1 -0
  53. package/dist/evaluation/budgets.d.ts +89 -0
  54. package/dist/evaluation/budgets.d.ts.map +1 -0
  55. package/dist/evaluation/budgets.js +234 -0
  56. package/dist/evaluation/budgets.js.map +1 -0
  57. package/dist/evaluation/faults.d.ts +153 -0
  58. package/dist/evaluation/faults.d.ts.map +1 -0
  59. package/dist/evaluation/faults.js +95 -0
  60. package/dist/evaluation/faults.js.map +1 -0
  61. package/dist/evaluation/model.d.ts +115 -0
  62. package/dist/evaluation/model.d.ts.map +1 -0
  63. package/dist/evaluation/model.js +242 -0
  64. package/dist/evaluation/model.js.map +1 -0
  65. package/dist/evaluation/scorer.d.ts +46 -0
  66. package/dist/evaluation/scorer.d.ts.map +1 -0
  67. package/dist/evaluation/scorer.js +126 -0
  68. package/dist/evaluation/scorer.js.map +1 -0
  69. package/dist/evidence/model.d.ts +1 -0
  70. package/dist/evidence/model.d.ts.map +1 -1
  71. package/dist/evidence/model.js +3 -2
  72. package/dist/evidence/model.js.map +1 -1
  73. package/dist/evidence/render.d.ts.map +1 -1
  74. package/dist/evidence/render.js +2 -1
  75. package/dist/evidence/render.js.map +1 -1
  76. package/dist/evidence/timeout.d.ts +11 -0
  77. package/dist/evidence/timeout.d.ts.map +1 -1
  78. package/dist/evidence/timeout.js +31 -4
  79. package/dist/evidence/timeout.js.map +1 -1
  80. package/dist/github/client.d.ts +6 -0
  81. package/dist/github/client.d.ts.map +1 -1
  82. package/dist/github/client.js +44 -15
  83. package/dist/github/client.js.map +1 -1
  84. package/dist/github/context.d.ts.map +1 -1
  85. package/dist/github/context.js +5 -0
  86. package/dist/github/context.js.map +1 -1
  87. package/dist/github/pull-request-evidence.d.ts +7 -1
  88. package/dist/github/pull-request-evidence.d.ts.map +1 -1
  89. package/dist/github/pull-request-evidence.js +47 -8
  90. package/dist/github/pull-request-evidence.js.map +1 -1
  91. package/dist/http-server.d.ts +6 -4
  92. package/dist/http-server.d.ts.map +1 -1
  93. package/dist/http-server.js +174 -32
  94. package/dist/http-server.js.map +1 -1
  95. package/dist/index.d.ts +1 -11
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +18 -9
  98. package/dist/index.js.map +1 -1
  99. package/dist/operations/issue-creation.d.ts +44 -0
  100. package/dist/operations/issue-creation.d.ts.map +1 -0
  101. package/dist/operations/issue-creation.js +237 -0
  102. package/dist/operations/issue-creation.js.map +1 -0
  103. package/dist/resources/index.d.ts +1 -1
  104. package/dist/resources/index.d.ts.map +1 -1
  105. package/dist/review/pull-request-review.d.ts +3 -1
  106. package/dist/review/pull-request-review.d.ts.map +1 -1
  107. package/dist/review/pull-request-review.js +911 -108
  108. package/dist/review/pull-request-review.js.map +1 -1
  109. package/dist/security/prompt-injection-patterns.d.ts.map +1 -1
  110. package/dist/security/prompt-injection-patterns.js +54 -6
  111. package/dist/security/prompt-injection-patterns.js.map +1 -1
  112. package/dist/security/secret-scanner-evidence.d.ts +23 -1
  113. package/dist/security/secret-scanner-evidence.d.ts.map +1 -1
  114. package/dist/security/secret-scanner-evidence.js +380 -40
  115. package/dist/security/secret-scanner-evidence.js.map +1 -1
  116. package/dist/server.d.ts +1 -1
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/server.js +1 -1
  119. package/dist/server.js.map +1 -1
  120. package/dist/stdio-server.d.ts +5 -0
  121. package/dist/stdio-server.d.ts.map +1 -0
  122. package/dist/stdio-server.js +7 -0
  123. package/dist/stdio-server.js.map +1 -0
  124. package/dist/tools/agent-handoff.d.ts +1 -1
  125. package/dist/tools/agent-handoff.d.ts.map +1 -1
  126. package/dist/tools/agent-handoff.js +1 -1
  127. package/dist/tools/agent-handoff.js.map +1 -1
  128. package/dist/tools/branch-protection-status.d.ts +1 -1
  129. package/dist/tools/branch-protection-status.d.ts.map +1 -1
  130. package/dist/tools/branch-protection-status.js +1 -1
  131. package/dist/tools/branch-protection-status.js.map +1 -1
  132. package/dist/tools/create-issue-set.d.ts +66 -3
  133. package/dist/tools/create-issue-set.d.ts.map +1 -1
  134. package/dist/tools/create-issue-set.js +75 -71
  135. package/dist/tools/create-issue-set.js.map +1 -1
  136. package/dist/tools/create-pr-summary.d.ts +2 -2
  137. package/dist/tools/create-pr-summary.d.ts.map +1 -1
  138. package/dist/tools/create-pr-summary.js +14 -5
  139. package/dist/tools/create-pr-summary.js.map +1 -1
  140. package/dist/tools/plan-from-context.d.ts +1 -1
  141. package/dist/tools/plan-from-context.d.ts.map +1 -1
  142. package/dist/tools/plan-from-context.js +1 -1
  143. package/dist/tools/plan-from-context.js.map +1 -1
  144. package/dist/tools/prepare-work-item.d.ts +1 -1
  145. package/dist/tools/prepare-work-item.d.ts.map +1 -1
  146. package/dist/tools/prepare-work-item.js +1 -1
  147. package/dist/tools/prepare-work-item.js.map +1 -1
  148. package/dist/tools/quality-gate-status.d.ts +1 -1
  149. package/dist/tools/quality-gate-status.d.ts.map +1 -1
  150. package/dist/tools/quality-gate-status.js +65 -5
  151. package/dist/tools/quality-gate-status.js.map +1 -1
  152. package/dist/tools/release-readiness.d.ts +1 -1
  153. package/dist/tools/release-readiness.d.ts.map +1 -1
  154. package/dist/tools/release-readiness.js +1 -1
  155. package/dist/tools/release-readiness.js.map +1 -1
  156. package/dist/tools/repo-context.d.ts +1 -1
  157. package/dist/tools/repo-context.d.ts.map +1 -1
  158. package/dist/tools/repo-context.js +1 -1
  159. package/dist/tools/repo-context.js.map +1 -1
  160. package/dist/tools/review-pr.d.ts +1 -1
  161. package/dist/tools/review-pr.d.ts.map +1 -1
  162. package/dist/tools/review-pr.js +5 -5
  163. package/dist/tools/review-pr.js.map +1 -1
  164. package/dist/tools/sdlc-evidence-packet.d.ts +1 -1
  165. package/dist/tools/sdlc-evidence-packet.d.ts.map +1 -1
  166. package/dist/tools/sdlc-evidence-packet.js +2 -2
  167. package/dist/tools/sdlc-evidence-packet.js.map +1 -1
  168. package/dist/tools/security-triage.d.ts +1 -1
  169. package/dist/tools/security-triage.d.ts.map +1 -1
  170. package/dist/tools/security-triage.js +27 -3
  171. package/dist/tools/security-triage.js.map +1 -1
  172. package/dist/tools/workflow-permissions-audit.d.ts +1 -1
  173. package/dist/tools/workflow-permissions-audit.d.ts.map +1 -1
  174. package/dist/tools/workflow-permissions-audit.js +1 -1
  175. package/dist/tools/workflow-permissions-audit.js.map +1 -1
  176. package/dist/version.d.ts +1 -1
  177. package/dist/version.js +1 -1
  178. package/docs/client-recipes.md +153 -0
  179. package/docs/evidence-continuity.md +102 -0
  180. package/docs/pr-workflows.md +136 -0
  181. package/docs/user-pilot.md +80 -0
  182. package/evaluation/schema.json +224 -0
  183. package/package.json +40 -8
  184. package/server.json +2 -2
  185. package/skills/pr-evidence-review/SKILL.md +26 -0
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- Let Claude Code, Cursor, and other Model Context Protocol (MCP) clients work with repository context, review gates, security evidence, and human approval points.
12
+ Give MCP 2026-07-28 clients repository context, review gates, security evidence, and human approval points.
13
13
  </p>
14
14
 
15
15
  <p align="center">
@@ -29,6 +29,8 @@
29
29
 
30
30
  `agentic-sdlc-mcp` is a software development lifecycle (SDLC) governance layer for teams that already let AI coding agents change production repositories. It turns GitHub context, policy, checks, reviews, security alerts, and release signals into 13 workflow-level MCP tools. Twelve tools are read-only. The only GitHub write tool previews changes by default.
31
31
 
32
+ Version **2.0.0** supports only MCP `2026-07-28`, with no legacy handshake or fallback. Clients must support the modern per-request envelope, `server/discover`, and result format; use published 1.11.0 for legacy clients. The 13 tools, five resources, and read-only `agentic-sdlc` CLI remain. See [migration and publication status](docs/releases/v2.0.0.md) and verify the exact version before installing.
33
+
32
34
  ## What changes with this MCP
33
35
 
34
36
  AI coding agents can create code and pull requests without understanding every repository rule. This server gives the agent bounded context and gives reviewers explicit evidence gaps instead of another free-form summary.
@@ -77,29 +79,64 @@ Use the tools as decision support at the points where an autonomous agent would
77
79
  | Transfer work to another agent | `agent_handoff_packet` | Bounded continuation packet that labels caller assertions and evidence warnings |
78
80
  | Archive a decision snapshot | `sdlc_evidence_packet` | Versioned Issue, PR, or release evidence with provenance, freshness, completeness, and a stable content digest |
79
81
 
82
+ ## Review a PR without an agent
83
+
84
+ Collect a human-readable decision and a JSON snapshot with one command. The assessment combines existing gate and rule-based review evidence, binds it to the PR head/base and policy digest, and preserves blockers, missing evidence, request counts, and collection duration.
85
+
86
+ Build from a reviewed checkout with Node.js 22 or newer:
87
+
88
+ ```powershell
89
+ npm ci
90
+ npm run build
91
+ node dist/cli.js doctor --repo acme/widget
92
+ node dist/cli.js assess-pr --repo acme/widget --pr 42 --output artifacts/pr-42-first.json --summary artifacts/pr-42-first.md
93
+ ```
94
+
95
+ Inject `GITHUB_TOKEN` through your process or secret manager before online collection. The CLI reads environment variables only; it does not load a home configuration or `.env`. `doctor` is offline unless `--online` is supplied, and missing configuration returns exit code 2. Once the package is installed, `agentic-sdlc` runs the same CLI as `node dist/cli.js`.
96
+
97
+ | Command | Result |
98
+ |---|---|
99
+ | `doctor --repo acme/widget --online --json` | Read-only endpoint diagnostics; no credential values in the report |
100
+ | `assess-pr --repo acme/widget --pr 42 --standard strict --json` | `ready_for_review`, `blocked`, or `needs_evidence`, with a versioned packet |
101
+ | `evidence --repo acme/widget --subject pr --number 42 --output artifacts/pr-42-evidence.json` | Existing Issue, PR, or release evidence packet; use `--subject issue --number N` or `--subject release --ref REF` for other subjects |
102
+ | `diff --previous artifacts/pr-42-first.json --current artifacts/pr-42-next.json --json` | Added, removed, changed, unchanged, and invalidated evidence; both files must already exist |
103
+ | `trace --packet artifacts/pr-42-evidence.json --acceptance acceptance.md --source openspec --json` | Explicit checklist/numbered conditions linked to supplied evidence |
104
+
105
+ `assess-pr` and `evidence` also accept `--previous`, `--acceptance`, and optional `--mappings` for one collection plus local analysis. Mapping files use the strict array schema described in [evidence continuity](docs/evidence-continuity.md). `--json` changes stdout; `--output` always creates a JSON file. Existing files are never overwritten. `--summary` creates a new Markdown file, or appends when it points to GitHub Actions' exact `GITHUB_STEP_SUMMARY` path.
106
+
107
+ Assessments are advisory by default: a completed report returns 0 even when its decision is blocked or needs evidence. `assess-pr --enforce` returns 1 for `blocked`, 2 for `needs_evidence`, and 0 for `ready_for_review`. Configuration/input/unavailable-source errors return 2; cancellation returns 130. A successful `diff` or `trace` command means the analysis completed, not that the evidence or acceptance conditions passed.
108
+
109
+ Online collection defaults to a 30-second timeout and 120-request budget; supported overrides are `--timeout-ms` from 1 to 120000 and `--max-requests` from 2 to 500. `doctor` has its own bounded probes and accepts the timeout option. File inputs and serialized outputs are limited to 1 MiB.
110
+
111
+ An unchanged snapshot never inherits an earlier verification. Head/base, policy, producer version, freshness, and completeness changes can require recollection. Checked boxes, agent claims, and ordinary green CI do not prove business acceptance; the CLI has no trusted acceptance producer configured by default. Neither a ready report nor `--enforce` approves, merges, or deploys a PR.
112
+
113
+ For MCP review sessions, set `SDLC_CONFIG_MODE=envonly` to avoid home/`.env` configuration and `SDLC_READ_ONLY=true` to reject live Issue creation while retaining previews. Use a token restricted to the intended repositories and read permissions. Client configuration and the portable review skill are in [client recipes](docs/client-recipes.md); the unexecuted small-sample validation plan is in [user pilot](docs/user-pilot.md).
114
+
80
115
  ## Install from npm
81
116
 
82
- You need Node.js 22 or newer. Node 22 and 24 are tested in GitHub Actions. Run the published package directly from npm:
117
+ You need Node.js 22 or newer. Node 22 and 24 are tested in GitHub Actions. Until exact 2.0.0 publication is verified, use a reviewed checkout or tarball. After publication, run:
83
118
 
84
119
  ```powershell
85
- npx -y agentic-sdlc-mcp
120
+ npx -y agentic-sdlc-mcp@2.0.0
86
121
  ```
87
122
 
88
123
  For a global CLI installation:
89
124
 
90
125
  ```powershell
91
- npm install -g agentic-sdlc-mcp
126
+ npm install -g agentic-sdlc-mcp@2.0.0
92
127
  agentic-sdlc-mcp
93
128
  ```
94
129
 
95
130
  The default transport is stdio. Most MCP clients should start the package for you instead of running it in a separate terminal.
96
131
 
132
+ Use these commands after exact version 2.0.0 is publicly available; validate candidates from a reviewed build or tarball. Restart MCP connections after upgrading and inspect discovery. Clients that only implement `initialize` should stay pinned to 1.11.0.
133
+
97
134
  ## Let a coding agent set it up
98
135
 
99
136
  Paste this prompt into Codex, Claude Code, or another coding agent:
100
137
 
101
138
  ```text
102
- Use npm install -g agentic-sdlc-mcp to install and configure this MCP globally. Repository: https://github.com/SakuraCianna/agentic-sdlc-mcp
139
+ Use npm install -g agentic-sdlc-mcp@2.0.0 to install and configure this MCP globally. Repository: https://github.com/SakuraCianna/agentic-sdlc-mcp
103
140
  Configure GITHUB_TOKEN and optional repository defaults through the MCP client's secret or environment configuration. On a trusted single-user machine, you may instead run agentic-sdlc-mcp configure or write them to ~/.agentic-sdlc-mcp.json. Never expose the token in chat, logs, or repository files; ask me for missing non-secret details.
104
141
  Then verify the connection with the read-only repo_context tool and summarize its capabilities, required GitHub permissions, and safety boundaries.
105
142
  ```
@@ -115,7 +152,7 @@ Add the server to Claude Desktop, Cursor, Windsurf, or another MCP client. Injec
115
152
  "mcpServers": {
116
153
  "agentic-sdlc": {
117
154
  "command": "npx",
118
- "args": ["-y", "agentic-sdlc-mcp"],
155
+ "args": ["-y", "agentic-sdlc-mcp@2.0.0"],
119
156
  "env": {
120
157
  "GITHUB_TOKEN": "your_github_token_here",
121
158
  "GITHUB_OWNER": "your_organization",
@@ -131,7 +168,7 @@ Some Windows MCP clients require `npx` through `cmd`:
131
168
  ```json
132
169
  {
133
170
  "command": "cmd",
134
- "args": ["/c", "npx", "-y", "agentic-sdlc-mcp"]
171
+ "args": ["/c", "npx", "-y", "agentic-sdlc-mcp@2.0.0"]
135
172
  }
136
173
  ```
137
174
 
@@ -141,7 +178,7 @@ Some Windows MCP clients require `npx` through `cmd`:
141
178
  <summary>Local interactive configuration</summary>
142
179
 
143
180
  ```powershell
144
- npx -y agentic-sdlc-mcp configure
181
+ npx -y agentic-sdlc-mcp@2.0.0 configure
145
182
  ```
146
183
 
147
184
  This compatibility path stores configuration in `~/.agentic-sdlc-mcp.json`, including the GitHub token. Use it only on a trusted, single-user workstation. For production-focused setups, prefer MCP client secret injection or process environment variables.
@@ -189,7 +226,7 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
189
226
 
190
227
  - **`repo_context`**: Defaults to a bounded README summary. Opt in to package scripts, workflow names, agent instructions, governance, validated `.agentic-sdlc.yml`, and recent open work. Item and character limits are explicit, and missing sources produce degraded context rather than invented facts.
191
228
  - **`plan_from_context`**: Accepts `docs`, `feature`, `bugfix`, `refactor`, `security`, `release`, or `infra`. If omitted, the tool returns its inferred work type, confidence, reasoning, and `needsClarification`. Repository policy can add required checks and protected-path obligations, but an explicit caller work type wins.
192
- - **`prepare_work_item`**: Reads bounded Issue/comment evidence, confirmed root scripts, repository policy, milestone context, and optional related files, official Issue relationships, and recent PR history. It separates Issue-authored criteria from derived requirements. Deep evidence paths expose request budgets and incomplete-source warnings.
229
+ - **`prepare_work_item`**: Reads bounded Issue/comment evidence, confirmed root scripts, repository policy, milestone context, and optional related files, official Issue relationships, and recent PR history. It separates Issue-authored criteria from derived requirements. Deep evidence paths expose request budgets and incomplete-source warnings. Its `riskProfile` estimates implementation-planning controls; it is not proof of a vulnerability or leaked credential. Ambiguous LLM token-budget and non-credential "secret" wording require explicit credential context before entering the secrets domain.
193
230
 
194
231
  </details>
195
232
 
@@ -198,6 +235,8 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
198
235
 
199
236
  - **`create_issue_set`**: Accepts `plan_from_context.issueDrafts` directly. `dryRun` defaults to `true` and does not call a GitHub write API. A live batch requires `dryRun: false`, preserves successful Issue URLs, and returns safe per-item failures instead of hiding partial completion.
200
237
 
238
+ Advanced preview matching and bounded recovery use optional request metadata at `params._meta["io.github.SakuraCianna/agentic-sdlc-mcp/issue-recovery"]`, with `idempotencyKey` and/or `previewDigest`. They are not tool arguments; the existing argument schema is unchanged and same-named extra argument fields do not enable recovery. Clients that cannot attach request metadata should use the default preview and basic reports, and must not assume automatic idempotent retries. See the [JSON-RPC example and recovery limits](docs/pr-workflows.md#issue-preview-and-recovery-through-mcp). Metadata and a matching digest do not authorize a write.
239
+
201
240
  </details>
202
241
 
203
242
  <details>
@@ -205,7 +244,7 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
205
244
 
206
245
  - **`create_pr_summary`**: Caps file evidence and reports truncation. Documentation-only changes receive document validation guidance instead of a false missing-code-tests warning.
207
246
  - **`quality_gate_status`**: In PR mode, combines checks, commit statuses, reviews, CODEOWNERS routing, draft and merge state, classic branch protection, rulesets, blocking labels, linked Issues, and base-SHA repository policy. Permission failures remain visible as degraded or unverified evidence.
208
- - **`review_pr_against_standard`**: Supports `basic`, `strict`, and `security-focused` review. It trusts Gitleaks or TruffleHog as primary passing evidence only when the check, workflow, PR head SHA, base workflow job, scanner action, and immutable action SHA can be linked. Its dynamic secret construction scanner is bounded, patch-local analysis, not whole-program data flow or proof that a repository is secret-free.
247
+ - **`review_pr_against_standard`**: Supports `basic`, `strict`, and `security-focused` review. It trusts Gitleaks or TruffleHog as primary passing evidence only when the check, workflow, PR head SHA, base workflow job, scanner action, and immutable action SHA can be linked. Internal provenance binds each signal to its exact base workflow and static configuration dependencies without changing the public MCP output schema. Unrelated workflow changes do not invalidate the signal; changes to its workflow (including a previous rename path), Gitleaks root/default or `GITLEAKS_CONFIG` path, or TruffleHog `extra_args --config` path invalidate only affected scanners. Dynamic, ambiguous, absolute, traversing, or otherwise unbounded configuration remains fail-closed. Its dynamic secret construction scanner is bounded, patch-local analysis, not whole-program data flow or proof that a repository is secret-free. Operators and quantifiers that occur only inside credential-detection regex literals are not treated as runtime credential construction; dynamically assembled patterns and rules remain in scope regardless of their names.
209
248
 
210
249
  </details>
211
250
 
@@ -308,7 +347,9 @@ Static resources are available under the `sdlc://` scheme:
308
347
 
309
348
  ## Local HTTP profile
310
349
 
311
- Stdio is the default and recommended local transport. A local client that requires Streamable HTTP can opt in after building from source:
350
+ Stdio is the default and recommended local transport. Both entries use the official SDK in strict modern mode and only accept MCP `2026-07-28`. Requests carry their own version and capabilities; `server/discover` is available but is not a required handshake. Legacy initialization is rejected.
351
+
352
+ A local client that requires Streamable HTTP can opt in after building from source:
312
353
 
313
354
  ```powershell
314
355
  $env:TRANSPORT = "http"
@@ -316,7 +357,9 @@ $env:PORT = "3000"
316
357
  node dist/index.js
317
358
  ```
318
359
 
319
- The endpoint is `http://127.0.0.1:3000/mcp`. It binds only to loopback, validates `Host` and supplied `Origin`, creates an isolated stateless server and transport for each POST, rejects unsupported GET/DELETE session operations, bounds error details, and handles shutdown signals.
360
+ The endpoint is `http://127.0.0.1:3000/mcp`. It binds only to loopback, validates `Host` and supplied `Origin` before parsing a bounded request body, creates an isolated stateless server and transport for each POST, rejects unsupported GET/DELETE session operations, bounds error details, and aborts in-flight exchanges during shutdown.
361
+
362
+ stdio and local HTTP use modern request-scoped cancellation and shutdown. An already-started upstream operation that cannot be interrupted may still finish; cancellation cannot undo a completed write. Legacy protocol requests are rejected.
320
363
 
321
364
  Do not expose or reverse-proxy this endpoint to another machine. Remote OAuth and multi-tenant hosting are not planned. If that scope is reconsidered, the project must first satisfy the separate [remote deployment re-entry criteria](docs/remote-deployment-considerations.md); the current local server is not a safe remote deployment base.
322
365
 
@@ -339,10 +382,22 @@ npm run test
339
382
  | `npm run test` | Run the full Vitest suite |
340
383
  | `npm run test:integration` | Run configuration and MCP runtime integration tests |
341
384
  | `npm run test:coverage` | Enforce coverage floors and write reports |
385
+ | `npm run contracts:check` | Compare modern discovery with the historical business schema and verify the modern wire contract |
386
+ | `npm run contracts:verify-baseline` | Verify pinned historical manifest provenance/digest and current modern discovery without running an old SDK |
387
+ | `npm run contracts:generate` | Explicitly generate a candidate contract from clean reviewed source; never rewrite an old release baseline |
388
+ | `npm run contracts:inspector:install` | Install the exact Inspector 2.0.0 test dependency from its isolated lockfile |
389
+ | `npm run contracts:inspector:stdio` | Verify the built stdio server through the official Inspector CLI |
390
+ | `npm run contracts:inspector:http` | Verify the built local HTTP adapter through Inspector on a random IPv4 loopback port |
391
+ | `npm run contracts:modern` | Verify raw modern envelopes, cache fields, previews and legacy rejection on built stdio/HTTP |
392
+ | `npm run eval:ci` | Run the offline 12-scenario release gate plus all 13 budget and 11 fault reports |
342
393
  | `npm run smoke` | Verify registration without GitHub credentials |
343
394
  | `npm run check:line-endings` | Reject CRLF and mixed line endings |
344
395
 
345
- CI runs the full suite on Node 22 and Node 24. Node 20 is not a supported runtime because it is end-of-life; local contributors only need one supported Node version, while the compatibility matrix is enforced by GitHub Actions.
396
+ Protocol gates use the production stdio and HTTP routes pinned to `2026-07-28`. They cover all 13 tools, five resources, schemas, raw wire metadata, default dry-run behavior, safe degradation, and legacy rejection. Tests block external networking and live Issue writes.
397
+
398
+ Inspector 2.0.0 selects modern mode through isolated configuration and exercises the actual build, complete discovery, resource reads, and a zero-write preview. HTTP uses a random IPv4 loopback port; credentials and OAuth state stay isolated, authentication failures cannot open a browser, and children close after success or failure. The legacy 2025 Conformance pilot is retired from the modern release path.
399
+
400
+ Node 22/24, Windows, historical manifest provenance/digest, modern contract/evaluation, and Gitleaks checks remain. Required evaluation contains six scripted critical scenarios and six recorded replays, 13 budgets, and 11 faults, with zero live-model calls. Fixture results do not establish future model behavior. Source, candidate packages, remote CI, and public distribution are verified separately. See [testing strategy](docs/testing-strategy.md) and [evaluation](docs/evaluation.md).
346
401
 
347
402
  ## Contribute through issues and pull requests
348
403
 
@@ -351,15 +406,19 @@ Issues and pull requests are welcome. Check the [open issues](https://github.com
351
406
  1. Fork the repository and create a focused branch from the latest `main`.
352
407
  2. Run `npm ci`, then make only the changes required for the contribution.
353
408
  3. Add or update tests and documentation when behavior changes.
354
- 4. Run the checks relevant to your change. The full CI suite runs `npm run check:line-endings`, `npm run typecheck`, `npm run build`, `npm run test`, `npm run smoke`, and `npm run test:coverage`.
409
+ 4. Run checks relevant to the change. Node 22/24 and Windows verify the product; separate Node 24 jobs verify historical contract provenance, modern Inspector, and deterministic evaluation.
355
410
  5. Open a pull request against `main`. Describe the problem, solution, risks, validation results, and linked Issues.
356
411
 
357
412
  Keep tokens, credentials, private repository content, and generated local configuration out of commits, Issues, pull requests, and logs. A passing CI run supports review but does not replace maintainer approval.
358
413
 
359
414
  - [Roadmap](docs/ROADMAP.md)
360
415
  - [Repository policy guide](docs/repository-policy.md)
416
+ - [Client recipes and portable review skill](docs/client-recipes.md)
417
+ - [Evidence continuity and acceptance traceability](docs/evidence-continuity.md)
418
+ - [User pilot plan](docs/user-pilot.md)
361
419
  - [Testing strategy](docs/testing-strategy.md)
362
420
  - [Remote deployment re-entry criteria](docs/remote-deployment-considerations.md)
421
+ - [v1.10 implementation archive](docs/superpowers/plans/2026-07-29-v1.10.0-contract-evaluation.md)
363
422
  - [v1.9.0 release notes](docs/releases/v1.9.0.md)
364
423
  - [AI coding agent smoke test](docs/ai-coding-agent-smoke-test.md)
365
424
  - [Changelog](CHANGELOG.md)