Skip to content

chore(coverage): R89-17f add fail_under=60 + CI/release cov gate#43

Merged
WRG-11 merged 3 commits into
mainfrom
session/F-r89-17f-cov-floor-add
May 27, 2026
Merged

chore(coverage): R89-17f add fail_under=60 + CI/release cov gate#43
WRG-11 merged 3 commits into
mainfrom
session/F-r89-17f-cov-floor-add

Conversation

@WRG-11
Copy link
Copy Markdown
Owner

@WRG-11 WRG-11 commented May 26, 2026

Summary

D R89-17 coverage posture audit finding: instinct had no fail_under gate — 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: install pytest-cov; add --cov=instinct --cov-fail-under=60 --cov-report=term-missing to test step
  • release.yml: add test job (cov gate) as prerequisite before build + publish-pypi — PyPI release blocked on cov regression

Verification

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_sentry port (Wave 11 deferred).

🤖 Generated with Claude Code

WRG-11 added 3 commits May 27, 2026 01:46
…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%)
@WRG-11 WRG-11 merged commit 3623389 into main May 27, 2026
11 checks passed
@WRG-11 WRG-11 deleted the session/F-r89-17f-cov-floor-add branch May 27, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant