promote: consumer-side verdict-map coverage guard (#91)#92
Merged
Conversation
…num (#91) The resolver's verdict growth is guarded (test_resolver_branch_count) and the enum is frozen (test_verdict_models), but the consumer tables that turn a Verdict into a CI signal had no totality guard. A new verdict class could be wired into the enum + resolver while a downstream map silently went out of sync: - render._EXIT_CODES is indexed directly, so a missing verdict KeyErrors at run time when that verdict reaches the CLI — the "one exit code your CI can gate on" contract becomes a crash. - diff._QUALITY_RANK is read with .get(), so a missing verdict silently falls off the ladder and is reported as OTHER_CHANGE, suppressing a regression. Add tests/meta/test_verdict_consumer_coverage.py: _EXIT_CODES must cover every Verdict and map only to documented verdict-derived codes (0/1/2/4); _QUALITY_RANK must partition the enum into ranked verdicts plus exactly the two deliberately off-ladder ones (INVALID_EVAL, INSUFFICIENT). No runtime behavior changes.
ericckzhou
added a commit
that referenced
this pull request
Jun 12, 2026
Promote the post-0.6.4 evidence-preservation hardening to a tagged patch release. - Read-only commands no longer load the model stack (#84, #87) - doctor is store-backend aware; fails exit 3 on unregistered scheme (#85) - Anti-entropy guards + doc-freshness tripwires (#90, #92, #94); agent-context fix (#86) Bumps pyproject.toml, falsifyai/__init__.py, test_version.py, uv.lock; reconciles CHANGELOG [Unreleased] into [0.6.5] and refreshes README status/roadmap.
ericckzhou
added a commit
that referenced
this pull request
Jun 12, 2026
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.
Promotes the
devintegration branch tomain.Summary:
tests/meta/test_verdict_consumer_coverage.py— an anti-entropy guard asserting the two consumer-side tables that turn aVerdictinto a CI signal stay total over the enum:render._EXIT_CODEScovers every verdict (soexit_code_forcan neverKeyErroron a real verdict — "one exit code your CI can gate on" stays a code, not a crash) and maps only to documented verdict-derived codes (0/1/2/4).diff._QUALITY_RANKpartitions the enum into ranked verdicts plus exactly the two deliberately off-ladder ones (INVALID_EVAL,INSUFFICIENT), so a new verdict can't silently fall off the ladder and suppress adiffregression asOTHER_CHANGE.Validation:
uv run pytest tests/meta tests/unit -q→ 720 passed; PR test: guard consumer-side verdict maps stay total over the enum #91 CI green ondev.Notes:
test_resolver_branch_count.py) and the frozen-enum guard (test_verdict_models.py).