feat(test-maturity): no-mock OAuth Codex audit per domain (plan + imp…#24
Merged
Conversation
…l + reviews)
Implements the test-maturity-audit-no-mock plan v1.1: a reproducible audit of
test maturity across 20 domains (CLAUDE.md "Domain Status") scoring 6 dimensions
(pyramid, failure_coverage, determinism, invariants, realism×2, boundary) with
LOC-weighted global score. Validation runs real OAuth Codex E2E scenarios; zero
mocks in the audit code (ADR D2 enforced by preflight-no-mock.sh).
Entry points (opt-in, costs USD per run, NOT in `make audit`):
- `make check-test-maturity` — full audit with OAuth Codex E2E (~$0.30, ~1min)
- `make check-test-maturity-skip-e2e` — structural-only (no cost)
- `make check-test-maturity-report` — print latest report
Plan: 13 tasks across 5 phases. 8 ADRs (D1-D8). 12 edge cases pinned by tests.
Halt-on-anomaly via D8a (auth re-validation per scenario), D8b (trajectory
mtime filter), D8c (RunCompleted gate — halt if cost unknown).
Validation evidence (this session):
- 66/66 Python tests green
- 1 real OAuth Codex audit run: 9 scenarios, $0.286/$2.00, 1 PASS + 8
diagnostic FAILs (the 8 are genuine signals — agent didn't dispatch
expected tools for short prompts)
- Cross-validation: APROVADO COM RESSALVAS (13/13 tasks, 0 BLOCKER/CRITICAL)
- Dogfood QA: SHIPPABLE WITH CAVEATS, health 85/100, 0 CRITICAL attributable
(4 pre-existing bwrap host-kernel failures unattributable)
Scope: Rust workspace only. apps/theo-ui (TS) and apps/theo-benchmark (Python)
have their own suites and are out of scope (declared in report methodology).
Files (38, +4953 LOC):
- scripts/test-maturity/ (28 files: 12 source Python/bash, 4 data yaml,
1 jinja2 template, 11 test_*.py)
- .claude/knowledge-base/plans/test-maturity-audit-no-mock-plan.md (v1.1)
- 4 reviews under .claude/knowledge-base/reviews/ (test-maturity report,
cross-validation, edge-case, dogfood)
- Makefile (+3 targets, NOT in `make audit`)
- CLAUDE.md (+1 line in Extended gates)
- index.md + log.md updated
Owner
Author
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: usetheodev <241186089+usetheodev@users.noreply.github.com>
Contributor
Done in commit |
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.
…l + reviews)
Implements the test-maturity-audit-no-mock plan v1.1: a reproducible audit of test maturity across 20 domains (CLAUDE.md "Domain Status") scoring 6 dimensions (pyramid, failure_coverage, determinism, invariants, realism×2, boundary) with LOC-weighted global score. Validation runs real OAuth Codex E2E scenarios; zero mocks in the audit code (ADR D2 enforced by preflight-no-mock.sh).
Entry points (opt-in, costs USD per run, NOT in
make audit):make check-test-maturity— full audit with OAuth Codex E2E (~$0.30, ~1min)make check-test-maturity-skip-e2e— structural-only (no cost)make check-test-maturity-report— print latest reportPlan: 13 tasks across 5 phases. 8 ADRs (D1-D8). 12 edge cases pinned by tests. Halt-on-anomaly via D8a (auth re-validation per scenario), D8b (trajectory mtime filter), D8c (RunCompleted gate — halt if cost unknown).
Validation evidence (this session):
Scope: Rust workspace only. apps/theo-ui (TS) and apps/theo-benchmark (Python) have their own suites and are out of scope (declared in report methodology).
Files (38, +4953 LOC):
make audit)