Skip to content

Read size as app code and test code, against a band - #71

Merged
braboj merged 3 commits into
mainfrom
feat/size-split-39
Oct 28, 2026
Merged

braboj merged 3 commits into
mainfrom
feat/size-split-39

Conversation

@braboj

@braboj braboj commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Round 5 now reads code size as app code and test code, with a 20 % band, as decided on #39. Earlier rounds re-read as they were reported.

How a size row reads, before and after:

before: lines, files      interval above 0           -> worse
after:  app lines, files  interval inside +20 %      -> held
                          interval wholly past +20 % -> worse
        test lines        reported, no verdict
File Change
score.py kind_of() sorts tracked files: app, test, generated, or docs and config; scope adds app_files, app_lines, test_lines
score.py Committed .pyc, caches, .db and coverage data join "artifacts nobody asked for"
report.py Three new rows; banded_verdict() for app code under round 5's margins
report.py Round 5 prints source lines and files without a verdict; size and why-lines read whichever pair has one
round-5.md Amended: new 13.6, Code size, dated 2026-10-28, before any trial
ch. 8.1.2, 8.7.2, primer, ch. 9, rounds index Follow the amendment

What counts as what:

  • App code: .py outside tests, plus .html, .jinja, .css, .js
  • Test code: .py under tests/ or test/, or named test_*.py, *_test.py, conftest.py
  • Generated: __pycache__/, *.pyc, venvs, build/, dist/, *.db, *.sqlite, .coverage, htmlcov/

Notes:

  • Re-reading round 4's thin-spec run gives the same report, plus three empty app-code rows.
  • The "smallest change that matters", 40 %, is a design figure, as for churn. No code reads it.
  • Rescoring an old round now counts generated files under "artifacts nobody asked for".

Checks:

  • score.py self-test plants one tree with app, test, generated and docs files: 63/63
  • report.py self-test covers each band reading, the superseded rows and an earlier round: 134/134
  • Every module's self-test passes; pyflakes clean

Closes #39

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX

braboj and others added 2 commits October 28, 2026 11:03
)

- score.py sorts each tracked file into app code, test code, generated
  files or docs and configuration; scope records app files and lines and
  test lines, and counts generated files as artifacts nobody asked for
- report.py reads round 5's app-code rows against a 20 % band: held
  inside it, worse only wholly past it; test lines carry no verdict, and
  round 5 prints source lines and files without one
- Round 5's registration is amended before its first trial; ch. 8.1.2,
  8.7.2, the primer's size meter and the decision log follow

Closes #39

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
An earlier round rescored by the current scorer carries app_lines and
app_files. Read with a verdict, they changed its failed-metric count and
repeated the size shares beside source lines and files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
@braboj

braboj commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the review finding: rescored earlier rounds read the new app-size rows.

Round Source lines, files App code, lines and files
Before 5 verdict, as reported printed, no verdict
5 on printed, no verdict verdict, against the band
  • FROM_ROUND5 in report.py holds the app-code rows neutral before round 5.
  • Two new self-test checks plant a rescored earlier round. Both fail without the fix:
    • its app row read worse
    • its size cell read lines +10 %, files +100 %, lines +10 %
  • Ch. 8.7.2 says so.

report 136/136; pyflakes clean.

# Conflicts:
#	docs/architecture/09-architecture-decisions.md
@braboj
braboj merged commit 97e7aca into main Oct 28, 2026
2 checks passed
@braboj
braboj deleted the feat/size-split-39 branch October 28, 2026 09:42
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.

Read size as app code and test code, with a tolerance band

1 participant