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
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-permissions-audit.js","sourceRoot":"","sources":["../../src/tools/workflow-permissions-audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,6BAA6B,EAC7B,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,qBAA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EAAE,6BAA6B;aACrC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;aAC5D,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare const SERVER_INFO: {
2
2
  readonly name: "agentic-sdlc-mcp";
3
- readonly version: "1.9.0";
3
+ readonly version: "2.0.0";
4
4
  };
5
5
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const SERVER_INFO = {
2
2
  name: "agentic-sdlc-mcp",
3
- version: "1.9.0",
3
+ version: "2.0.0",
4
4
  };
5
5
  //# sourceMappingURL=version.js.map
@@ -0,0 +1,153 @@
1
+ # Client recipes for PR evidence review
2
+
3
+ These launch configurations target the **2.0.0 modern-only server**. The client must support MCP `2026-07-28`, including per-request metadata and modern results; a correct process configuration alone cannot add protocol support to the host. Clients limited to `initialize` should pin published 1.11.0. See [migration and validation status](releases/v2.0.0.md). The four host configuration formats below were checked against their official documentation on 2026-10-15; they are not evidence of current modern-protocol support or completed client sessions.
4
+
5
+ ## Shared setup and boundary
6
+
7
+ Use Node.js 22 or newer and a reviewed build (`npm ci`, then `npm run build`). Replace `E:/tools/agentic-sdlc-mcp/dist/index.js` below with the absolute path to that build. Using `node` directly avoids client-specific Windows `npx` wrappers and a mutable package selection. For a released package, separately verify its exact version and restart the client's server connection after an upgrade.
8
+
9
+ Inject a GitHub token restricted to the repositories and read permissions needed for this review. Never put its value into a committed configuration, chat, or command argument. The examples select `SDLC_CONFIG_MODE=envonly` and `SDLC_READ_ONLY=true`:
10
+
11
+ - `envonly` makes the MCP entry point skip `.env`, home configuration reads, persisted credential updates, and interactive setup. Unset or `default` retains the compatible configuration behavior; any other value fails. Select this mode in the parent environment or client configuration, not in a `.env` file that you intend to skip.
12
+ - `SDLC_READ_ONLY=true` blocks live `create_issue_set` requests; explicit previews remain available. It does not restrict another server, shell, agent, or token outside this process.
13
+ - The separate `agentic-sdlc` CLI always reads environment variables only. It needs no mode switch. `agentic-sdlc-mcp` remains the server command.
14
+
15
+ The minimal PR review tool allowlist is:
16
+
17
+ ```text
18
+ repo_context
19
+ create_pr_summary
20
+ quality_gate_status
21
+ review_pr_against_standard
22
+ sdlc_evidence_packet
23
+ ```
24
+
25
+ Keep `create_issue_set` outside this review profile and retain normal per-call client confirmation. Add other read-only tools only for an explicit task. This tool list is a client selection policy; the server still discovers 13 tools. A prompt or portable skill is not an access-control mechanism.
26
+
27
+ ## Claude Code
28
+
29
+ Place this entry under `mcpServers` in a reviewed project `.mcp.json`. Start Claude Code from an environment where `GITHUB_TOKEN` is already injected. Claude Code documents `.mcp.json`, environment-variable expansion, and the `/mcp` connection view. [Official MCP instructions](https://code.claude.com/docs/en/mcp).
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "agentic-sdlc": {
35
+ "type": "stdio",
36
+ "command": "node",
37
+ "args": ["E:/tools/agentic-sdlc-mcp/dist/index.js"],
38
+ "env": {
39
+ "GITHUB_TOKEN": "${GITHUB_TOKEN}",
40
+ "SDLC_CONFIG_MODE": "envonly",
41
+ "SDLC_READ_ONLY": "true"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ For this review profile, a `.claude/settings.json` deny rule removes the Issue creation tool while leaving ordinary confirmations in place. This is a deny rule, not an auto-approval allowlist. [Official permission rules](https://code.claude.com/docs/en/permissions).
49
+
50
+ ```json
51
+ {
52
+ "permissions": {
53
+ "deny": ["mcp__agentic-sdlc__create_issue_set"]
54
+ }
55
+ }
56
+ ```
57
+
58
+ Use only the five review tools above. An installation scope or a successful configuration write does not prove the server connected; inspect `/mcp`, then run the read-only verification below.
59
+
60
+ ## Codex CLI or IDE extension
61
+
62
+ The local `codex mcp --help` and `codex mcp add --help` commands were inspected without modifying settings. The official documentation describes TOML server entries, `env_vars` forwarding, and `enabled_tools`. Add the following to a reviewed `~/.codex/config.toml` or project `.codex/config.toml`; inject the token into the parent environment. [Official OpenAI MCP documentation](https://developers.openai.com/codex/mcp).
63
+
64
+ ```toml
65
+ [mcp_servers.agentic-sdlc]
66
+ command = "node"
67
+ args = ["E:/tools/agentic-sdlc-mcp/dist/index.js"]
68
+ env_vars = ["GITHUB_TOKEN"]
69
+ env = { SDLC_CONFIG_MODE = "envonly", SDLC_READ_ONLY = "true" }
70
+ enabled_tools = ["repo_context", "create_pr_summary", "quality_gate_status", "review_pr_against_standard", "sdlc_evidence_packet"]
71
+ ```
72
+
73
+ Restart the connection and inspect `/mcp` in the CLI or the IDE's MCP server view. Keep the client's existing approval policy. No `approval_mode` override is needed.
74
+
75
+ ## Cursor
76
+
77
+ Use project `.cursor/mcp.json` or your personal `~/.cursor/mcp.json`. Cursor documents `mcpServers`, stdio fields, and `${env:NAME}` interpolation. Launch Cursor with the token already available in its environment. [Official Cursor MCP documentation](https://cursor.com/docs/mcp).
78
+
79
+ ```json
80
+ {
81
+ "mcpServers": {
82
+ "agentic-sdlc": {
83
+ "type": "stdio",
84
+ "command": "node",
85
+ "args": ["E:/tools/agentic-sdlc-mcp/dist/index.js"],
86
+ "env": {
87
+ "GITHUB_TOKEN": "${env:GITHUB_TOKEN}",
88
+ "SDLC_CONFIG_MODE": "envonly",
89
+ "SDLC_READ_ONLY": "true"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ ```
95
+
96
+ Use the five-tool review policy and inspect each tool call's arguments. Keep default tool confirmation enabled. Cursor's enterprise MCP policy can restrict approved servers and tools; availability depends on the organization's settings. No per-tool JSON allowlist field is assumed in this recipe.
97
+
98
+ ## GitHub Copilot in VS Code
99
+
100
+ This recipe targets Copilot Chat in VS Code; it does not configure Copilot cloud agents or GitHub-hosted code review. Organization policy can affect MCP availability. Use the chat tool picker to keep only the five review tools selected. [Official GitHub IDE integration instructions](https://docs.github.com/en/copilot/how-tos/copilot-in-your-ide/customize-copilot/extend-copilot-with-tools-and-context/extend-copilot-chat-with-mcp?tool=vscode).
101
+
102
+ VS Code uses a `servers` object in `.vscode/mcp.json`, with masked `promptString` inputs for secrets. [Official VS Code configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).
103
+
104
+ ```json
105
+ {
106
+ "inputs": [
107
+ {
108
+ "type": "promptString",
109
+ "id": "sdlc-github-token",
110
+ "description": "GitHub read token for the authorized repositories",
111
+ "password": true
112
+ }
113
+ ],
114
+ "servers": {
115
+ "agentic-sdlc": {
116
+ "type": "stdio",
117
+ "command": "node",
118
+ "args": ["E:/tools/agentic-sdlc-mcp/dist/index.js"],
119
+ "env": {
120
+ "GITHUB_TOKEN": "${input:sdlc-github-token}",
121
+ "SDLC_CONFIG_MODE": "envonly",
122
+ "SDLC_READ_ONLY": "true"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ ```
128
+
129
+ Start the configured server from VS Code and inspect the discovered tools. Retain normal tool approvals; do not enable a general auto-approve setting to make setup easier.
130
+
131
+ ## Portable review skill
132
+
133
+ The instruction-only [pr-evidence-review skill](../skills/pr-evidence-review/SKILL.md) uses existing tools or the CLI. It grants no permissions and has no hooks, executable downloads, or merge/approval actions. Its source folder is included in the package; the project does not install it into a client's personal settings.
134
+
135
+ For local Codex discovery, copy the skill folder into the target repository's `.agents/skills/`, keeping `pr-evidence-review/SKILL.md`. [Official OpenAI skill locations](https://developers.openai.com/codex/skills). Claude Code documents project `.claude/skills/<name>/SKILL.md`; copy the same folder there if that is the chosen host. [Official Claude Code skill locations](https://code.claude.com/docs/en/skills). Do not overwrite an existing skill. For other clients, explicitly attach/read the file as task instructions unless their current documentation establishes native skill discovery; this recipe does not assume it.
136
+
137
+ Example request:
138
+
139
+ ```text
140
+ Use pr-evidence-review for acme/widget PR #42. Keep this session read-only. Report the head/base SHAs, policy digest, blockers, evidence gaps, and next human action. Do not approve, merge, post comments, or create Issues. Checked acceptance boxes and green CI alone do not prove business acceptance.
141
+ ```
142
+
143
+ ## Verify and record what actually ran
144
+
145
+ Run offline `agentic-sdlc doctor --repo acme/widget` first, then opt into `--online` read probes for an authorized repository. Run `repo_context` with explicit owner/repo, inspect the actual server name/version from MCP discovery, and assess one explicit PR. The CLI's installed version can differ from a long-running MCP process; restart and rediscover after upgrading. A missing endpoint or permission is a gap, not proof that the underlying control is absent.
146
+
147
+ | Evidence class | What is established here |
148
+ |---|---|
149
+ | Client documentation | The four recipes were checked against the linked official sources on 2026-10-15. |
150
+ | Local client help | Codex MCP command syntax was inspected; no account or client settings were changed. |
151
+ | Actual client sessions | Not executed by the recipe or maintenance documentation tasks; record client/version, server/version, transport, commands, and sanitized results when performed. |
152
+ | SDK/Inspector/package smoke | Separate repository tests and packaging checks; their results must be reported separately and do not certify these four clients. |
153
+ | User pilot | Planned only in [user-pilot.md](user-pilot.md); no users, repositories, or outcomes are enrolled by these recipes. |
@@ -0,0 +1,102 @@
1
+ # Evidence continuity and acceptance traceability
2
+
3
+ The local assessment modules compare existing evidence packets and trace explicit acceptance conditions. They perform no GitHub writes, network requests, database operations, model calls, or implicit repository discovery. They do not add an MCP tool.
4
+
5
+ ## Evidence continuity
6
+
7
+ `src/assessment/continuity.ts` exports `compareEvidencePackets(previous, current, options?)`, `ContinuityContextSchema`, `EvidenceChangeSchema`, `ContinuityInvalidationCodeSchema`, and `EvidenceContinuityResultSchema`. Inputs use the existing `EvidencePacket` schema. The comparison never changes either input.
8
+
9
+ ```typescript
10
+ const comparison = compareEvidencePackets(previous, current, {
11
+ previousContext: { baseSha: previousBaseSha, policyDigest: previousPolicyDigest },
12
+ currentContext: { baseSha: currentBaseSha, policyDigest: currentPolicyDigest },
13
+ evaluatedAt: "2026-10-14T00:00:00.000Z",
14
+ });
15
+ ```
16
+
17
+ `added`, `removed`, `changed`, and `unchanged` contain stable evidence identifiers and bounded summaries. Each entry preserves the source enum, state, freshness, completeness, and a fixed recommended action. Source reasons, Issue/PR bodies, external error messages, and source-provided actions are not copied into the comparison. Identifiers containing unsafe characters or exceeding 200 characters are represented by a deterministic hash identifier.
18
+
19
+ An item comparison reuses the existing packet builder's canonical digest, which excludes collection/update timestamps. An expiry change is additionally treated as an item change. Array order does not affect which identifiers belong to each category. A packet digest identifies content; it is not a signature authenticating the packet's producer.
20
+
21
+ The result is `invalid` for unsupported/malformed packet schemas, different repository or subject identities, different or missing Issue/PR numbers, duplicate evidence identifiers, invalid evaluation context, or more than 1,000 evidence items per packet. Invalid comparisons contain no item lists and require fresh verification. Release refs are part of release identity.
22
+
23
+ Head SHA changes, base SHA changes, policy digest changes, generator/tool version changes, source ref changes, item changes/additions/removals, stale or unknown freshness, incomplete evidence, expired evidence, and target/provenance mismatches require revalidation. Unknown schema versions are rejected, rather than treated as compatible. A PR packet does not currently carry a top-level base SHA, so callers must provide both base SHAs through the context. A complete immutable SHA must contain exactly 40 or 64 hexadecimal characters. Missing packet head SHAs, mutable refs such as `main`, abbreviated SHAs, and missing/malformed PR base context are reported as `context_unavailable` and require revalidation, even if the two snapshots use the same value. Explicit head context must agree with the packet subject and cannot replace a missing packet SHA. Same-subject item SHAs and any provided provenance subject SHA must also have the complete immutable form. These checks strengthen only this assessment layer; the existing public EvidencePacket schema is unchanged.
24
+
25
+ Each category displays at most 200 entries. `omittedChanges` and `display_truncated` report any extra entries; truncation cannot establish completeness. Omitted evidence and limitations in the current packet also require revalidation. Expiry evaluation uses the explicit `evaluatedAt`, or otherwise the current packet's collection time, keeping the function deterministic.
26
+
27
+ In 2.0.0, `assess-pr` keeps its general scope disclaimer in the assessment's existing `scope` field, rather than in packet `limitations`. Comparing an unchanged, complete assessment therefore does not report `incomplete_packet` merely because the assessment cannot prove business acceptance or deployment health. Actual collection gaps and limitations in the current packet still require revalidation. Previously saved 1.11.0 snapshots retain their original limitations and digest; they are not rewritten or exempted by text matching. Generate fresh snapshots with the updated build to obtain this corrected behavior.
28
+
29
+ `unchanged` means the selected evidence content did not change. It cannot establish that a previous successful result remains valid. `verificationInherited` is always `false`; even a result with `requiresRevalidation: false` does not verify business acceptance.
30
+
31
+ ## Explicit acceptance conditions
32
+
33
+ `src/assessment/acceptance.ts` exports `extractAcceptanceCriteria(markdown, source?)` and `evaluateAcceptanceTraceability(input)`, their input/output types, and the following schemas:
34
+
35
+ - `AcceptanceSourceInputSchema`, `AcceptanceCriterionSchema`, `AcceptanceExtractionSchema`
36
+ - `AcceptanceEvidenceMappingSchema`, `AcceptanceMappingsSchema`
37
+ - `TrustedAcceptanceVerificationSourceSchema`, `AcceptanceStatusSchema`, `AcceptanceTraceabilityResultSchema`
38
+
39
+ The extractor accepts explicit Markdown text with source kind `issue`, `speckit`, `openspec`, or `markdown`. It extracts checkbox and numbered list lines, including numbered checkboxes, outside fenced code examples and HTML comments. It does not infer acceptance conditions from prose, interpret every SpecKit/OpenSpec construct, or distinguish implementation tasks from business conditions. The caller must supply the intended acceptance section or review the extracted list.
40
+
41
+ The source character budget is 100,000, the source line budget is 2,000, and the criterion budget is 100. Exceeding any budget sets `truncated`; extracted conditions cannot then establish complete acceptance. Each summary is bounded and uses the repository's existing untrusted-text renderer. Conditions remain untrusted data even after rendering.
42
+
43
+ Criterion identifiers derive from source identity and the SHA-256 digest of normalized condition text. Changing `[ ]` to `[x]`, renumbering, or moving a condition within the same source does not change its identifier. Changing condition text or source identity changes its identifier. Repeated identical text from one source is consolidated with a limitation; the first source line is retained. Source locations include the kind, line, document digest, and an opaque hashed locator. Raw local paths, URL credentials, query strings, and fragments are not echoed.
44
+
45
+ ```typescript
46
+ const criteria = extractAcceptanceCriteria(markdown, {
47
+ kind: "openspec",
48
+ locator: "specs/report-export/spec.md",
49
+ });
50
+ const result = evaluateAcceptanceTraceability({
51
+ criteria,
52
+ evidence: currentPacket,
53
+ mappings,
54
+ });
55
+ ```
56
+
57
+ `AcceptanceMappingsSchema` is a bounded array of at most 500 strict mapping objects. An association only requires:
58
+
59
+ ```json
60
+ {
61
+ "criterionId": "ac:0123456789abcdef01234567",
62
+ "evidenceId": "ci:aggregate",
63
+ "relation": "association"
64
+ }
65
+ ```
66
+
67
+ A `verification` or `not_applicable` relation additionally requires `criterionDigest`, `sourceContentDigest`, and `subjectSha`. These fields must bind the extracted criterion, evidence source digest, and current immutable packet target. Positive conclusions require matching complete 40- or 64-character hexadecimal SHAs in the packet subject, item subject, mapping, and item provenance. A ref or abbreviated SHA remains `unverified` even when all four values agree. PR and Issue subjects must also have matching positive safe-integer numbers; an absent number cannot establish acceptance. They cannot assert their own trust or result. Unknown fields such as `verified: true` or producer allowlists are rejected.
68
+
69
+ | Status | Meaning |
70
+ | --- | --- |
71
+ | `missing` | No structured association exists for the condition. |
72
+ | `needs_human` | Evidence is associated, but an independently trusted criterion-specific result is unavailable. |
73
+ | `unverified` | A claimed binding is missing, mismatched, failed, stale, incomplete, expired, ambiguous, or otherwise unusable. |
74
+ | `verified` | A separately configured trusted producer verified an exact criterion-specific binding for the current target. |
75
+ | `not_applicable` | A separately configured trusted scope producer established a criterion-specific applicability decision. |
76
+
77
+ Association and verification are separate. Agent-authored checkbox marks, self-reported test results, ordinary green CI, PR approval, and an arbitrary mapping never prove business acceptance. No acceptance producer is trusted by default. Existing generic CI evidence adapters are not criterion-specific acceptance producers, so normal local CLI assessments conservatively retain `needs_human`, `unverified`, or `missing` until an appropriate producer integration exists.
78
+
79
+ ## Producer integration boundary
80
+
81
+ The host may supply `trustedVerificationSources` independently of the mapping file. Each configured source specifies `github_check_run`, an expected GitHub App ID, and provider. This is integration configuration; it must never be populated from source Markdown, agent claims, or a local mappings file. The local schema checks binding consistency, not whether a producer honestly executed a test. The integrating host remains responsible for collecting authentic GitHub check-run evidence and verifying producer/workflow provenance.
82
+
83
+ A positive result requires all of the following:
84
+
85
+ 1. An exact condition digest and current complete 40- or 64-character hexadecimal head SHA binding across packet, item, mapping, and provenance, with matching repository and valid Issue/PR number when applicable. SHA shape and equality alone do not authenticate the producer or prove that GitHub returned that commit.
86
+ 2. `verified`, `fresh`, `complete`, unexpired evidence with the mapped source content digest.
87
+ 3. A dedicated `acceptance_verification` evidence kind and identifier `acceptance:verification:<full criterion contentDigest>`; applicability uses `acceptance_scope` and `acceptance:scope:<full criterion contentDigest>`. The producer-authored identifier prevents a mapping from relabeling another criterion's verification.
88
+ 4. An HTTPS GitHub Actions run/job URL for the exact repository, without credentials, query strings, or fragments, and the configured App/provider provenance.
89
+ 5. A producer registered separately by the host. No default allowlist is inferred from check names, provider text, or App IDs in the evidence itself.
90
+
91
+ Truncated extraction, duplicate evidence identifiers, and omitted evidence block positive completion. Contradictory verified/not-applicable bindings require human review. A broken binding is retained as unverified even if another binding succeeds. Unknown criterion mappings make overall completeness false. An empty condition list never means acceptance passed.
92
+
93
+ The result includes per-condition associations and verification identifiers, fixed reasons and next actions, status counts, and a conservative `complete` flag. Raw evidence reasons, URLs, and errors are not copied into these summaries. All outcomes describe supplied evidence; none authorizes merging, deployment, or bypassing review.
94
+
95
+ ## Validation
96
+
97
+ The targeted suites cover evidence identity and version drift, expiry, timestamp-independent digests, incomplete and oversized packets, injected text, stable criteria, extraction budgets, mapping strictness, source/target mismatches, ordinary green CI, independent producer trust, contradictory scope claims, and input immutability:
98
+
99
+ ```powershell
100
+ npx vitest run src/__tests__/assessment/continuity.test.ts src/__tests__/assessment/acceptance.test.ts
101
+ npm run typecheck
102
+ ```
@@ -0,0 +1,136 @@
1
+ # PR evidence workflows
2
+
3
+ The `agentic-sdlc` CLI is read-only. It uses the same gate and rule-review handlers as the MCP server. The existing `agentic-sdlc-mcp` command remains the MCP entry point.
4
+
5
+ ## Run from a checkout
6
+
7
+ ```powershell
8
+ npm ci
9
+ npm run build
10
+ node dist/cli.js doctor --json
11
+ node dist/cli.js doctor --repo owner/repository --online --json
12
+ node dist/cli.js assess-pr --repo owner/repository --pr 12 --json --output assessment-new.json --summary assessment-new.md
13
+ ```
14
+
15
+ Inject `GITHUB_TOKEN` through the process or client's secret configuration. The CLI does not read home configuration or `.env`. Its effective `readOnly` value is always `true`; diagnostic `mcpReadOnlyConfigured` only reports whether the separate MCP live-write guard is configured. Offline diagnostics work without a token and return exit 2 when configuration is missing. The diagnostic version identifies the installed CLI; restart a long-running MCP connection and inspect discovery to verify that server's actual version.
16
+
17
+ Both binaries are included in the 2.0.0 candidate; see [migration and publication status](releases/v2.0.0.md). Use a reviewed checkout or prepared tarball until exact publication is verified. The MCP binary requires the modern protocol; the read-only CLI does not depend on an MCP host.
18
+
19
+ ## Decisions and exit codes
20
+
21
+ | Result | Meaning | Advisory exit | With --enforce |
22
+ |---|---|---:|---:|
23
+ | ready_for_review | Collected evidence supports human review within the declared scope | 0 | 0 |
24
+ | blocked | An observed gate or rule-review requirement is unmet | 0 | 1 |
25
+ | needs_evidence | A source, policy, target or decision remains incomplete | 0 | 2 |
26
+ | Invalid input / unavailable collection | A report could not be established | 2 | 2 |
27
+ | Caller cancellation | Collection was cancelled | 130 | 130 |
28
+
29
+ A successful decision never approves a PR, proves business acceptance, merges code or authorizes deployment. `--acceptance` adds traceability; its human-judgement rows do not silently become proof of business acceptance or a new repository rule.
30
+
31
+ Successful reports identify complete 40- or 64-character hexadecimal PR head/base SHAs, repository policy digest, generator version, blockers, suggested actions, local metrics and a digested decision packet. All observed PR metadata reads are compared to the initial target, followed by an independent final read. A changed target invalidates the snapshot even if it changed back before the final read. With `--json`, collection failures return a safe error envelope and bounded timeout/cancellation/degraded metrics instead of a successful assessment packet.
32
+
33
+ `--timeout-ms` is bounded at 120000; `--max-requests` at 500. A final target check is reserved within the request budget. No remote telemetry is sent. Errors use fixed safe messages; the CLI disables SDK request logging to keep upstream bodies and endpoint paths out of incidental logs.
34
+
35
+ ## Opt-in GitHub Actions
36
+
37
+ The reusable workflow at [.github/workflows/pr-evidence.yml](../.github/workflows/pr-evidence.yml) is repository source, not an npm-bundled workflow, and only runs when called. It installs an exact published package without lifecycle scripts, uses read-only permissions and never checks out or executes PR code.
38
+
39
+ After exact 2.0.0 publication is verified, use this reviewed full source commit and exact package version. The workflow uses the read-only CLI and requires no MCP host. Its immutable source pin includes the modern release's CLI fixes:
40
+
41
+ ```yaml
42
+ name: PR evidence
43
+ on:
44
+ pull_request:
45
+ permissions:
46
+ contents: read
47
+ checks: read
48
+ pull-requests: read
49
+ actions: read
50
+ jobs:
51
+ evidence:
52
+ uses: SakuraCianna/agentic-sdlc-mcp/.github/workflows/pr-evidence.yml@976742e6952707add5a93bd8bef40ccf6e7a677e
53
+ with:
54
+ pull_number: ${{ github.event.pull_request.number }}
55
+ package_version: "2.0.0"
56
+ enforce: false
57
+ ```
58
+
59
+ Start in advisory mode. After observing acceptable noise and permission coverage, select `enforce: true` and explicitly add the check in your own repository settings if desired. This project does not change your branch protection automatically. Fork PR tokens may lack protection or security feature access; unavailable evidence remains a gap rather than a clean result. Installation or workflow infrastructure failures can still fail the job in advisory mode.
60
+
61
+ ### Current check dependency
62
+
63
+ The workflow passes the official `job.check_run_id`. The CLI verifies that ID against the GitHub Actions App, exact workflow run, PR head association and job URL before excluding only that active check. Other checks, including the same name from another App, remain evidence.
64
+
65
+ App-bound branch/ruleset requirements can identify the current check precisely. Unscoped name-only requirements are retained. A verified current check that is the only remaining modeled dependency may produce `selfDependency: other_requirements_satisfied` when independent CI passes and every other modeled obligation is satisfied. The original `gateConclusion` and gate packet remain unverified/policy-gap; GitHub's merge block stays in force until the current check completes.
66
+
67
+ Strict status policies, unsupported merge/review requirements, missing evidence, different Apps, unknown identity or absence of independent passing CI remain unresolved. The CLI does not override these rules. Do not add this assessment check as a self-requirement in `.agentic-sdlc.yml`; explicit policy requirements are preserved, not rewritten. On hosts without `job.check_run_id`, use advisory output and retain unresolved identity.
68
+
69
+ The workflow uploads only the JSON report and Markdown summary, with a 14-day retention. If collection cannot create these files, the assessment step creates a fixed `workflow-unavailable-1` / `needs_evidence` fallback instead of uploading raw CLI error output. Review the reports' repository metadata before sharing outside the repository.
70
+
71
+ Official context reference: [job.check_run_id](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#job-context).
72
+
73
+ ## Compare and trace
74
+
75
+ ```powershell
76
+ node dist/cli.js assess-pr --repo owner/repository --pr 12 --previous assessment-old.json --acceptance acceptance.md --json --output assessment-next.json
77
+ node dist/cli.js evidence --repo owner/repository --subject pr --number 12 --json --output packet-new.json
78
+ node dist/cli.js diff --previous packet-old.json --current packet-new.json --json
79
+ node dist/cli.js trace --packet packet-new.json --acceptance acceptance.md --source openspec --json
80
+ ```
81
+
82
+ Use a new output path for each run. Existing files are never overwritten, and input/output aliases are rejected. Explicit `--summary` files are also new files, except that the trusted runner's own `GITHUB_STEP_SUMMARY` path may be appended.
83
+
84
+ Local files are bounded at 1 MiB. A previous report is input data, not a signature or an authorization token. See [evidence continuity and acceptance](evidence-continuity.md) for strict target identities, mappings and default producer trust.
85
+
86
+ ## Issue preview and recovery through MCP
87
+
88
+ `create_issue_set` keeps `dryRun: true` by default. Advanced recovery options belong only in the request-level `params._meta["io.github.SakuraCianna/agentic-sdlc-mcp/issue-recovery"]` object. Its optional fields are `idempotencyKey` (1–128 ASCII letters, digits, `.`, `_`, `:`, or `-`) and `previewDigest` (64 lowercase hexadecimal characters). The metadata object is strict: invalid types, unknown fields, or invalid values return a fixed MCP error before GitHub calls. These are not tool arguments; the existing tool argument schema is unchanged and same-named extra argument fields are ignored rather than enabling recovery.
89
+
90
+ This JSON-RPC example requests a zero-write preview. `_meta`, `name`, and `arguments` are siblings inside `params`:
91
+
92
+ ```json
93
+ {
94
+ "jsonrpc": "2.0",
95
+ "id": 1,
96
+ "method": "tools/call",
97
+ "params": {
98
+ "name": "create_issue_set",
99
+ "arguments": {
100
+ "owner": "acme",
101
+ "repo": "widget",
102
+ "issues": [{ "title": "Review export behavior", "body": "Confirm the agreed report export conditions." }],
103
+ "dryRun": true
104
+ },
105
+ "_meta": {
106
+ "io.github.SakuraCianna/agentic-sdlc-mcp/issue-recovery": {
107
+ "idempotencyKey": "reviewed-batch-01"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ ```
113
+
114
+ A successful preview returns `previewDigest` in structured content. After an explicitly authorized review, a capable caller can retain the complete unchanged payload and same metadata key, add that returned digest as metadata `previewDigest`, and explicitly select `dryRun: false`. A preview without a key can also use metadata `previewDigest` alone for live content matching. Metadata and digests are optional for compatible callers; neither proves human approval. Clients that cannot attach request metadata should use default previews and basic reports, without claiming automatic idempotent retry or metadata recovery support.
115
+
116
+ The live batch has a 30-second deadline. Cancellation stops new submissions and reaches upstream requests, but an already submitted write may have committed. Read per-item `created/reused/failed/unknown/pending` and `recovery.retrySafe`. Retain the full batch and key; do not reconstruct unknown items as a fresh batch.
117
+
118
+ Recovery inspects at most 300 issue/PR entries including closed items. Incomplete lookup preserves confirmed references and prevents uncertain missing-item creation. Process-local unknown/confirmed state survives cancelled recovery requests. GitHub canonical account/label casing does not invalidate the same original batch; changing the original payload still changes its digest.
119
+
120
+ Markers correlate work; they do not authorize it. Separate processes, restarts, marker editing and bounded-record eviction cannot provide exactly-once guarantees. Preview digests prove matching content, not human approval. For agent hosts that may invoke tools autonomously, set `SDLC_READ_ONLY=true` to allow previews while refusing live Issue writes.
121
+
122
+ ## Prepare a release
123
+
124
+ ```powershell
125
+ npm.cmd run release:prepare -- --output-name candidate-review-1
126
+ ```
127
+
128
+ On Windows PowerShell, use `npm.cmd` for npm scripts with forwarded arguments to preserve the `--` separator; some `npm.ps1`/npm combinations consume it before the script receives the options. The project's npm script itself remains platform-neutral.
129
+
130
+ This first builds the reviewed checkout, then packs with npm lifecycle scripts disabled, inspects the actual tarball without extracting it, creates a CycloneDX SBOM from the lockfile with development dependencies omitted, and writes a SHA-256 manifest under `artifacts/release/candidate-review-1`. The SBOM describes that lockfile inventory, not an independently observed deployment. The manifest binds actual source files, package files, version metadata and Git HEAD, and explicitly records a dirty tree. Existing output directories are refused.
131
+
132
+ Preparation does not publish or sign anything. A dirty-tree candidate is useful for review; its HEAD alone does not identify its package. Final publication continues through the repository's Release-triggered npm/Registry OIDC workflows and exact-version checks. The 1.11.0 Release already includes SBOM, release manifest and checksum attachments. Automated attachment publication and independent signed artifact attestations remain separate from the local preparation capability; npm provenance metadata does not itself prove these attachments were signed.
133
+
134
+ ## Validate a client and a user workflow
135
+
136
+ [Client recipes](client-recipes.md) distinguish documented configuration, package smoke tests and real client sessions. [The user pilot](user-pilot.md) is an unexecuted protocol for recording reviewer time, repeated questions, false blocks and extra cost on authorized samples. No real-client or external-user outcome is inferred from offline tests.
@@ -0,0 +1,80 @@
1
+ # 小规模用户试点方案
2
+
3
+ 状态:**计划,尚未执行**。1.11.0 已发布,[分发状态](releases/v1.11.0.md#published-distribution-record)于 2026-12-06 重新核验;这不代表已经招募用户、取得仓库授权、完成真实客户端连接或证明用户收益。已发布代码、fixture、SDK、打包验证与未来用户观察仍须分开记录。当前先完成维护收尾,不启动本试点或联系外部用户。
4
+
5
+ ## 要回答的问题
6
+
7
+ 试点观察只读 PR 评估是否能让审阅者更快找到阻塞项与证据缺口,并减少手工重写上下文。特别检查:`ready_for_review` 是否被误读为可自动合并,`needs_evidence` 是否可行动,权限不足是否被误读为仓库没有控制,以及 checkbox/CI 绿灯是否被误当作业务验收。
8
+
9
+ ## 授权仓库清单
10
+
11
+ 开始前由有权授权的人在受控本地记录中明确仓库与读取范围。授权仅覆盖选定仓库、PR/ref 和采集时间段,不包含写入、外部联系、生产配置变更或扩大 token 权限。没有授权的仓库不进入样本。撤销后立即停止其采集,按约定删除或归还本地资料。
12
+
13
+ 以下是**空模板**,不是已授权仓库列表:
14
+
15
+ | 字段 | 记录要求 |
16
+ |---|---|
17
+ | `repository_alias` | 本地分配的无语义代号,例如 `R01`;对外只使用代号 |
18
+ | `repository_coordinates` | 精确 owner/repo;仅保存在访问受控的本地授权账本 |
19
+ | `authorized_by_role` | 授权者的仓库管理角色;联系方式和真实姓名不进入汇总 |
20
+ | `permitted_prs_or_refs` | 显式 PR 清单或有界筛选条件、允许的 ref |
21
+ | `allowed_operations` | 只读 metadata/checks/reviews/policy,以及明确同意的可选安全来源 |
22
+ | `credential_scope` | token 类型、仓库范围与权限名称;永不记录 token 值 |
23
+ | `consent_recorded_at` / `expires_at` | 授权时间与到期时间;默认不无限延长 |
24
+ | `withdrawal_and_retention` | 撤销入口、原始文件保留时限、访问者和删除责任人 |
25
+ | `artifact_location` | 受控本地目录;不上传公共 CI、Issue、PR 或第三方分析服务 |
26
+
27
+ ## 样本与执行
28
+
29
+ 探索样本为 **3–5 个已授权仓库、合计 20–30 个 PR**,不按仓库数乘成更大样本。优先覆盖文档变更、一般功能、依赖/配置变更,以及有明确安全或策略要求的 PR;保留无策略、权限受限、pending/failed checks 和更新 head/base 的案例。公开与私有仓库均需明确授权。
30
+
31
+ 这属于便利抽样;同一仓库、维护者、客户端或技术栈的 PR 可能高度相关,不能据此推断总体正确率、企业兼容性、收益显著性或未来模型表现。若未覆盖某客户端,就保留“未验证”,不外推。
32
+
33
+ 1. 固定候选包/commit、Node、客户端和策略版本。先运行离线 `doctor`,授权后再运行只读在线探测。MCP 使用 `envonly`、`SDLC_READ_ONLY=true` 和审查工具名单;不启用自动批准。
34
+ 2. 审阅者先按原有流程记录找到阻塞项与缺证据的用时及需要的手工整理次数,再阅读候选报告;标注先看报告可能带来的学习效应。可在后续 PR 交替顺序,但不将这种小样本比较包装成随机对照实验。
35
+ 3. 对每个 PR 执行一次 advisory `assess-pr`。需要追踪变化时保存不同文件名并运行 `diff`,不覆盖旧文件。只有经明确同意才导入验收文本和 mapping;保留未验证状态。
36
+ 4. 人工核对结论与 GitHub 实际来源,记录真阻塞、误报、遗漏、不可行动缺口、耗时和下一步。工具不发评论、不批准、不合并、不部署。
37
+ 5. 报告仅输出匿名聚合;原始 packet 可能含仓库坐标、URL、SHA 和业务摘要,不因名为“证据”就自动适合公开。按授权账本保留并清理。
38
+
39
+ CLI 默认 advisory,即使结论阻塞也可能退出 0;需要观察判定字段。试点不把 `--enforce` 设为仓库 required check。若之后考虑执行门禁,应单独评审失败样本和仓库权限,再取得对应变更授权。
40
+
41
+ ## 匿名汇总字段
42
+
43
+ 共享表只保存完成判断所需的低基数数据;代号与仓库坐标的映射不进入共享表。
44
+
45
+ | 字段 | 值或单位 |
46
+ |---|---|
47
+ | `sample_id`, `repository_alias` | 无语义随机/顺序代号;不是仓库 URL 或 PR number |
48
+ | `candidate_version`, `candidate_commit` | 被验证产品版本与公开源码 commit;不是目标私有仓库 commit |
49
+ | `client_family`, `client_version`, `node_major` | 客户端名称/版本及 Node 主版本 |
50
+ | `change_category`, `policy_present`, `permission_class` | 预定义枚举;权限按完整/部分/未知分组 |
51
+ | `decision`, `gate_conclusion`, `review_conclusion` | 工具返回的状态枚举 |
52
+ | `source_gap_categories` | 权限/超时/限流/截断/换头/策略不可读等固定类别 |
53
+ | `baseline_minutes`, `assisted_minutes` | 人工观察的时间;缺失值保留缺失 |
54
+ | `manual_rewrites_before`, `manual_rewrites_after` | 人工重写上下文的次数 |
55
+ | `confirmed_blockers`, `false_blockers`, `missed_blockers` | 人工复核计数,附匿名分类,不附原文 |
56
+ | `actionable_gap_count`, `unactionable_gap_count` | 按是否能确定责任人/下一步复核的计数 |
57
+ | `github_requests`, `duration_ms`, `retry_count` | 采集预算与耗时;不按私有仓库路径细分 |
58
+ | `acceptance_status_counts` | missing/needs_human/unverified/verified/not_applicable 计数 |
59
+ | `reviewer_outcome` | continue/fix_first/stop;理由使用匿名问题类别 |
60
+
61
+ 不收集 token、Cookie、邮箱、姓名、Issue/PR 正文、检查日志、私有源码、文件路径、目标仓库 URL、私有 commit SHA,或可以还原这些内容的自由文本。跨仓库汇总避免稀有类别组合识别个人;需要解释个案时先在本地处理,另行确认可分享范围。
62
+
63
+ ## 停止、修复和继续判据
64
+
65
+ 任何一次未授权 GitHub 写入、秘密/私有正文进入共享输出、跨仓库取错证据、旧 head 被当作当前证明、未知/失败证据被静默提升为通过,都立即停止受影响路径。保全最少的本地复现资料,撤销或限制凭据,修复并补回归,再由仓库负责人决定是否恢复;不以样本未收满为理由继续。
66
+
67
+ 发现重复不可行动缺口、同类明显误报、客户端无法识别实际运行版本,或审阅者把 ready/绿色 CI 当作自动批准时,先暂停扩样并修正文案或行为。若两次相同采集都因同一权限/超时问题失败,停止自动重试,交给负责人处理。
68
+
69
+ 满 20–30 个 PR 后仅当严重边界事件为零、已知真实阻塞没有被静默标成 ready、至少 80% 已记录证据缺口经人工认定有明确下一步,且至少两个仓库的审阅者认为报告值得继续使用时,考虑扩大下一轮。耗时/重写次数报告中位数、范围、缺失数与样本构成,不承诺统计显著收益;没有改善时优先修复流程,不因完成代码就宣布产品验证成功。
70
+
71
+ ## 结果状态模板
72
+
73
+ | 维度 | 当前状态 | 未来应附证据 |
74
+ |---|---|---|
75
+ | 代码实现 | 1.11.0 已发布;后续维护变更另行验证 | 具体 commit 与行为回归 |
76
+ | 本机验证 | 以交付记录实际命令为准 | 命令、环境、结果及限制 |
77
+ | 远端 CI | 1.11.0 发布提交 CI 已核验通过;不代表后续维护变更通过 | 精确 commit 的 run URL 与 required checks |
78
+ | 公开分发 | 1.11.0 Release、npm 与 Registry metadata 已核验 | 新版本独立核验;完整包内容/签名验证另列 |
79
+ | 客户端连接 | 配方仅核验官方文档 | 实际客户端/版本、discovery 与只读调用结果 |
80
+ | 用户收益 | 尚未采样 | 匿名汇总、失败样本、人工判定与样本限制 |