Commit 7a33c0d
fix(impl-generate): preserve
Two metadata bugs fixed at the source:
1. `created` was overwritten with the current timestamp on every regen,
silently erasing the first-generation date. Now the generator reads the
existing metadata file (if present) and preserves its `created` value;
only `updated` advances. The impl-review step already uses
`created != updated` to decide whether to print "Created: ..." or
"Updated: ..." in the implementation header — that logic only works
when `created` is immutable.
2. `generated_by: claude-opus-4-5-20251101` was frozen from the era when
the workflow was written. The Claude action actually runs
`--model opus`, which resolves to whatever the current opus alias is
(today Opus 4.7). Switching to the family name `claude-opus` is honest
+ future-proof, and stops the metadata from lying every model release.
The scatter-basic pilot already landed 9 files with today's date as
`created`. Those will stabilise on the next regen (this fix) or can be
patched in place if needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>created across regens + correct model string1 parent d7a8b90 commit 7a33c0d
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
406 | 420 | | |
407 | 421 | | |
408 | 422 | | |
409 | 423 | | |
410 | | - | |
| 424 | + | |
411 | 425 | | |
412 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
413 | 431 | | |
414 | 432 | | |
415 | 433 | | |
| |||
0 commit comments