refactor(ai): 🏗️ drop prescribed spine from prompt injections#70
Open
justapithecus wants to merge 1 commit intomainfrom
Open
refactor(ai): 🏗️ drop prescribed spine from prompt injections#70justapithecus wants to merge 1 commit intomainfrom
justapithecus wants to merge 1 commit intomainfrom
Conversation
Move the global constitution and entrypoint scripts from prescribing a fixed directory layout (`docs/ARCH_INDEX.md`, `docs/contracts/`, etc.) to describing source kinds (orientation, contracts, explanatory). Each repo now declares its own spine via AGENTS.md and repo-local CLAUDE.md. - rewrite ai/CLAUDE.md §4/§5/§7 to describe source kinds, not paths - remove ARCH_INDEX probes from ai-chat/plan/implement/review/skill - strip Phase B (ARCH_INDEX hardening) from ai-migrate; renumber to A–E - loosen planner role's documentation scope - update MIGRATION.md / README.md / workflows.md / migration templates to match the new five-phase flow and path-agnostic model Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Move the global AI constitution and entrypoint scripts from prescribing a fixed directory layout (
docs/ARCH_INDEX.md,docs/CONTRACT_*.md,docs/contracts/) to describing source kinds (orientation, contracts, explanatory). Each repo now declares its own spine viaAGENTS.mdand the repo-localCLAUDE.md; the global layer no longer assumes a layout.Highlights
ai/CLAUDE.md— rewrite §4 Repository Orientation, §5 Authority Convention, and §7 Structural conflict resolution to describe source kinds rather than paths.ai-chat,ai-plan,ai-implement,ai-review,ai-skill) — drop theARCH_INDEX.mdprobe blocks.AGENTS.mdinjection stays.ai-migrate— remove Phase B (ARCH_INDEX hardening); renumber remaining phases to A–E (Scan, CLAUDE.md, Scaffolds, Baselines, Validate).ai-helpand the docs follow.ai/roles/planner.md— loosen documentation scope fromdocs/*to "any documentation source the repository declares."docs/ARCH_INDEX.mdrole fromtemplates/migration/CLAUDE.mdand the convention-enforcer skill template; both now ask the repo to declare its own orientation source.MIGRATION.md,README.md,docs/workflows.mdupdated to the five-phase flow and path-agnostic wording.Test plan
ai-chat,ai-plan,ai-implement,ai-review,ai-skillbuild their system prompts cleanly without anARCH_INDEX.mdin the repoai-migrateruns end-to-end on a fresh repo and reports phases A–Eai-help migrateshows the new five-phase blockbash -nclean on all modified scripts (verified locally)🤖 Generated with Claude Code