Skip to content

docs: AGENTS.md migration, rule-file sync, and Architecture Decision Records - #409

Merged
neuromechanist merged 10 commits into
developfrom
chore/update-rules-agents-adr
Sep 19, 2026
Merged

neuromechanist merged 10 commits into
developfrom
chore/update-rules-agents-adr

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

Three related housekeeping changes, requested together:

1. AGENTS.md migration - CLAUDE.md's content moves to AGENTS.md (the cross-tool convention); CLAUDE.md becomes a one-line @AGENTS.md adapter. 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 templates

  • Added: code_review.md, self_improve.md, ci_cd.md (adapted to describe this repo's actual CI workflows, not generic examples)
  • Skipped: documentation.md (no MkDocs setup here; docs live externally at docs.osc.earth), serena_mcp.md (dropped per above)
  • Rewrote: git.md and python.md were stale and actively contradicted real practice (said conda/pip/mypy and "branch from main"; actual convention is UV/ruff/ty and branching from develop) - corrected to match AGENTS.md and the global instructions
  • Merged: testing.md gained a couple of small template improvements (JS/Bun framework note, CI integration pointer) without losing the project-specific "LLM and Prompt Testing" section

3. 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:

Each cites its actual source rather than restating it from memory; see docs/adr/README.md for the index and how to add new ones.

Test plan

  • Docs-only change, no code affected
  • Verified no remaining references to Serena/serena_mcp in .rules/, AGENTS.md, or CLAUDE.md
  • Diffed the full branch against origin/develop to confirm scope (19 files, all under .rules/, AGENTS.md/CLAUDE.md, docs/adr/)

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
neuromechanist requested review from yarikoptic and removed request for yarikoptic September 19, 2026 18:55
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.
@neuromechanist
neuromechanist merged commit c8aaee8 into develop Sep 19, 2026
11 of 13 checks passed
@neuromechanist
neuromechanist deleted the chore/update-rules-agents-adr branch September 19, 2026 20:51
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