Commit 104751f
feat: add e2e-validated label for automated acceptance proof on PRs (#91)
* chore: organize PRDs and create architecture docs
Move completed PRDs to done/ folder:
- job-registry.md (Job Registry implementation)
- analytics-job.md (Analytics job implementation)
- fix-executor-streaming-output.md (Terminal streaming fix)
- fix-prd-execution-failures.md (Double rate-limit detection)
- open-source-readiness.md (OSS community files)
- remove-legacy-personas-and-filesystem-prd.md (Dead code cleanup)
- prd-provider-schedule-overrides.md (Provider schedule overrides)
- provider-agnostic-instructions.md (Instructions directory refactoring)
- night-watch/provider-aware-queue.md (Per-bucket concurrency)
Delete obsolete PRD:
- refactor-interaction-listener.md (packages/slack/ removed in commit 46637a0)
Add architecture docs:
- docs/architecture/job-registry.md (Job registry architecture)
- docs/architecture/analytics-job.md (Analytics job architecture)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add e2e-validated label for automated acceptance proof on PRs
Implements the E2E Validated Label PRD across 4 phases:
Phase 1 — Label Definition & Config:
- Add 'e2e-validated' (green #0e8a16) to NIGHT_WATCH_LABELS in labels.ts
- Add validatedLabel: string to IQaConfig in types.ts
- Add DEFAULT_QA_VALIDATED_LABEL constant and update DEFAULT_QA in constants.ts
- Add validatedLabel extra field to QA job definition in job-registry.ts
- Config normalization picks it up automatically via normalizeJobConfig
Phase 2 — QA Script Integration:
- Pass NW_QA_VALIDATED_LABEL env var from qa.ts buildEnvVars()
- Show Validated Label in qa --dry-run config table
- Read VALIDATED_LABEL in QA bash script with e2e-validated default
- Add ensure_validated_label() helper (idempotent gh label create --force)
- Apply label on 'passing' outcome, remove on 'issues_found'/'no_tests_needed'
- Track VALIDATED_PRS_CSV and include in emit_result and Telegram messages
Phase 3 — Init Label Sync:
- Add step 11 to night-watch init: sync all NIGHT_WATCH_LABELS to GitHub
- Skips gracefully when no GitHub remote or gh not authenticated
- Updates totalSteps from 13 to 14 and adds Label Sync to summary table
Phase 4 — Dry-Run & Summary Integration:
- Validated Label shown in qa --dry-run config table (merged into Phase 2)
- emit_result includes validated= field for all success/warning outcomes
Tests:
- packages/core/src/__tests__/board/labels.test.ts (new): e2e-validated presence
- packages/core/src/__tests__/jobs/job-registry.test.ts: validatedLabel extra field
- packages/cli/src/__tests__/commands/qa.test.ts: NW_QA_VALIDATED_LABEL env var
- packages/cli/src/__tests__/commands/init.test.ts: label sync preconditions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Test User <test@test.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a3f214a commit 104751f
25 files changed
Lines changed: 1458 additions & 314 deletions
File tree
- docs
- PRDs
- done
- night-watch/done
- architecture
- packages
- cli/src
- __tests__/commands
- commands
- core/src
- __tests__
- board
- jobs
- board
- jobs
- scripts
File renamed without changes.
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
| |||
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| 113 | + | |
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| |||
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| 133 | + | |
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
| |||
139 | 150 | | |
140 | 151 | | |
141 | 152 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
138 | 147 | | |
139 | 148 | | |
140 | 149 | | |
| 150 | + | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
| |||
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
185 | | - | |
186 | | - | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
122 | 130 | | |
123 | 131 | | |
124 | | - | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | | - | |
| 135 | + | |
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| |||
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| 144 | + | |
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
| |||
154 | 163 | | |
155 | 164 | | |
156 | 165 | | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
161 | 171 | | |
162 | 172 | | |
163 | 173 | | |
| 174 | + | |
164 | 175 | | |
165 | 176 | | |
166 | 177 | | |
| |||
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| 198 | + | |
187 | 199 | | |
188 | 200 | | |
189 | 201 | | |
190 | 202 | | |
191 | 203 | | |
192 | 204 | | |
| 205 | + | |
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
196 | | - | |
197 | | - | |
| 209 | + | |
| 210 | + | |
198 | 211 | | |
199 | 212 | | |
200 | 213 | | |
| |||
223 | 236 | | |
224 | 237 | | |
225 | 238 | | |
| 239 | + | |
226 | 240 | | |
227 | 241 | | |
228 | 242 | | |
229 | 243 | | |
230 | 244 | | |
| 245 | + | |
231 | 246 | | |
232 | 247 | | |
233 | 248 | | |
| |||
247 | 262 | | |
248 | 263 | | |
249 | 264 | | |
| 265 | + | |
250 | 266 | | |
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
254 | 270 | | |
| 271 | + | |
255 | 272 | | |
256 | 273 | | |
257 | 274 | | |
| |||
0 commit comments