rungate 0.4.1 → 0.5.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.
- package/config/behavioral-sc-map.json +170 -0
- package/config/brief-policies.json +28 -0
- package/config/ceremony-profiles.json +207 -0
- package/config/check-registry.json +114 -0
- package/config/matcher-registry.json +142 -0
- package/config/prove-evidence.schema.json +65 -0
- package/config/spec-policies.json +36 -0
- package/config/universal-rules.yaml +15 -0
- package/config/workflow-schema.json +279 -0
- package/lib/cli-commands.ts +7 -1
- package/lib/conformity.ts +965 -30
- package/lib/github.ts +195 -0
- package/lib/js-top-level-code.ts +27 -2
- package/lib/package-closure.ts +278 -2
- package/lib/release-preflight.ts +196 -0
- package/lib/scaffold/defaults.ts +40 -0
- package/lib/scaffold/managed-workflow.ts +125 -27
- package/lib/scaffold/owned-files.ts +6 -0
- package/lib/scaffold/profiles.ts +94 -0
- package/lib/scaffold/rehearsal.ts +27 -2
- package/lib/scaffold/steps.ts +654 -84
- package/lib/scaffold/write-steps.ts +50 -9
- package/lib/source-anchor.ts +144 -0
- package/lib/success-doc.ts +779 -0
- package/lib/suite-run-reading.ts +194 -0
- package/lib/test-census.ts +199 -0
- package/lib/trajectory.ts +377 -0
- package/lib/validators/spec-validators.ts +32 -4
- package/lib/workflow-security.ts +101 -0
- package/lib/workflow-test-harness.ts +349 -0
- package/package.json +6 -1
- package/scripts/create-success.ts +162 -0
- package/scripts/scaffold-project.ts +27 -3
- package/specs/SPEC-TEMPLATE.md +200 -0
- package/templates/SUCCESS-TEMPLATE.md +72 -0
- package/templates/agent-briefs/_shared.md +9 -0
- package/templates/agent-briefs/aditi.md +46 -0
- package/templates/agent-briefs/discovery.md +37 -0
- package/templates/agent-briefs/marcus.md +39 -0
- package/templates/agent-briefs/quinn.md +67 -0
- package/templates/agent-briefs/rook.md +40 -0
- package/templates/agent-briefs/serena.md +39 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Prove Evidence",
|
|
4
|
+
"description": "Output artifact from /prove skill",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["contractVersion", "issueNumber", "verdict", "commitSHA", "capturedAt", "criteriaResults"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"contractVersion": { "type": "string" },
|
|
9
|
+
"issueNumber": { "type": "integer" },
|
|
10
|
+
"verdict": { "type": "string", "enum": ["PROVEN", "UNPROVEN", "INCONCLUSIVE"] },
|
|
11
|
+
"commitSHA": { "type": "string" },
|
|
12
|
+
"capturedAt": { "type": "string", "format": "date-time" },
|
|
13
|
+
"beforeEvidence": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"type": { "type": "string", "enum": ["text", "screenshot", "api", "none"] },
|
|
17
|
+
"path": { "type": ["string", "null"] },
|
|
18
|
+
"capturedAt": { "type": ["string", "null"] },
|
|
19
|
+
"description": { "type": "string" }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"afterEvidence": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"type": { "type": "string", "enum": ["text", "screenshot", "api"] },
|
|
26
|
+
"path": { "type": "string" },
|
|
27
|
+
"capturedAt": { "type": "string", "format": "date-time" },
|
|
28
|
+
"environment": { "type": "string", "enum": ["local", "prod"] },
|
|
29
|
+
"description": { "type": "string" }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"comparisonSummary": { "type": "string" },
|
|
33
|
+
"quinnVerdict": { "type": "string", "enum": ["PASS", "FAIL", "SKIP"] },
|
|
34
|
+
"reproduced": { "type": "boolean" },
|
|
35
|
+
"criteriaResults": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"minItems": 1,
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["scId", "verdict", "evidence"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"scId": { "type": "string" },
|
|
43
|
+
"verdict": { "type": "string", "enum": ["PASS", "FAIL", "SKIP"] },
|
|
44
|
+
"evidence": { "type": "string" },
|
|
45
|
+
"evidencePath": { "type": ["string", "null"] },
|
|
46
|
+
"exitCode": { "type": ["integer", "null"] }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"gaps": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["ac", "status"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"ac": { "type": "string" },
|
|
57
|
+
"status": { "type": "string" },
|
|
58
|
+
"detail": { "type": "string" },
|
|
59
|
+
"priority": { "type": ["string", "null"] },
|
|
60
|
+
"followUpIssue": { "type": ["string", "null"] }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Data-driven spec-alignment checks — Decision #3",
|
|
3
|
+
"forbiddenTargets": {
|
|
4
|
+
"patterns": ["SKILL\\.md"],
|
|
5
|
+
"scope": ["statement", "evidenceMethod.command"],
|
|
6
|
+
"message": "enforcement goes in scripts/hooks/gates, not SKILL.md (decision #4)"
|
|
7
|
+
},
|
|
8
|
+
"forbiddenLanguage": {
|
|
9
|
+
"patterns": ["DA should", "remember to", "must manually", "don.t forget", "should remember", "needs to remember"],
|
|
10
|
+
"scope": ["statement"],
|
|
11
|
+
"message": "use mechanical enforcement instead (decision #8)"
|
|
12
|
+
},
|
|
13
|
+
"implementationPatterns": {
|
|
14
|
+
"data-driven-enforcement": {
|
|
15
|
+
"decision": "#3",
|
|
16
|
+
"description": "Enforcement via JSON data, not inline code",
|
|
17
|
+
"antiPatterns": ["hardcoded.*(rule|check|gate)", "inline.*(validation|enforcement)"],
|
|
18
|
+
"scope": ["statement"],
|
|
19
|
+
"message": "enforcement should be data-driven — add patterns to JSON, not inline code (decision #3)"
|
|
20
|
+
},
|
|
21
|
+
"deep-modules-thin-consumers": {
|
|
22
|
+
"decision": "#7",
|
|
23
|
+
"description": "Shared logic in scripts/lib/, consumers call one function",
|
|
24
|
+
"antiPatterns": ["duplicate.*(logic|function|helper)", "copy.*(shared|lib|util)"],
|
|
25
|
+
"scope": ["statement"],
|
|
26
|
+
"message": "shared logic goes in scripts/lib/ — consumers import and call (decision #7)"
|
|
27
|
+
},
|
|
28
|
+
"warn-before-fail": {
|
|
29
|
+
"decision": "#9",
|
|
30
|
+
"description": "New checks start as WARN, promote to FAIL after precision data",
|
|
31
|
+
"antiPatterns": ["new.*(check|gate).*expect.*fail", "add.*expect.*throw.*new"],
|
|
32
|
+
"scope": ["statement", "evidenceMethod.command"],
|
|
33
|
+
"message": "new checks ship as WARN — promote to FAIL only with >80% precision over 10+ cycles (decision #9)"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Universal rules — loaded by scaffold into every generated AGENTS.md
|
|
2
|
+
# Consumer projects can override or extend via a `rules` array in .claude/rungate.json
|
|
3
|
+
#
|
|
4
|
+
# These were previously hardcoded in lib/generators/agents-md.ts.
|
|
5
|
+
# Now loaded from config so they can be customized per-deployment.
|
|
6
|
+
|
|
7
|
+
rules:
|
|
8
|
+
- "Verify before asserting — try it first, report what actually happened"
|
|
9
|
+
- "Never fake results or hide failures — if it fails, report it honestly"
|
|
10
|
+
- "Fix all test failures before reporting done — a green suite is the minimum bar"
|
|
11
|
+
- "Run full test suite and show real output — no summaries, no skipped files"
|
|
12
|
+
- "Read docs before writing code — routing table shows where"
|
|
13
|
+
- "Fix the source, not the output — fix generator, not generated files"
|
|
14
|
+
- "Commit all changes before reporting done — uncommitted work is lost work"
|
|
15
|
+
- "Read PROJECT-STATE.md first on session start — it's the session bridge"
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "workflow-state",
|
|
4
|
+
"description": "Ship harness v2 — single state file per issue. All gates read/write this file. See gateContract for expected field values per gate check.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "issue", "repo", "slug", "phase"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 2 },
|
|
9
|
+
"issue": { "type": "integer", "description": "GitHub issue number" },
|
|
10
|
+
"repo": { "type": "string", "description": "owner/repo" },
|
|
11
|
+
"issueRepo": { "type": "string", "description": "owner/repo for GitHub issues (if different from code repo)" },
|
|
12
|
+
"projectRoot": { "type": "string", "description": "Absolute path to the project root directory" },
|
|
13
|
+
"slug": { "type": "string", "description": "YYYYMMDD-HHMMSS_kebab-description" },
|
|
14
|
+
"phase": {
|
|
15
|
+
"enum": ["GOAL", "DISCOVERY", "SCOPE", "BUILD", "VERIFY", "SHIP", "DONE", "CIRCUIT_BREAK"],
|
|
16
|
+
"description": "Current phase in the single loop"
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"issueGoal": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Verbatim Goal section from GitHub issue — never paraphrased by DA"
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"sourceSpecs": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["path", "citedInDiscovery"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"path": { "type": "string", "description": "File path or URL to the spec" },
|
|
31
|
+
"citedInDiscovery": { "type": "boolean", "description": "Was this spec actually read with file:line citations?" },
|
|
32
|
+
"specElements": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"description": "Key structural elements from the spec (e.g. '6 horizontal layers', '11 consumers')"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
"sizing": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"predicted": { "enum": ["XS", "S", "M", "L"] },
|
|
45
|
+
"ceremonyTier": { "enum": ["LIGHT", "STANDARD", "THOROUGH"] },
|
|
46
|
+
"actualFiles": { "type": "integer" },
|
|
47
|
+
"actualMinutes": { "type": "integer" }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
"acs": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": ["id", "type", "statement"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": { "type": "string", "pattern": "^AC-[0-9]+$" },
|
|
58
|
+
"type": { "enum": ["CODE", "OUTCOME"] },
|
|
59
|
+
"statement": { "type": "string" },
|
|
60
|
+
"specElement": { "type": "string", "description": "Which spec element this AC traces to" },
|
|
61
|
+
"threshold": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"op": { "enum": ["==", ">=", "<=", ">", "<", "!=", "contains", "exists"] },
|
|
65
|
+
"value": {},
|
|
66
|
+
"unit": { "type": "string" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"evidenceMethod": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"type": { "enum": ["GREP_CHECK", "FILE_EXISTS", "CURL_CHECK", "BUN_TEST", "SCREENSHOT", "PLAYWRIGHT", "COMMAND", "MANUAL"] },
|
|
73
|
+
"command": { "type": "string" }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"evidence": {
|
|
77
|
+
"type": ["object", "null"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"type": { "enum": ["file-citation", "grep-output", "api-response", "screenshot", "test-output", "command-output", "manual-attestation"] },
|
|
80
|
+
"content": { "type": "string" },
|
|
81
|
+
"value": { "type": ["number", "null"], "description": "Structured numeric value for threshold comparison — avoids grep extraction ambiguity" },
|
|
82
|
+
"url": { "type": ["string", "null"] }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"contextFiles": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"path": { "type": "string", "description": "File path relative to project root" },
|
|
91
|
+
"lines": { "type": "string", "description": "Line range, e.g. '162-285'" },
|
|
92
|
+
"reason": { "type": "string", "description": "Why this file is relevant to the AC" }
|
|
93
|
+
},
|
|
94
|
+
"required": ["path"]
|
|
95
|
+
},
|
|
96
|
+
"description": "Source files relevant to this AC — used by brief-assembler to give Marcus context"
|
|
97
|
+
},
|
|
98
|
+
"verdict": { "enum": ["PENDING", "PASS", "FAIL"] }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
"agents": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"default": {},
|
|
106
|
+
"properties": {
|
|
107
|
+
"marcus": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"spawned": { "type": "boolean" },
|
|
111
|
+
"verdict": { "enum": ["PASS", "FAIL", null] },
|
|
112
|
+
"branch": { "type": "string" },
|
|
113
|
+
"iterations": { "type": "integer" }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"quinn": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"spawned": { "type": "boolean" },
|
|
120
|
+
"verdict": { "enum": ["PASS", "FAIL", null] },
|
|
121
|
+
"comparedToSpec": { "type": "boolean" },
|
|
122
|
+
"screenshots": { "type": "array", "items": { "type": "string" } }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"rook": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"spawned": { "type": "boolean" },
|
|
129
|
+
"verdict": { "enum": ["PASS", "FAIL", null] },
|
|
130
|
+
"findings": { "type": ["string", "null"], "description": "Rook security scan findings summary" }
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
"environments": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"default": {},
|
|
139
|
+
"properties": {
|
|
140
|
+
"local": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"api": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
144
|
+
"apiSkipReason": { "type": "string", "description": "Justification for skipping local API validation" },
|
|
145
|
+
"ui": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
146
|
+
"uiSkipReason": { "type": "string", "description": "Justification for skipping local UI validation" },
|
|
147
|
+
"tests": { "enum": ["PASS", "FAIL", "SKIP", null] }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"prod": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"rebuild": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
154
|
+
"rebuildSkipReason": { "type": "string", "description": "Justification for skipping prod rebuild" },
|
|
155
|
+
"smoke": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
156
|
+
"smokeSkipReason": { "type": "string", "description": "Justification for skipping prod smoke test" },
|
|
157
|
+
"quinn": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
158
|
+
"quinnSkipReason": { "type": "string", "description": "Justification for skipping prod Quinn validation" },
|
|
159
|
+
"quinnSpot": { "enum": ["PASS", "FAIL", "SKIP", null] },
|
|
160
|
+
"quinnSpotSkipReason": { "type": "string", "description": "Justification for skipping prod Quinn spot check" }
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
"gates": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"properties": {
|
|
169
|
+
"scope": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"result": { "enum": ["PASS", "FAIL", null] },
|
|
173
|
+
"attempt": { "type": "integer" },
|
|
174
|
+
"failures": { "type": "array", "items": { "type": "object" } },
|
|
175
|
+
"ts": { "type": "string" }
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"verify": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"result": { "enum": ["PASS", "FAIL", null] },
|
|
182
|
+
"attempt": { "type": "integer" },
|
|
183
|
+
"failures": { "type": "array", "items": { "type": "object" } },
|
|
184
|
+
"ts": { "type": "string" }
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"ship": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"result": { "enum": ["PASS", "FAIL", null] },
|
|
191
|
+
"attempt": { "type": "integer" },
|
|
192
|
+
"failures": { "type": "array", "items": { "type": "object" } },
|
|
193
|
+
"ts": { "type": "string" }
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"iterationCount": { "type": "integer", "default": 0 },
|
|
199
|
+
"startTs": { "type": "string", "format": "date-time" },
|
|
200
|
+
"updatedTs": { "type": "string", "format": "date-time" },
|
|
201
|
+
|
|
202
|
+
"phaseTimings": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"description": "Per-phase timing entries for bottleneck analysis. Each phase maps to an array of entries — convergence loop re-entries create new entries rather than overwriting.",
|
|
205
|
+
"additionalProperties": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"items": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"enteredTs": { "type": "string", "format": "date-time" },
|
|
211
|
+
"exitedTs": { "type": "string", "format": "date-time" },
|
|
212
|
+
"iteration": { "type": "integer", "description": "Iteration number (1-based, for convergence loop re-entries)" },
|
|
213
|
+
"source": { "type": "string", "enum": ["gate-runner", "DA"], "description": "What wrote this timing entry" }
|
|
214
|
+
},
|
|
215
|
+
"required": ["enteredTs", "source"]
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
"gateContract": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"description": "Documents expected field paths and valid values for each gate check. DA reference — prevents setting fields to prose instead of enum values.",
|
|
223
|
+
"properties": {
|
|
224
|
+
"environments": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"description": "Expected values for environment validation fields",
|
|
227
|
+
"properties": {
|
|
228
|
+
"local.api": { "type": "string", "enum": ["PASS", "SKIP"], "description": "Set to PASS after API validation, SKIP with apiSkipReason" },
|
|
229
|
+
"local.ui": { "type": "string", "enum": ["PASS", "SKIP"], "description": "Set to PASS after UI validation, SKIP requires uiSkipReason field" },
|
|
230
|
+
"local.uiSkipReason": { "type": "string", "description": "Required when local.ui is SKIP" },
|
|
231
|
+
"local.tests": { "type": "string", "enum": ["PASS", "SKIP", "FAIL"], "description": "Set by Marcus after running tests. tests-pass reads this first." },
|
|
232
|
+
"prod.rebuild": { "type": "string", "enum": ["PASS", "SKIP"], "description": "SKIP requires rebuildSkipReason" },
|
|
233
|
+
"prod.smoke": { "type": "string", "enum": ["PASS", "SKIP"], "description": "SKIP requires smokeSkipReason" },
|
|
234
|
+
"prod.quinn": { "type": "string", "enum": ["PASS", "SKIP"], "description": "SKIP requires quinnSkipReason" }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"verdicts": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"description": "Valid verdict values for ACs and agents",
|
|
240
|
+
"properties": {
|
|
241
|
+
"ac.verdict": { "type": "string", "enum": ["PASS", "FAIL"], "description": "Each AC verdict must be exactly PASS or FAIL" },
|
|
242
|
+
"agent.verdict": { "type": "string", "enum": ["PASS", "FAIL", "SKIP"], "description": "Agent verdicts — SKIP requires skipReason" }
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"evidence": {
|
|
246
|
+
"type": "object",
|
|
247
|
+
"description": "Valid evidence types",
|
|
248
|
+
"properties": {
|
|
249
|
+
"type": { "type": "string", "enum": ["file-citation", "grep-output", "api-response", "screenshot", "test-output", "command-output", "manual-attestation"] }
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"baselines": {
|
|
253
|
+
"type": "object",
|
|
254
|
+
"description": "Baseline fields for repos with pre-existing issues",
|
|
255
|
+
"properties": {
|
|
256
|
+
"testBaseline": { "type": "integer", "description": "Pre-existing test failure count. tests-pass compares against this." },
|
|
257
|
+
"tscBaseline": { "type": "integer", "description": "Pre-existing TypeScript error count. tsc-pass compares against this." }
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
"changelog": {
|
|
264
|
+
"type": "array",
|
|
265
|
+
"description": "Append-only event log — never delete entries",
|
|
266
|
+
"items": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"required": ["ts", "event"],
|
|
269
|
+
"properties": {
|
|
270
|
+
"ts": { "type": "string", "format": "date-time" },
|
|
271
|
+
"event": { "type": "string" },
|
|
272
|
+
"detail": { "type": "string" },
|
|
273
|
+
"phase": { "type": "string" },
|
|
274
|
+
"actor": { "enum": ["da", "marcus", "quinn", "rook", "gate-runner"] }
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
package/lib/cli-commands.ts
CHANGED
|
@@ -60,7 +60,7 @@ export const CLI_COMMANDS: Record<string, CliCommand> = {
|
|
|
60
60
|
scaffold: {
|
|
61
61
|
script: "scripts/scaffold-project.ts",
|
|
62
62
|
summary: "Generate or refresh a project's agent files, rules and conformity suite",
|
|
63
|
-
usage: "rungate scaffold <path> [--type code|workflow] [--fix] [--force] [--commit]",
|
|
63
|
+
usage: "rungate scaffold <path> [--type code|workflow] [--fix] [--force] [--commit] [--no-auto-fix] [--prune-consumers]",
|
|
64
64
|
},
|
|
65
65
|
"create-spec": {
|
|
66
66
|
script: "scripts/create-spec.ts",
|
|
@@ -68,6 +68,12 @@ export const CLI_COMMANDS: Record<string, CliCommand> = {
|
|
|
68
68
|
usage: 'rungate create-spec "Title" ["what it governs"] [--sc "statement"]',
|
|
69
69
|
projectRootFlag: true,
|
|
70
70
|
},
|
|
71
|
+
"create-success": {
|
|
72
|
+
script: "scripts/create-success.ts",
|
|
73
|
+
summary: "Seed SUCCESS.md — what this project is for, and the claims that prove it",
|
|
74
|
+
usage: "rungate create-success [--owner <name>] [--force]",
|
|
75
|
+
projectRootFlag: true,
|
|
76
|
+
},
|
|
71
77
|
"create-sc": {
|
|
72
78
|
script: "scripts/create-sc.ts",
|
|
73
79
|
summary: "Generate a matchable success-criterion line from a registered pattern",
|