Skip to content

Trim design docs: cut narrative, keep reference#43

Merged
dilawarabbas1 merged 1 commit into
mainfrom
claude/push-code-dotagent-SloI4
May 20, 2026
Merged

Trim design docs: cut narrative, keep reference#43
dilawarabbas1 merged 1 commit into
mainfrom
claude/push-code-dotagent-SloI4

Conversation

@dilawarabbas1

Copy link
Copy Markdown
Owner

Summary

Force-rewrite of every design doc in docs/ to remove non-essential narrative. Code unchanged.

1718 lines → 556 lines (68% reduction). No content lost that isn't already in the code, tests, or git history.

Doc Before After Cut
CLAUDE_MD_DESIGN.md 555 109 history narrative, token-economics prose, dev↔QA cycle table, roadmap, glossary
SERVICE_REPO_CLAUDE_MD.md 403 113 duplicated intros, full inherited-paths dump, full render excerpts
DERIVED_FILES_DESIGN.md 230 98 per-generator "why" prose, schema code blocks
HAND_MAINTAINED_DOCS_CONVENTION.md 209 128 implementation prose (verbatim source spec preserved per explicit ask)
DOC_COVERAGE_CLI.md 231 108 duplicate format examples, Coda pseudocode
linkedin-followup-post.md 90 DELETED — marketing, not design

Test plan

  • Full suite: 732 passed, 2 skipped — code unchanged.
  • grep -r linkedin-followup\|CODA_PROMPT\|CODE_AUDIT_PLAN docs/ src/ tests/ — zero stale refs to removed/renamed docs.
  • Each doc still has a "Related" footer linking to siblings — navigation between docs preserved.
  • Each doc still has a clear TL;DR / scannable structure.

What this is not

This is only a doc trim. No schema changes, no renderer changes, no CLI changes, no test changes.


Generated by Claude Code

Force-rewrite of every design doc in docs/ to remove non-essential
narrative and keep only what someone reading the file today needs to
use or extend dotagent. Code unchanged.

Stats: 1718 lines → 556 lines (68% reduction). No content lost that
isn't already in the code, tests, or git history.

### docs/CLAUDE_MD_DESIGN.md  555 → 109 lines
- Removed: "Why we went from compendium → manifest" history (the
  redesign shipped; rationale lives in git log).
- Removed: token-economics prose + comparison table (one-time
  argument, not reference material).
- Removed: dev↔QA cycle ASCII diagram (gates live in
  src/dotagent/render/workflow.py + project CLI; doc copy drifts).
- Removed: roadmap (most shipped; remaining items in conversation).
- Removed: glossary (duplicates section content).
- Removed: file-references table (now in the "Related" footer of
  each doc).
- Kept: four-layer model, ownership rule (cleaner table), schema +
  coverage gates, tier model, how-to-extend, related.

### docs/SERVICE_REPO_CLAUDE_MD.md  403 → 113 lines
- Removed: redundant intro paragraphs (TL;DR + "Why a service repo
  needs its own CLAUDE.md" said the same thing twice).
- Removed: full inherited-paths dump (17 paths verbatim; replaced
  with the path-shape pattern + "see schema").
- Removed: full render-output excerpt (long markdown block; the
  format is verifiable via `dotagent manifest --tier service-repo`).
- Kept: three-tier comparison table, three entry groups
  (local/contract/inherited), four locked design defaults,
  git.yaml-project-root-only rationale, auto-regen behaviour, CI
  guarantees, known limitations.

### docs/DERIVED_FILES_DESIGN.md  230 → 98 lines
- Removed: per-generator "Why generated" prose paragraphs (one
  table row each is enough).
- Removed: full schema code-block (lives in canonical_structure.py).
- Removed: separate "Output guarantees" section (banner format is in
  the wiring section).
- Kept: top-level table of every generator dotagent owns (extended
  to include CLAUDE.md / SCOPE.md / CONTRACTS.md / git.md / PLAN.md
  / contract.frozen.md / contracts.md — was missing those before),
  per-file detail for the three v0.4.10 additions, wiring + fail-soft
  + safe-from-any-state notes, limitations.

### docs/HAND_MAINTAINED_DOCS_CONVENTION.md  209 → 128 lines
- Removed: implementation prose under "Implementation" (just point
  at the four files that need updating in unison).
- Removed: "If you change this convention" duplicate prose.
- Kept (per explicit user request — verbatim preservation):
  hard-boundary block, structure tree, entry point + per-feature
  record shape + naming + join keys, dotagent WILL/WILL NOT lists,
  coexistence table, **verbatim source spec at bottom**.

### docs/DOC_COVERAGE_CLI.md  231 → 108 lines
- Removed: duplicate output-format examples (json shows the data;
  markdown/text formats are the same data in different shapes).
- Removed: Coda-side pseudocode + "How Coda uses this" prose (Coda
  is a different codebase; integration belongs there).
- Kept: usage + flags table, severity model table, mapping-rules
  table, json output sample, hard-boundary, limitations.

### docs/linkedin-followup-post.md  90 lines → DELETED
- Marketing/social content. Not dotagent design or operation. Lives
  in git history if ever needed.

### Tests
All 732 tests still pass. The doc trim doesn't touch code; no
references to removed files anywhere in src/ or tests/.
@dilawarabbas1 dilawarabbas1 merged commit 640368f into main May 20, 2026
0 of 3 checks passed
dilawarabbas1 added a commit that referenced this pull request May 20, 2026
Co-authored-by: Claude <noreply@anthropic.com>
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