You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: renew verification, test helpers, and quality tooling contracts #274
The source renewals should finish with a dedicated verification pass. The test suite and devtools are in much better shape than before the mypy campaign, but they still contain older naming, duplicated helper seams, and some path-dependent fixtures/contracts that should align with the renewed substrate and surface contracts.
Scope
Focus on:
tests/
devtools/
generated quality/reference surfaces
The goal is not churn for its own sake. This PR should make verification surfaces reflect the post-renewal architecture cleanly.
Likely focus areas
contract-heavy test helpers and fixtures that still mirror old substrate/surface ambiguity
duplicated result/payload builders across unit suites
devtools quality/reference surfaces that still describe pre-renewal boundaries
remaining warning suppressions, naming drift, and weak helper contracts in verification-oriented code
Acceptance criteria
Shared fixtures/helpers are simplified where earlier substrate ambiguity forced duplication.
Devtools and generated quality references describe the live architecture accurately.
Remaining warning suppressions / naming drift / weak helper contracts in the targeted slices are reduced materially.
The tranche lands as one coherent PR with full verification.
Out of scope
Large new substrate features
User-facing behavior changes unrelated to verification quality
Added tests/infra/json_contracts.py for typed JSON object/envelope/result assertions.
Added direct tests for the shared JSON assertion helper.
Migrated repeated local JSON helper code out of CLI machine/check/product/deterministic-output tests.
Added a devtools validation-lane guard that fails if explicit pytest targets are duplicated in a lane.
Updated devtools render-quality-reference and regenerated docs/test-quality-workflows.md with a “Test Infrastructure Contracts” section naming the shared verification helpers.
pre-push devtools verify --quick: verify: all checks passed
GitHub state at merge time: mergeable; PR policy, lint, typecheck, Nix, showcase, GitGuardian, CodeRabbit, and CodeQL green. The three Python matrix jobs were still pending under the known Actions quota constraint, so I merged on the local full baseline plus the green non-matrix checks.
Activity
refactor: tighten quality and verification contracts (#314)
test: capture probe regressions and growth budgets (#316)
refactor: tighten quality and verification contracts (#314)
test: capture probe regressions and growth budgets (#316)
refactor: tighten quality and verification contracts (#314)
test: capture probe regressions and growth budgets (#316)
refactor: tighten quality and verification contracts (#314)
test: capture probe regressions and growth budgets (#316)
Sinity commentedon Apr 22, 2026
Starting #274 on branch
feature/refactor/verification-contractsfrommasteratd458ad18.Initial boundary:
I’ll keep the durable scratch log in
.agent/scratch/274-verification-contracts.mdand mirror meaningful decisions back here.Sinity commentedon Apr 22, 2026
Implementation update for #274:
Commit on
feature/refactor/verification-contracts:1a7a12ed refactor(test): centralize JSON verification helpersScope landed:
tests/infra/json_contracts.pyfor typed JSON object/envelope/result assertions.devtools render-quality-referenceand regenerateddocs/test-quality-workflows.mdwith a “Test Infrastructure Contracts” section naming the shared verification helpers.Verification:
pytest -q tests/infra/test_json_contracts.py tests/unit/cli/test_check.py tests/unit/cli/test_click_app_main.py tests/unit/cli/test_deterministic_output.py tests/unit/cli/test_json_envelope_contract.py tests/unit/cli/test_machine_main.py tests/unit/cli/test_products.py tests/unit/devtools/test_validation_lanes.py->293 passed in 9.84sruff checkon touched files -> passedmypyon touched files -> passeddevtools render-all --check-> passeddevtools verify->verify: all checks passedSinity commentedon Apr 22, 2026
PR opened for #274:
feature/refactor/verification-contracts1a7a12ed refactor(test): centralize JSON verification helpersrefactor(test): centralize JSON verification helpers (#366)Local verification remains the closure signal for this tranche:
293 passed in 9.84sruff checkon touched files: passedmypyon touched files: passeddevtools render-all --check: passeddevtools verify:verify: all checks passeddevtools verify --quick:verify: all checks passedGitHub checks currently have the quick policy/lint/typecheck/Nix/security checks green; longer Python/showcase jobs are still running.
refactor(test): centralize JSON verification helpers (#366)
Sinity commentedon Apr 22, 2026
Closed by PR #366.
Merge result:
e85a0d26ef5069fe51a71ffc12b6d8f5db6b978brefactor(test): centralize JSON verification helpers (#366)Verification used for merge readiness:
293 passed in 9.84sruff check: passedmypy: passeddevtools render-all --check: passeddevtools verify:verify: all checks passeddevtools verify --quick:verify: all checks passedGitHub state at merge time: mergeable; PR policy, lint, typecheck, Nix, showcase, GitGuardian, CodeRabbit, and CodeQL green. The three Python matrix jobs were still pending under the known Actions quota constraint, so I merged on the local full baseline plus the green non-matrix checks.
refactor(test): centralize JSON verification helpers (#366)