docs: Give every rule an address — specs, invariants, and an indexed AGENTS.md - #87
Draft
korya wants to merge 1 commit into
Draft
docs: Give every rule an address — specs, invariants, and an indexed AGENTS.md#87korya wants to merge 1 commit into
korya wants to merge 1 commit into
Conversation
…AGENTS.md AGENTS.md had grown into an 80-line rulebook: battle-earned prose per area, each rule citing its incident, but with no stable way to reference one, no separation between behavior and process, and no index telling an agent what to load when. Every word survives; only the addresses change. The per-area rules become docs/product-specs/invariants.md (INV-1..18, incident citations intact). Shipped behavior gets spec IDs an agent or a PR can cite: app.md (APP-1..14, the workspace), agents.md (AGENT-1..9, MCP tools + skill contract), site.md (SITE-1..8, the discovery surface). Architecture facts move to docs/architecture.md, process to docs/guidelines.md (with the planning checklist and the dependency-bump golden-test rule), and AGENTS.md becomes a 50-line index with load-when hints. docs/plans/ stays exactly as it was — append-only blueprints. IDs are stable: never reused, never renumbered; deletions leave holes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xdn1qjhVf458uJ42tjKC6m
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Problem
An agent (or human) landing in this repo met an 80-line AGENTS.md rulebook — excellent, incident-anchored rules, but with no stable IDs to cite in PRs or tests, no separation between product behavior, system invariants, architecture and process, and no index saying what to load when. Today's work added five more rules to the pile and made the missing structure obvious.
Solution
Relocate, don't rewrite: every rule keeps its prose and its incident citation, and gains a stable address.
INV-14orSITE-3and mean something durable.No behavior change anywhere — this PR is entirely markdown.
just lintformats it; the full suite passes untouched.Other Changes
.agents/skills/andtools/in the layout tree, which the old file had only partially.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xdn1qjhVf458uJ42tjKC6m