Repository navigation
docs: AGENTS.md migration, rule-file sync, and Architecture Decision Records - #409
Merged
Merged
Conversation
CLAUDE.md is now a thin @AGENTS.md adapter, following the cross-tool AGENTS.md convention. Also drops the Code Exploration with Serena section (Serena MCP is no longer carried forward for this project).
Adds the missing pr-review-toolkit, rule-evolution, and CI/CD reference rules from the plugin template. ci_cd.md is adapted to describe this repo's actual workflows rather than generic examples.
git.md and python.md contradicted actual project conventions (branch from main, conda/pip/mypy) rather than the real workflow (branch from develop, UV/ruff/ty). Rewritten to match AGENTS.md and the global instructions. testing.md gains back a couple of generic template improvements (JS framework note, CI integration pointer) without losing the project-specific LLM/exemplar testing section.
Introduces docs/adr/ (MADR format) and backfills nine ADRs for decisions already made but only documented informally: the develop/main branch and versioning strategy, the develop-sync and release-image-race incidents and their fixes, the Anthropic Claude Platform migration, today's PR-review enforcement, and the original architecture choices in .context/plan.md and .context/research.md (LangGraph, no external database, BYOK, Astral tooling).
neuromechanist
requested review from
yarikoptic
and removed request for
yarikoptic
September 19, 2026 18:55
6 tasks
ADR 0005 and AGENTS.md described the review requirement as having no admin bypass, but the user asked for the bypass to be restored after that version was written, then had a second ruleset added to close the deletion-protection gap that reintroduced. Rewrite ADR 0005 to document the full history and final live state (verified against gh api), add the exact re-verification commands, and update AGENTS.md and code_review.md to match rather than describe a stale intermediate state.
pyproject.toml sets ruff line-length to 100, not the Black-default 88 these files claimed. The ty-not-mypy rule was stated as settled practice, but pyproject.toml still depends on and configures mypy and ty appears nowhere in the repo; reworded both to be honest that this is the target direction, not the current state, and filed #412 to track the actual migration.
.context/scratch_history.md doesn't exist in this repo; point at files that do (.context/plan.md, .context/research.md) and note it should be created on first real use instead of treated as an existing source to mine.
test.yml only triggers on push/PR to main and its job names (Unit Tests (Python X)) don't match the required status check names. tests.yml's Test job (matrix 3.11/3.12) is what actually produces the Test (3.11)/Test (3.12) checks both rulesets require, and it's the only one of the two that runs on a PR into develop. Also corrects the Python matrix claim: test.yml covers 3.13 too, but that isn't part of what branch protection checks.
PR #394's own description says the request ran on 'the community's key or the platform's', not definitively the platform's key. Match the ADRs' wording to the source instead of overstating certainty.
Serena MCP was dropped from AGENTS.md/.rules/ earlier in this branch; nothing points at .serena/ anymore, so remove it rather than leave a directory with no documentation telling anyone to use it.
3 tasks
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
Three related housekeeping changes, requested together:
1. AGENTS.md migration -
CLAUDE.md's content moves toAGENTS.md(the cross-tool convention);CLAUDE.mdbecomes a one-line@AGENTS.mdadapter. Also drops the "Code Exploration with Serena" section entirely - Serena MCP is no longer carried forward for this project.2.
.rules/sync against the latest plugin templatescode_review.md,self_improve.md,ci_cd.md(adapted to describe this repo's actual CI workflows, not generic examples)documentation.md(no MkDocs setup here; docs live externally at docs.osc.earth),serena_mcp.md(dropped per above)git.mdandpython.mdwere stale and actively contradicted real practice (said conda/pip/mypy and "branch from main"; actual convention is UV/ruff/ty and branching fromdevelop) - corrected to matchAGENTS.mdand the global instructionstesting.mdgained a couple of small template improvements (JS/Bun framework note, CI integration pointer) without losing the project-specific "LLM and Prompt Testing" section3.
docs/adr/- Architecture Decision Records (MADR format)Nine backfilled ADRs for decisions already made but previously scattered across PR descriptions, issue writeups, workflow-file comments, and
.context/plan.md/.context/research.md::latesttag race fix (issue Release images: no versioned tag since 0.6.2, and :latest is written by a race #379, PR fix: build release images and stop :latest racing #380)protect-main/protect-devEach cites its actual source rather than restating it from memory; see
docs/adr/README.mdfor the index and how to add new ones.Test plan
.rules/,AGENTS.md, orCLAUDE.mdorigin/developto confirm scope (19 files, all under.rules/,AGENTS.md/CLAUDE.md,docs/adr/)