Skip to content

Docs: per-package CLAUDE.md for state, telemetry, control - #10

Merged
frahlg merged 1 commit into
masterfrom
docs/per-pkg-infra-trio
Apr 15, 2026
Merged

frahlg merged 1 commit into
masterfrom
docs/per-pkg-infra-trio

Conversation

@frahlg

@frahlg frahlg commented Apr 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds orientation CLAUDE.md to the three infrastructure packages: state, telemetry, control.
  • Each ~40-50 lines: what it does, key types, public API, how it talks to neighbors, what to read first, what NOT to do.
  • Pitfalls captured with file:line citations — single-conn SQLite deadlock, SoC fallback on missing emit, planner-mode collapse in dispatch, distribute-from-total (not delta), SoC<5% clamp, fuse guard PV+discharge math.
  • Site convention is referenced via link to docs/site-convention.md, never re-stated.

Test plan

  • cd go && go build ./... clean
  • cd go && go test -timeout 120s -count=1 ./... all green
  • Every cited type / function exists (grep-verified)
  • Relative link ../../../docs/site-convention.md resolves from each package dir

Generated with Claude Code

Short orientation files for the infrastructure trio. Each covers what
the package does, key types, public API, neighbor relationships, and
the real pitfalls (single-conn deadlock in state, SoC fallback in
telemetry, planner-mode collapse in control).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@frahlg
frahlg merged commit 41e8f7e into master Apr 15, 2026
@frahlg
frahlg deleted the docs/per-pkg-infra-trio branch April 15, 2026 06:46
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant