docs(#3309): document --backfill and the --repair DESTRUCTIVE-refusal change
docs/COMMANDS.md's /gsd-health section never documented --backfill at all, and predates this phase's breaking changes: --repair no longer auto-applies resetConfig/regenerateState (both destructive), and W021/ W017 split into W026/W027 for their previously-conflated second subjects. Required by lint:docs, which needs a docs/ touch alongside any Changed-type changeset fragment.
This commit is contained in:
@@ -992,11 +992,13 @@ v1.40.0, [#2792](https://github.com/open-gsd/gsd-core/issues/2792)).
|
|||||||
| Flag | Description |
|
| Flag | Description |
|
||||||
|------|-------------|
|
|------|-------------|
|
||||||
| `--repair` | Auto-fix recoverable issues |
|
| `--repair` | Auto-fix recoverable issues |
|
||||||
|
| `--backfill` | Synthesize missing MILESTONES.md entries from `.planning/milestones/vX.Y-ROADMAP.md` snapshots |
|
||||||
| `--context` | Probe context-window utilization; warns at 60 %, critical at 70 % |
|
| `--context` | Probe context-window utilization; warns at 60 %, critical at 70 % |
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/gsd-health # Check integrity
|
/gsd-health # Check integrity
|
||||||
/gsd-health --repair # Check and fix
|
/gsd-health --repair # Check and fix
|
||||||
|
/gsd-health --backfill # Backfill missing MILESTONES.md entries
|
||||||
/gsd-health --context # Context-utilization triage
|
/gsd-health --context # Context-utilization triage
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -1012,6 +1014,18 @@ rather than that its contents are correct. The advisory never changes health's
|
|||||||
pass/fail status, and stays silent when the stamp is absent or the project isn't
|
pass/fail status, and stays silent when the stamp is absent or the project isn't
|
||||||
a git repo — "unknown" is reported as unknown, not as fresh.
|
a git repo — "unknown" is reported as unknown, not as fresh.
|
||||||
|
|
||||||
|
**`--repair` does not apply destructive fixes.** Resetting config.json
|
||||||
|
(`resetConfig`) and regenerating STATE.md (`regenerateState`) are destructive
|
||||||
|
— the former loses custom settings, the latter loses session history — so
|
||||||
|
`--repair` reports these fixes as available but never applies them
|
||||||
|
automatically; the suggested command must be run by hand (ADR-3180,
|
||||||
|
[#3309](https://github.com/open-gsd/gsd-core/issues/3309)). The same migration
|
||||||
|
split two previously-conflated diagnostic codes: `W021` now covers only the
|
||||||
|
phase-id-convention mismatch, with the STATE-vs-ROADMAP milestone-complete
|
||||||
|
mismatch it used to also report moving to the new `W026`; likewise `W017` now
|
||||||
|
covers only orphan worktrees, with the stale-worktree case moving to the new
|
||||||
|
`W027`.
|
||||||
|
|
||||||
### `/gsd-cleanup`
|
### `/gsd-cleanup`
|
||||||
|
|
||||||
Archive accumulated phase directories from completed milestones and prune local branches whose upstream has been deleted.
|
Archive accumulated phase directories from completed milestones and prune local branches whose upstream has been deleted.
|
||||||
|
|||||||
Reference in New Issue
Block a user