[verified] Bound evidence commands and reap process groups
This commit is contained in:
@@ -54,6 +54,25 @@ class VerificationContractDocumentationTests(unittest.TestCase):
|
||||
self.assertIn("-B", plan["commands"][0]["argv"])
|
||||
self.assertIn("PYTHONDONTWRITEBYTECODE", plan["command_env_allowlist"])
|
||||
|
||||
def test_command_deadline_and_archive_policy_is_explicit(self):
|
||||
import json
|
||||
template = ROOT / "harness/agents/impl/skills/gitea-issue-rework/templates/evidence-plan.json"
|
||||
for command in json.loads(template.read_text())["commands"]:
|
||||
self.assertIsInstance(command["timeout_seconds"], (int, float))
|
||||
self.assertGreater(command["timeout_seconds"], 0)
|
||||
self.assertLessEqual(command["timeout_seconds"], 3600)
|
||||
for path in (CACHE, *SKILLS.values()):
|
||||
text = path.read_text()
|
||||
for token in ("evidence-manifest/v3", "timeout_seconds", "process group",
|
||||
"validate-archived-v2", "TDD RED", "자동 재실행"):
|
||||
with self.subTest(path=str(path), token=token):
|
||||
self.assertIn(token, text)
|
||||
help_result = subprocess.run([sys.executable, str(SCRIPT), "validate-archived-v2", "--help"],
|
||||
capture_output=True, text=True, timeout=10)
|
||||
self.assertEqual(help_result.returncode, 0, help_result.stderr)
|
||||
for option in ("--contract-path", "--repo-root", "--artifact-root", "--manifest"):
|
||||
self.assertIn(option, help_result.stdout)
|
||||
|
||||
def test_all_roles_reference_canonical_external_artifacts(self):
|
||||
for path in (CACHE, *SKILLS.values()):
|
||||
with self.subTest(path=path.name):
|
||||
@@ -61,7 +80,7 @@ class VerificationContractDocumentationTests(unittest.TestCase):
|
||||
self.assertIn(CANONICAL, text)
|
||||
self.assertIn("evidence_gap", text)
|
||||
self.assertIn("[REDACTED]", text)
|
||||
self.assertIn("evidence-manifest/v2", text)
|
||||
self.assertIn("evidence-manifest/v3", text)
|
||||
|
||||
def test_examples_match_real_helper_cli_not_unsupported_options(self):
|
||||
for path in (SKILLS["implementation"], SKILLS["rework"]):
|
||||
|
||||
Reference in New Issue
Block a user