Commit 6d68543
fix: allow refreshing a completed design handoff after spec changes (#326)
* fix: allow refreshing a completed design handoff after spec changes
The design guard requires regenerating the handoff when OpenSpec
artifacts change, and 'comet handoff <change> design --write' is the
only legal invocation mode. The stale-handoff check rejected every
such refresh, permanently blocking the Classic workflow at Design.
Explicit --write now refreshes the completed handoff instead of
failing; non-write invocations keep the original guard behavior.
Fixes #324
* chore: bump version to 0.4.0-beta.21 for Classic handoff refresh fix
* test: assert refreshed handoff remains traceable by the design guard
Extend the handoff-refresh test to verify the regenerated markdown
lists the current SHA256 of every source file, satisfying the design
guard's designHandoffMarkdownTraceable check.
* fix: refresh design handoff from build and rewrite aligned stale context
Issue #324 follow-ups from the issue thread:
- A --write invocation no longer reports success while leaving stale
context files behind when the recorded handoff_hash was aligned to
the new source hash by hand. The short-circuit now also verifies the
on-disk markdown lists the current SHA256 of every source file.
- A design handoff can now be regenerated after the guard advanced the
phase to build, so a later Spec Patch no longer requires a repair-only
phase escape hatch. The write path only updates handoff context/hash
and never transitions the run state outside full.design.handoff.
* chore: align version to 0.4.0-beta.19 and consolidate changelog
Per maintainer feedback: beta.19 is the intended next release version;
the beta.20 entry was a merge error from a previous fix. Consolidate all
entries newer than beta.18 into a single beta.19 changelog entry.
* fix: regenerate design handoff context when delta specs are removed
* ci: retrigger checks after Dashboard E2E timeout
* docs: document handoff refresh in Classic design/build skills
* refactor: drop unreachable stale-handoff branch and unused test env option
* docs: align handoff refresh wording with design guard checks
---------
Co-authored-by: benym <benyuanming@gmail.com>1 parent b9d7547 commit 6d68543
9 files changed
Lines changed: 546 additions & 285 deletions
File tree
- assets
- skills-zh
- comet-build
- comet-design
- skills
- comet-build
- comet-design
- comet/scripts
- domains/comet-classic
- test/domains/comet-classic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments