plan-auditor 2.6.2__tar.gz → 2.6.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/CHANGELOG.md +821 -747
  2. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/CITATION.cff +32 -32
  3. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/CONTRIBUTING.md +25 -18
  4. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/PKG-INFO +42 -28
  5. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/README.md +281 -266
  6. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/SECURITY.md +169 -165
  7. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/SKILL.md +198 -198
  8. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/publish_mode_contract.test.js +13 -9
  9. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/benchmark.md +10 -10
  10. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/check_attestation_claims.py +505 -482
  11. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/dependency-graph.md +1 -1
  12. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/formal-planning.md +26 -0
  13. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/index.md +110 -107
  14. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/integrations.md +1 -1
  15. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/quickstart.md +4 -1
  16. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/readme_size_baseline.json +10 -9
  17. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/release-status.md +124 -120
  18. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/hooks/README.md +1 -1
  19. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/hooks/gate_hook.py +1 -0
  20. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/package.json +66 -60
  21. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/pyproject.toml +155 -156
  22. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/references/plan-format.md +1 -1
  23. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/audit_check.py +278 -88
  24. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/contract.py +7 -1
  25. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/exec_trust.py +32 -2
  26. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/integrity.py +34 -2
  27. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/plan_graph.py +1 -2
  28. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/stop_gate.py +43 -6
  29. plan_auditor-2.6.5/scripts/traffic.py +1603 -0
  30. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/__init__.py +49 -49
  31. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/adversarial.py +4 -2
  32. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/agents.py +24 -240
  33. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/agents_hardening.py +14 -8
  34. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/assessment.py +47 -3
  35. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/cli.py +96 -1
  36. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/config.py +2 -2
  37. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/contracts.py +3 -1
  38. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/coverage.py +4 -2
  39. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/daemon.py +12 -9
  40. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/events.py +2 -2
  41. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/evidence.py +20 -2
  42. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/formal_compiler.py +19 -8
  43. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/formal_planning.py +44 -12
  44. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/gate.py +41 -0
  45. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/lifecycle.py +2 -2
  46. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/orchestrator.py +54 -36
  47. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/plans.py +30 -2
  48. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/policies.py +4 -1
  49. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/request_contract.py +227 -60
  50. plan_auditor-2.6.5/supervisor/requirements.py +100 -0
  51. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/seal_migration.py +1 -1
  52. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/sealing.py +82 -10
  53. plan_auditor-2.6.5/supervisor/traffic.py +631 -0
  54. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/watchdog.py +8 -8
  55. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/workspace.py +83 -11
  56. plan_auditor-2.6.5/tests/fuzz/fuzz_plan_graph.py +27 -0
  57. plan_auditor-2.6.5/tests/test_adversarial_secondary_signals_without_verdict_fabrication_20261018.py +144 -0
  58. plan_auditor-2.6.5/tests/test_agent_hardening_win_pid_branch_and_signed_ownership_20261018.py +202 -0
  59. plan_auditor-2.6.5/tests/test_agent_registry_disk_corruption_refusals_20261018.py +133 -0
  60. plan_auditor-2.6.5/tests/test_agent_registry_freeze_and_path_safety_20261018.py +314 -0
  61. plan_auditor-2.6.5/tests/test_agent_registry_legacy_failure_matrix_20261018.py +142 -0
  62. plan_auditor-2.6.5/tests/test_agent_registry_real_legacy_migration_20261018.py +127 -0
  63. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_agents_gate.py +12 -8
  64. plan_auditor-2.6.5/tests/test_assessment_signature_binding_reference.py +255 -0
  65. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_audit_check.py +0 -2
  66. plan_auditor-2.6.5/tests/test_audit_core_evidence_chain_unsigned_vs_authenticated_20261018.py +213 -0
  67. plan_auditor-2.6.5/tests/test_audit_core_runtime_validation_and_output_bounds_20261018.py +251 -0
  68. plan_auditor-2.6.5/tests/test_audit_core_strict_disk_process_failure_matrix_20261018.py +244 -0
  69. plan_auditor-2.6.5/tests/test_audit_freeze_registry_fail_closed_faults_20261018.py +140 -0
  70. plan_auditor-2.6.5/tests/test_audit_plan_structural_scientific_contracts_20261018.py +241 -0
  71. plan_auditor-2.6.5/tests/test_authoritative_request_binding_failure_matrix_20261018.py +264 -0
  72. plan_auditor-2.6.5/tests/test_check_isolation_launch_security_failclosed_gates_20261018.py +123 -0
  73. plan_auditor-2.6.5/tests/test_cli_daemon_boundary_outcomes_20261018.py +182 -0
  74. plan_auditor-2.6.5/tests/test_cli_final_audit_remaining_refusal_paths_20261018.py +151 -0
  75. plan_auditor-2.6.5/tests/test_cli_plan_verification_remaining_refusal_paths_20261018.py +162 -0
  76. plan_auditor-2.6.5/tests/test_cli_readonly_contract_edge_cases_20261018.py +178 -0
  77. plan_auditor-2.6.5/tests/test_cli_remaining_platform_and_dispatch_edges_20261018.py +105 -0
  78. plan_auditor-2.6.5/tests/test_cli_safe_readonly_and_registry_smoke_20261018.py +205 -0
  79. plan_auditor-2.6.5/tests/test_config_integrity_postwrite_failclosed_branches_20261018.py +100 -0
  80. plan_auditor-2.6.5/tests/test_control_plane_lifecycle_policy_hash_adversarial_20261018.py +188 -0
  81. plan_auditor-2.6.5/tests/test_core_audit_dispatch_failure_paths_20261018.py +247 -0
  82. plan_auditor-2.6.5/tests/test_core_audit_strict_runtime_and_workspace_fingerprints_20261018.py +204 -0
  83. plan_auditor-2.6.5/tests/test_core_check_command_output_and_secure_path_contracts_20261018.py +171 -0
  84. plan_auditor-2.6.5/tests/test_core_direct_script_import_fallbacks_20261018.py +39 -0
  85. plan_auditor-2.6.5/tests/test_core_evidence_tail_authenticity_failure_counts_20261018.py +190 -0
  86. plan_auditor-2.6.5/tests/test_core_final_audit_guard_failure_matrix_20261018.py +153 -0
  87. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_core_layers.py +9 -6
  88. plan_auditor-2.6.5/tests/test_core_legacy_snapshot_manifest_verification_20261018.py +219 -0
  89. plan_auditor-2.6.5/tests/test_core_platform_filesystem_final_edges_20261018.py +164 -0
  90. plan_auditor-2.6.5/tests/test_core_remaining_io_and_error_paths_20261018.py +127 -0
  91. plan_auditor-2.6.5/tests/test_core_snapshot_real_tree_and_path_security_20261018.py +146 -0
  92. plan_auditor-2.6.5/tests/test_core_snapshot_v3_postrestore_integrity_20261018.py +116 -0
  93. plan_auditor-2.6.5/tests/test_core_windows_and_process_failclosed_20261018.py +169 -0
  94. plan_auditor-2.6.5/tests/test_cross_process_determinism.py +111 -0
  95. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_daemon.py +20 -31
  96. plan_auditor-2.6.5/tests/test_daemon_entrypoint_stop_before_poll_20261018.py +52 -0
  97. plan_auditor-2.6.5/tests/test_daemon_lifecycle_and_crash_boundary_20261017.py +193 -0
  98. plan_auditor-2.6.5/tests/test_determinism_matrix.py +517 -0
  99. plan_auditor-2.6.5/tests/test_deterministic_hardening.py +571 -0
  100. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_docs_metadata.py +40 -25
  101. plan_auditor-2.6.5/tests/test_event_watchdog_failure_mode_scientific_audit_20261018.py +173 -0
  102. plan_auditor-2.6.5/tests/test_evidence_stream_authenticated_chain_fail_closed_20261018.py +336 -0
  103. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_exec_trust_gate.py +4 -5
  104. plan_auditor-2.6.5/tests/test_exec_trust_json_boundaries.py +65 -0
  105. plan_auditor-2.6.5/tests/test_exec_trust_remaining_fail_closed_contracts_20261018.py +138 -0
  106. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_execution_and_rotation.py +4 -4
  107. plan_auditor-2.6.5/tests/test_external_hmac_key_file_and_marker_finite_guards_20261018.py +61 -0
  108. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_extra_layers.py +7 -7
  109. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_failure_injection.py +10 -12
  110. plan_auditor-2.6.5/tests/test_final_coverage_actual_branches_20261018.py +252 -0
  111. plan_auditor-2.6.5/tests/test_formal_cli_exact_pddl_export_and_replay_20261018.py +185 -0
  112. plan_auditor-2.6.5/tests/test_formal_compiler_real_workspace_integrity_edges_20261018.py +470 -0
  113. plan_auditor-2.6.5/tests/test_formal_compiler_source_and_contract_refusal_20261017.py +173 -0
  114. plan_auditor-2.6.5/tests/test_formal_planner_external_result_integrity_matrix_20261018.py +295 -0
  115. plan_auditor-2.6.5/tests/test_formal_planner_failclosed_deep_boundary_matrix_20261018.py +283 -0
  116. plan_auditor-2.6.5/tests/test_formal_planner_last_branches_20261018.py +168 -0
  117. plan_auditor-2.6.5/tests/test_formal_planner_subprocess_protocol_boundary_20261018.py +206 -0
  118. plan_auditor-2.6.5/tests/test_formal_semantics_exact_binding_matrix_20261018.py +202 -0
  119. plan_auditor-2.6.5/tests/test_hardening_20261023.py +94 -0
  120. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_hooks.py +16 -11
  121. plan_auditor-2.6.5/tests/test_legacy_seal_migration_security_paths.py +269 -0
  122. plan_auditor-2.6.5/tests/test_llm_free_tool_ordering.py +178 -0
  123. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_npm_launcher.py +9 -8
  124. plan_auditor-2.6.5/tests/test_npm_publish_guard.py +49 -0
  125. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_npm_registry_visibility.py +0 -4
  126. plan_auditor-2.6.5/tests/test_orchestrator_full_audit_refusal_matrix_20261018.py +139 -0
  127. plan_auditor-2.6.5/tests/test_orchestrator_last_decision_paths_20261018.py +383 -0
  128. plan_auditor-2.6.5/tests/test_orchestrator_lifecycle_tools_evidence_20261018.py +113 -0
  129. plan_auditor-2.6.5/tests/test_orchestrator_malformed_evidence_failclosed_20261018.py +177 -0
  130. plan_auditor-2.6.5/tests/test_orchestrator_real_evidence_integrity_matrix_20261018.py +317 -0
  131. plan_auditor-2.6.5/tests/test_orchestrator_remaining_source_checks_20261018.py +163 -0
  132. plan_auditor-2.6.5/tests/test_orchestrator_workspace_outcome_gates_20261018.py +110 -0
  133. plan_auditor-2.6.5/tests/test_parallel_key_source_hardening.py +43 -0
  134. plan_auditor-2.6.5/tests/test_pid_registry_lock_real_hardening_remaining_edges_20261018.py +240 -0
  135. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_plan_byte_bound.py +6 -7
  136. plan_auditor-2.6.5/tests/test_plan_graph_last_invalid_dependency_and_output_edges_20261018.py +144 -0
  137. plan_auditor-2.6.5/tests/test_plan_paths_and_gate_priority_matrix_20261017.py +157 -0
  138. plan_auditor-2.6.5/tests/test_plan_policy_gate_last_safe_path_edges_20261018.py +134 -0
  139. plan_auditor-2.6.5/tests/test_plan_verifier_real_graph_and_fault_boundaries_20261018.py +204 -0
  140. plan_auditor-2.6.5/tests/test_policy_engine_direct_rules_and_file_security_20261018.py +409 -0
  141. plan_auditor-2.6.5/tests/test_priority_requirements_no_semantic_autopass_20261018.py +105 -0
  142. plan_auditor-2.6.5/tests/test_registry_auth_and_agent_ownership_edges_20261017.py +178 -0
  143. plan_auditor-2.6.5/tests/test_registry_authentication_corruption_matrix_20261018.py +133 -0
  144. plan_auditor-2.6.5/tests/test_registry_hmac_upgrade_exact_evidence_contract_20261018.py +178 -0
  145. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_registry_lock_partial.py +1 -0
  146. plan_auditor-2.6.5/tests/test_registry_real_liveness_locks_and_ownership_20261018.py +172 -0
  147. plan_auditor-2.6.5/tests/test_registry_signed_replay_and_head_faults_20261018.py +208 -0
  148. plan_auditor-2.6.5/tests/test_registry_writer_lock_real_fault_boundaries_20261018.py +92 -0
  149. plan_auditor-2.6.5/tests/test_request_authentication_failure_paths_20261018.py +344 -0
  150. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_request_contract_hardening.py +0 -2
  151. plan_auditor-2.6.5/tests/test_request_control_strict_json_atomic.py +114 -0
  152. plan_auditor-2.6.5/tests/test_requirement_plan_identity_isolation.py +40 -0
  153. plan_auditor-2.6.5/tests/test_requirements_and_hmac_status_contracts_20261017.py +151 -0
  154. plan_auditor-2.6.5/tests/test_root_isolation_and_requirement_reference.py +346 -0
  155. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_runtime_root_hardening.py +3 -3
  156. plan_auditor-2.6.5/tests/test_seal_monotonic_scope_and_auth_refusal_edges_20261018.py +336 -0
  157. plan_auditor-2.6.5/tests/test_sealed_contract_canonical_digest_and_path_edges_20261018.py +170 -0
  158. plan_auditor-2.6.5/tests/test_signed_marker_and_stop_hook_input.py +108 -0
  159. plan_auditor-2.6.5/tests/test_snapshot_zip_restore_adversarial_validation_20261018.py +195 -0
  160. plan_auditor-2.6.5/tests/test_stop_hook_exact_inbound_json_and_gate_contract_20261018.py +164 -0
  161. plan_auditor-2.6.5/tests/test_strict_config_and_final_audit_quiescence_20261017.py +189 -0
  162. plan_auditor-2.6.5/tests/test_strips_contract_validation_matrix_20261017.py +194 -0
  163. plan_auditor-2.6.5/tests/test_supervisor_and_evidence_strict_json.py +118 -0
  164. plan_auditor-2.6.5/tests/test_supervisor_cli_dispatch_privileged_state_contracts_20261018.py +220 -0
  165. plan_auditor-2.6.5/tests/test_traffic_certs_20261101.py +394 -0
  166. plan_auditor-2.6.5/tests/test_traffic_classification_20261101.py +349 -0
  167. plan_auditor-2.6.5/tests/test_traffic_core_20261101.py +707 -0
  168. plan_auditor-2.6.5/tests/test_traffic_lifecycle_20261101.py +1475 -0
  169. plan_auditor-2.6.5/tests/test_traffic_proxy_20261101.py +648 -0
  170. plan_auditor-2.6.5/tests/test_windows_daemon_pid_api_adaptor_faults_20261018.py +106 -0
  171. plan_auditor-2.6.5/tests/test_workspace_real_git_inventory_and_failures_20261018.py +256 -0
  172. plan_auditor-2.6.5/tests/test_workspace_snapshot_strict_and_atomic.py +91 -0
  173. plan_auditor-2.6.5/tests/tools/determinism_matrix.py +610 -0
  174. plan_auditor-2.6.5/tests/tools/determinism_workload.py +192 -0
  175. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/wheel_cli_smoke.py +2 -2
  176. plan_auditor-2.6.2/supervisor/requirements.py +0 -85
  177. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/.gitignore +0 -0
  178. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/CODE_OF_CONDUCT.md +0 -0
  179. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/LICENSE +0 -0
  180. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/launcher_contract.test.js +0 -0
  181. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/plan-auditor.js +0 -0
  182. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/prepublish_gate.js +0 -0
  183. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/prepublish_gate_contract.test.js +0 -0
  184. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/bin/prepublish_lifecycle.test.js +0 -0
  185. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/architecture.md +0 -0
  186. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/check_readme_size.py +0 -0
  187. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/cli.md +0 -0
  188. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/deployment-isolation.md +0 -0
  189. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/threat-model.md +0 -0
  190. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/docs/workspace-artifacts.md +0 -0
  191. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/examples/fib/.plan-auditor/plan.json +0 -0
  192. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/examples/fib/fib.py +0 -0
  193. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/examples/fib/request-source.json +0 -0
  194. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/examples/fib/test_fib.py +0 -0
  195. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/index.js +0 -0
  196. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/mkdocs.yml +0 -0
  197. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/__init__.py +0 -0
  198. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/scripts/check_isolation.py +0 -0
  199. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/audit_session.py +0 -0
  200. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/control_plane.py +0 -0
  201. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/exit_codes.py +0 -0
  202. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/formal_semantics.py +0 -0
  203. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/goals.py +0 -0
  204. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/integrity.py +0 -0
  205. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/lock_hardening.py +0 -0
  206. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/plan_verifier.py +0 -0
  207. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/supervisor/priority.py +0 -0
  208. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/request_fixture.py +0 -0
  209. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_adversarial.py +0 -0
  210. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_agent_registry_chain.py +0 -0
  211. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_attestation_guard.py +0 -0
  212. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_authenticated_integrity.py +0 -0
  213. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_cli.py +0 -0
  214. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_console_scripts.py +0 -0
  215. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_dependency_graph.py +0 -0
  216. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_doc_commands.py +0 -0
  217. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_doc_transcripts.py +0 -0
  218. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_events.py +0 -0
  219. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_evidence_authentication.py +0 -0
  220. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_exit_codes.py +0 -0
  221. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_formal_compiler.py +0 -0
  222. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_formal_planning.py +0 -0
  223. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_formal_semantics.py +0 -0
  224. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_full_contract_hardening.py +0 -0
  225. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_hmac_check_environment.py +0 -0
  226. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_import_graph.py +0 -0
  227. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_integration_hardening.py +0 -0
  228. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_linux_check_os_isolation.py +0 -0
  229. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_readme_quickstart.py +0 -0
  230. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_root_cause_fixes_v220.py +0 -0
  231. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_runtime_state_gitignore.py +0 -0
  232. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_supervisor_hardening_seam.py +0 -0
  233. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/test_trust_health_read.py +0 -0
  234. {plan_auditor-2.6.2 → plan_auditor-2.6.5}/tests/trusted_workspace.py +0 -0
@@ -1,748 +1,822 @@
1
- # Changelog
2
-
3
- All notable changes to plan-auditor. Versions are published to PyPI and npm.
4
-
5
- ## 2.6.2 — Exit-code contract and doc guards
6
-
7
- ### Refactoring
8
-
9
- - The CLI exit-code contract is now one module (`supervisor/exit_codes.py`) with
10
- the four documented meanings (0 verification passed, 1 verification failed,
11
- 2 request refused, 3 undetermined). The 48 literal returns scattered through
12
- `cli.py` are gone; `tests/test_exit_codes.py` pins `docs/cli.md`'s table to
13
- the enum so the two can no longer drift.
14
- - `supervisor/assessment.py` (the daemon-assessment persistence from the H3
15
- finding) now reaches the release line: the assessment is HMAC-signed over a
16
- dedicated domain, carries an evidence binding (key id, record count, chain
17
- tail) recomputed on read, and a keyless state stores UNKNOWN — never a
18
- PASS-shaped verdict a forged file could satisfy.
19
-
20
- ### Tests
21
-
22
- - `tests/test_doc_commands.py`: every command named in docs/README (including
23
- nested and core-entry-point forms) is checked against the live parser's
24
- recursive subcommand set, so a renamed command can no longer leave a
25
- documented flow pointing at nothing.
26
- - docs/benchmark.md now documents the authenticated flow (HMAC setup,
27
- `integrity init`, exit-code legend), and the test asserts it stays.
28
-
29
- ## 2.6.1 — Second-round audit findings (post-2.6.0)
30
-
31
- ## 2.6.1 — Second-round audit findings (post-2.6.0)
32
-
33
- ### Security
34
-
35
- - The standalone core entry point (`python scripts/audit_check.py audit .`,
36
- documented in README and docs/cli.md) accepted keyless evidence and printed
37
- `RESULT: audit PASSED` with exit 0, while the supervisor CLI refused. The two
38
- entry points now hold one rule: completion requires HMAC-authenticated
39
- evidence, and the core fails closed with a message naming the missing key and
40
- `plan-auditor integrity init .`.
41
- - The hook replay test now reproduces the actual reported bypass — key active,
42
- head checkpoint present, chain rebuilt with `alg: none` — instead of
43
- re-testing the keyless case. Regression tests for both core entry points
44
- (`tests/test_audit_check.py`).
45
-
46
- ### Performance
47
-
48
- - Evidence-head updates are incremental: appending a record no longer re-reads
49
- the whole log to count and tail it (O(N^2) across a run, ~125k line reads on a
50
- 500-step plan). The committed checkpoint supplies count and tail in O(1); a
51
- full scan runs only on the first append, rotation, and the explicit
52
- verifier. `test_evidence_head_update_is_incremental` pins it.
53
-
54
- ### CI
55
-
56
- - Two dead guards are now wired into `lint.yml`: the workflow-permission
57
- negative control and the README size baseline. Both ran for several releases
58
- without a caller, which is exactly how a gate drifts to "always pass"; the
59
- README budget was raised deliberately 248 -> 266 lines and is recorded as
60
- such in this entry.
61
- - `check_attestation_claims.py`'s version pin is part of the release process
62
- now (it named `2.4.3` while the tree was at `2.6.0`, and no check could see
63
- the drift).
64
-
65
- ### Docs
66
-
67
- - Stale release references pinned to the current version: README release
68
- status, SECURITY, docs/index.md, docs/release-status.md and CONTRIBUTING.md
69
- (`npm run test:tarball` no longer exists; `test:gate` is the real script).
70
- - README now states the gate truth: `hooks/gate_hook.py` is the primary gate,
71
- with `scripts/stop_gate.py` as the second documented entry point; the old
72
- claim of "no per-host adapter files" contradicted stop_gate.py.
73
- - SKILL.md rule 12 records the HMAC requirement for completion evidence.
74
-
75
- ## 2.6.0 — Audit hardening (medium/low findings)
76
-
77
- ### Housekeeping — audit hardening
78
-
79
- - Closes the findings of the full-repository audit: patched the concrete
80
- defects (correctness, fail-closed behaviour, platform independence),
81
- wired every standalone guard into CI, removed dead or duplicated code
82
- paths, and pinned every doc claim to a test so it cannot silently
83
- drift again. Regression tests fail without the corresponding fix.
84
-
85
- ## Unreleased
86
-
87
- ## 2.5.0 — Completion gate requires authenticated evidence
88
-
89
- ### Security
90
-
91
- - **C1 — keyless evidence could pass the completion gate.** The hash chain
92
- proves records were not *edited* after writing, but without an external HMAC
93
- key it can be rebuilt identically by anyone with write access to the
94
- workspace. The hook gate treated a rebuilt chain exactly like a genuine one.
95
- `scripts/audit_check.py` now separates the two claims: `verify_chain` reports
96
- chain integrity, the new `evidence_is_authenticated` reports whether records
97
- are attributable to a key holder, and `deterministic_passed` includes that
98
- verdict. Every record written without a key carries an explicit
99
- `"auth": {"alg": "none"}` descriptor; absence of authentication is reported,
100
- never assumed.
101
- - **H1 — a plain `plan verify` re-sealed plans under an activated request
102
- contract.** `--reseal` was refused after activation, but re-verifying an
103
- already-sealed workspace with a changed plan still rewrote the seal. Sealing
104
- under an activation now requires a new host-approved request generation, for
105
- `--reseal` and plain re-verify alike.
106
- - **H2 — the orchestrator threshold drifted from the contract.** The workspace
107
- gate hard-coded `format_version < 3` while every other gate enforced
108
- `MINIMUM_TRUSTED_SEAL_FORMAT` (4); both now read the shared constant.
109
-
110
- ### Changed (behaviour)
111
-
112
- - In a keyless workspace the hook no longer reports PASS: it exits non-zero
113
- and names the missing `PLAN_AUDITOR_HMAC_KEY` / `PLAN_AUDITOR_HMAC_KEY_FILE`
114
- configuration plus `plan-auditor integrity init` as the recovery step.
115
- Configure a key before the first audit you intend to claim. This is a
116
- deliberate fail-closed behaviour change; the five rules in `docs/index.md`
117
- now state it as a rule.
118
- - `plan verify`'s output for each plan gains the evidence authentication
119
- verdict (`plans.<key>.evidence.authenticated` /
120
- `.authentication_problem`), and the workspace report gains
121
- `evidence.authenticated`.
122
-
123
- ### Compatibility
124
-
125
- - Hash-chain format, seal format, and request-contract format are unchanged.
126
- Workspaces sealed without a key keep verifying as tamper-evident state; they
127
- simply no longer satisfy the completion gate until a key is configured and
128
- `plan-auditor integrity init .` upgrades the existing state.
129
-
130
- ### Tests
131
-
132
- - `tests/test_evidence_authentication.py`: unsigned records carry `alg: none`,
133
- a keyless chain is reported as unauthenticated while still chain-valid, an
134
- HMAC-backed chain is reported as authenticated, a configured key without a
135
- marker fails closed, and an invented auth descriptor is rejected.
136
- - `tests/test_hooks.py`: PASS requires the authenticated flow; two new gate
137
- tests replay the exact bypass (full chain rewrite, `auth: none`) and confirm
138
- the hook refuses.
139
- - Regressions for H1 (re-seal after activation is rejected) and H2
140
- (legacy seal rejected at the shared threshold).
141
-
142
- ## 2.4.6 — Release alignment
143
-
144
- - Publishes the 2.4.5 tree to PyPI and npm. The 2.4.5 commit landed after
145
- the 2.4.5 PyPI upload, so both registries were one commit behind main.
146
- No behavioural change beyond 2.4.5 itself.
147
-
148
- ## 2.4.5 — Opt-in Linux privilege-separated check execution
149
-
150
- ### Security
151
-
152
- - Add `PLAN_AUDITOR_CHECK_ISOLATION=required` with explicit non-root
153
- `PLAN_AUDITOR_CHECK_UID` / `PLAN_AUDITOR_CHECK_GID`: root-run Linux
154
- supervisors execute project-controlled checks under the named UID/GID with
155
- supplementary groups dropped, while the trusted process retains HMAC signing.
156
- - Require root-owned protected control state, trusted workspace ancestry,
157
- root-owned private HMAC key material and non-writable key directories.
158
- Missing/invalid isolation configuration fails closed.
159
- - Restrict the child environment to a small, documented allowlist, excluding
160
- HMAC credentials, unrelated API tokens, `HOME`, `PYTHONPATH` and SSH sockets.
161
- - Require real root-run Linux CI regression tests proving a child cannot read
162
- either a root-owned `0600` key file or `.plan-auditor` control state.
163
- - Document required host configuration. This is a Linux UID permission boundary,
164
- **not** a cross-platform container/VM, network or kernel sandbox; default
165
- same-user mode continues to have its documented limits.
166
-
167
- ## 2.4.4 — HMAC check subprocess boundary
168
-
169
- ### Security
170
-
171
- - Do not inherit `PLAN_AUDITOR_HMAC_KEY` or `PLAN_AUDITOR_HMAC_KEY_FILE`
172
- into project-controlled behavioral-check subprocesses. The supervisor
173
- retains these credentials to authenticate the resulting audit evidence.
174
- - Add regression tests for both credential variables, benign environment
175
- preservation, parent environment preservation, and the public `run_check`
176
- path.
177
- - Clarify that environment sanitisation is defense in depth, **not** OS
178
- sandboxing: an untrusted child running as the supervisor's user can still
179
- open any HMAC key file that user can read. Deliberately hostile agents need
180
- a separately isolated, keyless check-execution identity/container.
181
-
182
- ### Documentation
183
-
184
- - **README reduced from 362 to 248 lines with no surface lost.** The previous
185
- release traded a line target for coverage and stopped at 356, on the reasoning
186
- that the layer table, command tables and artifact list were the coverage gap.
187
- That was right about the priority and wrong about the arithmetic: the reduction
188
- had not been attempted. Detail now lives on the docs site and the README keeps a
189
- scannable map plus links. Measured against the same 66-surface checklist derived
190
- from the code, **0 surfaces are undocumented**: 37 still appear in the README and
191
- 29 moved to a named docs page.
192
- - The L0-L14 layer table became a five-row band map. It still names all fifteen
193
- layers, and the two facts that carry the design are now stated in the prose
194
- rather than buried in a row: **L10 (`scripts/audit_check.py`) is the only
195
- component that can mark a step `verified`** and **L13 (`gate.py`) is the only
196
- one that emits a final `PASS`/`FAIL`/`UNKNOWN`**. Per-layer detail was already
197
- in `docs/architecture.md`.
198
- - The fourteen workspace artifacts moved to a new **`docs/workspace-artifacts.md`**,
199
- which also records what is *not* written and why the files are separated
200
- (append-only evidence, host-owned input separate from agent-owned state, and a
201
- stale verdict being detectable). The README still says the tool writes under
202
- `.plan-auditor/` and links the page.
203
- - The full command table was already in `docs/cli.md`; the README now names the
204
- four entry points and the five check types, and `docs/cli.md` gained an explicit
205
- `0`/`1`/`2`/`3` exit-code legend so the codes have one canonical home.
206
- - `## Reference` was folded into `## Documentation` rather than kept as a second
207
- index. The heading name is unchanged on purpose: a test splits the README on it.
208
- - The `## Use it in CI` yaml block became one prose line pointing at
209
- `docs/integrations.md`.
210
- - The quick start keeps the structure `tests/test_readme_quickstart.py` requires:
211
- exactly two JSON blocks, one console block, and the same four commands. Both
212
- plan files and the transcript were compressed using the `...` elision the test
213
- already tolerates. **The `request_sha256` changed** because the documented
214
- `task` string was shortened, and it was re-derived by running the walkthrough,
215
- not computed: `d39e577eb0577d8c0c81231fdd7fc559d1c6045ecc5e5bd3a00e7e8f2f49197b`.
216
- - `docs/index.md` now links `workspace-artifacts.md` and `release-status.md`,
217
- which it did not, so the docs home is a real index rather than a partial one.
218
-
219
- - **`docs/check_readme_size.py` guards against re-inflation.** It fails when
220
- `README.md` exceeds a recorded line and word budget, **and** when any single
221
- `## ` section exceeds its own budget, so one section cannot quietly absorb the
222
- whole allowance. `docs/readme_size_baseline.json` holds the recorded budget
223
- (248 lines, 1490 words) and `--update` re-records it, printing a warning when a
224
- budget is raised rather than lowered. Verified by mutation: appending twelve
225
- invented bullets to `Honest limits` exits 1 naming that section, and a four-line
226
- prose expansion of `Documentation` exits 1 naming lines, words and that section.
227
- **It is not wired into CI by this change** — adding the job means editing
228
- `.github/workflows/`, which is outside this work's file ownership. Until it is
229
- wired, the guard only runs when invoked by hand.
230
-
231
- - The `2.4.3` attestation facts were re-measured rather than assumed: the PyPI
232
- per-file provenance endpoint returns `200` for both the wheel and the sdist, and
233
- the npm attestations endpoint returns `404`. The README keeps the two-line
234
- statement naming both channels, and `test_readme_states_the_npm_attestation_gap`
235
- still passes against it.
236
-
237
- ### Fixed
238
-
239
- - **Supply-chain claims are now measured, scoped and separated by mechanism.** The three
240
- things that get blurred into "attested" are now named separately wherever they appear
241
- in `README.md`, `SECURITY.md` and `docs/release-status.md`:
242
- 1. a **digest** (`dist.integrity`, `digests.sha256`) proves the bytes match what was
243
- published and says nothing about the build;
244
- 2. npm's **`dist.signatures`** is a registry *transport* signature over the packument,
245
- present for every package whether or not it was built in CI, and is never build
246
- provenance;
247
- 3. a **build attestation** (Sigstore/in-toto on npm, PEP 740 on PyPI) is the only one of
248
- the three that names a workflow, repository and commit.
249
- - **The current version was stale at `2.4.2` in the release-status claims** while `2.4.3` is
250
- the release on both registries. Refreshed, with the npm `shasum`, integrity, file count
251
- and unpacked size, and the PyPI wheel and sdist SHA-256, all re-measured. The npm values
252
- were re-checked by running `npm pack` on `main` (`45fd5ee`): integrity reproduces exactly.
253
- - **The PyPI integrity URL shape is called out explicitly**, because reading the wrong shape
254
- is how a false negative gets reported. PyPI serves attestations **per file**, so the path
255
- ends in `/<filename>/provenance`. `https://pypi.org/integrity/plan-auditor/2.4.3/` is not
256
- an endpoint and returns `404`; that `404` means "no such URL", **not** "no attestation".
257
- The per-file endpoint returns `200` with an in-toto v1 statement, predicate type
258
- `https://docs.pypi.org/attestations/publish/v1`, publisher
259
- `kind=GitHub, repository=Furox-Art/plan-auditor, workflow=release.yml, environment=pypi`,
260
- whose subject digest equals the SHA-256 PyPI serves for the file.
261
- - **The condition for npm provenance is stated as pending**, with the four facts it needs:
262
- a trusted publisher on npmjs.com for owner `Furox-Art`, package `plan-auditor`, workflow
263
- filename `npm-publish.yml`, and the environment the publish job declares. Nothing in this
264
- repository needs to change. Until that record exists, npm consumers verify by digest and
265
- the docs keep saying so.
266
- - `SECURITY.md` gained the per-channel verification commands and the mechanism table, so a
267
- reader can check a claim without trusting this repository.
268
-
269
- ### Added
270
-
271
- - **`docs/check_attestation_claims.py`** — a regression guard for supply-chain claims, with
272
- its own negative control. It rejects any attestation claim that names no channel, that
273
- states no definite status, that presents `dist.signatures` as provenance, or that calls a
274
- stale version current. Run it three ways:
275
-
276
- ```bash
277
- python docs/check_attestation_claims.py # scan the docs
278
- python docs/check_attestation_claims.py --online # also re-measure both registries
279
- python docs/check_attestation_claims.py --self-test # negative control
280
- ```
281
-
282
- The negative control feeds the guard five deliberately false claims and fails unless all
283
- five are rejected, plus one correct claim it must accept and two same-word-different-meaning
284
- cases (`docs/benchmark.md` measurement provenance, `docs/formal-planning.md` source
285
- provenance) it must not flag. A guard that cannot be shown to reject a known lie is not a
286
- guard, so `--self-test` is part of the deliverable rather than a nicety.
287
-
288
- It is not wired into CI, because this change set does not touch workflows. Adding one step
289
- to `.github/workflows/plan-audit.yml` that runs
290
- `python docs/check_attestation_claims.py --self-test && python docs/check_attestation_claims.py`
291
- would close that; until then it runs on demand.
292
-
293
- ### Not claimed
294
-
295
- - No security claim is weakened anywhere. npm is still described as digest-only, and the
296
- PyPI attestation is still described as present, because that is what the registries
297
- return.
298
-
299
- ## v2.4.3 - 2026-10-04
300
-
301
- A documentation release. The README restructure and the three corrections below
302
- land on PyPI's project page for the first time: `2.4.2`'s `long_description` is
303
- the old 499-line README and still carries the "so it cannot drift from reality"
304
- claim that this release removes. PyPI serves `description` per release, so only
305
- a new release can change it.
306
-
307
- **No behaviour change in `supervisor/`, in the deterministic core, or in the npm
308
- launcher.** Verified against the published artifacts, not the working tree:
309
- `supervisor/` has no commit since `311f4dc`, and the `index.js` and
310
- `bin/plan-auditor.js` inside the PyPI `2.4.2` wheel are byte-identical to those
311
- on `main`.
312
-
313
- Two packaging changes do reach users. Both are already live on npm at `2.4.2`,
314
- which was published at 16:16:46Z -- after #29 landed at 16:14:02Z -- so this is
315
- the first release in which they reach PyPI:
316
-
317
- - **The wheel's embedded `package.json` now declares `engines.node >=22.14.0`.**
318
- The `2.4.2` wheel says `>=18`, because it was uploaded 2026-10-02T23:06:40Z and
319
- therefore predates #27. Anyone copying the bundled launcher out of this wheel
320
- onto Node 18 or 20 now gets npm's engine warning.
321
- - **The sdist and npm tarball carry `bin/prepublish_gate.js`** in place of the
322
- `bin/check_tarball_contents.js` and `bin/verify_installed_launcher.js` it
323
- replaces. Both old scripts only ran under `prepublishOnly`; so does the new
324
- one. Installed behaviour is unchanged -- what a publisher executes differs.
325
-
326
-
327
- - **Three false claims in the README and quickstart are corrected.**
328
- - The quick-start transcript documented `request_sha256`
329
- `7b347f48...0db55f`. The CLI has never printed that value: `request_contract.py`
330
- stamps `plan_contract_sha256s` into the request before hashing, so the printed
331
- digest is not a hash of the source file. Running the documented walkthrough in
332
- a clean virtualenv yields `d7d47e409fc1c53b9830346740bac2a20e716aefc71e7396ad3db0ebbdd837f2`.
333
- Fixed in `README.md` and `docs/quickstart.md`. The value was unaffected by
334
- reformatting the JSON, because the digest is taken over the parsed contract
335
- rather than the file bytes.
336
- - The README claimed the transcript "cannot drift from reality" because
337
- `tests/test_readme_quickstart.py` executes it. It could. `_mask()` rewrites
338
- every 64-hex string to `<sha256>` and the transcript check is a subset test, so
339
- substituting `dead0000...` for the real digest left the suite green: measured
340
- at 389 passed, 0 failed. The claim is corrected and two new tests close the gap
341
- (see below).
342
- - The README and `CONTRIBUTING.md` both described `examples/fib` as shipping a
343
- "deliberately broken variant". It does not; the directory holds four files, none
344
- of them broken. `docs/benchmark.md` is where you break it yourself, and says so.
345
-
346
- - **`tests/test_readme_quickstart.py` can now fail on the two ways it used to
347
- pass.** Proven by mutation against this commit.
348
- - `test_readme_quickstart_hashes_are_not_normalised_away` compares the documented
349
- digests against the *unmasked* real output, so a fabricated hash is rejected.
350
- Replacing `request_sha256` with `dead0000...`: **389 passed / 0 failed before,
351
- 1 failed after**.
352
- - `test_readme_quickstart_json_keys_match_the_real_output` compares the JSON key
353
- sequence at each indentation level and only tolerates a shorter sequence where
354
- the document actually used a `...` marker. Dropping `deterministic_core` from
355
- the `audit` block, which had no elision, is now a failure. This check caught a
356
- real omission introduced while compressing this very README.
357
- - A third mutation, inserting a fabricated `plan_hash`, fails both the original
358
- subset test and the new hash test.
359
-
360
- - **The README now explains the repository instead of only the happy path.**
361
- Measured against a 60-surface checklist drawn from the code, coverage goes from
362
- 14/60 to 60/60. Added: the L0-L14 layer table with the two layers that can decide
363
- a verdict; all 11 command groups and their 17 nested actions; the other three
364
- console scripts including `plan-auditor-formal`'s `verify`/`export-pddl`/
365
- `make-check`; the core's `status`/`snapshot`/`rollback` modes; the `regex` check
366
- type and the rule that `regex` and `file_exists` are non-behavioural; profiles,
367
- run modes and the four LLM tiers; every file written under `.plan-auditor/`;
368
- `hooks/gate_hook.py` as the single authoritative gate with no per-host adapter
369
- files; exit codes including `3` for `UNKNOWN`; and
370
- `references/plan-format.md`.
371
- - Two checklist items from the audit were wrong and are documented as the code
372
- actually is: the tiers are `NO_LLM`/`SMALL_LOCAL`/`STRONG_LOCAL`/`REMOTE`
373
- (four, not "T1/T2/T3"), and there are no six hook adapters — `hooks/` contains
374
- `gate_hook.py` and its README, and the per-host wiring patterns are documented
375
- in `docs/integrations.md`.
376
-
377
- - **The 53-line release-status block moved to `docs/release-status.md`** and is in
378
- the mkdocs navigation. Almost all of it describes one version number and would be
379
- wrong at the next release. The README keeps two lines, and keeps them honest
380
- rather than dropping the substance: `2.4.2` is current on both registries, npm
381
- has no provenance attestation and returns `404` for one, and PyPI publishes with a
382
- PEP 740 attestation. `test_readme_states_the_npm_attestation_gap` still passes
383
- against the shortened text, so the move did not cost the supply-chain disclosure.
384
-
385
- - **Sections that GitHub or the docs already render are gone from the README:**
386
- the inline `Troubleshooting` block (a 158-line per-error guide lives in
387
- `docs/quickstart.md`), the standalone `npm` section, `Project links`, and
388
- `License`. README length falls from 499 to 356 lines.
389
-
390
- - **Two doc tests were updated because they pinned text that moved, not because
391
- they were inconvenient.** `test_readme_adoption_region_covers_the_essentials`
392
- used `## Troubleshooting` as its region sentinel; the sentinel is now
393
- `## Documentation`, and the ordering assertions it exists to protect are
394
- unchanged. `test_doc_transcripts.py` no longer requires the README to carry a
395
- failing run, but now also requires the README to link the page that does, and
396
- that page to still document the most common failure.
397
-
398
- - **A new test keeps the deleted troubleshooting reachable.**
399
- `test_readme_points_at_the_full_troubleshooting_page` fails if the README stops
400
- linking `docs/quickstart.md`, or if that page stops documenting
401
- `"request contract is not activated"`.
402
-
403
- - **A successful npm publish is no longer reported as a failed one.** Run
404
- 37136117550 published `plan-auditor@2.4.2` and then failed its own
405
- verification step one second later with `ERROR: npm reports 'nothing',
406
- expected 2.4.2`. `npm publish` returns when the registry's *write* path accepts
407
- the upload, while clients read from a CDN that converges asynchronously; the
408
- run's own timestamps show the window, with the probe at 16:15:10Z against a
409
- registry `time["2.4.2"]` of 16:16:46Z. The verification step now polls with a
410
- growing backoff over a bounded budget — 12 attempts, ~200s of waiting, first
411
- match wins — and a version that never appears still fails closed with a
412
- `::warning::` explaining what to check. Both directions are covered by
413
- `tests/test_npm_registry_visibility.py`.
414
- - **The poll queries the registry over HTTP instead of `npm view`.** `npm view`'s
415
- stdout is not a stable contract, its on-disk HTTP cache can answer from state
416
- staler than the registry, and it inherits `npm_config_*` and `NODE_AUTH_TOKEN`
417
- from the environment. `GET /<package>/<version>` is exactly what an
418
- independent reader requests, with no cache in between.
419
- - **Documentation now matches the registries.** `README.md`, `SECURITY.md` and
420
- `docs/index.md`, `docs/quickstart.md`, `docs/integrations.md` no longer say npm
421
- is unpublished or that the published builds are behind `main`. `2.4.2` is on
422
- both registries; `2.4.0` and `2.4.1` carried the defects and `2.4.2` is the
423
- fixed release.
424
- - **The attestation story is stated per registry, from the registries themselves.**
425
- PyPI `2.4.2` carries a PEP 740 provenance attestation. npm `2.4.2` does **not**:
426
- the attestations endpoint returns `404` and the packument has no `provenance`
427
- field, because it was published in token mode, which cannot mint one. The npm
428
- `dist.signatures` block is npm's own signature over the packument and is not
429
- described as provenance.
430
- - **The npm badge is retained** only after confirming the registry's `latest`
431
- (`2.4.2`) matches PyPI's version (`2.4.2`).
432
-
433
- ## v2.4.2 - 2026-10-03
434
-
435
- - **npm publishing is restored, and `2.4.2` exists because the published `2.4.1`
436
- npm build is broken.** Verified against the registry tarball, not against the
437
- repository: `plan-auditor@2.4.1` ships an `index.js` that passes
438
- `cwd: __dirname` to `spawn`, so `npx plan-auditor validate .` from a
439
- workspace directory resolves `.` against the *installed package directory* and
440
- reports `plan yok: .../node_modules/plan-auditor/.plan-auditor/plan.json`. The
441
- launcher starts and an absolute workspace path works, so the failure is silent
442
- and looks authoritative — it audits the wrong tree. `2.4.1` cannot be
443
- republished because npm versions are immutable, hence the patch bump.
444
- - **The launcher now runs the CLI in the caller's working directory.** `index.js`
445
- keeps `process.cwd()` and prepends the package directory to `PYTHONPATH`
446
- instead, so the bundled `supervisor` package stays importable without changing
447
- what a relative workspace path means.
448
- - **`npm publish` runs again.** The previous commit replaced the publish step
449
- with `echo "npm publishing is disabled" && exit 0`, so the workflow reported
450
- success while publishing nothing. Publishing is back, gated on the version not
451
- already existing on the registry, and selectable between OIDC trusted
452
- publishing and an `NPM_TOKEN` fallback that must be requested explicitly.
453
- Correction: `2.4.2` itself was published in **token mode** — the run log
454
- records `selected publish mode: token` — so it carries **no** provenance
455
- attestation. The attestation endpoint for `plan-auditor@2.4.2` returns `404`
456
- and the packument has no `provenance` field. Only PyPI publishes with
457
- attestation, via trusted publishing.
458
- - **The publish path proves the artifact works before uploading it.** The gate
459
- packs the tarball, installs it into a throwaway directory, and runs the
460
- *installed* `bin/plan-auditor.js` from an unrelated working directory against a
461
- throwaway workspace. The `2.4.0` syntax error and the `2.4.1` wrong-directory
462
- bug both fail that check.
463
- - **npm and PyPI now share one release trigger.** Touching
464
- `.github/pypi-release-trigger` on `main` publishes the same version to both
465
- registries, so the two cannot drift apart.
466
-
467
- ### OSS visibility and onboarding (shipped in `2.4.2`)
468
-
469
- Documentation and project-metadata work only. No behaviour in the supervisor, the
470
- deterministic core or the npm launcher changed. This work was merged before the
471
- `2.4.2` release commit, so it is part of `2.4.2` rather than still pending.
472
-
473
- - **The README now states the real release status instead of implying parity.** The
474
- published PyPI `2.4.1` was built 2026-09-29 and npm `2.4.1` 2026-10-01, from
475
- different commits, and neither is byte-identical to `main`. The README carries a
476
- table of what each published build actually contains, and says plainly which
477
- surface to use for the verified quick start. A maintainer note marks the section
478
- for deletion in the commit that bumps the version.
479
- - **The "ships with the package" claim in `docs/benchmark.md` was false and is now
480
- scoped.** The PyPI *wheel* contains only the `supervisor` and `scripts` packages;
481
- `examples/fib` ships in the repository and in the *sdist*. Verified against the
482
- published `plan_auditor-2.4.1-py3-none-any.whl`.
483
- - **`docs/benchmark.md` gained a provenance table.** Every remaining quality claim
484
- is tied to the exact command that produces it, plus the tool, the commit the text
485
- describes and where the live value lives. The coverage figure for any commit is
486
- deliberately not copied into the page, because a transcribed number goes stale;
487
- the command and the workflow comment are the only places it appears. No
488
- adoption, download or usage figure is printed anywhere, and telemetry is not
489
- collected.
490
- - **The skill path now says where the files come from.** The PyPI wheel ships no
491
- `SKILL.md`, `references/` or `hooks/`, so `pipx install plan-auditor` alone
492
- cannot use the Agent Skill path. The README and `docs/integrations.md` now give a
493
- concrete `git clone` plus copy command instead of saying "copy the repository".
494
- - **`docs/quickstart.md` no longer overstates its own verification.** It claimed
495
- "everything on this page is executed by `tests/test_readme_quickstart.py`"; that
496
- test parses the README's quick-start section only. The page now names the three
497
- tests that actually check it and their separate responsibilities.
498
- - **The `2.4.0` launcher troubleshooting entry was split by surface.** It conflated
499
- the npm launcher bug with the pip console script; npm `2.4.0` is named as the
500
- broken build and the fix is given per surface.
501
- - **Interpreter requirement is documented where it bites.** The examples invoke
502
- `python`; the note explains what to do on a system that only ships `python3`,
503
- and that the npm launcher already picks `python3` off Windows.
504
- - **README links are absolute and correct on every surface.** Repository-relative
505
- links are dead on the PyPI project page, which renders this same file as the
506
- package description. Every `docs/`, `SKILL.md`, `CHANGELOG.md`, `SECURITY.md`,
507
- `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `CITATION.cff` and `LICENSE` link is now
508
- absolute, and each target was checked over HTTP.
509
- - **A documentation URL is stated, and so is the reason there is no site yet.**
510
- `docs/index.md` is the canonical entry point. `mkdocs.yml` is configured but no
511
- GitHub Pages workflow exists, so the README no longer promises a rendered site
512
- and instead gives the two-command local build with the `mkdocs-material`
513
- dependency named. The old pointer to `CONTRIBUTING.md` for `mkdocs serve` was
514
- false, since that file did not mention mkdocs at all.
515
- - **"15 supervision layers" is now sourced.** The README attributes the count to
516
- the L0-L14 table in `docs/architecture.md` instead of stating it bare.
517
- - **A project-status section was added** without any download, star or user
518
- figure: pre-1.0, single maintainer, no external contributors yet, no measured
519
- comparison against other tools, and the note that human-readable output is
520
- Turkish with no locale switch yet.
521
- - **Governance files rewritten.** `SECURITY.md` gained a supported-versions table,
522
- the private advisory route, a response target and an explicit statement that
523
- there is no PGP key. `CODE_OF_CONDUCT.md` moved enforcement off the public
524
- issue tracker, which would have exposed reporters, onto a private address, and
525
- its Contact section now matches what Contributor Covenant 2.1 requires.
526
- - **`CONTRIBUTING.md` documents the workflow the code actually implements** — the
527
- real test and coverage commands, the seal and trust chain, exit codes, the
528
- `CHECK_TYPES` extension path, and the release procedure including the reason the
529
- two registries diverged.
530
- - **Issue and pull-request templates added**, plus a documentation URL in
531
- `CITATION.cff` and repository `topics`/`description` corrected to match what the
532
- project is.
533
- - **`mkdocs.yml`** gained `repo_name`, `edit_uri` so every page has an "edit on
534
- GitHub" link, and social links for the repository, PyPI, npm and the citation
535
- file. Navigation is unchanged and still covers every page.
536
-
537
- #### Re-verified against `main` after #24
538
-
539
- - **The README's release-status text was corrected against the merged code rather
540
- than the previous `main`.** The wheel now force-includes the Agent Skill assets
541
- under `plan_auditor_skill/`, so the earlier claim that a `pip` install cannot
542
- supply `SKILL.md`, `references/` or `hooks/` was true of the published `2.4.1`
543
- wheel and false of anything built from `main`. The README and
544
- `docs/integrations.md` now document both routes — a checkout, or the installed
545
- `plan_auditor_skill/` directory — with a command that prints its location, and
546
- the claim is scoped to the already-published build. `docs/` and `examples/` are
547
- still not in the wheel, which is stated as such.
548
- - **The npm surface was re-checked against the merged launcher, not the old one.**
549
- `index.js` now spawns the CLI with the caller's working directory and puts the
550
- package directory on `PYTHONPATH`. The published npm `2.4.1` still resolves a
551
- bare `.` against the installed package and can audit the wrong tree while
552
- looking authoritative, so the README and `docs/quickstart.md` say so, give the
553
- absolute-path workaround, and stop implying `npx` is unconditionally CI-safe.
554
- Exit-code propagation, the `bin` field and the `python`/`python3` selection are
555
- unchanged.
556
- - **The coverage command in the provenance table was stale and is fixed.** It named
557
- `--cov=supervisor --cov=scripts --cov-branch`, which measured the checkout. The
558
- merged `pyproject.toml` reads `branch`, `source_pkgs` and `fail_under` from
559
- `[tool.coverage.*]`, and `conftest.py` pins the suite to the installed
560
- distribution, so the documented command is now
561
- `python -m pytest tests/ -q --cov --cov-report=term-missing`.
562
- - **"The mkdocs step is not part of CI" is no longer true** and was removed.
563
- `docs (mkdocs --strict)` is a required check, pinned to `mkdocs==1.6.1` and
564
- `mkdocs-material==9.6.14`; the page now names those pins and adds
565
- `.github/scripts/check_dist_assets.py` to the reproduce list.
566
- - **`CONTRIBUTING.md` documents the gates that now exist**: `ruff` and `mypy`
567
- against ratchet baselines that refuse to record a higher count,
568
- `version-lockstep`, `workflow-syntax`, `build (wheel + sdist)` with a
569
- `twine check --strict`, `npm-launcher`, and `wheel-cli-smoke` on three
570
- platforms. The release section was rewritten: OIDC trusted publishing only, the
571
- GitHub release gated on the version-existence check, an npm `verify` job and an
572
- already-published gate, and `main` protected by a ruleset with no bypass actors.
573
- The local setup changed from `pip install -e .` to a non-editable install,
574
- because `conftest.py` resolves the runtime packages from site-packages and fails
575
- loudly if they are absent.
576
-
577
- ## The two published `2.4.1` builds are not the same artifact
578
-
579
- Recorded here so nobody has to rediscover it: the same version number was
580
- published to two registries from two different commits.
581
-
582
- | Build | Published | Notes |
583
- |---|---|---|
584
- | PyPI `2.4.1` | 2026-09-29 | Built before the documentation and packaging rewrite. 14 keywords; its sdist omits `index.js`, `bin/`, `mkdocs.yml`, `SECURITY.md`, `CITATION.cff`, `CODE_OF_CONDUCT.md` and `package.json`; its project page serves the previous README. |
585
- | npm `2.4.1` | 2026-10-01 | Built from the documentation rewrite; carries the `files` allowlist, the repaired launcher and the current README. |
586
-
587
- `pyproject.toml` was left at `2.4.1` and the release workflow skips a version
588
- that already exists on PyPI, so the metadata on `main` cannot be published without
589
- a version bump. That part is unchanged by this entry.
590
-
591
- The other half has been fixed since, by #24: the npm workflow now runs a `verify`
592
- job — the launcher tests and the packed-tarball check — before publishing, and
593
- refuses a version already on the registry, so the absence of any gate that let
594
- `2.4.0` ship a syntax error is no longer the state of the tree. `main` is also
595
- now protected by a ruleset with no bypass actors, so none of the required checks
596
- can be skipped by pushing to `main`.
597
-
598
- **Still outstanding:** the version bump itself. Until `2.4.2` is published to both
599
- registries, a `pip` user keeps seeing the pre-rewrite README on the project page.
600
-
601
- ## v2.4.1 — PyPI 2026-09-29, npm 2026-10-01
602
-
603
- ### Published to both registries
604
-
605
- - Metadata-only patch release: improved PyPI discovery keywords, classifiers, description, documentation links, and synchronized package version metadata.
606
-
607
- ### Published to npm only (built from the documentation rewrite)
608
-
609
- #### README rebuilt around a verified quick start
610
-
611
- - **README rebuilt around a verified quick start:** explicit problem/solution framing, "who it is for", `pipx` and `pip` install paths, a five-minute walkthrough, Agent Skill invocation table, a `plan-auditor doctor` troubleshooting section, accurate CI/PyPI/npm/license badges, and a stated list of honest limits.
612
- - **Removed an inaccurate Python API example.** The previous README showed `from plan_auditor import AuditContract`; no such module exists in the distribution, which ships `supervisor` and `scripts`. The README now documents the real CLI only.
613
- - **Quick start transcript is now machine-verified.** `tests/test_readme_quickstart.py` parses the documented JSON files and commands out of `README.md`, executes them through the installed CLI in a temporary workspace, and asserts every documented output line is real. The old transcript contained a `plan verify` block with fields that were never emitted.
614
- - **Documentation site is coherent and strict-build clean.** Added `docs/index.md` and `docs/cli.md`, rewrote `docs/quickstart.md` with a full troubleshooting guide, added a working `examples/fib/request-source.json` so the shipped example passes the supervisor gate, and repaired `mkdocs.yml` navigation, which referenced a non-existent `index.md` and omitted four existing pages. `mkdocs build --strict` now exits 0.
615
- - **`docs/benchmark.md` no longer contains fabricated comparative numbers.** It previously claimed results from "100 coding tasks" and detection rates for unnamed alternatives that no harness in this repository ever produced. It is replaced with a reproducible in-repo demo, the commands that back each remaining claim, and an explicit table of what is not measured.
616
- - **Deterministic documentation and packaging checks.** New `tests/test_docs_metadata.py` verifies mkdocs navigation targets exist and cover every page, relative links resolve, README badges reference real workflows, no unverified adoption or trust-badge claims are present, every documented `plan-auditor` invocation is in the parser surface, and `pyproject.toml`/`package.json`/`SKILL.md`/`CITATION.cff` versions, classifiers, keywords, URLs, and npm launcher wiring agree with what ships.
617
- - **`pyproject.toml` metadata completed:** broader keyword set, audience/topic/platform/typing classifiers, and `project.urls` entries for Security, Contributing, and Citation. `Development Status` and license metadata left unchanged because the published version is unchanged.
618
- - **`package.json` aligned with the real CLI.** `npm test` was `echo "Error: no test specified" && exit 1`; it now syntax-checks the launcher. Added an explicit `files` allowlist so the published tarball no longer ships the entire working tree (the previous package included local virtual environments and build output). Version bumped to `2.4.1` to match the Python distribution.
619
- - **`index.js` launcher repaired.** It contained a syntax error (`(code) =;`), so the published npm launcher could not run at all. It now forwards arguments to the Python CLI and propagates the child exit code. `files` ships everything the launcher needs at runtime (`supervisor`, `scripts`, `hooks`, `references`).
620
- - **Housekeeping:** `.gitignore` now excludes `.venv/`, `venv/`, `.tmp-site/`, `site/`, and `node_modules/`.
621
- - **Removed the broken PyPI downloads badge.** `img.shields.io/pypi/dm/plan-auditor`
622
- answers HTTP 200 while rendering `downloads: inaccessible`, because shields.io
623
- scrapes a third-party download API that is rate-limited or down. The README now
624
- links the PyPI and npm project pages instead, which always answer 200 and always
625
- carry the real numbers. No count is hardcoded. `tests/test_docs_metadata.py` now
626
- fails if a `img.shields.io/pypi/d...` badge or a hand-copied download count
627
- reappears anywhere in the docs.
628
-
629
- #### npm launcher exit codes and transcript fidelity
630
-
631
- - **Both npm entry points now propagate the verifier's exit code.** The fix was
632
- initially placed only in `index.js`, but `package.json` maps the `plan-auditor`
633
- bin to `bin/plan-auditor.js` — the file `npx plan-auditor` actually executes —
634
- and that file discarded the child's result entirely. Verified: `node
635
- bin/plan-auditor.js run <failing plan>` returned `0` while `index.js` returned
636
- `1`. `index.js` now exposes `runPythonAndPropagate()`, which attaches the
637
- `close` and `error` handlers and mirrors the code, and `bin/plan-auditor.js`
638
- calls it. Exit codes are `1` for a failed step, `2` for a blocked audit, `0` for
639
- a proven workspace, and nonzero if Python cannot be started.
640
- - **`tests/test_npm_launcher.py` covers every entry point and the real package.**
641
- Every exit-code assertion is parameterised over `bin/plan-auditor.js` and
642
- `index.js`, the launcher's code is compared against the underlying CLI's, and the
643
- failing/passing/blocked checks are repeated against the packed npm tarball so a
644
- fix that works only in the working tree fails the suite. All of these were
645
- confirmed to fail against the pre-fix `bin` (6 failures) and pass after.
646
- - `test_docs_metadata.py` and `test_doc_transcripts.py` now check that the `bin`
647
- field resolves to a launcher that propagates rather than a bare spawn, and that
648
- documented launcher commands reference a file that exists.
649
- - **Verbatim transcripts.** The README and `docs/quickstart.md`/`docs/cli.md` failure transcripts previously showed a single collapsed `çıktı:` line while the tool actually prints a `|`-joined multi-line traceback. Both blocks now reproduce the real output line for line and state that nothing is elided.
650
- - **Removed a fabricated transcript line from `docs/benchmark.md`:** it showed
651
- `çıktı: AssertionError` where the tool emits a full traceback. Replaced with
652
- verbatim output, plus the equivalent launcher invocation and its exit code.
653
- - **Transcripts are now stable across the CI matrix.** Two platform differences
654
- had made the documented failure output wrong somewhere: the core joins a
655
- captured traceback into one physical line separated by `" | "` (a Windows
656
- carriage return before each separator makes a text-mode reader render it as
657
- several lines), and Python 3.11+ adds the offending source line and a caret to
658
- tracebacks. The attempt transcripts in the README, `docs/quickstart.md` and
659
- `docs/cli.md` now use a stderr-free sentinel check (`sys.exit(3)`) so the
660
- rendered output is byte-identical on every Python version and platform, with a
661
- note explaining what a stderr-bearing check adds.
662
- - `tests/test_doc_transcripts.py` reads raw bytes and normalises `\r` itself
663
- instead of relying on text-mode universal newlines, and rejects any documented
664
- traceback that pins a version-specific frame.
665
- - **`.npmignore` added and `package.json` tightened:** `__pycache__` directories were still being packed despite the `files` allowlist, because the allowlist re-includes whole directories. Added `!**/__pycache__` and `!**/*.py[cod]` negation patterns and a minimal `.npmignore`. `npm pack --dry-run` now reports 59 entries / ~134 KB with zero `__pycache__`, `.venv`, or `site-packages` paths, down from 18502 entries / 29.1 MB.
666
-
667
- ## v2.4.0 — 2026-09-06
668
-
669
- - **Deterministic automatic formalization:** `plan-auditor-formalize compile` converts structured Plan Auditor requirements, coverage, dependencies, named outputs, `requires_outputs`, and deterministic checks into a conservative grounded STRIPS contract without asking an LLM to invent authoritative symbolic semantics.
670
- - **Independent formalization proof:** generated contracts carry a `formalization-source:<SHA256>` marker and are independently recompiled from the current plan; stale, weakened, omitted, or manually edited generated contracts are rejected even if their embedded contract SHA is recomputed.
671
- - **Dataflow-bound symbolic state:** generated actions prove step completion, named-output availability, and canonical `requirement-satisfied:<REQ-ID>` goals; downstream `requires_outputs` become symbolic preconditions while the existing dependency DAG remains independently enforced.
672
- - **Safe generated/manual split:** automatic formalization refuses to overwrite reviewed manual formal contracts and refuses to mutate already sealed plans. Domain semantics that cannot be derived mechanically remain explicit/manual rather than guessed.
673
- - **New installed CLI:** adds `plan-auditor-formalize compile|verify`; package and skill identity advance to stable `2.4.0`.
674
- - **Regression coverage:** tests exercise exact recompilation, source-staleness detection, goal weakening, dropped output preconditions, fake initial requirement goals, idempotence, sealed-plan mutation refusal, and manual-contract preservation.
675
-
676
- ## v2.3.0 — 2026-09-06
677
-
678
- - **Sealed classical planning:** non-trivial multi-step plans can embed one sealed `formal_planning` contract with explicit initial facts, final goals, one grounded STRIPS-style action per Plan Auditor step, symbolic preconditions, add effects and delete effects.
679
- - **Native LLM-free reachability:** monotonic contracts use deterministic forward reasoning while delete-effect contracts use bounded state-space search. Exhausting the configured state budget returns UNKNOWN instead of manufacturing PASS.
680
- - **PDDL / Fast Downward cross-check:** the same normalized contract can be exported as sanitized PDDL `:strips` and optionally cross-checked with Fast Downward without making an external planner or GPU a package dependency.
681
- - **Requirement-to-formal-goal binding:** every `must`/`should` requirement in a formalized plan must map to the canonical `requirement-satisfied:<REQ-ID>` final goal, may not be pre-satisfied in `initial_facts`, and must be produced by an action whose Plan Auditor step covers that same requirement.
682
- - **Semantic fail-closed hardening:** missing requirement goals, non-covering producers, pre-satisfied required goals, duplicate formal anchors and effect-free formal actions are rejected before formal reachability can contribute to PASS.
683
- - **Direct skill-name invocation:** `SKILL.md` and README now make `plan-auditor` the user-facing invocation; users do not need to hand-author plan JSON, STRIPS/PDDL contracts, seal metadata or evidence files for the normal skill workflow.
684
- - **Regression coverage:** dedicated formal-planning and semantic-binding tests cover reachable/unreachable contracts, delete-effect dead ends, alternate valid orderings, bounded search, PDDL sanitization, duplicate anchors, requirement omissions and formal-contract mutation.
685
- - **Version identity:** source/package/skill version advances to `2.3.0`, so the post-v2.2.0 formal-planning and semantic-binding code is no longer distributed under the already-published `2.2.0` identity.
686
-
687
- ## v2.2.0 — 2026-09-05
688
-
689
- - **Physical control-plane confinement:** existing `.plan-auditor`, plan, seal, request/activation and policy path components are inspected with `lstat`; symlinked parents/leaves cannot redefine the workspace trust root.
690
- - **Policy read confinement:** `load_config` authorizes only symlink-free workspace policy directories before policy loading; a resolved external symlink target is rejected before its files are read.
691
- - **Sealed scope freeze:** automatic monotonic strengthening remains available for extra deterministic checks/prerequisites, but new steps, requirements, tools, coverage assignments or declared outputs now require a new host-approved request generation.
692
- - **Safe v3→v4 migration:** `plan-auditor-migrate-seal` provides a representation-only migration path for exact full-contract v3 seals. It requires authoritative request alignment and refuses any plan-scope change.
693
- - **Seal self-consistency:** v3/v4 seals validate their contract hash and criteria count on load/save before being trusted or authenticated.
694
- - **Streaming evidence verification:** JSONL verification, hashing and HMAC migration retain one record/chunk at a time instead of reading complete evidence/archive files into RAM.
695
- - **PID-aware registry locking:** registry transaction locks carry PID + random token; live owners are never evicted because of age alone, and stale cleanup requires a provably dead PID plus unchanged lock identity.
696
- - **Activation semantics:** a lone `.plan-auditor/supervisor.json`, log or cache no longer makes a plans-free workspace look like an activated failed task; request/seal/evidence/plan/integrity/registry state still prevents deletion from degrading to `NO_PLAN`.
697
- - **Single audit freeze implementation:** the unused `workspace.audit.lock` implementation was removed; `audit.freeze.lock`/`final_audit_session` remains the sole workspace final-audit freeze path.
698
- - **Version identity:** source/package version advances to `2.2.0`, preventing post-v2.1.0 hardening from producing a different wheel under the already-published `2.1.0` version.
699
- - **Trust-boundary documentation:** deliberate same-OS-user interference is explicitly treated as an OS isolation problem; separate account/container/VM deployment is required when that attacker is in scope.
700
- - **Regression coverage:** new tests cover plan/policy symlink escapes, scope expansion, config-only activation, PID-aware registry locks, streaming evidence verification and exact legacy-seal migration.
701
-
702
- ## v2.1.0 — 2026-09-05
703
-
704
- - **Aggregate multi-plan completion:** the integrated supervisor now enumerates the default plan and every safe `.plan-auditor/plans/<name>.json` plan. Global PASS requires every active plan to PASS; a passing default plan cannot hide an unfinished named plan, and a named-only workspace is no longer misclassified as `NO_PLAN`.
705
- - **Explicit requirement coverage:** Supervisor Mode requires explicit requirements and deterministic `covers` links from steps. Every `must`/`should` requirement must be covered; omitted user requirements, unknown coverage IDs and duplicate requirement contracts block plan approval/PASS.
706
- - **Full-contract format-v3 seals:** seals bind task, requirements, required tools, step identity/order/title, requirement coverage, dependencies, required outputs, output contracts/checks, step checks, and the supervisor profile/mode/tier/policy fingerprint. Existing criteria may only be strengthened.
707
- - **Authenticated seals:** external-key HMAC integrity authenticates plan seals in addition to evidence, checkpoints, registry state and the integrity marker. Seal tampering or missing/wrong key material fails closed after integrity initialization.
708
- - **Configuration/policy downgrade prevention:** malformed supervisor configuration and configured policy files are explicit blocking errors. Profile/mode/tier and policy-file fingerprint are part of the sealed environment contract, so a post-seal downgrade is detected.
709
- - **Evidence concurrency and rotation continuity:** evidence append/rotation uses a cross-process exclusive lock, active evidence links the latest archive tail, and failed-attempt limits are counted across archived plus active evidence instead of resetting after rotation.
710
- - **Complete evidence verification:** `plan-auditor evidence verify` checks both active evidence and anchored archives.
711
- - **Safe plan addressing:** named plan IDs are validated as safe basenames and cannot use lexical `..` traversal outside `.plan-auditor/plans`.
712
- - **Canonical multi-agent ownership:** agent IDs are safe basenames and ownership paths are canonical workspace-relative paths before conflict comparison, preventing alternate spellings from evading `parallel-strict` overlap detection.
713
- - **Transactional full-scope rollback:** default snapshots carry a manifest with file type, mode and hash; rollback restores that state and removes files introduced after the snapshot. Explicit snapshot lists remain intentionally scoped.
714
- - **Stronger fresh-audit fingerprint:** workspace fingerprints include directories, file type and mode/executable bits in addition to contents and symlink targets.
715
- - **Internal shell removal:** workspace/world-model and watchdog Git probes use structured argv with `shell=False`; behavioral plan checks still require explicit `shell: true` for shell interpretation.
716
- - **Bounded verifier output:** command output is spooled/bounded instead of being captured without limit in memory; output-limit overflow fails the check.
717
- - **Doctor fail-closed exit codes:** `doctor` recomputes a current assessment and returns nonzero on FAIL/UNKNOWN instead of hiding a failed assessment behind exit 0.
718
- - **Authoritative hook unification:** `hooks/gate_hook.py` is the single integrated gate. `scripts/stop_gate.py` remains only as an exit-code-2 compatibility adapter and delegates to the same multi-plan full-contract assessment instead of trusting `status=verified`.
719
- - **Three-platform packaging and release gates:** real wheels are built and installed in clean virtual environments on Ubuntu, Windows and macOS. Smoke tests exercise multi-plan discovery, DAG/output dependencies, requirement coverage, full-contract seals, external-key HMAC, integrated audit, doctor, and evidence/integrity CLI paths. PyPI publishing waits for the same three-platform wheel preflight.
720
- - **Versioning:** development version advanced to `2.1.0` so the hardened source cannot be confused with the already-published `2.0.2` artifact.
721
- - **Regression hardening:** dedicated failure-injection tests cover named-plan bypasses, seal-contract weakening, environment downgrade, HMAC seal tampering, invalid config/policies, path traversal, evidence races/rotation/retry history, active-log tampering, rollback cleanup, executable-bit fingerprint changes, canonical agent conflicts, missing tools and bounded verifier output.
722
- - **Observational final audit:** a full audit fails if a verifier mutates product workspace content, type, or mode. Verification must prove pre-existing implementation state rather than creating the claimed result during the audit itself.
723
-
724
- ## v2.0.2 — 2026-09-05
725
-
726
- - **Integrated supervisor pipeline:** new `supervisor/orchestrator.py` wires plan validation, requirements, workspace state, policies, sealing, deterministic evidence, adversarial review, completion gating, lifecycle state, and multi-agent state into one fail-closed assessment.
727
- - **Real hook enforcement:** `hooks/gate_hook.py` no longer trusts `status=verified` or fabricated integrity flags; PASS requires a valid seal and matching fresh full-audit evidence.
728
- - **Deterministic audit freshness:** full audits record SHA-256 fingerprints of the verification contract and workspace contents instead of relying on filesystem mtimes.
729
- - **Cross-archive evidence anchoring:** rotations write archive anchors and L11 verifies internal JSONL hash chains and links between archives.
730
- - **Persistent multi-agent state:** ownership and heartbeat updates are written to the shared registry; separate processes see the same state, and `parallel-strict` rejects overlapping file claims.
731
- - **Adversarial gate integration:** high/critical L12 findings with no deterministic follow-up prevent PASS and produce UNKNOWN instead of being ignored.
732
- - **User policy loading:** deterministic JSON/TOML policies load from configured policy directories.
733
- - **Workspace safety:** file checks and rollback are path-confined; workspace observation is read-only and uses `shutil.which()` instead of shell redirections that could create files.
734
- - **Daemon integration:** the background supervisor persists an integrated assessment and final gate outcome on every observation cycle.
735
-
736
- ## v1.1.0 — 2026-09-03
737
-
738
- - **Portable skill paths:** `SKILL.md` resolves auditor scripts relative to the skill directory.
739
- - **Hard attempt cap:** `run` refuses a step after the configured failed-attempt cap unless explicitly forced.
740
- - **Multi-plan core support:** `--plan <name>` operates on `.plan-auditor/plans/<name>.json`; evidence is scoped per plan.
741
- - **Snapshot / rollback:** snapshot and rollback support were introduced and recorded in evidence.
742
- - **Evidence rotation:** large evidence logs rotate into `.plan-auditor/archive/`.
743
-
744
- ## v1.0.0 — 2026-09-03
745
-
746
- - Initial strict plan + independent auditor Agent Skill.
747
- - Machine-checkable `verify` checks (`run`, `exec`, `file_exists`, `regex`, `pytest`).
1
+ # Changelog
2
+
3
+ All notable changes to plan-auditor. Versions are published to PyPI and npm.
4
+
5
+ ## 2.6.5 — 2026-11-08
6
+
7
+ - The 2.6.4 tree failed every release gate for reasons the bump itself created:
8
+ `SKILL.md` still said 2.6.3 (version lockstep), README/SECURITY/docs still
9
+ called 2.6.3 the current release, the metadata test still expected the 3.10
10
+ classifier the support-floor bump removed, and `py311` turned 19 `UP017` plus
11
+ 3 `UP042` findings into new ratchet debt. All four are fixed here; the shipped
12
+ version moves to 2.6.5 so the npm publish guard sees a version-bump commit
13
+ with content it can prove.
14
+ - `tests/test_deterministic_hardening.py` fakes the `datetime` module; its
15
+ namespace now carries `UTC`, which the `datetime.UTC` alias in
16
+ `scripts/audit_check.py` needs.
17
+
18
+ ## 2.6.4 — 2026-11-07
19
+
20
+ - Python 3.10 support dropped: `requires-python` is now `>=3.11`, the 3.10
21
+ classifier and the `python-compat` matrix entry are gone, and the ruff
22
+ `target-version` follows (`py311`). No code change; the portfolio is
23
+ consolidating on a single support floor and 3.10 is out of upstream support.
24
+
25
+ ## 2.6.3 — 2026-10-21
26
+
27
+ This entry summarises the 53 commits since 2.6.2, including the six commits
28
+ labelled `security:`.
29
+
30
+ ### Security
31
+
32
+ - Reject ambiguous trust-seal JSON before any execution instead of
33
+ interpreting it permissively (`db8820b`).
34
+ - Reject ambiguous integrity markers and Stop-hook workspace input
35
+ (`92b4c85`).
36
+ - Reject ambiguous supervisor configuration and audit evidence
37
+ (`b1e9da8`).
38
+ - Reject ambiguous assessment JSON and cover legacy seal migration
39
+ (`cdd841a`).
40
+ - Bound strict request and workspace JSON and write it atomically
41
+ (`8b4f8de`).
42
+ - Reject duplicate requirement IDs and detach plan criteria so one plan
43
+ cannot claim another plan's evidence (`256d428`).
44
+
45
+ ### Fixed
46
+
47
+ - Reject fabricated requirement coverage and restore the strict CI quality
48
+ ratchets (`6b7970a`).
49
+ - Deterministic evidence hardening: the head checkpoint is the O(1) source
50
+ for chain tail/count, interrupted appends heal only when exactly one
51
+ record behind, stale locks are stolen only when their PID is provably
52
+ gone on this host, and rotation/snapshot names carry a monotonic sequence
53
+ (`3fc2fcd`).
54
+ - Fail closed on malformed authoritative requests and covering-step
55
+ structures (`06bdb11`), malformed formal anchors and STRIPS PDDL branches
56
+ (`7b44cf4`), malformed audit evidence in the orchestrator (`bc1f3fd`),
57
+ and non-object agent lock JSON (`c8fdb81`).
58
+ - Preserve Git porcelain status while verifying formal and OS gates
59
+ (`14adf07`).
60
+ - Create the missing GitHub releases, repair mojibake and correct the
61
+ codemeta version (`b62b6bd`); resolve the open CodeQL code-scanning
62
+ alerts (`ebce269`).
63
+ - Require full statement and branch coverage without skipped tests, with
64
+ added orchestrator, evidence, registry, daemon and Windows/POSIX
65
+ fail-closed test matrices (`89c3cf3`, `52f0bad` and the remaining test
66
+ commits in this release).
67
+
68
+ ### CI
69
+
70
+ - Add CodeQL analysis and resolve subpath action pins (`b9d76b0`), then fix
71
+ the resulting code-scanning alerts (`ebce269`).
72
+ - Cache test dependencies in the build, lint, plan-audit and wheel-smoke
73
+ workflows while retaining full plan audits (`f159379`).
74
+
75
+ ### Docs
76
+
77
+ - Repair double-encoded UTF-8 in the README (`0f7f381`) and remaining
78
+ mojibake, plus a duplicated 2.6.1 CHANGELOG heading (`b62b6bd`).
79
+ - Update the release-status version references to 2.6.3 in README,
80
+ SECURITY.md, docs/index.md, docs/release-status.md, SKILL.md,
81
+ CITATION.cff and codemeta.json.
82
+
83
+ ## 2.6.2 — Exit-code contract and doc guards
84
+
85
+ ### Refactoring
86
+
87
+ - The CLI exit-code contract is now one module (`supervisor/exit_codes.py`) with
88
+ the four documented meanings (0 verification passed, 1 verification failed,
89
+ 2 request refused, 3 undetermined). The 48 literal returns scattered through
90
+ `cli.py` are gone; `tests/test_exit_codes.py` pins `docs/cli.md`'s table to
91
+ the enum so the two can no longer drift.
92
+ - `supervisor/assessment.py` (the daemon-assessment persistence from the H3
93
+ finding) now reaches the release line: the assessment is HMAC-signed over a
94
+ dedicated domain, carries an evidence binding (key id, record count, chain
95
+ tail) recomputed on read, and a keyless state stores UNKNOWN — never a
96
+ PASS-shaped verdict a forged file could satisfy.
97
+
98
+ ### Tests
99
+
100
+ - `tests/test_doc_commands.py`: every command named in docs/README (including
101
+ nested and core-entry-point forms) is checked against the live parser's
102
+ recursive subcommand set, so a renamed command can no longer leave a
103
+ documented flow pointing at nothing.
104
+ - docs/benchmark.md now documents the authenticated flow (HMAC setup,
105
+ `integrity init`, exit-code legend), and the test asserts it stays.
106
+
107
+ ## 2.6.1 — Second-round audit findings (post-2.6.0)
108
+
109
+ ### Security
110
+
111
+ - The standalone core entry point (`python scripts/audit_check.py audit .`,
112
+ documented in README and docs/cli.md) accepted keyless evidence and printed
113
+ `RESULT: audit PASSED` with exit 0, while the supervisor CLI refused. The two
114
+ entry points now hold one rule: completion requires HMAC-authenticated
115
+ evidence, and the core fails closed with a message naming the missing key and
116
+ `plan-auditor integrity init .`.
117
+ - The hook replay test now reproduces the actual reported bypass — key active,
118
+ head checkpoint present, chain rebuilt with `alg: none` — instead of
119
+ re-testing the keyless case. Regression tests for both core entry points
120
+ (`tests/test_audit_check.py`).
121
+
122
+ ### Performance
123
+
124
+ - Evidence-head updates are incremental: appending a record no longer re-reads
125
+ the whole log to count and tail it (O(N^2) across a run, ~125k line reads on a
126
+ 500-step plan). The committed checkpoint supplies count and tail in O(1); a
127
+ full scan runs only on the first append, rotation, and the explicit
128
+ verifier. `test_evidence_head_update_is_incremental` pins it.
129
+
130
+ ### CI
131
+
132
+ - Two dead guards are now wired into `lint.yml`: the workflow-permission
133
+ negative control and the README size baseline. Both ran for several releases
134
+ without a caller, which is exactly how a gate drifts to "always pass"; the
135
+ README budget was raised deliberately 248 -> 266 lines and is recorded as
136
+ such in this entry.
137
+ - `check_attestation_claims.py`'s version pin is part of the release process
138
+ now (it named `2.4.3` while the tree was at `2.6.0`, and no check could see
139
+ the drift).
140
+
141
+ ### Docs
142
+
143
+ - Stale release references pinned to the current version: README release
144
+ status, SECURITY, docs/index.md, docs/release-status.md and CONTRIBUTING.md
145
+ (`npm run test:tarball` no longer exists; `test:gate` is the real script).
146
+ - README now states the gate truth: `hooks/gate_hook.py` is the primary gate,
147
+ with `scripts/stop_gate.py` as the second documented entry point; the old
148
+ claim of "no per-host adapter files" contradicted stop_gate.py.
149
+ - SKILL.md rule 12 records the HMAC requirement for completion evidence.
150
+
151
+ ## 2.6.0 — Audit hardening (medium/low findings)
152
+
153
+ ### Housekeeping — audit hardening
154
+
155
+ - Closes the findings of the full-repository audit: patched the concrete
156
+ defects (correctness, fail-closed behaviour, platform independence),
157
+ wired every standalone guard into CI, removed dead or duplicated code
158
+ paths, and pinned every doc claim to a test so it cannot silently
159
+ drift again. Regression tests fail without the corresponding fix.
160
+
161
+ ## 2.5.0 — Completion gate requires authenticated evidence
162
+
163
+ ### Security
164
+
165
+ - **C1 — keyless evidence could pass the completion gate.** The hash chain
166
+ proves records were not *edited* after writing, but without an external HMAC
167
+ key it can be rebuilt identically by anyone with write access to the
168
+ workspace. The hook gate treated a rebuilt chain exactly like a genuine one.
169
+ `scripts/audit_check.py` now separates the two claims: `verify_chain` reports
170
+ chain integrity, the new `evidence_is_authenticated` reports whether records
171
+ are attributable to a key holder, and `deterministic_passed` includes that
172
+ verdict. Every record written without a key carries an explicit
173
+ `"auth": {"alg": "none"}` descriptor; absence of authentication is reported,
174
+ never assumed.
175
+ - **H1 — a plain `plan verify` re-sealed plans under an activated request
176
+ contract.** `--reseal` was refused after activation, but re-verifying an
177
+ already-sealed workspace with a changed plan still rewrote the seal. Sealing
178
+ under an activation now requires a new host-approved request generation, for
179
+ `--reseal` and plain re-verify alike.
180
+ - **H2 — the orchestrator threshold drifted from the contract.** The workspace
181
+ gate hard-coded `format_version < 3` while every other gate enforced
182
+ `MINIMUM_TRUSTED_SEAL_FORMAT` (4); both now read the shared constant.
183
+
184
+ ### Changed (behaviour)
185
+
186
+ - In a keyless workspace the hook no longer reports PASS: it exits non-zero
187
+ and names the missing `PLAN_AUDITOR_HMAC_KEY` / `PLAN_AUDITOR_HMAC_KEY_FILE`
188
+ configuration plus `plan-auditor integrity init` as the recovery step.
189
+ Configure a key before the first audit you intend to claim. This is a
190
+ deliberate fail-closed behaviour change; the five rules in `docs/index.md`
191
+ now state it as a rule.
192
+ - `plan verify`'s output for each plan gains the evidence authentication
193
+ verdict (`plans.<key>.evidence.authenticated` /
194
+ `.authentication_problem`), and the workspace report gains
195
+ `evidence.authenticated`.
196
+
197
+ ### Compatibility
198
+
199
+ - Hash-chain format, seal format, and request-contract format are unchanged.
200
+ Workspaces sealed without a key keep verifying as tamper-evident state; they
201
+ simply no longer satisfy the completion gate until a key is configured and
202
+ `plan-auditor integrity init .` upgrades the existing state.
203
+
204
+ ### Tests
205
+
206
+ - `tests/test_evidence_authentication.py`: unsigned records carry `alg: none`,
207
+ a keyless chain is reported as unauthenticated while still chain-valid, an
208
+ HMAC-backed chain is reported as authenticated, a configured key without a
209
+ marker fails closed, and an invented auth descriptor is rejected.
210
+ - `tests/test_hooks.py`: PASS requires the authenticated flow; two new gate
211
+ tests replay the exact bypass (full chain rewrite, `auth: none`) and confirm
212
+ the hook refuses.
213
+ - Regressions for H1 (re-seal after activation is rejected) and H2
214
+ (legacy seal rejected at the shared threshold).
215
+
216
+ ## 2.4.6 — Release alignment
217
+
218
+ - Publishes the 2.4.5 tree to PyPI and npm. The 2.4.5 commit landed after
219
+ the 2.4.5 PyPI upload, so both registries were one commit behind main.
220
+ No behavioural change beyond 2.4.5 itself.
221
+
222
+ ## 2.4.5 — Opt-in Linux privilege-separated check execution
223
+
224
+ ### Security
225
+
226
+ - Add `PLAN_AUDITOR_CHECK_ISOLATION=required` with explicit non-root
227
+ `PLAN_AUDITOR_CHECK_UID` / `PLAN_AUDITOR_CHECK_GID`: root-run Linux
228
+ supervisors execute project-controlled checks under the named UID/GID with
229
+ supplementary groups dropped, while the trusted process retains HMAC signing.
230
+ - Require root-owned protected control state, trusted workspace ancestry,
231
+ root-owned private HMAC key material and non-writable key directories.
232
+ Missing/invalid isolation configuration fails closed.
233
+ - Restrict the child environment to a small, documented allowlist, excluding
234
+ HMAC credentials, unrelated API tokens, `HOME`, `PYTHONPATH` and SSH sockets.
235
+ - Require real root-run Linux CI regression tests proving a child cannot read
236
+ either a root-owned `0600` key file or `.plan-auditor` control state.
237
+ - Document required host configuration. This is a Linux UID permission boundary,
238
+ **not** a cross-platform container/VM, network or kernel sandbox; default
239
+ same-user mode continues to have its documented limits.
240
+
241
+ ## 2.4.4 — HMAC check subprocess boundary
242
+
243
+ ### Security
244
+
245
+ - Do not inherit `PLAN_AUDITOR_HMAC_KEY` or `PLAN_AUDITOR_HMAC_KEY_FILE`
246
+ into project-controlled behavioral-check subprocesses. The supervisor
247
+ retains these credentials to authenticate the resulting audit evidence.
248
+ - Add regression tests for both credential variables, benign environment
249
+ preservation, parent environment preservation, and the public `run_check`
250
+ path.
251
+ - Clarify that environment sanitisation is defense in depth, **not** OS
252
+ sandboxing: an untrusted child running as the supervisor's user can still
253
+ open any HMAC key file that user can read. Deliberately hostile agents need
254
+ a separately isolated, keyless check-execution identity/container.
255
+
256
+ ### Documentation
257
+
258
+ - **README reduced from 362 to 248 lines with no surface lost.** The previous
259
+ release traded a line target for coverage and stopped at 356, on the reasoning
260
+ that the layer table, command tables and artifact list were the coverage gap.
261
+ That was right about the priority and wrong about the arithmetic: the reduction
262
+ had not been attempted. Detail now lives on the docs site and the README keeps a
263
+ scannable map plus links. Measured against the same 66-surface checklist derived
264
+ from the code, **0 surfaces are undocumented**: 37 still appear in the README and
265
+ 29 moved to a named docs page.
266
+ - The L0-L14 layer table became a five-row band map. It still names all fifteen
267
+ layers, and the two facts that carry the design are now stated in the prose
268
+ rather than buried in a row: **L10 (`scripts/audit_check.py`) is the only
269
+ component that can mark a step `verified`** and **L13 (`gate.py`) is the only
270
+ one that emits a final `PASS`/`FAIL`/`UNKNOWN`**. Per-layer detail was already
271
+ in `docs/architecture.md`.
272
+ - The fourteen workspace artifacts moved to a new **`docs/workspace-artifacts.md`**,
273
+ which also records what is *not* written and why the files are separated
274
+ (append-only evidence, host-owned input separate from agent-owned state, and a
275
+ stale verdict being detectable). The README still says the tool writes under
276
+ `.plan-auditor/` and links the page.
277
+ - The full command table was already in `docs/cli.md`; the README now names the
278
+ four entry points and the five check types, and `docs/cli.md` gained an explicit
279
+ `0`/`1`/`2`/`3` exit-code legend so the codes have one canonical home.
280
+ - `## Reference` was folded into `## Documentation` rather than kept as a second
281
+ index. The heading name is unchanged on purpose: a test splits the README on it.
282
+ - The `## Use it in CI` yaml block became one prose line pointing at
283
+ `docs/integrations.md`.
284
+ - The quick start keeps the structure `tests/test_readme_quickstart.py` requires:
285
+ exactly two JSON blocks, one console block, and the same four commands. Both
286
+ plan files and the transcript were compressed using the `...` elision the test
287
+ already tolerates. **The `request_sha256` changed** because the documented
288
+ `task` string was shortened, and it was re-derived by running the walkthrough,
289
+ not computed: `d39e577eb0577d8c0c81231fdd7fc559d1c6045ecc5e5bd3a00e7e8f2f49197b`.
290
+ - `docs/index.md` now links `workspace-artifacts.md` and `release-status.md`,
291
+ which it did not, so the docs home is a real index rather than a partial one.
292
+
293
+ - **`docs/check_readme_size.py` guards against re-inflation.** It fails when
294
+ `README.md` exceeds a recorded line and word budget, **and** when any single
295
+ `## ` section exceeds its own budget, so one section cannot quietly absorb the
296
+ whole allowance. `docs/readme_size_baseline.json` holds the recorded budget
297
+ (248 lines, 1490 words) and `--update` re-records it, printing a warning when a
298
+ budget is raised rather than lowered. Verified by mutation: appending twelve
299
+ invented bullets to `Honest limits` exits 1 naming that section, and a four-line
300
+ prose expansion of `Documentation` exits 1 naming lines, words and that section.
301
+ **It is not wired into CI by this change** — adding the job means editing
302
+ `.github/workflows/`, which is outside this work's file ownership. Until it is
303
+ wired, the guard only runs when invoked by hand.
304
+
305
+ - The `2.4.3` attestation facts were re-measured rather than assumed: the PyPI
306
+ per-file provenance endpoint returns `200` for both the wheel and the sdist, and
307
+ the npm attestations endpoint returns `404`. The README keeps the two-line
308
+ statement naming both channels, and `test_readme_states_the_npm_attestation_gap`
309
+ still passes against it.
310
+
311
+ ### Fixed
312
+
313
+ - **Supply-chain claims are now measured, scoped and separated by mechanism.** The three
314
+ things that get blurred into "attested" are now named separately wherever they appear
315
+ in `README.md`, `SECURITY.md` and `docs/release-status.md`:
316
+ 1. a **digest** (`dist.integrity`, `digests.sha256`) proves the bytes match what was
317
+ published and says nothing about the build;
318
+ 2. npm's **`dist.signatures`** is a registry *transport* signature over the packument,
319
+ present for every package whether or not it was built in CI, and is never build
320
+ provenance;
321
+ 3. a **build attestation** (Sigstore/in-toto on npm, PEP 740 on PyPI) is the only one of
322
+ the three that names a workflow, repository and commit.
323
+ - **The current version was stale at `2.4.2` in the release-status claims** while `2.4.3` is
324
+ the release on both registries. Refreshed, with the npm `shasum`, integrity, file count
325
+ and unpacked size, and the PyPI wheel and sdist SHA-256, all re-measured. The npm values
326
+ were re-checked by running `npm pack` on `main` (`45fd5ee`): integrity reproduces exactly.
327
+ - **The PyPI integrity URL shape is called out explicitly**, because reading the wrong shape
328
+ is how a false negative gets reported. PyPI serves attestations **per file**, so the path
329
+ ends in `/<filename>/provenance`. `https://pypi.org/integrity/plan-auditor/2.4.3/` is not
330
+ an endpoint and returns `404`; that `404` means "no such URL", **not** "no attestation".
331
+ The per-file endpoint returns `200` with an in-toto v1 statement, predicate type
332
+ `https://docs.pypi.org/attestations/publish/v1`, publisher
333
+ `kind=GitHub, repository=Furox-Art/plan-auditor, workflow=release.yml, environment=pypi`,
334
+ whose subject digest equals the SHA-256 PyPI serves for the file.
335
+ - **The condition for npm provenance is stated as pending**, with the four facts it needs:
336
+ a trusted publisher on npmjs.com for owner `Furox-Art`, package `plan-auditor`, workflow
337
+ filename `npm-publish.yml`, and the environment the publish job declares. Nothing in this
338
+ repository needs to change. Until that record exists, npm consumers verify by digest and
339
+ the docs keep saying so.
340
+ - `SECURITY.md` gained the per-channel verification commands and the mechanism table, so a
341
+ reader can check a claim without trusting this repository.
342
+
343
+ ### Added
344
+
345
+ - **`docs/check_attestation_claims.py`** — a regression guard for supply-chain claims, with
346
+ its own negative control. It rejects any attestation claim that names no channel, that
347
+ states no definite status, that presents `dist.signatures` as provenance, or that calls a
348
+ stale version current. Run it three ways:
349
+
350
+ ```bash
351
+ python docs/check_attestation_claims.py # scan the docs
352
+ python docs/check_attestation_claims.py --online # also re-measure both registries
353
+ python docs/check_attestation_claims.py --self-test # negative control
354
+ ```
355
+
356
+ The negative control feeds the guard five deliberately false claims and fails unless all
357
+ five are rejected, plus one correct claim it must accept and two same-word-different-meaning
358
+ cases (`docs/benchmark.md` measurement provenance, `docs/formal-planning.md` source
359
+ provenance) it must not flag. A guard that cannot be shown to reject a known lie is not a
360
+ guard, so `--self-test` is part of the deliverable rather than a nicety.
361
+
362
+ It is not wired into CI, because this change set does not touch workflows. Adding one step
363
+ to `.github/workflows/plan-audit.yml` that runs
364
+ `python docs/check_attestation_claims.py --self-test && python docs/check_attestation_claims.py`
365
+ would close that; until then it runs on demand.
366
+
367
+ ### Not claimed
368
+
369
+ - No security claim is weakened anywhere. npm is still described as digest-only, and the
370
+ PyPI attestation is still described as present, because that is what the registries
371
+ return.
372
+
373
+ ## v2.4.3 - 2026-10-04
374
+
375
+ A documentation release. The README restructure and the three corrections below
376
+ land on PyPI's project page for the first time: `2.4.2`'s `long_description` is
377
+ the old 499-line README and still carries the "so it cannot drift from reality"
378
+ claim that this release removes. PyPI serves `description` per release, so only
379
+ a new release can change it.
380
+
381
+ **No behaviour change in `supervisor/`, in the deterministic core, or in the npm
382
+ launcher.** Verified against the published artifacts, not the working tree:
383
+ `supervisor/` has no commit since `311f4dc`, and the `index.js` and
384
+ `bin/plan-auditor.js` inside the PyPI `2.4.2` wheel are byte-identical to those
385
+ on `main`.
386
+
387
+ Two packaging changes do reach users. Both are already live on npm at `2.4.2`,
388
+ which was published at 16:16:46Z -- after #29 landed at 16:14:02Z -- so this is
389
+ the first release in which they reach PyPI:
390
+
391
+ - **The wheel's embedded `package.json` now declares `engines.node >=22.14.0`.**
392
+ The `2.4.2` wheel says `>=18`, because it was uploaded 2026-10-02T23:06:40Z and
393
+ therefore predates #27. Anyone copying the bundled launcher out of this wheel
394
+ onto Node 18 or 20 now gets npm's engine warning.
395
+ - **The sdist and npm tarball carry `bin/prepublish_gate.js`** in place of the
396
+ `bin/check_tarball_contents.js` and `bin/verify_installed_launcher.js` it
397
+ replaces. Both old scripts only ran under `prepublishOnly`; so does the new
398
+ one. Installed behaviour is unchanged -- what a publisher executes differs.
399
+
400
+
401
+ - **Three false claims in the README and quickstart are corrected.**
402
+ - The quick-start transcript documented `request_sha256`
403
+ `7b347f48...0db55f`. The CLI has never printed that value: `request_contract.py`
404
+ stamps `plan_contract_sha256s` into the request before hashing, so the printed
405
+ digest is not a hash of the source file. Running the documented walkthrough in
406
+ a clean virtualenv yields `d7d47e409fc1c53b9830346740bac2a20e716aefc71e7396ad3db0ebbdd837f2`.
407
+ Fixed in `README.md` and `docs/quickstart.md`. The value was unaffected by
408
+ reformatting the JSON, because the digest is taken over the parsed contract
409
+ rather than the file bytes.
410
+ - The README claimed the transcript "cannot drift from reality" because
411
+ `tests/test_readme_quickstart.py` executes it. It could. `_mask()` rewrites
412
+ every 64-hex string to `<sha256>` and the transcript check is a subset test, so
413
+ substituting `dead0000...` for the real digest left the suite green: measured
414
+ at 389 passed, 0 failed. The claim is corrected and two new tests close the gap
415
+ (see below).
416
+ - The README and `CONTRIBUTING.md` both described `examples/fib` as shipping a
417
+ "deliberately broken variant". It does not; the directory holds four files, none
418
+ of them broken. `docs/benchmark.md` is where you break it yourself, and says so.
419
+
420
+ - **`tests/test_readme_quickstart.py` can now fail on the two ways it used to
421
+ pass.** Proven by mutation against this commit.
422
+ - `test_readme_quickstart_hashes_are_not_normalised_away` compares the documented
423
+ digests against the *unmasked* real output, so a fabricated hash is rejected.
424
+ Replacing `request_sha256` with `dead0000...`: **389 passed / 0 failed before,
425
+ 1 failed after**.
426
+ - `test_readme_quickstart_json_keys_match_the_real_output` compares the JSON key
427
+ sequence at each indentation level and only tolerates a shorter sequence where
428
+ the document actually used a `...` marker. Dropping `deterministic_core` from
429
+ the `audit` block, which had no elision, is now a failure. This check caught a
430
+ real omission introduced while compressing this very README.
431
+ - A third mutation, inserting a fabricated `plan_hash`, fails both the original
432
+ subset test and the new hash test.
433
+
434
+ - **The README now explains the repository instead of only the happy path.**
435
+ Measured against a 60-surface checklist drawn from the code, coverage goes from
436
+ 14/60 to 60/60. Added: the L0-L14 layer table with the two layers that can decide
437
+ a verdict; all 11 command groups and their 17 nested actions; the other three
438
+ console scripts including `plan-auditor-formal`'s `verify`/`export-pddl`/
439
+ `make-check`; the core's `status`/`snapshot`/`rollback` modes; the `regex` check
440
+ type and the rule that `regex` and `file_exists` are non-behavioural; profiles,
441
+ run modes and the four LLM tiers; every file written under `.plan-auditor/`;
442
+ `hooks/gate_hook.py` as the single authoritative gate with no per-host adapter
443
+ files; exit codes including `3` for `UNKNOWN`; and
444
+ `references/plan-format.md`.
445
+ - Two checklist items from the audit were wrong and are documented as the code
446
+ actually is: the tiers are `NO_LLM`/`SMALL_LOCAL`/`STRONG_LOCAL`/`REMOTE`
447
+ (four, not "T1/T2/T3"), and there are no six hook adapters — `hooks/` contains
448
+ `gate_hook.py` and its README, and the per-host wiring patterns are documented
449
+ in `docs/integrations.md`.
450
+
451
+ - **The 53-line release-status block moved to `docs/release-status.md`** and is in
452
+ the mkdocs navigation. Almost all of it describes one version number and would be
453
+ wrong at the next release. The README keeps two lines, and keeps them honest
454
+ rather than dropping the substance: `2.4.2` is current on both registries, npm
455
+ has no provenance attestation and returns `404` for one, and PyPI publishes with a
456
+ PEP 740 attestation. `test_readme_states_the_npm_attestation_gap` still passes
457
+ against the shortened text, so the move did not cost the supply-chain disclosure.
458
+
459
+ - **Sections that GitHub or the docs already render are gone from the README:**
460
+ the inline `Troubleshooting` block (a 158-line per-error guide lives in
461
+ `docs/quickstart.md`), the standalone `npm` section, `Project links`, and
462
+ `License`. README length falls from 499 to 356 lines.
463
+
464
+ - **Two doc tests were updated because they pinned text that moved, not because
465
+ they were inconvenient.** `test_readme_adoption_region_covers_the_essentials`
466
+ used `## Troubleshooting` as its region sentinel; the sentinel is now
467
+ `## Documentation`, and the ordering assertions it exists to protect are
468
+ unchanged. `test_doc_transcripts.py` no longer requires the README to carry a
469
+ failing run, but now also requires the README to link the page that does, and
470
+ that page to still document the most common failure.
471
+
472
+ - **A new test keeps the deleted troubleshooting reachable.**
473
+ `test_readme_points_at_the_full_troubleshooting_page` fails if the README stops
474
+ linking `docs/quickstart.md`, or if that page stops documenting
475
+ `"request contract is not activated"`.
476
+
477
+ - **A successful npm publish is no longer reported as a failed one.** Run
478
+ 37136117550 published `plan-auditor@2.4.2` and then failed its own
479
+ verification step one second later with `ERROR: npm reports 'nothing',
480
+ expected 2.4.2`. `npm publish` returns when the registry's *write* path accepts
481
+ the upload, while clients read from a CDN that converges asynchronously; the
482
+ run's own timestamps show the window, with the probe at 16:15:10Z against a
483
+ registry `time["2.4.2"]` of 16:16:46Z. The verification step now polls with a
484
+ growing backoff over a bounded budget — 12 attempts, ~200s of waiting, first
485
+ match wins — and a version that never appears still fails closed with a
486
+ `::warning::` explaining what to check. Both directions are covered by
487
+ `tests/test_npm_registry_visibility.py`.
488
+ - **The poll queries the registry over HTTP instead of `npm view`.** `npm view`'s
489
+ stdout is not a stable contract, its on-disk HTTP cache can answer from state
490
+ staler than the registry, and it inherits `npm_config_*` and `NODE_AUTH_TOKEN`
491
+ from the environment. `GET /<package>/<version>` is exactly what an
492
+ independent reader requests, with no cache in between.
493
+ - **Documentation now matches the registries.** `README.md`, `SECURITY.md` and
494
+ `docs/index.md`, `docs/quickstart.md`, `docs/integrations.md` no longer say npm
495
+ is unpublished or that the published builds are behind `main`. `2.4.2` is on
496
+ both registries; `2.4.0` and `2.4.1` carried the defects and `2.4.2` is the
497
+ fixed release.
498
+ - **The attestation story is stated per registry, from the registries themselves.**
499
+ PyPI `2.4.2` carries a PEP 740 provenance attestation. npm `2.4.2` does **not**:
500
+ the attestations endpoint returns `404` and the packument has no `provenance`
501
+ field, because it was published in token mode, which cannot mint one. The npm
502
+ `dist.signatures` block is npm's own signature over the packument and is not
503
+ described as provenance.
504
+ - **The npm badge is retained** only after confirming the registry's `latest`
505
+ (`2.4.2`) matches PyPI's version (`2.4.2`).
506
+
507
+ ## v2.4.2 - 2026-10-03
508
+
509
+ - **npm publishing is restored, and `2.4.2` exists because the published `2.4.1`
510
+ npm build is broken.** Verified against the registry tarball, not against the
511
+ repository: `plan-auditor@2.4.1` ships an `index.js` that passes
512
+ `cwd: __dirname` to `spawn`, so `npx plan-auditor validate .` from a
513
+ workspace directory resolves `.` against the *installed package directory* and
514
+ reports `plan yok: .../node_modules/plan-auditor/.plan-auditor/plan.json`. The
515
+ launcher starts and an absolute workspace path works, so the failure is silent
516
+ and looks authoritative — it audits the wrong tree. `2.4.1` cannot be
517
+ republished because npm versions are immutable, hence the patch bump.
518
+ - **The launcher now runs the CLI in the caller's working directory.** `index.js`
519
+ keeps `process.cwd()` and prepends the package directory to `PYTHONPATH`
520
+ instead, so the bundled `supervisor` package stays importable without changing
521
+ what a relative workspace path means.
522
+ - **`npm publish` runs again.** The previous commit replaced the publish step
523
+ with `echo "npm publishing is disabled" && exit 0`, so the workflow reported
524
+ success while publishing nothing. Publishing is back, gated on the version not
525
+ already existing on the registry, and selectable between OIDC trusted
526
+ publishing and an `NPM_TOKEN` fallback that must be requested explicitly.
527
+ Correction: `2.4.2` itself was published in **token mode** — the run log
528
+ records `selected publish mode: token` — so it carries **no** provenance
529
+ attestation. The attestation endpoint for `plan-auditor@2.4.2` returns `404`
530
+ and the packument has no `provenance` field. Only PyPI publishes with
531
+ attestation, via trusted publishing.
532
+ - **The publish path proves the artifact works before uploading it.** The gate
533
+ packs the tarball, installs it into a throwaway directory, and runs the
534
+ *installed* `bin/plan-auditor.js` from an unrelated working directory against a
535
+ throwaway workspace. The `2.4.0` syntax error and the `2.4.1` wrong-directory
536
+ bug both fail that check.
537
+ - **npm and PyPI now share one release trigger.** Touching
538
+ `.github/pypi-release-trigger` on `main` publishes the same version to both
539
+ registries, so the two cannot drift apart.
540
+
541
+ ### OSS visibility and onboarding (shipped in `2.4.2`)
542
+
543
+ Documentation and project-metadata work only. No behaviour in the supervisor, the
544
+ deterministic core or the npm launcher changed. This work was merged before the
545
+ `2.4.2` release commit, so it is part of `2.4.2` rather than still pending.
546
+
547
+ - **The README now states the real release status instead of implying parity.** The
548
+ published PyPI `2.4.1` was built 2026-09-29 and npm `2.4.1` 2026-10-01, from
549
+ different commits, and neither is byte-identical to `main`. The README carries a
550
+ table of what each published build actually contains, and says plainly which
551
+ surface to use for the verified quick start. A maintainer note marks the section
552
+ for deletion in the commit that bumps the version.
553
+ - **The "ships with the package" claim in `docs/benchmark.md` was false and is now
554
+ scoped.** The PyPI *wheel* contains only the `supervisor` and `scripts` packages;
555
+ `examples/fib` ships in the repository and in the *sdist*. Verified against the
556
+ published `plan_auditor-2.4.1-py3-none-any.whl`.
557
+ - **`docs/benchmark.md` gained a provenance table.** Every remaining quality claim
558
+ is tied to the exact command that produces it, plus the tool, the commit the text
559
+ describes and where the live value lives. The coverage figure for any commit is
560
+ deliberately not copied into the page, because a transcribed number goes stale;
561
+ the command and the workflow comment are the only places it appears. No
562
+ adoption, download or usage figure is printed anywhere, and telemetry is not
563
+ collected.
564
+ - **The skill path now says where the files come from.** The PyPI wheel ships no
565
+ `SKILL.md`, `references/` or `hooks/`, so `pipx install plan-auditor` alone
566
+ cannot use the Agent Skill path. The README and `docs/integrations.md` now give a
567
+ concrete `git clone` plus copy command instead of saying "copy the repository".
568
+ - **`docs/quickstart.md` no longer overstates its own verification.** It claimed
569
+ "everything on this page is executed by `tests/test_readme_quickstart.py`"; that
570
+ test parses the README's quick-start section only. The page now names the three
571
+ tests that actually check it and their separate responsibilities.
572
+ - **The `2.4.0` launcher troubleshooting entry was split by surface.** It conflated
573
+ the npm launcher bug with the pip console script; npm `2.4.0` is named as the
574
+ broken build and the fix is given per surface.
575
+ - **Interpreter requirement is documented where it bites.** The examples invoke
576
+ `python`; the note explains what to do on a system that only ships `python3`,
577
+ and that the npm launcher already picks `python3` off Windows.
578
+ - **README links are absolute and correct on every surface.** Repository-relative
579
+ links are dead on the PyPI project page, which renders this same file as the
580
+ package description. Every `docs/`, `SKILL.md`, `CHANGELOG.md`, `SECURITY.md`,
581
+ `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `CITATION.cff` and `LICENSE` link is now
582
+ absolute, and each target was checked over HTTP.
583
+ - **A documentation URL is stated, and so is the reason there is no site yet.**
584
+ `docs/index.md` is the canonical entry point. `mkdocs.yml` is configured but no
585
+ GitHub Pages workflow exists, so the README no longer promises a rendered site
586
+ and instead gives the two-command local build with the `mkdocs-material`
587
+ dependency named. The old pointer to `CONTRIBUTING.md` for `mkdocs serve` was
588
+ false, since that file did not mention mkdocs at all.
589
+ - **"15 supervision layers" is now sourced.** The README attributes the count to
590
+ the L0-L14 table in `docs/architecture.md` instead of stating it bare.
591
+ - **A project-status section was added** without any download, star or user
592
+ figure: pre-1.0, single maintainer, no external contributors yet, no measured
593
+ comparison against other tools, and the note that human-readable output is
594
+ Turkish with no locale switch yet.
595
+ - **Governance files rewritten.** `SECURITY.md` gained a supported-versions table,
596
+ the private advisory route, a response target and an explicit statement that
597
+ there is no PGP key. `CODE_OF_CONDUCT.md` moved enforcement off the public
598
+ issue tracker, which would have exposed reporters, onto a private address, and
599
+ its Contact section now matches what Contributor Covenant 2.1 requires.
600
+ - **`CONTRIBUTING.md` documents the workflow the code actually implements** — the
601
+ real test and coverage commands, the seal and trust chain, exit codes, the
602
+ `CHECK_TYPES` extension path, and the release procedure including the reason the
603
+ two registries diverged.
604
+ - **Issue and pull-request templates added**, plus a documentation URL in
605
+ `CITATION.cff` and repository `topics`/`description` corrected to match what the
606
+ project is.
607
+ - **`mkdocs.yml`** gained `repo_name`, `edit_uri` so every page has an "edit on
608
+ GitHub" link, and social links for the repository, PyPI, npm and the citation
609
+ file. Navigation is unchanged and still covers every page.
610
+
611
+ #### Re-verified against `main` after #24
612
+
613
+ - **The README's release-status text was corrected against the merged code rather
614
+ than the previous `main`.** The wheel now force-includes the Agent Skill assets
615
+ under `plan_auditor_skill/`, so the earlier claim that a `pip` install cannot
616
+ supply `SKILL.md`, `references/` or `hooks/` was true of the published `2.4.1`
617
+ wheel and false of anything built from `main`. The README and
618
+ `docs/integrations.md` now document both routes — a checkout, or the installed
619
+ `plan_auditor_skill/` directory — with a command that prints its location, and
620
+ the claim is scoped to the already-published build. `docs/` and `examples/` are
621
+ still not in the wheel, which is stated as such.
622
+ - **The npm surface was re-checked against the merged launcher, not the old one.**
623
+ `index.js` now spawns the CLI with the caller's working directory and puts the
624
+ package directory on `PYTHONPATH`. The published npm `2.4.1` still resolves a
625
+ bare `.` against the installed package and can audit the wrong tree while
626
+ looking authoritative, so the README and `docs/quickstart.md` say so, give the
627
+ absolute-path workaround, and stop implying `npx` is unconditionally CI-safe.
628
+ Exit-code propagation, the `bin` field and the `python`/`python3` selection are
629
+ unchanged.
630
+ - **The coverage command in the provenance table was stale and is fixed.** It named
631
+ `--cov=supervisor --cov=scripts --cov-branch`, which measured the checkout. The
632
+ merged `pyproject.toml` reads `branch`, `source_pkgs` and `fail_under` from
633
+ `[tool.coverage.*]`, and `conftest.py` pins the suite to the installed
634
+ distribution, so the documented command is now
635
+ `python -m pytest tests/ -q --cov --cov-report=term-missing`.
636
+ - **"The mkdocs step is not part of CI" is no longer true** and was removed.
637
+ `docs (mkdocs --strict)` is a required check, pinned to `mkdocs==1.6.1` and
638
+ `mkdocs-material==9.6.14`; the page now names those pins and adds
639
+ `.github/scripts/check_dist_assets.py` to the reproduce list.
640
+ - **`CONTRIBUTING.md` documents the gates that now exist**: `ruff` and `mypy`
641
+ against ratchet baselines that refuse to record a higher count,
642
+ `version-lockstep`, `workflow-syntax`, `build (wheel + sdist)` with a
643
+ `twine check --strict`, `npm-launcher`, and `wheel-cli-smoke` on three
644
+ platforms. The release section was rewritten: OIDC trusted publishing only, the
645
+ GitHub release gated on the version-existence check, an npm `verify` job and an
646
+ already-published gate, and `main` protected by a ruleset with no bypass actors.
647
+ The local setup changed from `pip install -e .` to a non-editable install,
648
+ because `conftest.py` resolves the runtime packages from site-packages and fails
649
+ loudly if they are absent.
650
+
651
+ ## The two published `2.4.1` builds are not the same artifact
652
+
653
+ Recorded here so nobody has to rediscover it: the same version number was
654
+ published to two registries from two different commits.
655
+
656
+ | Build | Published | Notes |
657
+ |---|---|---|
658
+ | PyPI `2.4.1` | 2026-09-29 | Built before the documentation and packaging rewrite. 14 keywords; its sdist omits `index.js`, `bin/`, `mkdocs.yml`, `SECURITY.md`, `CITATION.cff`, `CODE_OF_CONDUCT.md` and `package.json`; its project page serves the previous README. |
659
+ | npm `2.4.1` | 2026-10-01 | Built from the documentation rewrite; carries the `files` allowlist, the repaired launcher and the current README. |
660
+
661
+ `pyproject.toml` was left at `2.4.1` and the release workflow skips a version
662
+ that already exists on PyPI, so the metadata on `main` cannot be published without
663
+ a version bump. That part is unchanged by this entry.
664
+
665
+ The other half has been fixed since, by #24: the npm workflow now runs a `verify`
666
+ job — the launcher tests and the packed-tarball check — before publishing, and
667
+ refuses a version already on the registry, so the absence of any gate that let
668
+ `2.4.0` ship a syntax error is no longer the state of the tree. `main` is also
669
+ now protected by a ruleset with no bypass actors, so none of the required checks
670
+ can be skipped by pushing to `main`.
671
+
672
+ **Still outstanding:** the version bump itself. Until `2.4.2` is published to both
673
+ registries, a `pip` user keeps seeing the pre-rewrite README on the project page.
674
+
675
+ ## v2.4.1 — PyPI 2026-09-29, npm 2026-10-01
676
+
677
+ ### Published to both registries
678
+
679
+ - Metadata-only patch release: improved PyPI discovery keywords, classifiers, description, documentation links, and synchronized package version metadata.
680
+
681
+ ### Published to npm only (built from the documentation rewrite)
682
+
683
+ #### README rebuilt around a verified quick start
684
+
685
+ - **README rebuilt around a verified quick start:** explicit problem/solution framing, "who it is for", `pipx` and `pip` install paths, a five-minute walkthrough, Agent Skill invocation table, a `plan-auditor doctor` troubleshooting section, accurate CI/PyPI/npm/license badges, and a stated list of honest limits.
686
+ - **Removed an inaccurate Python API example.** The previous README showed `from plan_auditor import AuditContract`; no such module exists in the distribution, which ships `supervisor` and `scripts`. The README now documents the real CLI only.
687
+ - **Quick start transcript is now machine-verified.** `tests/test_readme_quickstart.py` parses the documented JSON files and commands out of `README.md`, executes them through the installed CLI in a temporary workspace, and asserts every documented output line is real. The old transcript contained a `plan verify` block with fields that were never emitted.
688
+ - **Documentation site is coherent and strict-build clean.** Added `docs/index.md` and `docs/cli.md`, rewrote `docs/quickstart.md` with a full troubleshooting guide, added a working `examples/fib/request-source.json` so the shipped example passes the supervisor gate, and repaired `mkdocs.yml` navigation, which referenced a non-existent `index.md` and omitted four existing pages. `mkdocs build --strict` now exits 0.
689
+ - **`docs/benchmark.md` no longer contains fabricated comparative numbers.** It previously claimed results from "100 coding tasks" and detection rates for unnamed alternatives that no harness in this repository ever produced. It is replaced with a reproducible in-repo demo, the commands that back each remaining claim, and an explicit table of what is not measured.
690
+ - **Deterministic documentation and packaging checks.** New `tests/test_docs_metadata.py` verifies mkdocs navigation targets exist and cover every page, relative links resolve, README badges reference real workflows, no unverified adoption or trust-badge claims are present, every documented `plan-auditor` invocation is in the parser surface, and `pyproject.toml`/`package.json`/`SKILL.md`/`CITATION.cff` versions, classifiers, keywords, URLs, and npm launcher wiring agree with what ships.
691
+ - **`pyproject.toml` metadata completed:** broader keyword set, audience/topic/platform/typing classifiers, and `project.urls` entries for Security, Contributing, and Citation. `Development Status` and license metadata left unchanged because the published version is unchanged.
692
+ - **`package.json` aligned with the real CLI.** `npm test` was `echo "Error: no test specified" && exit 1`; it now syntax-checks the launcher. Added an explicit `files` allowlist so the published tarball no longer ships the entire working tree (the previous package included local virtual environments and build output). Version bumped to `2.4.1` to match the Python distribution.
693
+ - **`index.js` launcher repaired.** It contained a syntax error (`(code) =;`), so the published npm launcher could not run at all. It now forwards arguments to the Python CLI and propagates the child exit code. `files` ships everything the launcher needs at runtime (`supervisor`, `scripts`, `hooks`, `references`).
694
+ - **Housekeeping:** `.gitignore` now excludes `.venv/`, `venv/`, `.tmp-site/`, `site/`, and `node_modules/`.
695
+ - **Removed the broken PyPI downloads badge.** `img.shields.io/pypi/dm/plan-auditor`
696
+ answers HTTP 200 while rendering `downloads: inaccessible`, because shields.io
697
+ scrapes a third-party download API that is rate-limited or down. The README now
698
+ links the PyPI and npm project pages instead, which always answer 200 and always
699
+ carry the real numbers. No count is hardcoded. `tests/test_docs_metadata.py` now
700
+ fails if a `img.shields.io/pypi/d...` badge or a hand-copied download count
701
+ reappears anywhere in the docs.
702
+
703
+ #### npm launcher exit codes and transcript fidelity
704
+
705
+ - **Both npm entry points now propagate the verifier's exit code.** The fix was
706
+ initially placed only in `index.js`, but `package.json` maps the `plan-auditor`
707
+ bin to `bin/plan-auditor.js` — the file `npx plan-auditor` actually executes —
708
+ and that file discarded the child's result entirely. Verified: `node
709
+ bin/plan-auditor.js run <failing plan>` returned `0` while `index.js` returned
710
+ `1`. `index.js` now exposes `runPythonAndPropagate()`, which attaches the
711
+ `close` and `error` handlers and mirrors the code, and `bin/plan-auditor.js`
712
+ calls it. Exit codes are `1` for a failed step, `2` for a blocked audit, `0` for
713
+ a proven workspace, and nonzero if Python cannot be started.
714
+ - **`tests/test_npm_launcher.py` covers every entry point and the real package.**
715
+ Every exit-code assertion is parameterised over `bin/plan-auditor.js` and
716
+ `index.js`, the launcher's code is compared against the underlying CLI's, and the
717
+ failing/passing/blocked checks are repeated against the packed npm tarball so a
718
+ fix that works only in the working tree fails the suite. All of these were
719
+ confirmed to fail against the pre-fix `bin` (6 failures) and pass after.
720
+ - `test_docs_metadata.py` and `test_doc_transcripts.py` now check that the `bin`
721
+ field resolves to a launcher that propagates rather than a bare spawn, and that
722
+ documented launcher commands reference a file that exists.
723
+ - **Verbatim transcripts.** The README and `docs/quickstart.md`/`docs/cli.md` failure transcripts previously showed a single collapsed `çıktı:` line while the tool actually prints a `|`-joined multi-line traceback. Both blocks now reproduce the real output line for line and state that nothing is elided.
724
+ - **Removed a fabricated transcript line from `docs/benchmark.md`:** it showed
725
+ `çıktı: AssertionError` where the tool emits a full traceback. Replaced with
726
+ verbatim output, plus the equivalent launcher invocation and its exit code.
727
+ - **Transcripts are now stable across the CI matrix.** Two platform differences
728
+ had made the documented failure output wrong somewhere: the core joins a
729
+ captured traceback into one physical line separated by `" | "` (a Windows
730
+ carriage return before each separator makes a text-mode reader render it as
731
+ several lines), and Python 3.11+ adds the offending source line and a caret to
732
+ tracebacks. The attempt transcripts in the README, `docs/quickstart.md` and
733
+ `docs/cli.md` now use a stderr-free sentinel check (`sys.exit(3)`) so the
734
+ rendered output is byte-identical on every Python version and platform, with a
735
+ note explaining what a stderr-bearing check adds.
736
+ - `tests/test_doc_transcripts.py` reads raw bytes and normalises `\r` itself
737
+ instead of relying on text-mode universal newlines, and rejects any documented
738
+ traceback that pins a version-specific frame.
739
+ - **`.npmignore` added and `package.json` tightened:** `__pycache__` directories were still being packed despite the `files` allowlist, because the allowlist re-includes whole directories. Added `!**/__pycache__` and `!**/*.py[cod]` negation patterns and a minimal `.npmignore`. `npm pack --dry-run` now reports 59 entries / ~134 KB with zero `__pycache__`, `.venv`, or `site-packages` paths, down from 18502 entries / 29.1 MB.
740
+
741
+ ## v2.4.0 — 2026-09-06
742
+
743
+ - **Deterministic automatic formalization:** `plan-auditor-formalize compile` converts structured Plan Auditor requirements, coverage, dependencies, named outputs, `requires_outputs`, and deterministic checks into a conservative grounded STRIPS contract without asking an LLM to invent authoritative symbolic semantics.
744
+ - **Independent formalization proof:** generated contracts carry a `formalization-source:<SHA256>` marker and are independently recompiled from the current plan; stale, weakened, omitted, or manually edited generated contracts are rejected even if their embedded contract SHA is recomputed.
745
+ - **Dataflow-bound symbolic state:** generated actions prove step completion, named-output availability, and canonical `requirement-satisfied:<REQ-ID>` goals; downstream `requires_outputs` become symbolic preconditions while the existing dependency DAG remains independently enforced.
746
+ - **Safe generated/manual split:** automatic formalization refuses to overwrite reviewed manual formal contracts and refuses to mutate already sealed plans. Domain semantics that cannot be derived mechanically remain explicit/manual rather than guessed.
747
+ - **New installed CLI:** adds `plan-auditor-formalize compile|verify`; package and skill identity advance to stable `2.4.0`.
748
+ - **Regression coverage:** tests exercise exact recompilation, source-staleness detection, goal weakening, dropped output preconditions, fake initial requirement goals, idempotence, sealed-plan mutation refusal, and manual-contract preservation.
749
+
750
+ ## v2.3.0 — 2026-09-06
751
+
752
+ - **Sealed classical planning:** non-trivial multi-step plans can embed one sealed `formal_planning` contract with explicit initial facts, final goals, one grounded STRIPS-style action per Plan Auditor step, symbolic preconditions, add effects and delete effects.
753
+ - **Native LLM-free reachability:** monotonic contracts use deterministic forward reasoning while delete-effect contracts use bounded state-space search. Exhausting the configured state budget returns UNKNOWN instead of manufacturing PASS.
754
+ - **PDDL / Fast Downward cross-check:** the same normalized contract can be exported as sanitized PDDL `:strips` and optionally cross-checked with Fast Downward without making an external planner or GPU a package dependency.
755
+ - **Requirement-to-formal-goal binding:** every `must`/`should` requirement in a formalized plan must map to the canonical `requirement-satisfied:<REQ-ID>` final goal, may not be pre-satisfied in `initial_facts`, and must be produced by an action whose Plan Auditor step covers that same requirement.
756
+ - **Semantic fail-closed hardening:** missing requirement goals, non-covering producers, pre-satisfied required goals, duplicate formal anchors and effect-free formal actions are rejected before formal reachability can contribute to PASS.
757
+ - **Direct skill-name invocation:** `SKILL.md` and README now make `plan-auditor` the user-facing invocation; users do not need to hand-author plan JSON, STRIPS/PDDL contracts, seal metadata or evidence files for the normal skill workflow.
758
+ - **Regression coverage:** dedicated formal-planning and semantic-binding tests cover reachable/unreachable contracts, delete-effect dead ends, alternate valid orderings, bounded search, PDDL sanitization, duplicate anchors, requirement omissions and formal-contract mutation.
759
+ - **Version identity:** source/package/skill version advances to `2.3.0`, so the post-v2.2.0 formal-planning and semantic-binding code is no longer distributed under the already-published `2.2.0` identity.
760
+
761
+ ## v2.2.0 — 2026-09-05
762
+
763
+ - **Physical control-plane confinement:** existing `.plan-auditor`, plan, seal, request/activation and policy path components are inspected with `lstat`; symlinked parents/leaves cannot redefine the workspace trust root.
764
+ - **Policy read confinement:** `load_config` authorizes only symlink-free workspace policy directories before policy loading; a resolved external symlink target is rejected before its files are read.
765
+ - **Sealed scope freeze:** automatic monotonic strengthening remains available for extra deterministic checks/prerequisites, but new steps, requirements, tools, coverage assignments or declared outputs now require a new host-approved request generation.
766
+ - **Safe v3→v4 migration:** `plan-auditor-migrate-seal` provides a representation-only migration path for exact full-contract v3 seals. It requires authoritative request alignment and refuses any plan-scope change.
767
+ - **Seal self-consistency:** v3/v4 seals validate their contract hash and criteria count on load/save before being trusted or authenticated.
768
+ - **Streaming evidence verification:** JSONL verification, hashing and HMAC migration retain one record/chunk at a time instead of reading complete evidence/archive files into RAM.
769
+ - **PID-aware registry locking:** registry transaction locks carry PID + random token; live owners are never evicted because of age alone, and stale cleanup requires a provably dead PID plus unchanged lock identity.
770
+ - **Activation semantics:** a lone `.plan-auditor/supervisor.json`, log or cache no longer makes a plans-free workspace look like an activated failed task; request/seal/evidence/plan/integrity/registry state still prevents deletion from degrading to `NO_PLAN`.
771
+ - **Single audit freeze implementation:** the unused `workspace.audit.lock` implementation was removed; `audit.freeze.lock`/`final_audit_session` remains the sole workspace final-audit freeze path.
772
+ - **Version identity:** source/package version advances to `2.2.0`, preventing post-v2.1.0 hardening from producing a different wheel under the already-published `2.1.0` version.
773
+ - **Trust-boundary documentation:** deliberate same-OS-user interference is explicitly treated as an OS isolation problem; separate account/container/VM deployment is required when that attacker is in scope.
774
+ - **Regression coverage:** new tests cover plan/policy symlink escapes, scope expansion, config-only activation, PID-aware registry locks, streaming evidence verification and exact legacy-seal migration.
775
+
776
+ ## v2.1.0 — 2026-09-05
777
+
778
+ - **Aggregate multi-plan completion:** the integrated supervisor now enumerates the default plan and every safe `.plan-auditor/plans/<name>.json` plan. Global PASS requires every active plan to PASS; a passing default plan cannot hide an unfinished named plan, and a named-only workspace is no longer misclassified as `NO_PLAN`.
779
+ - **Explicit requirement coverage:** Supervisor Mode requires explicit requirements and deterministic `covers` links from steps. Every `must`/`should` requirement must be covered; omitted user requirements, unknown coverage IDs and duplicate requirement contracts block plan approval/PASS.
780
+ - **Full-contract format-v3 seals:** seals bind task, requirements, required tools, step identity/order/title, requirement coverage, dependencies, required outputs, output contracts/checks, step checks, and the supervisor profile/mode/tier/policy fingerprint. Existing criteria may only be strengthened.
781
+ - **Authenticated seals:** external-key HMAC integrity authenticates plan seals in addition to evidence, checkpoints, registry state and the integrity marker. Seal tampering or missing/wrong key material fails closed after integrity initialization.
782
+ - **Configuration/policy downgrade prevention:** malformed supervisor configuration and configured policy files are explicit blocking errors. Profile/mode/tier and policy-file fingerprint are part of the sealed environment contract, so a post-seal downgrade is detected.
783
+ - **Evidence concurrency and rotation continuity:** evidence append/rotation uses a cross-process exclusive lock, active evidence links the latest archive tail, and failed-attempt limits are counted across archived plus active evidence instead of resetting after rotation.
784
+ - **Complete evidence verification:** `plan-auditor evidence verify` checks both active evidence and anchored archives.
785
+ - **Safe plan addressing:** named plan IDs are validated as safe basenames and cannot use lexical `..` traversal outside `.plan-auditor/plans`.
786
+ - **Canonical multi-agent ownership:** agent IDs are safe basenames and ownership paths are canonical workspace-relative paths before conflict comparison, preventing alternate spellings from evading `parallel-strict` overlap detection.
787
+ - **Transactional full-scope rollback:** default snapshots carry a manifest with file type, mode and hash; rollback restores that state and removes files introduced after the snapshot. Explicit snapshot lists remain intentionally scoped.
788
+ - **Stronger fresh-audit fingerprint:** workspace fingerprints include directories, file type and mode/executable bits in addition to contents and symlink targets.
789
+ - **Internal shell removal:** workspace/world-model and watchdog Git probes use structured argv with `shell=False`; behavioral plan checks still require explicit `shell: true` for shell interpretation.
790
+ - **Bounded verifier output:** command output is spooled/bounded instead of being captured without limit in memory; output-limit overflow fails the check.
791
+ - **Doctor fail-closed exit codes:** `doctor` recomputes a current assessment and returns nonzero on FAIL/UNKNOWN instead of hiding a failed assessment behind exit 0.
792
+ - **Authoritative hook unification:** `hooks/gate_hook.py` is the single integrated gate. `scripts/stop_gate.py` remains only as an exit-code-2 compatibility adapter and delegates to the same multi-plan full-contract assessment instead of trusting `status=verified`.
793
+ - **Three-platform packaging and release gates:** real wheels are built and installed in clean virtual environments on Ubuntu, Windows and macOS. Smoke tests exercise multi-plan discovery, DAG/output dependencies, requirement coverage, full-contract seals, external-key HMAC, integrated audit, doctor, and evidence/integrity CLI paths. PyPI publishing waits for the same three-platform wheel preflight.
794
+ - **Versioning:** development version advanced to `2.1.0` so the hardened source cannot be confused with the already-published `2.0.2` artifact.
795
+ - **Regression hardening:** dedicated failure-injection tests cover named-plan bypasses, seal-contract weakening, environment downgrade, HMAC seal tampering, invalid config/policies, path traversal, evidence races/rotation/retry history, active-log tampering, rollback cleanup, executable-bit fingerprint changes, canonical agent conflicts, missing tools and bounded verifier output.
796
+ - **Observational final audit:** a full audit fails if a verifier mutates product workspace content, type, or mode. Verification must prove pre-existing implementation state rather than creating the claimed result during the audit itself.
797
+
798
+ ## v2.0.2 — 2026-09-05
799
+
800
+ - **Integrated supervisor pipeline:** new `supervisor/orchestrator.py` wires plan validation, requirements, workspace state, policies, sealing, deterministic evidence, adversarial review, completion gating, lifecycle state, and multi-agent state into one fail-closed assessment.
801
+ - **Real hook enforcement:** `hooks/gate_hook.py` no longer trusts `status=verified` or fabricated integrity flags; PASS requires a valid seal and matching fresh full-audit evidence.
802
+ - **Deterministic audit freshness:** full audits record SHA-256 fingerprints of the verification contract and workspace contents instead of relying on filesystem mtimes.
803
+ - **Cross-archive evidence anchoring:** rotations write archive anchors and L11 verifies internal JSONL hash chains and links between archives.
804
+ - **Persistent multi-agent state:** ownership and heartbeat updates are written to the shared registry; separate processes see the same state, and `parallel-strict` rejects overlapping file claims.
805
+ - **Adversarial gate integration:** high/critical L12 findings with no deterministic follow-up prevent PASS and produce UNKNOWN instead of being ignored.
806
+ - **User policy loading:** deterministic JSON/TOML policies load from configured policy directories.
807
+ - **Workspace safety:** file checks and rollback are path-confined; workspace observation is read-only and uses `shutil.which()` instead of shell redirections that could create files.
808
+ - **Daemon integration:** the background supervisor persists an integrated assessment and final gate outcome on every observation cycle.
809
+
810
+ ## v1.1.0 — 2026-09-03
811
+
812
+ - **Portable skill paths:** `SKILL.md` resolves auditor scripts relative to the skill directory.
813
+ - **Hard attempt cap:** `run` refuses a step after the configured failed-attempt cap unless explicitly forced.
814
+ - **Multi-plan core support:** `--plan <name>` operates on `.plan-auditor/plans/<name>.json`; evidence is scoped per plan.
815
+ - **Snapshot / rollback:** snapshot and rollback support were introduced and recorded in evidence.
816
+ - **Evidence rotation:** large evidence logs rotate into `.plan-auditor/archive/`.
817
+
818
+ ## v1.0.0 — 2026-09-03
819
+
820
+ - Initial strict plan + independent auditor Agent Skill.
821
+ - Machine-checkable `verify` checks (`run`, `exec`, `file_exists`, `regex`, `pytest`).
748
822
  - Deterministic fresh execution, append-only SHA-256 evidence, tamper detection, and full-audit final gate.