feat(self): self-adapter to dogfood the template (issue #11, Phase 1) - #23
Merged
Conversation
…#11, Phase 1) Lets this repo run its own PR loop against its harness/docs WITHOUT polluting the shipped placeholder .claude/gates.json (which stays pristine for adopters). - .claude/self/gates.json — real adapter for this repo: modules (docs, harness->.claude, examples, ci) + node/bash-only gate commands. - .claude/self/checks.sh — build (JSON/adapter validation), lint (bash -n + node --check), test (build+lint smoke). No external linters, so it runs in a bare environment. - .claude/scripts/gate.sh — non-breaking GATES_FILE env override (defaults to .claude/gates.json); relative paths resolve from repo root. - .claude/self/README.md — how to run gates/loop self-hosted + the restart-to-adopt note. Verified: `GATES_FILE=.claude/self/gates.json gate.sh build|lint|test` all pass; the default (placeholder) path still skips as before. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K
robercano
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What (issue #11, Phase 1 — self-adapter)
Lets this repo dogfood its own PR loop against its harness/docs without polluting the shipped placeholder
.claude/gates.json(which must stay pristine for downstream adopters)..claude/self/gates.json— real adapter for THIS repo: modulesdocs,harness→.claude,examples,ci; node/bash-only gate commands..claude/self/checks.sh—build(JSON + adapter-shape validation),lint(bash -nscripts +node --checkworkflows),test(build+lint smoke). No external linters, so it runs in a bare environment..claude/scripts/gate.sh— non-breakingGATES_FILEenv override (defaults to.claude/gates.json; relative paths resolve from repo root)..claude/self/README.md— how to run gates/loop self-hosted + the restart-to-adopt promotion note.Verified
Not in this PR (next increment on #11)
GATES_FILEand points the orchestrator at.claude/self/gates.jsonautomatically.module:*labels so the self-hosted loop can pick them up. (Labels are being created alongside this PR.)feature-fanoutsmoke against a fixture (Self-host: a self-adapter + fixture target so the template can iterate on itself #11 Phase 2).Closes nothing yet; advances #11.
🤖 Generated with Claude Code
https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K