Skip to content

chore: rewrite AGENTS.md and drop ADR citations from runtime strings - #2106

Merged
rdimitrov merged 6 commits into
mainfrom
chore/process-layer-3-polish
Oct 6, 2026
Merged

rdimitrov merged 6 commits into
mainfrom
chore/process-layer-3-polish

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Third of four stacked PRs. Stacked on #2105; review only this PR's four commits.

Commit 1: instructions

  • AGENTS.md rewritten to 98 lines, reorganized into build/test commands and verification gates, module layout, implementation boundaries, and working conventions, plus a pointer to .claude/rules/. Change routing, the spine, ADR references, and process meta-guidance are gone. Every code invariant and convention from the old file is kept (a first pass cut it to ~50 lines and dropped some; commit 4 restores them, since agents benefit most from rules they cannot infer). The limit we agreed on is under 200 lines per file.
  • .claude/rules/documentation.md deleted. domain-model.md no longer cites acceptance plans or ADR metadata. The other three rules had no such citations.
  • docs/READING.md drops the "frozen rationale on demand" framing. CONTRIBUTING.md says plainly that AGENTS.md holds commands and invariants. docs/tui.md anchor updated.

Commit 2: runtime strings

  • System-prompt note: "limited to this process under ADR-0114" now reads "…because no durable admission ledger is configured". Test messages updated; the test asserts the constant, so coverage is unchanged.
  • Product-metrics notice no longer points at docs/adr/0338.
  • User-visible errors: mecated --guardrails, the learning-driver ownership error (two tests now assert on the new wording), and the reflection-observer run-ID errors.
  • Config field docs: in addition to the internal/configgen/build.go strings, the permconfig/schema.go struct comments also feed the generated reference. These had six ADR citations, now removed. Reference and skeleton regenerated; both now contain no ADR mentions.
  • Left as is: guard errors in server/classification.go and session_mutation_inventory.go (developer-facing), .proto comments, TestADR_* names, Go comments elsewhere.

Commit 3: panel-review

Commit 4: restore dropped invariants

  • Restores the rules the first AGENTS.md pass dropped (verification gates, boundaries, placement, secrets, governance, diagnostics, model-affordance tests, conventions). No new rules.

Test plan

  • task docs:configref then git status: clean; matlatl strict clean
  • TestRedisFollowCapacity_Scenario4, TestCloudNativeLearning_Scenario6_*, TestCloudNativeLearning_Scenario3_*, TestADR_0259_*
  • go test for configgen, permconfig, cliconfig, perfconvert
  • Full suite: relying on CI

🤖 Generated with Claude Code

rdimitrov and others added 4 commits October 5, 2026 23:05
Remove the acceptance-spine content now that PR 1 stopped enforcing it.
Git history is the archive; deleted content is readable at
7c7206e.

- Delete docs/adr (except 0019, moved to docs/perf-tracking.md as a
  living doc), docs/acceptance, docs/superpowers, .claude/plans, the
  devils-advocate and tdd-worker agents, six process skills,
  docs/development-process.md, and docs/design/README.md. The
  panel-review skill and its nine reviewer agents stay as an optional
  tool; nothing requires them any more. The .agents/skills symlink stays so
  Codex-style agents still discover the remaining skills.
- Copy the tech-writer style guide to user-docs/_STYLE.md.
- Mechanically unlink every Markdown link into deleted paths (the ADR
  number stays as plain text); pin public GitHub permalinks in
  user-docs to the SHA above.
- AGENTS.md: delete the Change routing section and the sentences that
  linked to the deleted docs. No other rewrites.
- Add inbound/onward links for pages the deletion orphaned so matlatl
  strict stays green.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rewrite AGENTS.md to build/test commands, module layout, enforceable
implementation boundaries, and working conventions. Drop change
routing, ADR references, and process meta-guidance. Delete the
documentation rule and strip spine citations from the domain-model
rule. Remove the frozen-ADR framing from the reader map and the
internal-workflow sentence from CONTRIBUTING.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reword runtime strings that cited deleted ADRs so they describe the
behaviour instead: the learning posture system-prompt note, the
product-metrics notice, mecated and learning-driver errors, and the
config field docs that generate user-docs/reference/configuration.md
and the settings skeleton (regenerated with task docs:configref).
Point perfconvert comments at the moved docs/perf-tracking.md.

Go doc comments elsewhere, TestADR_* names, and .proto comments are
unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Orchestrator mode only triggered when /plan-orchestrate invoked the
skill; that skill is deleted, so the mode could never run. With one
mode left, the confirmation rules live at the steps that use them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov force-pushed the chore/process-layer-2-delete branch from 008034e to aea7025 Compare October 5, 2026 20:05
@rdimitrov
rdimitrov force-pushed the chore/process-layer-3-polish branch from c6780a7 to 6845ef5 Compare October 5, 2026 20:05
Base automatically changed from chore/process-layer-2-delete to main October 6, 2026 08:28
The rewrite targeted ~50 lines; the agreed limit is under 200 per file,
and agents benefit most from rules they cannot infer from the code.
Restore every rule the rewrite dropped, kept in the new structure:
verification gates, test-fixture and core-test boundaries, the
engine/tool placement and tool-call pairing rules, stateless replay and
factory re-derivation, dispatch barrier, substitution-aware shell and
root-aware trust checks, runner credential-grant limits, server-owned
placement, governance fences and post-tool payload rewriting,
diagnostics/audit/event contracts, the model-affordance test rule, and
the search, delegation, gh, and merge conventions. 98 lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit f929aff into main Oct 6, 2026
39 checks passed
@rdimitrov
rdimitrov deleted the chore/process-layer-3-polish branch October 6, 2026 12:15
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks
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.

2 participants