Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4db7f9e
fix: an unparseable module makes the oo and coupling views exit 2 (PL…
jmf-pobox Dec 1, 2026
ab652d5
fix: a directory the scan cannot list stops every gate with exit 2 (P…
jmf-pobox Dec 1, 2026
ebfab64
fix: git refusing the checkout exits 2 instead of reading as "no repo…
jmf-pobox Dec 1, 2026
3597669
fix: a package scanned as "." from inside resolves its own imports (P…
jmf-pobox Dec 1, 2026
cc753b6
docs: REFERENCE names how an incomplete scan fails; changelog; oo bas…
jmf-pobox Dec 1, 2026
7493ea9
fix: a directory named like a module is still enumerated; goldens rec…
jmf-pobox Dec 1, 2026
47d56d8
chore(ratchet): bless the three coupling rows of IncompleteScanError …
jmf-pobox Dec 1, 2026
e57fab9
fix: a module that does not parse or cannot be read anywhere stops ev…
jmf-pobox Dec 1, 2026
33450a0
fix: a git command that fails exits 2 with git's message; only a miss…
jmf-pobox Dec 1, 2026
8ec4082
docs: incomplete scans in REFERENCE, ratchet.tex and the changelog; o…
jmf-pobox Dec 1, 2026
7b181d7
Merge origin/main into the incomplete-scan branch (PL-1822)
jmf-pobox Dec 1, 2026
6711f86
chore(ratchet): rescore after merging main and bless the IncompleteSc…
jmf-pobox Dec 1, 2026
167bfaa
fix(sources): a root glob over an unlistable directory stops the scan…
jmf-pobox Dec 1, 2026
5ca84f7
fix(oo): --audit-completeness exits 2 on a module that does not parse…
jmf-pobox Dec 1, 2026
d1a8fbd
test(oo): the completeness audit no longer excludes an unparseable mo…
jmf-pobox Dec 1, 2026
5b9fbac
fix: an unreadable or non-UTF-8 module exits 2 in every gate (PL-1822)
jmf-pobox Dec 1, 2026
9678586
fix(git): show and exists_at run git in the C locale (PL-1822)
jmf-pobox Dec 1, 2026
e732b7b
chore(ratchet): rescore OO after the incomplete-scan review fixes (PL…
jmf-pobox Dec 1, 2026
1b3e0d5
chore(ratchet): bless the layers/scan.py coupling row for IncompleteS…
jmf-pobox Dec 1, 2026
82c26cc
fix: single-file parse errors, unsearchable source parents and git ar…
jmf-pobox Dec 1, 2026
baa92f1
refactor: keep the new source and git checks inside their own modules…
jmf-pobox Dec 1, 2026
686770c
refactor: clear the size-cap findings the source and git checks added…
jmf-pobox Dec 1, 2026
86f21d0
chore(ratchet): bless the oogate and source_set coupling rows (PL-1822)
jmf-pobox Dec 1, 2026
1398db3
Merge origin/main (PR 124) into the incomplete-scan branch (PL-1822)
jmf-pobox Dec 1, 2026
dc5fc4f
chore(ratchet): rescore after merging main; re-bless the oogate row (…
jmf-pobox Dec 1, 2026
7a29076
fix: Match wildcard source roots with platform casing
qodo-code-review[bot] Dec 1, 2026
e6d48fa
fix: Reject declared-encoding decode failures in suppression scan
qodo-code-review[bot] Dec 1, 2026
dc81fae
test: incomplete-scan tests run as on a developer machine under GitHu…
jmf-pobox Dec 1, 2026
5f76a69
Merge remote-tracking branch 'origin/fix/pl-1822-incomplete-scan' int…
jmf-pobox Dec 1, 2026
2ecad63
fix: a non-UTF-8 module still reads 'not UTF-8'; tests for the Qodo F…
jmf-pobox Dec 1, 2026
0122767
chore(ratchet): rescore and bless gateinput after the coding-cookie f…
jmf-pobox Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .punt-labs/oo-ratchet/coupling-audit.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@
{"ts":"2026-11-30T18:04:08Z","commit":"01d61b6","source":null,"files_scored":268,"files_improved":2,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{"src/oo_ratchet/core/application/check.py":{"max_lcom":[0.143,0.133],"avg_lcom":[0.143,0.133]},"src/oo_ratchet/core/domain/mode.py":{"max_lcom":[1.0,0.0],"avg_lcom":[1.0,0.0]}}}
{"ts":"2026-11-30T18:04:29Z","commit":"01d61b6","source":null,"files_scored":268,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T07:53:52Z","commit":"d8f9d2b","source":null,"files_scored":268,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T14:54:37Z","commit":"3597669","source":null,"files_scored":268,"files_improved":2,"files_regressed":3,"verdict":"fail","reason":null,"deltas":{"src/oo_ratchet/oo/scoring.py":{"max_lcom":[0.5,0.474],"avg_lcom":[0.5,0.474]},"src/oo_ratchet/source_set.py":{"max_lcom":[0.448,0.411],"avg_lcom":[0.448,0.411]}}}
{"ts":"2026-12-01T15:27:14Z","commit":"7493ea9","source":"PL-1822","files_scored":3,"files_improved":0,"files_regressed":3,"verdict":"rebaseline-files","reason":"PL-1822: IncompleteScanError, the one error type for an incomplete scan (unreadable directory), is defined in core/domain/errors.py (+1 public name), raised by sources.py (+1 import of errors) and caught by the dispatcher in __main__.py (+1 import of errors) so every gate exits 2. All three stay far under their targets.","deltas":{"src/oo_ratchet/__main__.py":{"efferent_coupling":[4.0,5.0]},"src/oo_ratchet/core/domain/errors.py":{"public_names":[2.0,3.0]},"src/oo_ratchet/sources.py":{"efferent_coupling":[0.0,1.0]}},"improved":{}}
{"ts":"2026-12-01T16:48:09Z","commit":"47d56d8","source":null,"files_scored":268,"files_improved":2,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{"src/oo_ratchet/core/adapters/couplingview.py":{"max_lcom":[0.867,0.833],"avg_lcom":[0.867,0.833]},"src/oo_ratchet/core/adapters/gitrepo.py":{"max_lcom":[0.619,0.614],"avg_lcom":[0.619,0.614]}}}
{"ts":"2026-12-01T16:50:23Z","commit":"47d56d8","source":"PL-1822","files_scored":1,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"PL-1822: Measurement.complete() raises IncompleteScanError when any module in the scanned set failed to parse or read, so check, update, reconcile and waive refuse before any verdict or write. scores.py (domain) now imports errors.py (domain): efferent_coupling 0 -> 1, an edge inside the domain ring.","deltas":{"src/oo_ratchet/core/domain/scores.py":{"efferent_coupling":[0.0,1.0]}},"improved":{}}
{"ts":"2026-12-01T14:54:52Z","commit":"7b04026","source":null,"files_scored":269,"files_improved":0,"files_regressed":15,"verdict":"fail","reason":null,"deltas":{},"backfilled":["src/oo_ratchet/core/adapters/presence.py"]}
{"ts":"2026-12-01T15:30:55Z","commit":"d39eb0d","source":"PL-1870","files_scored":15,"files_improved":0,"files_regressed":15,"verdict":"rebaseline-files","reason":"PL-1870: on Python 3.14 Path.exists()/is_file() return False on a permission error, so an unreadable config or state file looked absent and the gate passed. One shared probe, core/adapters/presence.py Presence, tells absent from unreadable; these 15 readers each gain one import of it (efferent_coupling +1, all far under the target of 10) instead of 15 copies of the stat logic.","deltas":{"src/oo_ratchet/core/adapters/auditview.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/edgefiles.py":{"efferent_coupling":[2.0,3.0]},"src/oo_ratchet/core/adapters/jsonstore.py":{"efferent_coupling":[4.0,5.0]},"src/oo_ratchet/core/adapters/layertablefile.py":{"efferent_coupling":[2.0,3.0]},"src/oo_ratchet/core/adapters/oostore.py":{"efferent_coupling":[4.0,5.0]},"src/oo_ratchet/core/adapters/ootree.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/packagetrees.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/pyprojectconfig.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/scoredtree.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/statefiles.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/core/adapters/tallyfiles.py":{"efferent_coupling":[4.0,5.0]},"src/oo_ratchet/coupling/config.py":{"efferent_coupling":[1.0,2.0]},"src/oo_ratchet/sources.py":{"efferent_coupling":[0.0,1.0]},"src/oo_ratchet/suppression/pyproject.py":{"efferent_coupling":[0.0,1.0]},"src/oo_ratchet/telemetry_settings.py":{"efferent_coupling":[0.0,1.0]}},"improved":{}}
{"ts":"2026-12-01T15:41:06Z","commit":"146e890","source":"PL-1870","files_scored":1,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"PL-1870: gatemode reads pyproject.toml and the layers source through the shared Presence probe (efferent_coupling 4 -> 5, under the target of 10), so an unreadable pyproject raises the documented ModeError and an unreadable layers source chooses enforce, not advise.","deltas":{"src/oo_ratchet/core/adapters/gatemode.py":{"efferent_coupling":[4.0,5.0]}},"improved":{}}
Expand Down Expand Up @@ -463,6 +467,18 @@
{"ts":"2026-12-01T17:18:11Z","commit":"d1a282f","source":null,"files_scored":269,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T17:37:01Z","commit":"f8daaab","source":null,"files_scored":269,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T18:02:18Z","commit":"498c894","source":null,"files_scored":270,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T18:31:22Z","commit":"7b181d7","source":null,"files_scored":270,"files_improved":0,"files_regressed":2,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T18:31:32Z","commit":"7b181d7","source":"PL-1822","files_scored":2,"files_improved":0,"files_regressed":2,"verdict":"rebaseline-files","reason":"IncompleteScanError is the new error a gate raises when it cannot read all its input; errors.py gains that one public name and sources.py imports it to raise on an unlistable directory","deltas":{"src/oo_ratchet/core/domain/errors.py":{"public_names":[3.0,4.0]},"src/oo_ratchet/sources.py":{"efferent_coupling":[2.0,3.0]}},"improved":{}}
{"ts":"2026-12-01T19:19:24Z","commit":"9678586","source":null,"files_scored":270,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:21:13Z","commit":"e732b7b","source":"PL-1822","files_scored":1,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"layers stops with IncompleteScanError (exit 2) on a module it cannot parse, instead of a plain FAIL exit 1; scan.py imports core.domain.errors for it (efferent 6 to 7)","deltas":{"src/oo_ratchet/layers/scan.py":{"efferent_coupling":[6.0,7.0]}},"improved":{}}
{"ts":"2026-12-01T19:35:18Z","commit":"82c26cc","source":null,"files_scored":270,"files_improved":0,"files_regressed":4,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:39:08Z","commit":"82c26cc","source":null,"files_scored":270,"files_improved":0,"files_regressed":2,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:39:22Z","commit":"82c26cc","source":null,"files_scored":270,"files_improved":1,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{"src/oo_ratchet/source_set.py":{"max_lcom":[0.411,0.395],"avg_lcom":[0.411,0.395]}}}
{"ts":"2026-12-01T19:39:43Z","commit":"82c26cc","source":null,"files_scored":270,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:50:09Z","commit":"82c26cc","source":null,"files_scored":270,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:59:00Z","commit":"baa92f1","source":null,"files_scored":270,"files_improved":0,"files_regressed":3,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:59:33Z","commit":"baa92f1","source":null,"files_scored":270,"files_improved":0,"files_regressed":2,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T20:16:12Z","commit":"686770c","source":"PL-1822","files_scored":2,"files_improved":1,"files_regressed":1,"verdict":"rebaseline-files","reason":"PL-1822 review: deleting OoGate._unscorable makes a single unparseable file exit 2 like a directory (oogate LCOM 0.038 to 0.077); source_set.py is recorded at its honest 0.411, below base 0.448, replacing an intermediate 0.395","deltas":{"src/oo_ratchet/core/adapters/oogate.py":{"max_lcom":[0.038,0.077],"avg_lcom":[0.038,0.077]}},"improved":{"src/oo_ratchet/source_set.py":{"max_lcom":[0.448,0.411],"avg_lcom":[0.448,0.411]}}}
{"ts":"2026-12-01T18:29:59Z","commit":"7910b21","source":null,"files_scored":274,"files_improved":1,"files_regressed":2,"verdict":"fail","reason":null,"deltas":{"src/oo_ratchet/core/adapters/jsonstore.py":{"efferent_coupling":[5.0,4.0]}}}
{"ts":"2026-12-01T18:38:05Z","commit":"6dfad77","source":"PL-604","files_scored":2,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"Review round 1: atomicfile imports Presence and StateError and exports StateWriteError; JsonLedger gained with_ceiling, save, checkpoint and restore so a relax is undone when its audit line fails, raising tallyfiles LCOM 0.200 to 0.214 while its efferent coupling fell 5 to 4","deltas":{"src/oo_ratchet/core/adapters/tallyfiles.py":{"max_lcom":[0.2,0.214]}},"improved":{"src/oo_ratchet/core/adapters/tallyfiles.py":{"efferent_coupling":[5.0,4.0],"avg_lcom":[0.133,0.119]}}}
{"ts":"2026-12-01T18:50:10Z","commit":"258da4c","source":null,"files_scored":274,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
Expand All @@ -473,3 +489,7 @@
{"ts":"2026-12-01T19:29:49Z","commit":"ac5e17c","source":"PL-604","files_scored":3,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"PR 124 qodo High: AuditedWrite holds the state directory's lock from checkpoint to the end; the StateLock port (public_names 4 to 5) and locked() on AtomicFile and the tally stores raise LCOM slightly (tallyfiles max 0.200 to 0.222)","deltas":{"src/oo_ratchet/core/adapters/tallyfiles.py":{"max_lcom":[0.2,0.222]}},"improved":{"src/oo_ratchet/core/adapters/tallyfiles.py":{"efferent_coupling":[5.0,4.0],"avg_lcom":[0.133,0.12]}}}
{"ts":"2026-12-01T19:37:02Z","commit":"c1f94fa","source":null,"files_scored":274,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T19:41:34Z","commit":"57da96c","source":null,"files_scored":274,"files_improved":0,"files_regressed":0,"verdict":"pass","reason":null,"deltas":{}}
{"ts":"2026-12-01T20:20:05Z","commit":"1398db3","source":null,"files_scored":274,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T20:20:15Z","commit":"1398db3","source":"PL-1822","files_scored":1,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"PL-1822 review: deleting OoGate._unscorable makes a single unparseable file exit 2 like a directory (oogate LCOM 0.038 to 0.077); re-blessed after merging main","deltas":{"src/oo_ratchet/core/adapters/oogate.py":{"max_lcom":[0.033,0.064],"avg_lcom":[0.033,0.064]}},"improved":{}}
{"ts":"2026-12-01T23:41:07Z","commit":"2ecad63","source":null,"files_scored":274,"files_improved":0,"files_regressed":1,"verdict":"fail","reason":null,"deltas":{}}
{"ts":"2026-12-01T23:41:13Z","commit":"2ecad63","source":"PL-1822","files_scored":1,"files_improved":0,"files_regressed":1,"verdict":"rebaseline-files","reason":"PR 125 qodo: gateinput imports IncompleteScanError to stop on a module its own coding cookie rejects","deltas":{"src/oo_ratchet/suppression/gateinput.py":{"efferent_coupling":[4.0,5.0]}},"improved":{}}
32 changes: 16 additions & 16 deletions .punt-labs/oo-ratchet/coupling-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"avg_lcom": 0.0
},
"src/oo_ratchet/__main__.py": {
"efferent_coupling": 4.0,
"efferent_coupling": 5.0,
"public_names": 3.0,
"circular_imports": 0.0,
"max_lcom": 0.0,
Expand Down Expand Up @@ -87,8 +87,8 @@
"efferent_coupling": 2.0,
"public_names": 1.0,
"circular_imports": 0.0,
"max_lcom": 0.867,
"avg_lcom": 0.867
"max_lcom": 0.833,
"avg_lcom": 0.833
},
"src/oo_ratchet/core/adapters/edgecli.py": {
"efferent_coupling": 4.0,
Expand Down Expand Up @@ -171,8 +171,8 @@
"efferent_coupling": 5.0,
"public_names": 3.0,
"circular_imports": 0.0,
"max_lcom": 0.619,
"avg_lcom": 0.619
"max_lcom": 0.614,
"avg_lcom": 0.614
},
"src/oo_ratchet/core/adapters/goalconfig.py": {
"efferent_coupling": 2.0,
Expand Down Expand Up @@ -290,8 +290,8 @@
"efferent_coupling": 11.0,
"public_names": 2.0,
"circular_imports": 0.0,
"max_lcom": 0.033,
"avg_lcom": 0.033
"max_lcom": 0.064,
"avg_lcom": 0.064
},
"src/oo_ratchet/core/adapters/oorequest.py": {
"efferent_coupling": 1.0,
Expand Down Expand Up @@ -799,7 +799,7 @@
},
"src/oo_ratchet/core/domain/errors.py": {
"efferent_coupling": 0.0,
"public_names": 3.0,
"public_names": 4.0,
"circular_imports": 0.0,
"max_lcom": 0.0,
"avg_lcom": 0.0
Expand Down Expand Up @@ -1022,7 +1022,7 @@
"avg_lcom": 0.0
},
"src/oo_ratchet/core/domain/scores.py": {
"efferent_coupling": 0.0,
"efferent_coupling": 1.0,
"public_names": 4.0,
"circular_imports": 0.0,
"max_lcom": 0.0,
Expand Down Expand Up @@ -1701,7 +1701,7 @@
"avg_lcom": 0.0
},
"src/oo_ratchet/layers/scan.py": {
"efferent_coupling": 6.0,
"efferent_coupling": 7.0,
"public_names": 2.0,
"circular_imports": 0.0,
"max_lcom": 0.583,
Expand Down Expand Up @@ -1809,8 +1809,8 @@
"efferent_coupling": 1.0,
"public_names": 1.0,
"circular_imports": 0.0,
"max_lcom": 0.5,
"avg_lcom": 0.5
"max_lcom": 0.474,
"avg_lcom": 0.474
},
"src/oo_ratchet/oo/thresholds.py": {
"efferent_coupling": 1.0,
Expand Down Expand Up @@ -1844,11 +1844,11 @@
"efferent_coupling": 2.0,
"public_names": 1.0,
"circular_imports": 0.0,
"max_lcom": 0.448,
"avg_lcom": 0.448
"max_lcom": 0.411,
"avg_lcom": 0.411
},
"src/oo_ratchet/sources.py": {
"efferent_coupling": 2.0,
"efferent_coupling": 3.0,
"public_names": 1.0,
"circular_imports": 0.0,
"max_lcom": 0.0,
Expand Down Expand Up @@ -1876,7 +1876,7 @@
"avg_lcom": 0.0
},
"src/oo_ratchet/suppression/gateinput.py": {
"efferent_coupling": 4.0,
"efferent_coupling": 5.0,
"public_names": 1.0,
"circular_imports": 0.0,
"max_lcom": 0.0,
Expand Down
Loading
Loading