OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
fix(plugin): keep model-authored runtime status out of finalized reports (#703)
Russlan Ramdowar1518e9333b93
diff --git a/plugins/codex-security/examples/completed-scan/report.md b/plugins/codex-security/examples/completed-scan/report.mdindex 58834b65e..32416eaad 100644--- a/plugins/codex-security/examples/completed-scan/report.md+++ b/plugins/codex-security/examples/completed-scan/report.md@@ -12,7 +12,6 @@ The scan reviewed the canonical include paths and exclusions listed below.- Inventory strategy: repository- Included paths: .- Excluded paths: none-- Runtime or test status: not recorded### Scan Summarydiff --git a/plugins/codex-security/scripts/report_projection.py b/plugins/codex-security/scripts/report_projection.pyindex 98b4f00d1..7332b2fe8 100644--- a/plugins/codex-security/scripts/report_projection.py+++ b/plugins/codex-security/scripts/report_projection.py@@ -822,7 +822,6 @@ def build_report_markdown(f"- Inventory strategy: {coverage['inventoryStrategy']}",f"- Included paths: {', '.join(include_paths) or 'none'}",f"- Excluded paths: {', '.join(exclude_paths) or 'none'}",- f"- Runtime or test status: {_text(scope.get('runtimeStatus'), 'not recorded')}",]artifacts_reviewed = _strings(scope.get("artifactsReviewed"))if artifacts_reviewed:diff --git a/plugins/codex-security/tests/test_finalize_scan_contract.py b/plugins/codex-security/tests/test_finalize_scan_contract.pyindex 9be87be40..5864a7dbc 100644--- a/plugins/codex-security/tests/test_finalize_scan_contract.py+++ b/plugins/codex-security/tests/test_finalize_scan_contract.py@@ -1871,6 +1871,20 @@ The extraction root is not enforced.self.assertIn(expected, report)self.assertFalse((self.scan_dir / "report.html").exists())+ def test_finalize_does_not_project_model_authored_runtime_status(self) -> None:+ stale_status = "SDK finalization and sealing intentionally pending."+ self.manifest["scan"]["scope"]["runtimeStatus"] = stale_status+ self.write_scan()++ FINALIZER.finalize_scan(self.scan_dir)++ manifest = self.read_json("scan-manifest.json")+ report = (self.scan_dir / "report.md").read_text(encoding="utf-8")+ self.assertEqual(manifest["scan"]["status"], "completed")+ self.assertEqual(manifest["scan"]["sealedAt"], "2026-05-31T18:09:00Z")+ self.assertNotIn(stale_status, report)+ self.assertNotIn("Runtime or test status", report)+def test_finalize_accepts_legacy_unstructured_report_semantics(self) -> None:finding = self.findings["findings"][0]finding["validation"] = {"evidence": "legacy validation evidence"}