Skip to content

docs: seed architecture/ capability docs from current code - #16

Merged
lesnik512 merged 1 commit into
mainfrom
docs/seed-architecture
Jun 26, 2026
Merged

docs: seed architecture/ capability docs from current code#16
lesnik512 merged 1 commit into
mainfrom
docs/seed-architecture

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Seeds the architecture/ truth home (introduced with the planning convention in #15) with the tool's current behavior, derived from eof_fixer/main.py. Until now it held only a README.md, so the promotion rule had nothing to promote into.

Capability docs

  • eof-normalization.md — the core: 1KB null-byte binary skip, the none / append_lf / truncate(offset) action model, backward terminator walk with LF/CRLF/CR handling (style preserved, count normalized), and the Windows seek-before-write detail.
  • file-discovery.md — directory-only input, GitIgnoreSpec rules (.git/.cache/.uv-cache baseline + repo .gitignore), relative-path resolution, rb vs rb+ open modes.
  • cli.md — the interface, Fixing <file> stdout line, and the 0/1 exit-code contract that makes --check a CI gate.
  • README.md — links the three capability files.

Docs only, no code change.

Verification

  • just lint-ci → ruff format/check, ty, and check-planning all pass.

🤖 Generated with Claude Code

Populate the truth home with the tool's current behavior so future
changes have something to promote into:

- eof-normalization.md — binary skip, none/append_lf/truncate action
  model, terminator handling (LF/CRLF/CR), in-place mutation
- file-discovery.md — directory input, .gitignore rules, path
  resolution, binary open modes
- cli.md — interface, "Fixing <file>" output, exit-code contract
- README.md — link the three capability files

Docs only, no code change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512
lesnik512 merged commit d227996 into main Jun 26, 2026
6 checks passed
@lesnik512
lesnik512 deleted the docs/seed-architecture branch June 26, 2026 08:34
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