plan-auditor 2.0.1__tar.gz → 2.0.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.

Potentially problematic release.


This version of plan-auditor might be problematic. Click here for more details.

Files changed (57) hide show
  1. plan_auditor-2.0.2/.gitignore +15 -0
  2. plan_auditor-2.0.2/CHANGELOG.md +30 -0
  3. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/PKG-INFO +1 -1
  4. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/pyproject.toml +1 -1
  5. plan_auditor-2.0.2/scripts/audit_check.py +703 -0
  6. plan_auditor-2.0.2/supervisor/__init__.py +28 -0
  7. plan_auditor-2.0.2/supervisor/agents.py +252 -0
  8. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/cli.py +98 -44
  9. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/config.py +39 -17
  10. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/daemon.py +50 -12
  11. plan_auditor-2.0.2/supervisor/evidence.py +153 -0
  12. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/gate.py +44 -14
  13. plan_auditor-2.0.2/supervisor/orchestrator.py +379 -0
  14. plan_auditor-2.0.2/supervisor/policies.py +260 -0
  15. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/workspace.py +52 -44
  16. plan_auditor-2.0.2/tests/test_hooks.py +101 -0
  17. plan_auditor-2.0.2/tests/test_integration_hardening.py +155 -0
  18. plan_auditor-2.0.1/.gitignore +0 -6
  19. plan_auditor-2.0.1/CHANGELOG.md +0 -17
  20. plan_auditor-2.0.1/scripts/audit_check.py +0 -520
  21. plan_auditor-2.0.1/supervisor/__init__.py +0 -53
  22. plan_auditor-2.0.1/supervisor/agents.py +0 -169
  23. plan_auditor-2.0.1/supervisor/evidence.py +0 -115
  24. plan_auditor-2.0.1/supervisor/policies.py +0 -152
  25. plan_auditor-2.0.1/tests/test_hooks.py +0 -79
  26. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/CONTRIBUTING.md +0 -0
  27. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/LICENSE +0 -0
  28. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/README.md +0 -0
  29. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/SKILL.md +0 -0
  30. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/docs/architecture.md +0 -0
  31. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/docs/integrations.md +0 -0
  32. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/docs/threat-model.md +0 -0
  33. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/examples/fib/.plan-auditor/plan.json +0 -0
  34. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/examples/fib/fib.py +0 -0
  35. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/examples/fib/test_fib.py +0 -0
  36. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/hooks/README.md +0 -0
  37. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/references/plan-format.md +0 -0
  38. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/scripts/__init__.py +0 -0
  39. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/scripts/stop_gate.py +0 -0
  40. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/adversarial.py +0 -0
  41. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/events.py +0 -0
  42. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/goals.py +0 -0
  43. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/lifecycle.py +0 -0
  44. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/plan_verifier.py +0 -0
  45. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/priority.py +0 -0
  46. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/requirements.py +0 -0
  47. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/sealing.py +0 -0
  48. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/supervisor/watchdog.py +0 -0
  49. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_adversarial.py +0 -0
  50. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_agents_gate.py +0 -0
  51. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_audit_check.py +0 -0
  52. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_cli.py +0 -0
  53. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_core_layers.py +0 -0
  54. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_daemon.py +0 -0
  55. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_events.py +0 -0
  56. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_extra_layers.py +0 -0
  57. {plan_auditor-2.0.1 → plan_auditor-2.0.2}/tests/test_failure_injection.py +0 -0
@@ -0,0 +1,15 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .pytest_cache/
4
+ .plan-auditor/evidence.jsonl
5
+ .plan-auditor/*.tmp
6
+ .plan-auditor/archive/
7
+ .plan-auditor/snapshots/
8
+ .plan-auditor/seal.json
9
+ .plan-auditor/supervisor-runtime.json
10
+ .plan-auditor/supervisor-assessment.json
11
+ .plan-auditor/supervisor.stop
12
+ .plan-auditor/supervisor.log
13
+ .plan-auditor/watchdog.jsonl
14
+ .plan-auditor/gate-warning.json
15
+ .plan-auditor/agents/
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## v2.0.2 — 2026-09-05
4
+
5
+ - **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.
6
+ - **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.
7
+ - **Deterministic audit freshness:** full audits now record SHA-256 fingerprints of the verification contract and workspace contents. Any post-audit content change invalidates completion without relying on filesystem mtimes.
8
+ - **Cross-archive evidence anchoring:** rotations write archive anchors and L11 verifies both internal JSONL hash chains and links between archives.
9
+ - **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.
10
+ - **Adversarial gate integration:** high/critical L12 findings with no deterministic follow-up prevent PASS and produce UNKNOWN instead of being ignored.
11
+ - **User policy loading:** deterministic JSON/TOML policies now load from configured policy directories.
12
+ - **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.
13
+ - **Daemon integration:** the background supervisor now persists an integrated assessment and final gate outcome on every observation cycle.
14
+ - **Regression coverage:** integration-hardening tests cover stale `verified` labels, fingerprints, archive anchors, cross-process ownership, strict conflicts, policy loading, and read-only workspace observation.
15
+
16
+ ## v1.1.0 — 2026-09-03
17
+
18
+ - **Portable skill paths:** `SKILL.md` no longer hardcodes an install path; agents resolve `scripts/audit_check.py` relative to the skill directory. The package now drops into any Agent-Skills tool (Command Code, Claude Code, Codex CLI, Cursor, Grok Build, OpenCode).
19
+ - **Hard attempt cap:** `run` refuses to execute a step that already failed `MAX_ATTEMPTS` (3) times — evidence-based, agent can't grind past it. `--force` overrides explicitly.
20
+ - **Multi-plan support:** `--plan <name>` operates on `.plan-auditor/plans/<name>.json`; the default remains `plan.json`. Evidence records are scoped per plan; `stop_gate.py` checks all active plans.
21
+ - **Snapshot / rollback:** `snapshot` archives the files listed in the plan's optional `snapshot` field (falls back to `git ls-files`) into a zip; `rollback` restores the latest (`--to` to pick one). Both actions are recorded in the evidence chain.
22
+ - **Evidence rotation:** logs over 2 MB are moved to `.plan-auditor/archive/` automatically; the chain restarts cleanly.
23
+ - **Test suite:** 25 unit tests covering schema, checks, chain/tamper, caps, multi-plan, rotation, snapshot/rollback.
24
+
25
+ ## v1.0.0 — 2026-09-03
26
+
27
+ - Initial release: strict plan + independent auditor Agent Skill.
28
+ - `plan.json` schema with machine-checkable `verify` checks (`run`, `exec`, `file_exists`, `regex`, `pytest`).
29
+ - Deterministic auditor: fresh-shell execution, append-only SHA-256 hash-chained evidence log, tamper detection (exit 2), full-audit final gate.
30
+ - Mandatory behavioral check per step; recovery-loop rules; self-audit CI gate (GitHub Actions); Command Code Stop-hook enforcement gate.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: plan-auditor
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Independent multi-layer verification supervisor for AI coding agents
5
5
  Project-URL: Homepage, https://github.com/Furox-Art/plan-auditor
6
6
  Project-URL: Repository, https://github.com/Furox-Art/plan-auditor
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "plan-auditor"
7
- version = "2.0.1"
7
+ version = "2.0.2"
8
8
  description = "Independent multi-layer verification supervisor for AI coding agents"
9
9
  readme = "README.md"
10
10
  license = "MIT"