Commit 082a954
authored
fix(skills): track real phase timestamps, open GitHub issues, enforce batch size (#702)
* fix(skills): track real phase timestamps, open GitHub issues, enforce batch size
titan-run: record phaseTimestamps.{phase}.startedAt/completedAt in
titan-state.json at each phase boundary so CLOSE has real wall-clock data.
titan-close: read phaseTimestamps from state instead of guessing; fall back
to git log timestamps when missing. Open GitHub issues (gh issue create)
for bug/limitation severity entries instead of only listing them in the report.
titan-recon: enforce hard limit of 5 files per batch to prevent context
overload in gauntlet sub-agents. titan-run V4 now warns on oversized batches.
* fix(skills): add gh availability check and timestamp validation (#702)
Add gh CLI pre-check in titan-close before attempting GitHub issue
creation, with graceful fallback when gh is unavailable or
unauthenticated. Add startedAt < completedAt timestamp validation
in titan-run after recording phase completion timestamps.
* fix(skills): address Greptile review feedback (#702)
- Guard startedAt against overwrite on resume in titan-run timestamp
helper (prevents fabricated short durations after crash/resume)
- Fix "codebase" referenced as severity instead of category in
titan-close issue creation rules
- Replace fragile heredoc-in-subshell pattern with --body-file temp
file for gh issue create to avoid quoting/expansion edge cases
* fix(skills): record close.completedAt before writing report (#702)
titan-run records phaseTimestamps.close.completedAt after titan-close
returns, but by then the report is already written. Add an instruction
for titan-close to record its own completedAt just before generating
the report, so the Pipeline Timeline CLOSE row has accurate data.
* fix(skills): use exit(0) for timestamp validation warning (#702)
The timestamp validation script used process.exit(1) on clock skew,
contradicting the prose instruction to "log a warning but do not stop
the pipeline." An AI agent seeing exit code 1 may abort the phase.
Changed to process.exit(0) so the warning is non-fatal.
* fix(skills): handle recon.startedAt on fresh runs (#702)
The recon start timestamp helper threw ENOENT on fresh runs because
titan-state.json doesn't exist until titan-recon Step 12. The fix adds
a safe variant that creates a minimal stub when the file is missing and
updates titan-recon to merge any existing phaseTimestamps into the full
state file it writes.1 parent 6019e58 commit 082a954
3 files changed
Lines changed: 126 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
233 | 274 | | |
234 | 275 | | |
235 | 276 | | |
| |||
244 | 285 | | |
245 | 286 | | |
246 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
247 | 296 | | |
248 | 297 | | |
249 | 298 | | |
| |||
283 | 332 | | |
284 | 333 | | |
285 | 334 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
293 | 350 | | |
294 | 351 | | |
295 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
| |||
281 | 290 | | |
282 | 291 | | |
283 | 292 | | |
| 293 | + | |
284 | 294 | | |
285 | 295 | | |
286 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
| |||
128 | 146 | | |
129 | 147 | | |
130 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
131 | 160 | | |
132 | 161 | | |
133 | 162 | | |
| |||
177 | 206 | | |
178 | 207 | | |
179 | 208 | | |
| 209 | + | |
180 | 210 | | |
181 | 211 | | |
182 | 212 | | |
183 | 213 | | |
184 | 214 | | |
| 215 | + | |
| 216 | + | |
185 | 217 | | |
186 | 218 | | |
187 | 219 | | |
| |||
190 | 222 | | |
191 | 223 | | |
192 | 224 | | |
| 225 | + | |
| 226 | + | |
193 | 227 | | |
194 | 228 | | |
195 | 229 | | |
| |||
298 | 332 | | |
299 | 333 | | |
300 | 334 | | |
| 335 | + | |
| 336 | + | |
301 | 337 | | |
302 | 338 | | |
303 | 339 | | |
| |||
306 | 342 | | |
307 | 343 | | |
308 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
309 | 348 | | |
310 | 349 | | |
311 | 350 | | |
| |||
337 | 376 | | |
338 | 377 | | |
339 | 378 | | |
| 379 | + | |
| 380 | + | |
340 | 381 | | |
341 | 382 | | |
342 | 383 | | |
| |||
453 | 494 | | |
454 | 495 | | |
455 | 496 | | |
| 497 | + | |
| 498 | + | |
456 | 499 | | |
457 | 500 | | |
458 | 501 | | |
| |||
575 | 618 | | |
576 | 619 | | |
577 | 620 | | |
| 621 | + | |
| 622 | + | |
578 | 623 | | |
579 | 624 | | |
580 | 625 | | |
| |||
583 | 628 | | |
584 | 629 | | |
585 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
586 | 634 | | |
587 | 635 | | |
588 | 636 | | |
| |||
598 | 646 | | |
599 | 647 | | |
600 | 648 | | |
| 649 | + | |
| 650 | + | |
601 | 651 | | |
602 | 652 | | |
603 | 653 | | |
| |||
0 commit comments