Skip to content

docs: tighten AI-read docs and drop redundant comments - #24

Closed
ohing504 wants to merge 1 commit into
perf/stat-parallel-sizingfrom
docs/tighten-ai-docs
Closed

docs: tighten AI-read docs and drop redundant comments#24
ohing504 wants to merge 1 commit into
perf/stat-parallel-sizingfrom
docs/tighten-ai-docs

Conversation

@ohing504

Copy link
Copy Markdown
Owner

Tightens the AI-read SSOT docs for token density and scannability, plus a few comment cleanups. Format-only — no path, reason, or figure was dropped.

Stacked on #23 (base = perf/stat-parallel-sizing). The architecture.md sizing section describes the parallel-sizing change from #23, so this builds on it. After #23 merges, this retargets to main.

Changes

architecture.md — the sizing section was one paragraph packing six concerns (progress labels, disk/apparent figures, directory blocks, hard-link dedup, symlink policy, deferred parallel sizing). Split into:

  • labeled disk / apparent figures, with "disk is the primary figure" led up front instead of buried last;
  • hard-link / symlink invariants as their own bullets;
  • the shared sizePending pool as a single closing statement.

ecosystems.md

  • Config roots excluded → lead sentence + a path → why table (every excluded path and reason preserved).
  • Browser Temp (macOS) → lead (what/why) + Matching / Safety / Scope / Size caveat bullets, so the safety rule is no longer mid-paragraph.

Comments — removed three that restate the next line or leak an internal label:

  • internal/cli/scan.go // Sort
  • internal/classifier/git.go // Set project root to git root
  • internal/output/output_test.go — the point of A1

Not included (needs your call)

The doc audit flagged several cross-file duplications (vendor-cleanup rationale, clean-flow keybindings, safety-model legend, dedup mechanism) shared across commands.md / ecosystems.md / architecture.md / CLAUDE.md. Resolving them means moving content (pick one canonical home + pointer), which is a judgment call — left out of this autonomous pass.

Verified

go build · go vet · go test ./... · golangci-lint run all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YSTf3ozF4SnboZHyEi7Ycc

Restructure wall-of-text paragraphs that packed several concerns into one
run-on block, and remove comments that only restate adjacent code, so the
docs and comments scan faster for both agents and humans.

- architecture.md: split the sizing paragraph into labeled disk/apparent
  figures, hard-link/symlink invariants, and the shared sizing pool;
  lead with "disk is the primary figure" instead of burying it.
- ecosystems.md: turn the excluded-config-roots and Browser Temp
  paragraphs into a lead plus a path→reason table / labeled bullets so the
  safety and scope rules are not lost mid-sentence.
- Drop three comments that restate the next line (`// Sort`,
  `// Set project root to git root`) or leak an internal label.

No content removed — the restructures preserve every path, reason, and
observed figure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YSTf3ozF4SnboZHyEi7Ycc
@ohing504
ohing504 deleted the branch perf/stat-parallel-sizing July 17, 2026 11:47
@ohing504 ohing504 closed this Jul 17, 2026
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