Skip to content

docs: backfill no-print decision - #17

Merged
lesnik512 merged 2 commits into
mainfrom
docs/decision-no-print
Jun 26, 2026
Merged

docs: backfill no-print decision#17
lesnik512 merged 2 commits into
mainfrom
docs/decision-no-print

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Backfills the standing no print() in source rule as a planning decision, now that planning/decisions/ exists (convention adopted in #15).

planning/decisions/2026-06-26-no-print-in-source.md records:

  • Decision: source never calls print(); CLI output goes through sys.stdout.write / sys.stderr.write with an explicit \n.
  • Context: the proposed writeprint() swap that prompted the rule, and the two options weighed.
  • Rationale: why explicit write is preferred (visible stream + terminator), and that print() is still fine in tests/scratch/REPL.
  • Revisit trigger: adopting a logging framework or output library with its own print helper.

Links to architecture/cli.md, where the Fixing <file> line is emitted.

Verification

  • just check-planningplanning: OK; the decision shows up in just index.
  • just lint-ci passes.

🤖 Generated with Claude Code

lesnik512 and others added 2 commits June 26, 2026 11:36
Record the standing rule that source never calls print() — CLI output
uses sys.stdout.write / sys.stderr.write with an explicit newline — as a
planning decision, with context, rationale, and a revisit trigger.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keep the live directive in CLAUDE.md but single-source the rationale and
scope in the decision file, so the two can't drift.

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