plan-auditor 2.6.0__tar.gz → 2.6.2__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 (128) hide show
  1. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/CHANGELOG.md +747 -676
  2. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/CITATION.cff +32 -32
  3. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/CONTRIBUTING.md +9 -9
  4. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/PKG-INFO +20 -20
  5. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/README.md +266 -266
  6. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/SECURITY.md +165 -165
  7. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/SKILL.md +198 -197
  8. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/benchmark.md +36 -9
  9. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/check_attestation_claims.py +482 -482
  10. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/index.md +107 -107
  11. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/readme_size_baseline.json +5 -5
  12. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/release-status.md +120 -120
  13. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/package.json +60 -60
  14. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/pyproject.toml +156 -156
  15. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/audit_check.py +78 -6
  16. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/integrity.py +1 -0
  17. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/__init__.py +49 -49
  18. plan_auditor-2.6.2/supervisor/assessment.py +261 -0
  19. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/cli.py +55 -46
  20. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/config.py +4 -1
  21. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/daemon.py +1 -5
  22. plan_auditor-2.6.2/supervisor/exit_codes.py +47 -0
  23. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_audit_check.py +88 -0
  24. plan_auditor-2.6.2/tests/test_doc_commands.py +90 -0
  25. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_docs_metadata.py +65 -1
  26. plan_auditor-2.6.2/tests/test_exit_codes.py +51 -0
  27. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_hooks.py +36 -23
  28. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/.gitignore +0 -0
  29. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/CODE_OF_CONDUCT.md +0 -0
  30. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/LICENSE +0 -0
  31. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/launcher_contract.test.js +0 -0
  32. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/plan-auditor.js +0 -0
  33. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/prepublish_gate.js +0 -0
  34. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/prepublish_gate_contract.test.js +0 -0
  35. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/prepublish_lifecycle.test.js +0 -0
  36. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/bin/publish_mode_contract.test.js +0 -0
  37. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/architecture.md +0 -0
  38. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/check_readme_size.py +0 -0
  39. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/cli.md +0 -0
  40. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/dependency-graph.md +0 -0
  41. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/deployment-isolation.md +0 -0
  42. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/formal-planning.md +0 -0
  43. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/integrations.md +0 -0
  44. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/quickstart.md +0 -0
  45. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/threat-model.md +0 -0
  46. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/docs/workspace-artifacts.md +0 -0
  47. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/examples/fib/.plan-auditor/plan.json +0 -0
  48. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/examples/fib/fib.py +0 -0
  49. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/examples/fib/request-source.json +0 -0
  50. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/examples/fib/test_fib.py +0 -0
  51. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/hooks/README.md +0 -0
  52. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/hooks/gate_hook.py +0 -0
  53. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/index.js +0 -0
  54. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/mkdocs.yml +0 -0
  55. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/references/plan-format.md +0 -0
  56. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/__init__.py +0 -0
  57. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/check_isolation.py +0 -0
  58. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/contract.py +0 -0
  59. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/exec_trust.py +0 -0
  60. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/plan_graph.py +0 -0
  61. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/scripts/stop_gate.py +0 -0
  62. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/adversarial.py +0 -0
  63. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/agents.py +0 -0
  64. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/agents_hardening.py +0 -0
  65. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/audit_session.py +0 -0
  66. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/contracts.py +0 -0
  67. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/control_plane.py +0 -0
  68. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/coverage.py +0 -0
  69. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/events.py +0 -0
  70. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/evidence.py +0 -0
  71. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/formal_compiler.py +0 -0
  72. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/formal_planning.py +0 -0
  73. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/formal_semantics.py +0 -0
  74. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/gate.py +0 -0
  75. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/goals.py +0 -0
  76. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/integrity.py +0 -0
  77. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/lifecycle.py +0 -0
  78. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/lock_hardening.py +0 -0
  79. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/orchestrator.py +0 -0
  80. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/plan_verifier.py +0 -0
  81. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/plans.py +0 -0
  82. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/policies.py +0 -0
  83. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/priority.py +0 -0
  84. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/request_contract.py +0 -0
  85. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/requirements.py +0 -0
  86. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/seal_migration.py +0 -0
  87. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/sealing.py +0 -0
  88. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/watchdog.py +0 -0
  89. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/supervisor/workspace.py +0 -0
  90. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/request_fixture.py +0 -0
  91. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_adversarial.py +0 -0
  92. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_agent_registry_chain.py +0 -0
  93. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_agents_gate.py +0 -0
  94. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_attestation_guard.py +0 -0
  95. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_authenticated_integrity.py +0 -0
  96. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_cli.py +0 -0
  97. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_console_scripts.py +0 -0
  98. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_core_layers.py +0 -0
  99. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_daemon.py +0 -0
  100. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_dependency_graph.py +0 -0
  101. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_doc_transcripts.py +0 -0
  102. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_events.py +0 -0
  103. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_evidence_authentication.py +0 -0
  104. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_exec_trust_gate.py +0 -0
  105. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_execution_and_rotation.py +0 -0
  106. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_extra_layers.py +0 -0
  107. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_failure_injection.py +0 -0
  108. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_formal_compiler.py +0 -0
  109. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_formal_planning.py +0 -0
  110. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_formal_semantics.py +0 -0
  111. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_full_contract_hardening.py +0 -0
  112. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_hmac_check_environment.py +0 -0
  113. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_import_graph.py +0 -0
  114. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_integration_hardening.py +0 -0
  115. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_linux_check_os_isolation.py +0 -0
  116. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_npm_launcher.py +0 -0
  117. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_npm_registry_visibility.py +0 -0
  118. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_plan_byte_bound.py +0 -0
  119. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_readme_quickstart.py +0 -0
  120. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_registry_lock_partial.py +0 -0
  121. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_request_contract_hardening.py +0 -0
  122. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_root_cause_fixes_v220.py +0 -0
  123. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_runtime_root_hardening.py +0 -0
  124. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_runtime_state_gitignore.py +0 -0
  125. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_supervisor_hardening_seam.py +0 -0
  126. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/test_trust_health_read.py +0 -0
  127. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/trusted_workspace.py +0 -0
  128. {plan_auditor-2.6.0 → plan_auditor-2.6.2}/tests/wheel_cli_smoke.py +0 -0
@@ -1,677 +1,748 @@
1
- # Changelog
2
-
3
- All notable changes to plan-auditor. Versions are published to PyPI and npm.
4
-
5
- ## 2.6.0 — Audit hardening (medium/low findings)
6
- ### Housekeeping — audit hardening
7
-
8
- - Closes the findings of the full-repository audit: patched the concrete
9
- defects (correctness, fail-closed behaviour, platform independence),
10
- wired every standalone guard into CI, removed dead or duplicated code
11
- paths, and pinned every doc claim to a test so it cannot silently
12
- drift again. Regression tests fail without the corresponding fix.
13
-
14
- ## Unreleased
15
-
16
- ## 2.5.0 — Completion gate requires authenticated evidence
17
-
18
- ### Security
19
-
20
- - **C1 — keyless evidence could pass the completion gate.** The hash chain
21
- proves records were not *edited* after writing, but without an external HMAC
22
- key it can be rebuilt identically by anyone with write access to the
23
- workspace. The hook gate treated a rebuilt chain exactly like a genuine one.
24
- `scripts/audit_check.py` now separates the two claims: `verify_chain` reports
25
- chain integrity, the new `evidence_is_authenticated` reports whether records
26
- are attributable to a key holder, and `deterministic_passed` includes that
27
- verdict. Every record written without a key carries an explicit
28
- `"auth": {"alg": "none"}` descriptor; absence of authentication is reported,
29
- never assumed.
30
- - **H1 — a plain `plan verify` re-sealed plans under an activated request
31
- contract.** `--reseal` was refused after activation, but re-verifying an
32
- already-sealed workspace with a changed plan still rewrote the seal. Sealing
33
- under an activation now requires a new host-approved request generation, for
34
- `--reseal` and plain re-verify alike.
35
- - **H2 — the orchestrator threshold drifted from the contract.** The workspace
36
- gate hard-coded `format_version < 3` while every other gate enforced
37
- `MINIMUM_TRUSTED_SEAL_FORMAT` (4); both now read the shared constant.
38
-
39
- ### Changed (behaviour)
40
-
41
- - In a keyless workspace the hook no longer reports PASS: it exits non-zero
42
- and names the missing `PLAN_AUDITOR_HMAC_KEY` / `PLAN_AUDITOR_HMAC_KEY_FILE`
43
- configuration plus `plan-auditor integrity init` as the recovery step.
44
- Configure a key before the first audit you intend to claim. This is a
45
- deliberate fail-closed behaviour change; the five rules in `docs/index.md`
46
- now state it as a rule.
47
- - `plan verify`'s output for each plan gains the evidence authentication
48
- verdict (`plans.<key>.evidence.authenticated` /
49
- `.authentication_problem`), and the workspace report gains
50
- `evidence.authenticated`.
51
-
52
- ### Compatibility
53
-
54
- - Hash-chain format, seal format, and request-contract format are unchanged.
55
- Workspaces sealed without a key keep verifying as tamper-evident state; they
56
- simply no longer satisfy the completion gate until a key is configured and
57
- `plan-auditor integrity init .` upgrades the existing state.
58
-
59
- ### Tests
60
-
61
- - `tests/test_evidence_authentication.py`: unsigned records carry `alg: none`,
62
- a keyless chain is reported as unauthenticated while still chain-valid, an
63
- HMAC-backed chain is reported as authenticated, a configured key without a
64
- marker fails closed, and an invented auth descriptor is rejected.
65
- - `tests/test_hooks.py`: PASS requires the authenticated flow; two new gate
66
- tests replay the exact bypass (full chain rewrite, `auth: none`) and confirm
67
- the hook refuses.
68
- - Regressions for H1 (re-seal after activation is rejected) and H2
69
- (legacy seal rejected at the shared threshold).
70
-
71
- ## 2.4.6 — Release alignment
72
-
73
- - Publishes the 2.4.5 tree to PyPI and npm. The 2.4.5 commit landed after
74
- the 2.4.5 PyPI upload, so both registries were one commit behind main.
75
- No behavioural change beyond 2.4.5 itself.
76
-
77
- ## 2.4.5 — Opt-in Linux privilege-separated check execution
78
-
79
- ### Security
80
-
81
- - Add `PLAN_AUDITOR_CHECK_ISOLATION=required` with explicit non-root
82
- `PLAN_AUDITOR_CHECK_UID` / `PLAN_AUDITOR_CHECK_GID`: root-run Linux
83
- supervisors execute project-controlled checks under the named UID/GID with
84
- supplementary groups dropped, while the trusted process retains HMAC signing.
85
- - Require root-owned protected control state, trusted workspace ancestry,
86
- root-owned private HMAC key material and non-writable key directories.
87
- Missing/invalid isolation configuration fails closed.
88
- - Restrict the child environment to a small, documented allowlist, excluding
89
- HMAC credentials, unrelated API tokens, `HOME`, `PYTHONPATH` and SSH sockets.
90
- - Require real root-run Linux CI regression tests proving a child cannot read
91
- either a root-owned `0600` key file or `.plan-auditor` control state.
92
- - Document required host configuration. This is a Linux UID permission boundary,
93
- **not** a cross-platform container/VM, network or kernel sandbox; default
94
- same-user mode continues to have its documented limits.
95
-
96
- ## 2.4.4 — HMAC check subprocess boundary
97
-
98
- ### Security
99
-
100
- - Do not inherit `PLAN_AUDITOR_HMAC_KEY` or `PLAN_AUDITOR_HMAC_KEY_FILE`
101
- into project-controlled behavioral-check subprocesses. The supervisor
102
- retains these credentials to authenticate the resulting audit evidence.
103
- - Add regression tests for both credential variables, benign environment
104
- preservation, parent environment preservation, and the public `run_check`
105
- path.
106
- - Clarify that environment sanitisation is defense in depth, **not** OS
107
- sandboxing: an untrusted child running as the supervisor's user can still
108
- open any HMAC key file that user can read. Deliberately hostile agents need
109
- a separately isolated, keyless check-execution identity/container.
110
-
111
- ### Documentation
112
-
113
- - **README reduced from 362 to 248 lines with no surface lost.** The previous
114
- release traded a line target for coverage and stopped at 356, on the reasoning
115
- that the layer table, command tables and artifact list were the coverage gap.
116
- That was right about the priority and wrong about the arithmetic: the reduction
117
- had not been attempted. Detail now lives on the docs site and the README keeps a
118
- scannable map plus links. Measured against the same 66-surface checklist derived
119
- from the code, **0 surfaces are undocumented**: 37 still appear in the README and
120
- 29 moved to a named docs page.
121
- - The L0-L14 layer table became a five-row band map. It still names all fifteen
122
- layers, and the two facts that carry the design are now stated in the prose
123
- rather than buried in a row: **L10 (`scripts/audit_check.py`) is the only
124
- component that can mark a step `verified`** and **L13 (`gate.py`) is the only
125
- one that emits a final `PASS`/`FAIL`/`UNKNOWN`**. Per-layer detail was already
126
- in `docs/architecture.md`.
127
- - The fourteen workspace artifacts moved to a new **`docs/workspace-artifacts.md`**,
128
- which also records what is *not* written and why the files are separated
129
- (append-only evidence, host-owned input separate from agent-owned state, and a
130
- stale verdict being detectable). The README still says the tool writes under
131
- `.plan-auditor/` and links the page.
132
- - The full command table was already in `docs/cli.md`; the README now names the
133
- four entry points and the five check types, and `docs/cli.md` gained an explicit
134
- `0`/`1`/`2`/`3` exit-code legend so the codes have one canonical home.
135
- - `## Reference` was folded into `## Documentation` rather than kept as a second
136
- index. The heading name is unchanged on purpose: a test splits the README on it.
137
- - The `## Use it in CI` yaml block became one prose line pointing at
138
- `docs/integrations.md`.
139
- - The quick start keeps the structure `tests/test_readme_quickstart.py` requires:
140
- exactly two JSON blocks, one console block, and the same four commands. Both
141
- plan files and the transcript were compressed using the `...` elision the test
142
- already tolerates. **The `request_sha256` changed** because the documented
143
- `task` string was shortened, and it was re-derived by running the walkthrough,
144
- not computed: `d39e577eb0577d8c0c81231fdd7fc559d1c6045ecc5e5bd3a00e7e8f2f49197b`.
145
- - `docs/index.md` now links `workspace-artifacts.md` and `release-status.md`,
146
- which it did not, so the docs home is a real index rather than a partial one.
147
-
148
- - **`docs/check_readme_size.py` guards against re-inflation.** It fails when
149
- `README.md` exceeds a recorded line and word budget, **and** when any single
150
- `## ` section exceeds its own budget, so one section cannot quietly absorb the
151
- whole allowance. `docs/readme_size_baseline.json` holds the recorded budget
152
- (248 lines, 1490 words) and `--update` re-records it, printing a warning when a
153
- budget is raised rather than lowered. Verified by mutation: appending twelve
154
- invented bullets to `Honest limits` exits 1 naming that section, and a four-line
155
- prose expansion of `Documentation` exits 1 naming lines, words and that section.
156
- **It is not wired into CI by this change** — adding the job means editing
157
- `.github/workflows/`, which is outside this work's file ownership. Until it is
158
- wired, the guard only runs when invoked by hand.
159
-
160
- - The `2.4.3` attestation facts were re-measured rather than assumed: the PyPI
161
- per-file provenance endpoint returns `200` for both the wheel and the sdist, and
162
- the npm attestations endpoint returns `404`. The README keeps the two-line
163
- statement naming both channels, and `test_readme_states_the_npm_attestation_gap`
164
- still passes against it.
165
-
166
- ### Fixed
167
-
168
- - **Supply-chain claims are now measured, scoped and separated by mechanism.** The three
169
- things that get blurred into "attested" are now named separately wherever they appear
170
- in `README.md`, `SECURITY.md` and `docs/release-status.md`:
171
- 1. a **digest** (`dist.integrity`, `digests.sha256`) proves the bytes match what was
172
- published and says nothing about the build;
173
- 2. npm's **`dist.signatures`** is a registry *transport* signature over the packument,
174
- present for every package whether or not it was built in CI, and is never build
175
- provenance;
176
- 3. a **build attestation** (Sigstore/in-toto on npm, PEP 740 on PyPI) is the only one of
177
- the three that names a workflow, repository and commit.
178
- - **The current version was stale at `2.4.2` in the release-status claims** while `2.4.3` is
179
- the release on both registries. Refreshed, with the npm `shasum`, integrity, file count
180
- and unpacked size, and the PyPI wheel and sdist SHA-256, all re-measured. The npm values
181
- were re-checked by running `npm pack` on `main` (`45fd5ee`): integrity reproduces exactly.
182
- - **The PyPI integrity URL shape is called out explicitly**, because reading the wrong shape
183
- is how a false negative gets reported. PyPI serves attestations **per file**, so the path
184
- ends in `/<filename>/provenance`. `https://pypi.org/integrity/plan-auditor/2.4.3/` is not
185
- an endpoint and returns `404`; that `404` means "no such URL", **not** "no attestation".
186
- The per-file endpoint returns `200` with an in-toto v1 statement, predicate type
187
- `https://docs.pypi.org/attestations/publish/v1`, publisher
188
- `kind=GitHub, repository=Furox-Art/plan-auditor, workflow=release.yml, environment=pypi`,
189
- whose subject digest equals the SHA-256 PyPI serves for the file.
190
- - **The condition for npm provenance is stated as pending**, with the four facts it needs:
191
- a trusted publisher on npmjs.com for owner `Furox-Art`, package `plan-auditor`, workflow
192
- filename `npm-publish.yml`, and the environment the publish job declares. Nothing in this
193
- repository needs to change. Until that record exists, npm consumers verify by digest and
194
- the docs keep saying so.
195
- - `SECURITY.md` gained the per-channel verification commands and the mechanism table, so a
196
- reader can check a claim without trusting this repository.
197
-
198
- ### Added
199
-
200
- - **`docs/check_attestation_claims.py`** — a regression guard for supply-chain claims, with
201
- its own negative control. It rejects any attestation claim that names no channel, that
202
- states no definite status, that presents `dist.signatures` as provenance, or that calls a
203
- stale version current. Run it three ways:
204
-
205
- ```bash
206
- python docs/check_attestation_claims.py # scan the docs
207
- python docs/check_attestation_claims.py --online # also re-measure both registries
208
- python docs/check_attestation_claims.py --self-test # negative control
209
- ```
210
-
211
- The negative control feeds the guard five deliberately false claims and fails unless all
212
- five are rejected, plus one correct claim it must accept and two same-word-different-meaning
213
- cases (`docs/benchmark.md` measurement provenance, `docs/formal-planning.md` source
214
- provenance) it must not flag. A guard that cannot be shown to reject a known lie is not a
215
- guard, so `--self-test` is part of the deliverable rather than a nicety.
216
-
217
- It is not wired into CI, because this change set does not touch workflows. Adding one step
218
- to `.github/workflows/plan-audit.yml` that runs
219
- `python docs/check_attestation_claims.py --self-test && python docs/check_attestation_claims.py`
220
- would close that; until then it runs on demand.
221
-
222
- ### Not claimed
223
-
224
- - No security claim is weakened anywhere. npm is still described as digest-only, and the
225
- PyPI attestation is still described as present, because that is what the registries
226
- return.
227
-
228
- ## v2.4.3 - 2026-10-04
229
-
230
- A documentation release. The README restructure and the three corrections below
231
- land on PyPI's project page for the first time: `2.4.2`'s `long_description` is
232
- the old 499-line README and still carries the "so it cannot drift from reality"
233
- claim that this release removes. PyPI serves `description` per release, so only
234
- a new release can change it.
235
-
236
- **No behaviour change in `supervisor/`, in the deterministic core, or in the npm
237
- launcher.** Verified against the published artifacts, not the working tree:
238
- `supervisor/` has no commit since `311f4dc`, and the `index.js` and
239
- `bin/plan-auditor.js` inside the PyPI `2.4.2` wheel are byte-identical to those
240
- on `main`.
241
-
242
- Two packaging changes do reach users. Both are already live on npm at `2.4.2`,
243
- which was published at 16:16:46Z -- after #29 landed at 16:14:02Z -- so this is
244
- the first release in which they reach PyPI:
245
-
246
- - **The wheel's embedded `package.json` now declares `engines.node >=22.14.0`.**
247
- The `2.4.2` wheel says `>=18`, because it was uploaded 2026-10-02T23:06:40Z and
248
- therefore predates #27. Anyone copying the bundled launcher out of this wheel
249
- onto Node 18 or 20 now gets npm's engine warning.
250
- - **The sdist and npm tarball carry `bin/prepublish_gate.js`** in place of the
251
- `bin/check_tarball_contents.js` and `bin/verify_installed_launcher.js` it
252
- replaces. Both old scripts only ran under `prepublishOnly`; so does the new
253
- one. Installed behaviour is unchanged -- what a publisher executes differs.
254
-
255
-
256
- - **Three false claims in the README and quickstart are corrected.**
257
- - The quick-start transcript documented `request_sha256`
258
- `7b347f48...0db55f`. The CLI has never printed that value: `request_contract.py`
259
- stamps `plan_contract_sha256s` into the request before hashing, so the printed
260
- digest is not a hash of the source file. Running the documented walkthrough in
261
- a clean virtualenv yields `d7d47e409fc1c53b9830346740bac2a20e716aefc71e7396ad3db0ebbdd837f2`.
262
- Fixed in `README.md` and `docs/quickstart.md`. The value was unaffected by
263
- reformatting the JSON, because the digest is taken over the parsed contract
264
- rather than the file bytes.
265
- - The README claimed the transcript "cannot drift from reality" because
266
- `tests/test_readme_quickstart.py` executes it. It could. `_mask()` rewrites
267
- every 64-hex string to `<sha256>` and the transcript check is a subset test, so
268
- substituting `dead0000...` for the real digest left the suite green: measured
269
- at 389 passed, 0 failed. The claim is corrected and two new tests close the gap
270
- (see below).
271
- - The README and `CONTRIBUTING.md` both described `examples/fib` as shipping a
272
- "deliberately broken variant". It does not; the directory holds four files, none
273
- of them broken. `docs/benchmark.md` is where you break it yourself, and says so.
274
-
275
- - **`tests/test_readme_quickstart.py` can now fail on the two ways it used to
276
- pass.** Proven by mutation against this commit.
277
- - `test_readme_quickstart_hashes_are_not_normalised_away` compares the documented
278
- digests against the *unmasked* real output, so a fabricated hash is rejected.
279
- Replacing `request_sha256` with `dead0000...`: **389 passed / 0 failed before,
280
- 1 failed after**.
281
- - `test_readme_quickstart_json_keys_match_the_real_output` compares the JSON key
282
- sequence at each indentation level and only tolerates a shorter sequence where
283
- the document actually used a `...` marker. Dropping `deterministic_core` from
284
- the `audit` block, which had no elision, is now a failure. This check caught a
285
- real omission introduced while compressing this very README.
286
- - A third mutation, inserting a fabricated `plan_hash`, fails both the original
287
- subset test and the new hash test.
288
-
289
- - **The README now explains the repository instead of only the happy path.**
290
- Measured against a 60-surface checklist drawn from the code, coverage goes from
291
- 14/60 to 60/60. Added: the L0-L14 layer table with the two layers that can decide
292
- a verdict; all 11 command groups and their 17 nested actions; the other three
293
- console scripts including `plan-auditor-formal`'s `verify`/`export-pddl`/
294
- `make-check`; the core's `status`/`snapshot`/`rollback` modes; the `regex` check
295
- type and the rule that `regex` and `file_exists` are non-behavioural; profiles,
296
- run modes and the four LLM tiers; every file written under `.plan-auditor/`;
297
- `hooks/gate_hook.py` as the single authoritative gate with no per-host adapter
298
- files; exit codes including `3` for `UNKNOWN`; and
299
- `references/plan-format.md`.
300
- - Two checklist items from the audit were wrong and are documented as the code
301
- actually is: the tiers are `NO_LLM`/`SMALL_LOCAL`/`STRONG_LOCAL`/`REMOTE`
302
- (four, not "T1/T2/T3"), and there are no six hook adapters — `hooks/` contains
303
- `gate_hook.py` and its README, and the per-host wiring patterns are documented
304
- in `docs/integrations.md`.
305
-
306
- - **The 53-line release-status block moved to `docs/release-status.md`** and is in
307
- the mkdocs navigation. Almost all of it describes one version number and would be
308
- wrong at the next release. The README keeps two lines, and keeps them honest
309
- rather than dropping the substance: `2.4.2` is current on both registries, npm
310
- has no provenance attestation and returns `404` for one, and PyPI publishes with a
311
- PEP 740 attestation. `test_readme_states_the_npm_attestation_gap` still passes
312
- against the shortened text, so the move did not cost the supply-chain disclosure.
313
-
314
- - **Sections that GitHub or the docs already render are gone from the README:**
315
- the inline `Troubleshooting` block (a 158-line per-error guide lives in
316
- `docs/quickstart.md`), the standalone `npm` section, `Project links`, and
317
- `License`. README length falls from 499 to 356 lines.
318
-
319
- - **Two doc tests were updated because they pinned text that moved, not because
320
- they were inconvenient.** `test_readme_adoption_region_covers_the_essentials`
321
- used `## Troubleshooting` as its region sentinel; the sentinel is now
322
- `## Documentation`, and the ordering assertions it exists to protect are
323
- unchanged. `test_doc_transcripts.py` no longer requires the README to carry a
324
- failing run, but now also requires the README to link the page that does, and
325
- that page to still document the most common failure.
326
-
327
- - **A new test keeps the deleted troubleshooting reachable.**
328
- `test_readme_points_at_the_full_troubleshooting_page` fails if the README stops
329
- linking `docs/quickstart.md`, or if that page stops documenting
330
- `"request contract is not activated"`.
331
-
332
- - **A successful npm publish is no longer reported as a failed one.** Run
333
- 37136117550 published `plan-auditor@2.4.2` and then failed its own
334
- verification step one second later with `ERROR: npm reports 'nothing',
335
- expected 2.4.2`. `npm publish` returns when the registry's *write* path accepts
336
- the upload, while clients read from a CDN that converges asynchronously; the
337
- run's own timestamps show the window, with the probe at 16:15:10Z against a
338
- registry `time["2.4.2"]` of 16:16:46Z. The verification step now polls with a
339
- growing backoff over a bounded budget — 12 attempts, ~200s of waiting, first
340
- match wins — and a version that never appears still fails closed with a
341
- `::warning::` explaining what to check. Both directions are covered by
342
- `tests/test_npm_registry_visibility.py`.
343
- - **The poll queries the registry over HTTP instead of `npm view`.** `npm view`'s
344
- stdout is not a stable contract, its on-disk HTTP cache can answer from state
345
- staler than the registry, and it inherits `npm_config_*` and `NODE_AUTH_TOKEN`
346
- from the environment. `GET /<package>/<version>` is exactly what an
347
- independent reader requests, with no cache in between.
348
- - **Documentation now matches the registries.** `README.md`, `SECURITY.md` and
349
- `docs/index.md`, `docs/quickstart.md`, `docs/integrations.md` no longer say npm
350
- is unpublished or that the published builds are behind `main`. `2.4.2` is on
351
- both registries; `2.4.0` and `2.4.1` carried the defects and `2.4.2` is the
352
- fixed release.
353
- - **The attestation story is stated per registry, from the registries themselves.**
354
- PyPI `2.4.2` carries a PEP 740 provenance attestation. npm `2.4.2` does **not**:
355
- the attestations endpoint returns `404` and the packument has no `provenance`
356
- field, because it was published in token mode, which cannot mint one. The npm
357
- `dist.signatures` block is npm's own signature over the packument and is not
358
- described as provenance.
359
- - **The npm badge is retained** only after confirming the registry's `latest`
360
- (`2.4.2`) matches PyPI's version (`2.4.2`).
361
-
362
- ## v2.4.2 - 2026-10-03
363
-
364
- - **npm publishing is restored, and `2.4.2` exists because the published `2.4.1`
365
- npm build is broken.** Verified against the registry tarball, not against the
366
- repository: `plan-auditor@2.4.1` ships an `index.js` that passes
367
- `cwd: __dirname` to `spawn`, so `npx plan-auditor validate .` from a
368
- workspace directory resolves `.` against the *installed package directory* and
369
- reports `plan yok: .../node_modules/plan-auditor/.plan-auditor/plan.json`. The
370
- launcher starts and an absolute workspace path works, so the failure is silent
371
- and looks authoritative — it audits the wrong tree. `2.4.1` cannot be
372
- republished because npm versions are immutable, hence the patch bump.
373
- - **The launcher now runs the CLI in the caller's working directory.** `index.js`
374
- keeps `process.cwd()` and prepends the package directory to `PYTHONPATH`
375
- instead, so the bundled `supervisor` package stays importable without changing
376
- what a relative workspace path means.
377
- - **`npm publish` runs again.** The previous commit replaced the publish step
378
- with `echo "npm publishing is disabled" && exit 0`, so the workflow reported
379
- success while publishing nothing. Publishing is back, gated on the version not
380
- already existing on the registry, and selectable between OIDC trusted
381
- publishing and an `NPM_TOKEN` fallback that must be requested explicitly.
382
- Correction: `2.4.2` itself was published in **token mode** — the run log
383
- records `selected publish mode: token` — so it carries **no** provenance
384
- attestation. The attestation endpoint for `plan-auditor@2.4.2` returns `404`
385
- and the packument has no `provenance` field. Only PyPI publishes with
386
- attestation, via trusted publishing.
387
- - **The publish path proves the artifact works before uploading it.** The gate
388
- packs the tarball, installs it into a throwaway directory, and runs the
389
- *installed* `bin/plan-auditor.js` from an unrelated working directory against a
390
- throwaway workspace. The `2.4.0` syntax error and the `2.4.1` wrong-directory
391
- bug both fail that check.
392
- - **npm and PyPI now share one release trigger.** Touching
393
- `.github/pypi-release-trigger` on `main` publishes the same version to both
394
- registries, so the two cannot drift apart.
395
-
396
- ### OSS visibility and onboarding (shipped in `2.4.2`)
397
-
398
- Documentation and project-metadata work only. No behaviour in the supervisor, the
399
- deterministic core or the npm launcher changed. This work was merged before the
400
- `2.4.2` release commit, so it is part of `2.4.2` rather than still pending.
401
-
402
- - **The README now states the real release status instead of implying parity.** The
403
- published PyPI `2.4.1` was built 2026-09-29 and npm `2.4.1` 2026-10-01, from
404
- different commits, and neither is byte-identical to `main`. The README carries a
405
- table of what each published build actually contains, and says plainly which
406
- surface to use for the verified quick start. A maintainer note marks the section
407
- for deletion in the commit that bumps the version.
408
- - **The "ships with the package" claim in `docs/benchmark.md` was false and is now
409
- scoped.** The PyPI *wheel* contains only the `supervisor` and `scripts` packages;
410
- `examples/fib` ships in the repository and in the *sdist*. Verified against the
411
- published `plan_auditor-2.4.1-py3-none-any.whl`.
412
- - **`docs/benchmark.md` gained a provenance table.** Every remaining quality claim
413
- is tied to the exact command that produces it, plus the tool, the commit the text
414
- describes and where the live value lives. The coverage figure for any commit is
415
- deliberately not copied into the page, because a transcribed number goes stale;
416
- the command and the workflow comment are the only places it appears. No
417
- adoption, download or usage figure is printed anywhere, and telemetry is not
418
- collected.
419
- - **The skill path now says where the files come from.** The PyPI wheel ships no
420
- `SKILL.md`, `references/` or `hooks/`, so `pipx install plan-auditor` alone
421
- cannot use the Agent Skill path. The README and `docs/integrations.md` now give a
422
- concrete `git clone` plus copy command instead of saying "copy the repository".
423
- - **`docs/quickstart.md` no longer overstates its own verification.** It claimed
424
- "everything on this page is executed by `tests/test_readme_quickstart.py`"; that
425
- test parses the README's quick-start section only. The page now names the three
426
- tests that actually check it and their separate responsibilities.
427
- - **The `2.4.0` launcher troubleshooting entry was split by surface.** It conflated
428
- the npm launcher bug with the pip console script; npm `2.4.0` is named as the
429
- broken build and the fix is given per surface.
430
- - **Interpreter requirement is documented where it bites.** The examples invoke
431
- `python`; the note explains what to do on a system that only ships `python3`,
432
- and that the npm launcher already picks `python3` off Windows.
433
- - **README links are absolute and correct on every surface.** Repository-relative
434
- links are dead on the PyPI project page, which renders this same file as the
435
- package description. Every `docs/`, `SKILL.md`, `CHANGELOG.md`, `SECURITY.md`,
436
- `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `CITATION.cff` and `LICENSE` link is now
437
- absolute, and each target was checked over HTTP.
438
- - **A documentation URL is stated, and so is the reason there is no site yet.**
439
- `docs/index.md` is the canonical entry point. `mkdocs.yml` is configured but no
440
- GitHub Pages workflow exists, so the README no longer promises a rendered site
441
- and instead gives the two-command local build with the `mkdocs-material`
442
- dependency named. The old pointer to `CONTRIBUTING.md` for `mkdocs serve` was
443
- false, since that file did not mention mkdocs at all.
444
- - **"15 supervision layers" is now sourced.** The README attributes the count to
445
- the L0-L14 table in `docs/architecture.md` instead of stating it bare.
446
- - **A project-status section was added** without any download, star or user
447
- figure: pre-1.0, single maintainer, no external contributors yet, no measured
448
- comparison against other tools, and the note that human-readable output is
449
- Turkish with no locale switch yet.
450
- - **Governance files rewritten.** `SECURITY.md` gained a supported-versions table,
451
- the private advisory route, a response target and an explicit statement that
452
- there is no PGP key. `CODE_OF_CONDUCT.md` moved enforcement off the public
453
- issue tracker, which would have exposed reporters, onto a private address, and
454
- its Contact section now matches what Contributor Covenant 2.1 requires.
455
- - **`CONTRIBUTING.md` documents the workflow the code actually implements** — the
456
- real test and coverage commands, the seal and trust chain, exit codes, the
457
- `CHECK_TYPES` extension path, and the release procedure including the reason the
458
- two registries diverged.
459
- - **Issue and pull-request templates added**, plus a documentation URL in
460
- `CITATION.cff` and repository `topics`/`description` corrected to match what the
461
- project is.
462
- - **`mkdocs.yml`** gained `repo_name`, `edit_uri` so every page has an "edit on
463
- GitHub" link, and social links for the repository, PyPI, npm and the citation
464
- file. Navigation is unchanged and still covers every page.
465
-
466
- #### Re-verified against `main` after #24
467
-
468
- - **The README's release-status text was corrected against the merged code rather
469
- than the previous `main`.** The wheel now force-includes the Agent Skill assets
470
- under `plan_auditor_skill/`, so the earlier claim that a `pip` install cannot
471
- supply `SKILL.md`, `references/` or `hooks/` was true of the published `2.4.1`
472
- wheel and false of anything built from `main`. The README and
473
- `docs/integrations.md` now document both routes — a checkout, or the installed
474
- `plan_auditor_skill/` directory — with a command that prints its location, and
475
- the claim is scoped to the already-published build. `docs/` and `examples/` are
476
- still not in the wheel, which is stated as such.
477
- - **The npm surface was re-checked against the merged launcher, not the old one.**
478
- `index.js` now spawns the CLI with the caller's working directory and puts the
479
- package directory on `PYTHONPATH`. The published npm `2.4.1` still resolves a
480
- bare `.` against the installed package and can audit the wrong tree while
481
- looking authoritative, so the README and `docs/quickstart.md` say so, give the
482
- absolute-path workaround, and stop implying `npx` is unconditionally CI-safe.
483
- Exit-code propagation, the `bin` field and the `python`/`python3` selection are
484
- unchanged.
485
- - **The coverage command in the provenance table was stale and is fixed.** It named
486
- `--cov=supervisor --cov=scripts --cov-branch`, which measured the checkout. The
487
- merged `pyproject.toml` reads `branch`, `source_pkgs` and `fail_under` from
488
- `[tool.coverage.*]`, and `conftest.py` pins the suite to the installed
489
- distribution, so the documented command is now
490
- `python -m pytest tests/ -q --cov --cov-report=term-missing`.
491
- - **"The mkdocs step is not part of CI" is no longer true** and was removed.
492
- `docs (mkdocs --strict)` is a required check, pinned to `mkdocs==1.6.1` and
493
- `mkdocs-material==9.6.14`; the page now names those pins and adds
494
- `.github/scripts/check_dist_assets.py` to the reproduce list.
495
- - **`CONTRIBUTING.md` documents the gates that now exist**: `ruff` and `mypy`
496
- against ratchet baselines that refuse to record a higher count,
497
- `version-lockstep`, `workflow-syntax`, `build (wheel + sdist)` with a
498
- `twine check --strict`, `npm-launcher`, and `wheel-cli-smoke` on three
499
- platforms. The release section was rewritten: OIDC trusted publishing only, the
500
- GitHub release gated on the version-existence check, an npm `verify` job and an
501
- already-published gate, and `main` protected by a ruleset with no bypass actors.
502
- The local setup changed from `pip install -e .` to a non-editable install,
503
- because `conftest.py` resolves the runtime packages from site-packages and fails
504
- loudly if they are absent.
505
-
506
- ## The two published `2.4.1` builds are not the same artifact
507
-
508
- Recorded here so nobody has to rediscover it: the same version number was
509
- published to two registries from two different commits.
510
-
511
- | Build | Published | Notes |
512
- |---|---|---|
513
- | 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. |
514
- | npm `2.4.1` | 2026-10-01 | Built from the documentation rewrite; carries the `files` allowlist, the repaired launcher and the current README. |
515
-
516
- `pyproject.toml` was left at `2.4.1` and the release workflow skips a version
517
- that already exists on PyPI, so the metadata on `main` cannot be published without
518
- a version bump. That part is unchanged by this entry.
519
-
520
- The other half has been fixed since, by #24: the npm workflow now runs a `verify`
521
- job — the launcher tests and the packed-tarball check — before publishing, and
522
- refuses a version already on the registry, so the absence of any gate that let
523
- `2.4.0` ship a syntax error is no longer the state of the tree. `main` is also
524
- now protected by a ruleset with no bypass actors, so none of the required checks
525
- can be skipped by pushing to `main`.
526
-
527
- **Still outstanding:** the version bump itself. Until `2.4.2` is published to both
528
- registries, a `pip` user keeps seeing the pre-rewrite README on the project page.
529
-
530
- ## v2.4.1 — PyPI 2026-09-29, npm 2026-10-01
531
-
532
- ### Published to both registries
533
-
534
- - Metadata-only patch release: improved PyPI discovery keywords, classifiers, description, documentation links, and synchronized package version metadata.
535
-
536
- ### Published to npm only (built from the documentation rewrite)
537
-
538
- #### README rebuilt around a verified quick start
539
-
540
- - **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.
541
- - **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.
542
- - **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.
543
- - **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.
544
- - **`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.
545
- - **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.
546
- - **`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.
547
- - **`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.
548
- - **`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`).
549
- - **Housekeeping:** `.gitignore` now excludes `.venv/`, `venv/`, `.tmp-site/`, `site/`, and `node_modules/`.
550
- - **Removed the broken PyPI downloads badge.** `img.shields.io/pypi/dm/plan-auditor`
551
- answers HTTP 200 while rendering `downloads: inaccessible`, because shields.io
552
- scrapes a third-party download API that is rate-limited or down. The README now
553
- links the PyPI and npm project pages instead, which always answer 200 and always
554
- carry the real numbers. No count is hardcoded. `tests/test_docs_metadata.py` now
555
- fails if a `img.shields.io/pypi/d...` badge or a hand-copied download count
556
- reappears anywhere in the docs.
557
-
558
- #### npm launcher exit codes and transcript fidelity
559
-
560
- - **Both npm entry points now propagate the verifier's exit code.** The fix was
561
- initially placed only in `index.js`, but `package.json` maps the `plan-auditor`
562
- bin to `bin/plan-auditor.js` — the file `npx plan-auditor` actually executes —
563
- and that file discarded the child's result entirely. Verified: `node
564
- bin/plan-auditor.js run <failing plan>` returned `0` while `index.js` returned
565
- `1`. `index.js` now exposes `runPythonAndPropagate()`, which attaches the
566
- `close` and `error` handlers and mirrors the code, and `bin/plan-auditor.js`
567
- calls it. Exit codes are `1` for a failed step, `2` for a blocked audit, `0` for
568
- a proven workspace, and nonzero if Python cannot be started.
569
- - **`tests/test_npm_launcher.py` covers every entry point and the real package.**
570
- Every exit-code assertion is parameterised over `bin/plan-auditor.js` and
571
- `index.js`, the launcher's code is compared against the underlying CLI's, and the
572
- failing/passing/blocked checks are repeated against the packed npm tarball so a
573
- fix that works only in the working tree fails the suite. All of these were
574
- confirmed to fail against the pre-fix `bin` (6 failures) and pass after.
575
- - `test_docs_metadata.py` and `test_doc_transcripts.py` now check that the `bin`
576
- field resolves to a launcher that propagates rather than a bare spawn, and that
577
- documented launcher commands reference a file that exists.
578
- - **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.
579
- - **Removed a fabricated transcript line from `docs/benchmark.md`:** it showed
580
- `çıktı: AssertionError` where the tool emits a full traceback. Replaced with
581
- verbatim output, plus the equivalent launcher invocation and its exit code.
582
- - **Transcripts are now stable across the CI matrix.** Two platform differences
583
- had made the documented failure output wrong somewhere: the core joins a
584
- captured traceback into one physical line separated by `" | "` (a Windows
585
- carriage return before each separator makes a text-mode reader render it as
586
- several lines), and Python 3.11+ adds the offending source line and a caret to
587
- tracebacks. The attempt transcripts in the README, `docs/quickstart.md` and
588
- `docs/cli.md` now use a stderr-free sentinel check (`sys.exit(3)`) so the
589
- rendered output is byte-identical on every Python version and platform, with a
590
- note explaining what a stderr-bearing check adds.
591
- - `tests/test_doc_transcripts.py` reads raw bytes and normalises `\r` itself
592
- instead of relying on text-mode universal newlines, and rejects any documented
593
- traceback that pins a version-specific frame.
594
- - **`.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.
595
-
596
- ## v2.4.0 — 2026-09-06
597
-
598
- - **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.
599
- - **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.
600
- - **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.
601
- - **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.
602
- - **New installed CLI:** adds `plan-auditor-formalize compile|verify`; package and skill identity advance to stable `2.4.0`.
603
- - **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.
604
-
605
- ## v2.3.0 — 2026-09-06
606
-
607
- - **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.
608
- - **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.
609
- - **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.
610
- - **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.
611
- - **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.
612
- - **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.
613
- - **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.
614
- - **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.
615
-
616
- ## v2.2.0 — 2026-09-05
617
-
618
- - **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.
619
- - **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.
620
- - **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.
621
- - **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.
622
- - **Seal self-consistency:** v3/v4 seals validate their contract hash and criteria count on load/save before being trusted or authenticated.
623
- - **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.
624
- - **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.
625
- - **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`.
626
- - **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.
627
- - **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.
628
- - **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.
629
- - **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.
630
-
631
- ## v2.1.0 — 2026-09-05
632
-
633
- - **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`.
634
- - **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.
635
- - **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.
636
- - **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.
637
- - **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.
638
- - **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.
639
- - **Complete evidence verification:** `plan-auditor evidence verify` checks both active evidence and anchored archives.
640
- - **Safe plan addressing:** named plan IDs are validated as safe basenames and cannot use lexical `..` traversal outside `.plan-auditor/plans`.
641
- - **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.
642
- - **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.
643
- - **Stronger fresh-audit fingerprint:** workspace fingerprints include directories, file type and mode/executable bits in addition to contents and symlink targets.
644
- - **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.
645
- - **Bounded verifier output:** command output is spooled/bounded instead of being captured without limit in memory; output-limit overflow fails the check.
646
- - **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.
647
- - **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`.
648
- - **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.
649
- - **Versioning:** development version advanced to `2.1.0` so the hardened source cannot be confused with the already-published `2.0.2` artifact.
650
- - **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.
651
- - **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.
652
-
653
- ## v2.0.2 — 2026-09-05
654
-
655
- - **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.
656
- - **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.
657
- - **Deterministic audit freshness:** full audits record SHA-256 fingerprints of the verification contract and workspace contents instead of relying on filesystem mtimes.
658
- - **Cross-archive evidence anchoring:** rotations write archive anchors and L11 verifies internal JSONL hash chains and links between archives.
659
- - **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.
660
- - **Adversarial gate integration:** high/critical L12 findings with no deterministic follow-up prevent PASS and produce UNKNOWN instead of being ignored.
661
- - **User policy loading:** deterministic JSON/TOML policies load from configured policy directories.
662
- - **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.
663
- - **Daemon integration:** the background supervisor persists an integrated assessment and final gate outcome on every observation cycle.
664
-
665
- ## v1.1.0 — 2026-09-03
666
-
667
- - **Portable skill paths:** `SKILL.md` resolves auditor scripts relative to the skill directory.
668
- - **Hard attempt cap:** `run` refuses a step after the configured failed-attempt cap unless explicitly forced.
669
- - **Multi-plan core support:** `--plan <name>` operates on `.plan-auditor/plans/<name>.json`; evidence is scoped per plan.
670
- - **Snapshot / rollback:** snapshot and rollback support were introduced and recorded in evidence.
671
- - **Evidence rotation:** large evidence logs rotate into `.plan-auditor/archive/`.
672
-
673
- ## v1.0.0 — 2026-09-03
674
-
675
- - Initial strict plan + independent auditor Agent Skill.
676
- - 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.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`).
677
748
  - Deterministic fresh execution, append-only SHA-256 evidence, tamper detection, and full-audit final gate.