Repository navigation
feat(efficacy): a self-test for the design probes - #126
Merged
Merged
Conversation
probes.py plants a build with one finding per design probe, layering, routes doing money arithmetic, boolean parameters, an abstract base over rule kinds, a kind ladder, the public surface, IO isolation and hygiene, and checks each probe's answer. A probe that cannot run leaves its metric missing, never zero. The trace, the CI loop and the coverage row take the new module; no rule is left without a check. Closes #109 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xPGzmuB6WLaUppMRKY
Contributor
Author
|
Codex review, round 1 (gpt-6-astra, high): no findings.
The loop ends here; ready for the owner's review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last rule marked Missing, FR-09-06 (the design-structure probes), gets a self-test.
probes.pyplants a small build with one finding per probe and checks each probe's answer; 14 checks, no model call, nothing installed beyond Python.tests/efficacy/probes.py--self-test: a plantedtariffpackage, a scorer's context with a real subprocess runner, 14 checkstests/efficacy/trace.py,.github/workflows/self-tests.yml,AGENTS.mdprobes.pyjoins the modules with a self-testdocs/coverage.mdWhat the planted build holds, and what each probe must say about it:
Decimal("2") * Decimal("3")inside a routeverbose: bool = Falseclass Rule(ABC)if rule.kind == …Jurisdictionnot defined,Extraexportedprice(invoice, connection: "sqlite3.Connection")print, a# see #123comment,TariffError(Exception), logging with noNullHandlerTrace: 88 checked, 6 untestable, 0 missing.
Found on the way, not changed here: the layering probe's
layering_violationscan never be non-empty, since a module that imports Flask or sqlite3 is by that fact classed web or persistence rather than domain. Filed separately.Closes #109
🤖 Generated with Claude Code
https://claude.ai/code/session_01DpT5xPGzmuB6WLaUppMRKY