chore(coverage): R89-17f add fail_under=60 + CI/release cov gate#43
Merged
Conversation
…dit finding) - pyproject.toml: add [tool.coverage.run] source=src + [tool.coverage.report] fail_under=60 - ci.yml: install pytest-cov; --cov=instinct --cov-fail-under=60 on test step - release.yml: add test job (cov gate) as prerequisite for build+publish; PyPI release blocked on cov regression Actual coverage: 69% (134 tests) — gate passes. Floor 60 = conservative baseline; ratchet up post Wave 11+.
…chet fail_under 60→80 - tests/test_cli_extended.py: 49 tests covering all previously untested CLI command handlers (inject, import-claude-md, export-claude-md, export-skill, export-platform, export-rules, serve, restore, alias, aliases, detect-chains, effectiveness, session-summary, trending, gc, dedup, fingerprint, export-all, suggest --keyword, and more) - sys.modules injection for serve command (mcp not installed in test env) - pyproject.toml: fail_under 60 → 80 (actual total 84%)
…signment (ruff F401/F841)
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.
Summary
D R89-17 coverage posture audit finding:
instincthad nofail_undergate — published to PyPI without regression protection.Changes
pyproject.toml: add[tool.coverage.run](source=src, branch=true) +[tool.coverage.report](fail_under=60, show_missing)ci.yml: installpytest-cov; add--cov=instinct --cov-fail-under=60 --cov-report=term-missingto test steprelease.yml: addtestjob (cov gate) as prerequisite beforebuild+publish-pypi— PyPI release blocked on cov regressionVerification
Local run before PR: 134 tests, 69% coverage — gate passes (60% floor).
Floor rationale
60% = monorepo standard conservative baseline. Ratchet up after W11+ cross-portfolio
cov_drift_sentryport (Wave 11 deferred).🤖 Generated with Claude Code