Skip to content

build: add make regen-all (Phase 1, living-docs regen automation)#61

Merged
silversurfer562 merged 1 commit into
mainfrom
feat/regen-all-makefile-target
May 24, 2026
Merged

build: add make regen-all (Phase 1, living-docs regen automation)#61
silversurfer562 merged 1 commit into
mainfrom
feat/regen-all-makefile-target

Conversation

@silversurfer562
Copy link
Copy Markdown
Member

Summary

Phase 1 of the living-docs regen automation spec, merged in #60.

Adds two Makefile targets:

  • regen-templates — wraps uv run attune-author regenerate --help-dir .help against the root .help/ corpus.
  • regen-all — composes regen-templates + build-editor so a single command flushes every artifact a PR can drift.

Phase 1 inventory findings

Documented in commit message and Makefile comments; key facts:

  1. Two attune-author corpora exist, but only one (/.help/) is actively maintained. Every recent "regenerate sidecar templates" commit touched .help/templates/sidecar/{concept,reference,task}.md. The sidecar/.help/ corpus is unmaintained (4 features stale, longstanding) and is out of scope for this target. Whether to revive or delete it is a separate question.
  2. Polish costs Anthropic $$ on every stale feature. Phase 1 keeps the default polish path to match current practice. If CI cost becomes painful in Phase 2, the spec already flags --batch (~50% cost) and a metadata-only mode as escape hatches to investigate.

Why not run it now

Running make regen-all here would land regenerated template content (currently 1 stale feature) in this PR, mixed with the build-system change. Keeping Phase 1 scope tight: target only, no content drift bundled. The first PR that uses the target proves it works in practice.

Test plan

  • make -n regen-all expands to the expected commands
  • uv run attune-author regenerate --dry-run --help-dir .help (the wrapped command) runs cleanly and reports 1 stale feature
  • First downstream PR touching sidecar/** exercises regen-templates end-to-end
  • Phase 2 spec follow-up: CI fail-if-stale gating

🤖 Generated with Claude Code

Single command to flush every generated artifact a PR can drift:
- regen-templates: attune-author regenerate against root .help/ corpus
- build-editor: existing Vite bundle build

regen-all = regen-templates + build-editor.

Scope per docs/specs/living-docs-regen-automation/ Phase 1:
- Root corpus only (sidecar/.help/ has been unmaintained; deferred).
- Default polish path (matches current practice; Anthropic cost is real).
- No CI hook yet — that's Phase 2.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@silversurfer562 silversurfer562 merged commit 93f720e into main May 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant