Skip to content

docs: retire implementation notes and trim agent instructions - #1807

Merged
JAORMX merged 4 commits into
mainfrom
docs/agent-rules-audit-20260923
Sep 23, 2026
Merged

JAORMX merged 4 commits into
mainfrom
docs/agent-rules-audit-20260923

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Delete docs/design/IMPLEMENTATION-NOTES.md (9,406 lines), without replacing it with another catch-all or copying it wholesale elsewhere.
  • Reduce AGENTS.md from 120,136 bytes to 7,191 bytes (114 readable lines, about 94% smaller). Keep CLAUDE.md as the unchanged symlink.
  • Add a short documentation rule and a documentation-change review in the existing development process: one owning page, implemented behavior rather than approved plans, deletion of stale/duplicate text, and implementation history in PRs/Git. Wire the existing writing/planning/testing skills to those owners.
  • Retain only concise, verified clarifications on UTF-8 repair, exact resume identity, and event attribution in existing architecture pages.
  • Repair active navigation and acceptance-plan citations. Historical ADR citations point to the immutable pre-deletion Git revision; decision semantics are unchanged. Most changed files are these citation repairs.
  • Remove obsolete references from Go comments and test failure messages. Runtime code and test assertions are unchanged.

Scope and classification

Routine documentation correction/reorganization under the existing single-source-of-truth lifecycle. The operator explicitly requested deleting the notes, aggressively trimming agent instructions, and migrating knowledge only minimally and judiciously. No new product, API, persistence, or authorization behavior. No bulk rewrite of architecture docs or frozen ADR decisions. Existing release notes and required API changelogs remain valid release artifacts.

Readers: contributors and coding agents. Current behavior belongs in the existing architecture topics reached through docs/READING.md; public task/reference ownership remains in user-docs/. The root instructions are a correction file, not a subsystem encyclopedia.

Verification

  • Passed: task docs (plan-checker fixtures, docs citation tests, executable service example, strict matlatl links).
  • Passed: standalone go test ./docs/lint, git diff --check, and offline go run ./cmd/mecademo.
  • Verified: CLAUDE.md remains a symlink to AGENTS.md; the removed notes have no local Markdown link targets; ADR edits are citation maintenance only.
  • Passed again after merging current main: task docs. The modify/delete conflict was resolved by retaining the explicitly requested notes deletion.
  • Local full lint/race checks exceeded the initial 600-second limits. A longer lint run reported zero root-module issues before it was stopped to integrate main; it is not a complete lint pass.
  • The subsequent local race suite found the missing Go 1.27 prerequisite in the root instructions; it is restored and its focused race check passes. It also hit TestADR_0281_ForegroundLeaseOverlayAndMetadataPrivacy reading an empty output file before the shell wrote it. That test and its implementation are unchanged from main; ten focused race reruns passed. No unrelated test behavior was modified. The aggregate local race gate is not claimed green.
  • task docs passed again after the Go prerequisite correction. Full ready-PR CI, including race shards, is pending on the latest commit. The PR remains ready for review at the operator's request.

JAORMX and others added 2 commits September 23, 2026 17:17
Keep one owning page for current behavior instead of maintaining a second
implementation journal. Delete the 9,406-line notes file and reduce AGENTS.md
from 120,136 bytes to 7,182 bytes while retaining the CLAUDE.md symlink.

Add concise documentation lifecycle guidance to the existing authoring and
planning workflows. Retain only small verified clarifications in architecture
pages; preserve historical ADR references through immutable Git links without
rewriting decisions. Remove obsolete source-comment and test-message pointers
without changing runtime behavior or test assertions.

Co-Authored-By: GPT-6-Astra <[email protected]>
Keep the operator-approved deletion of implementation notes while integrating
current main. The upstream external-ListDir behavior remains documented in its
owning public pages; no implementation journal is restored.

Co-Authored-By: GPT-6-Astra <[email protected]>
@JAORMX
JAORMX marked this pull request as ready for review September 23, 2026 14:26
JAORMX and others added 2 commits September 23, 2026 17:33
Integrate Jev routing and workspace-discovery fixes. Keep the approved deletion
of the implementation journal; upstream code, provider architecture, and public
documentation updates are preserved. task docs passes on the merged tree.

Co-Authored-By: GPT-6-Astra <[email protected]>
@JAORMX
JAORMX merged commit 33a3747 into main Sep 23, 2026
36 checks passed
@JAORMX
JAORMX deleted the docs/agent-rules-audit-20260923 branch September 23, 2026 15:04
jhrozek added a commit that referenced this pull request Sep 23, 2026
Brings in the plan branch's main sync (through 33a3747) and its ADR
renumber. Conflict resolution:

- AGENTS.md: take main's trimmed version (#1807 removed the per-session
  catalog bullet this branch had edited).
- docs/design/IMPLEMENTATION-NOTES.md: accept main's deletion; the
  reconciliation mechanism is already covered by ADR 0353 and
  docs/architecture/extensibility.md.
- Generated protobuf code: regenerated with task generate.

Follow-ups for the renumber: ADR 0353 references in ADR 0027,
extensibility.md and PRODUCTION-READINESS.md, and the two TestADR_*
verification functions. Also drops a requestHasTool test helper that
duplicated one main added in jev_router_acceptance_test.go.

Co-Authored-By: mecatl <[email protected]>
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — cbfe62fb Deployed Sep 23, 2026 by vercel[bot]
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