Skip to content

Compress CLAUDE.md to load-bearing core (246 → 77 lines)#26

Merged
Xinze-Li-Moqian merged 4 commits into
mainfrom
cleanup-claude-md
May 15, 2026
Merged

Compress CLAUDE.md to load-bearing core (246 → 77 lines)#26
Xinze-Li-Moqian merged 4 commits into
mainfrom
cleanup-claude-md

Conversation

@Xinze-Li-Moqian
Copy link
Copy Markdown
Contributor

Summary

CLAUDE.md was 246 lines; most of it was educational, defensive, or stale state that didn't drive day-to-day behavior. Cut to 77 lines of load-bearing content + pointers to where the details live.

What was dropped

  • Software-engineering principles applied — Parnas / Ousterhout / Ford / Martin citations motivate the rules but don't drive my next action.
  • Long "Rejected framings" list — collapsed to one sentence; the principle (depth-audit instead of escalating) stays intact.
  • Phase plan section — project state belongs in issues / git log, not in a doc loaded every conversation.
  • Refactor protocol — short pointer to docs/REFACTOR_PLAYBOOK.md.
  • Fitness functions / shake walkthroughs — rule stays; the implementation walkthrough lives in OpenGALib/Util/Linter/README.md.
  • Multiple "Layer autonomy" paragraphs collapsed to one line on the Mathlib-wrapping policy.

What remains (all load-bearing)

Mission · layer architecture + Util two-tier · anchor naming · self-build default · continue-don't-retreat · atomic commits · Math/Eng/Mixed tagging · anchor purity · design subtraction · multi-view · signature-reads-as-paper · sorry discipline · identity + role division.

Test plan

  • Lines reduced 246 → 77.
  • No behavior the user expects from me is missing — diff review.

Most of the previous CLAUDE.md was educational, defensive, or stale:
- "Software-engineering principles applied" — Parnas/Ousterhout/Ford
  citations motivate but don't drive behavior; dropped.
- Long "Rejected framings" list — collapsed to one sentence; the
  principle (depth-audit instead of escalating) stays.
- "Phase plan" section — project state belongs in issues / git log,
  not in a doc I read every conversation.
- "Refactor protocol" — short pointer to docs/REFACTOR_PLAYBOOK.md.
- "Fitness functions" / "Unused-import hygiene" — kept the rule,
  dropped the implementation walkthrough (linker README is canonical).
- Several "Layer autonomy" paragraphs collapsed to one line on the
  Mathlib-wrapping policy.

What remains: mission, layer architecture + Util two-tier, anchor
naming, self-build default, atomic commits, Math/Eng/Mixed tagging,
anchor purity, design subtraction, multi-view, signature-reads-as-paper,
sorry discipline, identity + role division. All load-bearing for
day-to-day collaboration; everything else lives in linked docs.
Apply the redundancy/merge audit:
- Drop redundant layer-name list from Mission (already in Architecture).
- Drop "Layers must not reference paper-specific concepts. Each is a
  candidate for spin-out" — first half is implicit from the dependency
  diagram, second half is philosophy without daily behavioral impact.
- Merge "Self-build default" + "Rejected framings" + "Continue, don't
  retreat" into a single paragraph — same anti-escalation theme.
- Merge "Anchor naming" + "Namespace policy" into one paragraph.
- Compress "Design is subtraction" four bullets to one sentence.
- Compress "Same object, multiple views" / "Signature reads as paper"
  to one paragraph each.
- Drop the standalone "Fitness functions" paragraph in Discipline —
  the linter-enforcement is already noted under Code quality items;
  reduce to a one-line footer.
- Drop the trailing "Claude Code doesn't escalate scope" sentence from
  Role division — already covered by "Continue, don't retreat".
The previous diagram showed only 4 of the 9 top-level directories:

  Algebraic ≺ Tensor ≺ Riemannian ≺ GeometricMeasureTheory

Reality (verified via import grep):
- Algebraic and Tensor are foundation, as shown.
- MetricGeometry is a parallel Layer-1 stack (MetricMeasureSpace,
  LengthSpace, GeodesicSpace) — not in the old diagram.
- Riemannian depends on Algebraic + Tensor.
- Comparison (Bishop-Gromov) depends on Riemannian + MetricGeometry.
- GeometricMeasureTheory depends on Riemannian.
- Bridges (one-directional OpenGA↔Mathlib adapters) and Tests
  (linter regression) are infrastructure folders not in the old diagram.

Replace with a corrected diagram and a one-line note on infrastructure
folders.
@Xinze-Li-Moqian Xinze-Li-Moqian marked this pull request as ready for review May 15, 2026 23:03
@Xinze-Li-Moqian Xinze-Li-Moqian merged commit 330423b into main May 15, 2026
2 checks passed
@Xinze-Li-Moqian Xinze-Li-Moqian deleted the cleanup-claude-md branch May 15, 2026 23:03
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