From 23a74d1704c3e97353275b3cb57710b94253fb5e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:10:57 +0000 Subject: [PATCH 1/2] Initial plan From dc859e81807c45b4f5fcd5663f1f8e4fdcdb3ae7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:31:22 +0000 Subject: [PATCH 2/2] feat: add explicit 100% coverage threshold for validators package - Add [tool.coverage.report] fail_under = 100 to agents/agent1/pyproject.toml so coverage.py enforces 100% regardless of how tests are invoked - Add test-validators Poe task scoped to validators subpackage with --cov-fail-under=100, as a separate pytest-cov run per the issue suggestion - Update agent1 check sequence to include test-validators Co-authored-by: pmalarme <686568+pmalarme@users.noreply.github.com> --- agents/agent1/pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agents/agent1/pyproject.toml b/agents/agent1/pyproject.toml index a260e2f..feff606 100644 --- a/agents/agent1/pyproject.toml +++ b/agents/agent1/pyproject.toml @@ -52,6 +52,10 @@ extend = "../../pyproject.toml" [tool.coverage.run] omit = ["**/__init__.py", "**/__main__.py"] +[tool.coverage.report] +# Security-sensitive validators require complete test coverage of all edge cases. +fail_under = 100 + [tool.pyright] extends = "../../pyproject.toml" @@ -84,6 +88,8 @@ include = "../../shared_tasks.toml" mypy = "uv run mypy --config-file $POE_ROOT/pyproject.toml src" bandit = "uv run bandit -c pyproject.toml -r src/python_agent_template/agents/agent1 docs/source" test = "uv run pytest --cov=python_agent_template.agents.agent1 --cov-report=term-missing:skip-covered --cov-fail-under=100" +test-validators = "uv run pytest --cov=python_agent_template.agents.agent1.validators --cov-report=term-missing:skip-covered --cov-fail-under=100" +check = ["fmt", "lint", "pyright", "mypy", "bandit", "test", "test-validators"] docs = "uv run python ../../scripts/generate_docs.py --agents-only --agents agent1" [build-system]