agentic-preflight 0.5.2__tar.gz → 0.5.3__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.
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/CHANGELOG.md +84 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/COMPATIBILITY.md +2 -4
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/CONTRIBUTING.md +2 -1
- agentic_preflight-0.5.3/PKG-INFO +411 -0
- agentic_preflight-0.5.3/README.md +181 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/approval.py +26 -2
- agentic_preflight-0.5.3/agentic_preflight/attestation.py +287 -0
- agentic_preflight-0.5.3/agentic_preflight/attestation_schema.py +110 -0
- agentic_preflight-0.5.3/agentic_preflight/ci_authority.py +283 -0
- agentic_preflight-0.5.3/agentic_preflight/ci_checks.py +120 -0
- agentic_preflight-0.5.3/agentic_preflight/ci_merge.py +206 -0
- agentic_preflight-0.5.3/agentic_preflight/ci_models.py +58 -0
- agentic_preflight-0.5.3/agentic_preflight/ci_policy.py +78 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/cli.py +2 -0
- agentic_preflight-0.5.3/agentic_preflight/cli_ci.py +123 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/cli_integrations.py +11 -10
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/cli_policy.py +126 -15
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/cli_runs.py +26 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/cli_support.py +8 -0
- agentic_preflight-0.5.3/agentic_preflight/codeowners.py +42 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/config.py +101 -92
- agentic_preflight-0.5.3/agentic_preflight/config_compatibility.py +13 -0
- agentic_preflight-0.5.3/agentic_preflight/consumer_capabilities.py +46 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/diff.py +23 -3
- agentic_preflight-0.5.3/agentic_preflight/digests.py +11 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/errors.py +16 -0
- agentic_preflight-0.5.3/agentic_preflight/evidence_transport.py +47 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/findings.py +11 -1
- agentic_preflight-0.5.3/agentic_preflight/fingerprints.py +305 -0
- agentic_preflight-0.5.3/agentic_preflight/github_api.py +119 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/gitx.py +105 -9
- agentic_preflight-0.5.3/agentic_preflight/grounding.py +325 -0
- agentic_preflight-0.5.3/agentic_preflight/grounding_sources.py +78 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/hook.py +44 -5
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/initcmd.py +9 -4
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/machine.py +23 -4
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/mergeback.py +39 -2
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/models.py +93 -5
- agentic_preflight-0.5.3/agentic_preflight/note_availability.py +278 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/publish/gate.py +2 -0
- agentic_preflight-0.5.3/agentic_preflight/refresh_validation.py +246 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/risk.py +3 -2
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/__init__.py +2 -0
- agentic_preflight-0.5.3/agentic_preflight/runs/_evidence_install.py +48 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/_session.py +20 -6
- agentic_preflight-0.5.3/agentic_preflight/runs/evidence.py +386 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/lifecycle.py +145 -15
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/mergeback.py +31 -4
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/publish.py +112 -26
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/resolve.py +49 -8
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/review.py +56 -4
- agentic_preflight-0.5.3/agentic_preflight/runs/review_compare.py +421 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/review_coverage.py +4 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/review_executor.py +10 -30
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/review_protocol.py +28 -5
- agentic_preflight-0.5.3/agentic_preflight/runs/stage_baseline.py +126 -0
- agentic_preflight-0.5.3/agentic_preflight/runs/stage_delegation.py +57 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/stages.py +141 -194
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/start.py +61 -32
- agentic_preflight-0.5.3/agentic_preflight/shell_fingerprints.py +214 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/change_scope.py +26 -15
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/detect.py +24 -8
- agentic_preflight-0.5.3/agentic_preflight/stages/protected_output.py +74 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/store.py +106 -10
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/sync.py +22 -2
- agentic_preflight-0.5.3/agentic_preflight/templates/ci/preflight-ci.yml +57 -0
- agentic_preflight-0.5.3/agentic_preflight/templates/ci/preflight-tests.yml +95 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/RELEASING.md +19 -7
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/adr/0001-orchestration-boundaries.md +24 -2
- agentic_preflight-0.5.3/docs/attestations-and-ci.md +319 -0
- agentic_preflight-0.5.3/docs/change-scope.md +38 -0
- agentic_preflight-0.5.3/docs/ci-test-authority-design.md +122 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/configuration.md +141 -7
- agentic_preflight-0.5.3/docs/context-grounding.md +89 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/dogfooding-case-study.md +105 -6
- agentic_preflight-0.5.3/docs/evidence-refresh-design.md +85 -0
- agentic_preflight-0.5.3/docs/fingerprint-contract.md +117 -0
- agentic_preflight-0.5.3/docs/independent-review.md +69 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/installation.md +13 -0
- agentic_preflight-0.5.3/docs/limits.md +100 -0
- agentic_preflight-0.5.3/docs/portfolio-review.md +97 -0
- agentic_preflight-0.5.3/docs/pre-push-hook.md +60 -0
- agentic_preflight-0.5.3/docs/regression-eval.md +103 -0
- agentic_preflight-0.5.3/docs/schema-compatibility.md +62 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/worktree-modes.md +12 -3
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/pyproject.toml +1 -1
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/skill/SKILL.md +121 -29
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/skill/reference/commands.md +163 -30
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/skill/reference/docs-rubric.md +3 -2
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/skill/reference/findings-schema.md +5 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/skill/reference/playbooks.md +76 -15
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/conftest.py +23 -0
- agentic_preflight-0.5.3/tests/test_change_scope.py +76 -0
- agentic_preflight-0.5.3/tests/test_ci_authority.py +402 -0
- agentic_preflight-0.5.3/tests/test_ci_checks.py +232 -0
- agentic_preflight-0.5.3/tests/test_ci_lifecycle.py +486 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_cli_m0.py +55 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_cli_m1.py +94 -0
- agentic_preflight-0.5.3/tests/test_codeowners.py +110 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_config.py +165 -2
- agentic_preflight-0.5.3/tests/test_consumer_capabilities.py +102 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_diff.py +21 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_docs_match_cli.py +49 -2
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_docs_stage.py +135 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_end_to_end.py +3 -1
- agentic_preflight-0.5.3/tests/test_evals_runner.py +317 -0
- agentic_preflight-0.5.3/tests/test_evidence_install.py +56 -0
- agentic_preflight-0.5.3/tests/test_evidence_refresh.py +540 -0
- agentic_preflight-0.5.3/tests/test_evidence_transport.py +272 -0
- agentic_preflight-0.5.3/tests/test_fingerprints.py +415 -0
- agentic_preflight-0.5.3/tests/test_github_api.py +162 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_gitx.py +16 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_governance.py +37 -2
- agentic_preflight-0.5.3/tests/test_grounding.py +444 -0
- agentic_preflight-0.5.3/tests/test_grounding_sources.py +86 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_hook.py +72 -10
- agentic_preflight-0.5.3/tests/test_hosted_workflows.py +210 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_machine.py +2 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_machine_properties.py +10 -8
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_mergeback.py +94 -0
- agentic_preflight-0.5.3/tests/test_note_availability.py +389 -0
- agentic_preflight-0.5.3/tests/test_protected_output.py +71 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_publish.py +53 -1
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_rebase_tolerance.py +66 -1
- agentic_preflight-0.5.3/tests/test_review_compare.py +310 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_review_executor.py +20 -0
- agentic_preflight-0.5.3/tests/test_reviewer_examples.py +225 -0
- agentic_preflight-0.5.3/tests/test_schema_compatibility.py +67 -0
- agentic_preflight-0.5.3/tests/test_shell_fingerprints.py +129 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_shell_stages.py +19 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_stage_detection.py +6 -0
- agentic_preflight-0.5.3/tests/test_stage_recovery.py +117 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_store.py +82 -0
- agentic_preflight-0.5.3/tests/test_strict_mode_restart.py +85 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_sync.py +85 -1
- agentic_preflight-0.5.3/tests/test_untrusted_content.py +117 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_worktree_ownership.py +149 -0
- agentic_preflight-0.5.2/PKG-INFO +0 -545
- agentic_preflight-0.5.2/README.md +0 -315
- agentic_preflight-0.5.2/agentic_preflight/attestation.py +0 -172
- agentic_preflight-0.5.2/docs/attestations-and-ci.md +0 -101
- agentic_preflight-0.5.2/docs/change-scope.md +0 -29
- agentic_preflight-0.5.2/docs/limits.md +0 -62
- agentic_preflight-0.5.2/docs/pre-push-hook.md +0 -36
- agentic_preflight-0.5.2/tests/test_change_scope.py +0 -29
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/.gitignore +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/LICENSE +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/SECURITY.md +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/SUPPORT.md +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/__init__.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/__main__.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/envelope.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/filelock.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/fileperms.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/integrations.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/publish/__init__.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/py.typed +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/runs/review_retry.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/__init__.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/command.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/docs.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/stages/shellstage.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/agentic_preflight/worktree.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/docs/adr/0002-scope-run-ownership-to-worktrees.md +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/install.ps1 +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/install.sh +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/driver.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_approval.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_atomic_write.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_command_plan.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_encoding.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_envelope.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_filelock.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_fileperms.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_findings.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_install_script.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_install_script_windows.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_integrations.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_invariants.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_models.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_review_boundaries.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_risk.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/tests/test_worktree.py +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/uninstall.ps1 +0 -0
- {agentic_preflight-0.5.2 → agentic_preflight-0.5.3}/uninstall.sh +0 -0
|
@@ -5,6 +5,88 @@ All notable changes to Agentic Preflight are documented here. This project follo
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## [0.5.3] - 2026-09-07
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Opt-in trusted GitHub Actions test authority, with separate publication and merge
|
|
13
|
+
predicates, schema-6 pending delegation, protected integration-test workflow
|
|
14
|
+
templates, and live attempt-specific CI retrieval. Local tests remain the default.
|
|
15
|
+
- Automatic per-stage evidence refresh after equivalent-content restacks, with
|
|
16
|
+
original execution provenance in v5 attestations. Review/docs compare content
|
|
17
|
+
and context; shell reuse requires committed input contracts. Producers preserve
|
|
18
|
+
v4 compatibility until the protected base supports the new consumer.
|
|
19
|
+
- Snapshot-bound repository grounding for review and docs context, including
|
|
20
|
+
configuration, documentation, CODEOWNERS, and branch-scoped review history.
|
|
21
|
+
- Independent review comparison with persisted executor submissions, agreement
|
|
22
|
+
reports, and worked Codex and Claude reviewer wrappers.
|
|
23
|
+
- A public synthetic regression evaluation with isolated vulnerable/fixed snapshots,
|
|
24
|
+
a deterministic dry mode, case selection, and a CI smoke run.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Pull-request merge monitoring and automatic post-merge cleanup are now disabled by
|
|
29
|
+
default. Set `[pr] automatedCleanup = true` to opt in; automatic pull-request creation
|
|
30
|
+
and hosted-check monitoring remain unchanged.
|
|
31
|
+
- Routine pull-request and main-branch CI runs use Linux with Python 3.13. Manual
|
|
32
|
+
and release runs retain all nine supported OS/Python combinations; scheduled
|
|
33
|
+
regression covers macOS 15 with Python 3.11 every Monday and Thursday.
|
|
34
|
+
- Refresh the README animation against the current CLI, show a readable gate
|
|
35
|
+
summary, and document animation verification and lockfile updates before release.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- Correct release and upgrade guidance, the pinned CI verifier example, shell-execution
|
|
40
|
+
recovery, Windows copy permissions, and documentation/test-skip contracts.
|
|
41
|
+
- Keep review comparison available in the CI-delegated and publication-ready states
|
|
42
|
+
without changing pending test evidence.
|
|
43
|
+
- Publish and retain original Git commits referenced by refreshed attestations, and
|
|
44
|
+
retrieve them in fresh hosted consumers. Preserve local shell-command overrides
|
|
45
|
+
in v5 evidence while enforcing protected lint commands for CI delegation.
|
|
46
|
+
- Guard publication snapshots and reject replacements of retained evidence refs,
|
|
47
|
+
including when branch force-pushes are allowed.
|
|
48
|
+
- Classify attestation failures and add an explicit trusted hosted helper that retries
|
|
49
|
+
only missing remote notes, pins the candidate and notes snapshot, and reports safe
|
|
50
|
+
attempt diagnostics. Both hosted attestation and approval checks use the helper
|
|
51
|
+
from the protected base, display failure JSON, and preserve the failing exit status.
|
|
52
|
+
- Retain unreadable shared run records during garbage collection, report classified
|
|
53
|
+
diagnostics, and preserve ownership in status and start recovery. Unreadable records
|
|
54
|
+
remain protected even under forced collection.
|
|
55
|
+
- Recover interrupted shell stages without retaining stale command, log, or output
|
|
56
|
+
hashes. Refuse to start over an in-progress Git operation and honor Git's effective
|
|
57
|
+
hook path.
|
|
58
|
+
- Validate configuration constraints on direct model construction as well as TOML
|
|
59
|
+
loading, including Windows absolute paths and traversal patterns.
|
|
60
|
+
- Public smoke evaluation method v2 isolates each selected snapshot in a neutral Git
|
|
61
|
+
repository, rejects case IDs in reviewer context, and excludes inherited scripted
|
|
62
|
+
answers from real provider processes. Reviewer subprocesses use the active Python
|
|
63
|
+
interpreter.
|
|
64
|
+
- Executable examples, MDX components, Jenkinsfiles, and unknown file types no longer
|
|
65
|
+
inherit automatic test skips from documentation or CI directory globs.
|
|
66
|
+
- CODEOWNERS grounding honors ownerless overrides and directory-aware matching.
|
|
67
|
+
Grounding limits per-source size, total bytes, and source count, and reports omitted
|
|
68
|
+
sources in snapshot-bound context metadata.
|
|
69
|
+
|
|
70
|
+
## [0.5.2.1] - 2026-09-02
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- `[pr] automatedCleanup` now controls the post-merge cleanup lifecycle and defaults to
|
|
75
|
+
`true`. Automatic pull-request creation remains enabled when it is `false`, but the
|
|
76
|
+
agent stops after hosted checks until the user explicitly requests cleanup. When it is
|
|
77
|
+
enabled, the agent polls the exact PR every 5 minutes and automatically performs the
|
|
78
|
+
pre-disclosed, run-scoped cleanup as soon as GitHub verifies the merge. Closed-unmerged
|
|
79
|
+
PRs and changed cleanup targets are preserved instead of being deleted. Polls select
|
|
80
|
+
the recorded full PR URL, and source branches are deleted only while the PR, local
|
|
81
|
+
branch, and remote branch still reference the disclosed gated head commit.
|
|
82
|
+
|
|
83
|
+
### Fixed
|
|
84
|
+
|
|
85
|
+
- Non-blocking review and documentation findings can now be dispositioned after their
|
|
86
|
+
stage turns green. `accepted` and `dismissed` notes remain in the run record without
|
|
87
|
+
invalidating green evidence, while a registered fix commit reopens review so every
|
|
88
|
+
later stage describes the repaired snapshot.
|
|
89
|
+
|
|
8
90
|
## [0.5.2] - 2026-08-31
|
|
9
91
|
|
|
10
92
|
### Fixed
|
|
@@ -383,6 +465,8 @@ First tagged pre-release.
|
|
|
383
465
|
Windows is not supported because the implementation requires `fcntl`, Bash, and POSIX
|
|
384
466
|
process groups.
|
|
385
467
|
|
|
468
|
+
[0.5.3]: https://github.com/elanthus/agentic-preflight/releases/tag/v0.5.3
|
|
469
|
+
[0.5.2.1]: https://github.com/elanthus/agentic-preflight/releases/tag/v0.5.2.1
|
|
386
470
|
[0.5.2]: https://github.com/elanthus/agentic-preflight/releases/tag/v0.5.2
|
|
387
471
|
[0.5.1]: https://github.com/elanthus/agentic-preflight/releases/tag/v0.5.1
|
|
388
472
|
[0.5.0]: https://github.com/elanthus/agentic-preflight/releases/tag/v0.5.0
|
|
@@ -51,10 +51,8 @@ directory, so a repository cannot supply the program that validates it.
|
|
|
51
51
|
The supported combinations receive different validation frequencies so pull-request
|
|
52
52
|
feedback stays fast:
|
|
53
53
|
|
|
54
|
-
- Pull requests and pushes to `main` run on `ubuntu-latest`
|
|
55
|
-
|
|
56
|
-
it is the platform whose failures are least likely to be noticed by a contributor
|
|
57
|
-
working on macOS or Linux.
|
|
54
|
+
- Pull requests and pushes to `main` run on `ubuntu-latest` with Python 3.13
|
|
55
|
+
to conserve GitHub Actions minutes.
|
|
58
56
|
- A scheduled regression run covers the oldest supported boundary, macOS 15 with
|
|
59
57
|
Python 3.11, every Monday and Thursday.
|
|
60
58
|
- Manual CI runs and release tags cover Python 3.11, 3.12, and 3.13 on
|
|
@@ -25,6 +25,7 @@ Run the same core checks used by CI:
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
uv run ruff check agentic_preflight tests
|
|
28
|
+
uv run ruff format --check agentic_preflight tests
|
|
28
29
|
uv run mypy agentic_preflight
|
|
29
30
|
uv run pytest --cov=agentic_preflight --cov-report=term-missing
|
|
30
31
|
```
|
|
@@ -41,7 +42,7 @@ you ran. All CI checks, including the 85% coverage floor and built-wheel smoke t
|
|
|
41
42
|
must pass before merge.
|
|
42
43
|
|
|
43
44
|
Pull-request CI intentionally uses only Ubuntu and Python 3.13. The oldest supported
|
|
44
|
-
macOS/Python boundary runs every Monday and Thursday, and the
|
|
45
|
+
macOS/Python boundary runs every Monday and Thursday, and the full nine-combination matrix runs
|
|
45
46
|
manually and on release tags; see [COMPATIBILITY.md](COMPATIBILITY.md).
|
|
46
47
|
|
|
47
48
|
By submitting a contribution, you agree that it is licensed under the repository's
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agentic-preflight
|
|
3
|
+
Version: 0.5.3
|
|
4
|
+
Summary: Stops your coding agent from pushing unverified work. Your agent does the reviewing; a state machine records the result per-commit and gates the push.
|
|
5
|
+
Project-URL: Homepage, https://github.com/elanthus/agentic-preflight
|
|
6
|
+
Project-URL: Repository, https://github.com/elanthus/agentic-preflight
|
|
7
|
+
Project-URL: Issues, https://github.com/elanthus/agentic-preflight/issues
|
|
8
|
+
Author-email: elanthus <tokenmagic33@gmail.com>
|
|
9
|
+
License: Apache License
|
|
10
|
+
Version 2.0, January 2004
|
|
11
|
+
http://www.apache.org/licenses/
|
|
12
|
+
|
|
13
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
14
|
+
|
|
15
|
+
1. Definitions.
|
|
16
|
+
|
|
17
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
18
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
19
|
+
|
|
20
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
21
|
+
the copyright owner that is granting the License.
|
|
22
|
+
|
|
23
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
24
|
+
other entities that control, are controlled by, or are under common
|
|
25
|
+
control with that entity. For the purposes of this definition,
|
|
26
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
27
|
+
direction or management of such entity, whether by contract or
|
|
28
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
29
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
30
|
+
|
|
31
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
32
|
+
exercising permissions granted by this License.
|
|
33
|
+
|
|
34
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
35
|
+
including but not limited to software source code, documentation
|
|
36
|
+
source, and configuration files.
|
|
37
|
+
|
|
38
|
+
"Object" form shall mean any form resulting from mechanical
|
|
39
|
+
transformation or translation of a Source form, including but
|
|
40
|
+
not limited to compiled object code, generated documentation,
|
|
41
|
+
and conversions to other media types.
|
|
42
|
+
|
|
43
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
44
|
+
Object form, made available under the License, as indicated by a
|
|
45
|
+
copyright notice that is included in or attached to the work
|
|
46
|
+
(an example is provided in the Appendix below).
|
|
47
|
+
|
|
48
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
49
|
+
form, that is based on (or derived from) the Work and for which the
|
|
50
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
51
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
52
|
+
of this License, Derivative Works shall not include works that remain
|
|
53
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
54
|
+
the Work and Derivative Works thereof.
|
|
55
|
+
|
|
56
|
+
"Contribution" shall mean any work of authorship, including
|
|
57
|
+
the original version of the Work and any modifications or additions
|
|
58
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
59
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
60
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
61
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
62
|
+
means any form of electronic, verbal, or written communication sent
|
|
63
|
+
to the Licensor or its representatives, including but not limited to
|
|
64
|
+
communication on electronic mailing lists, source code control systems,
|
|
65
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
66
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
67
|
+
excluding communication that is conspicuously marked or otherwise
|
|
68
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
69
|
+
|
|
70
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
71
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
72
|
+
subsequently incorporated within the Work.
|
|
73
|
+
|
|
74
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
78
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
79
|
+
Work and such Derivative Works in Source or Object form.
|
|
80
|
+
|
|
81
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
82
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
83
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
84
|
+
(except as stated in this section) patent license to make, have made,
|
|
85
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
86
|
+
where such license applies only to those patent claims licensable
|
|
87
|
+
by such Contributor that are necessarily infringed by their
|
|
88
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
89
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
90
|
+
institute patent litigation against any entity (including a
|
|
91
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
92
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
93
|
+
or contributory patent infringement, then any patent licenses
|
|
94
|
+
granted to You under this License for that Work shall terminate
|
|
95
|
+
as of the date such litigation is filed.
|
|
96
|
+
|
|
97
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
98
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
99
|
+
modifications, and in Source or Object form, provided that You
|
|
100
|
+
meet the following conditions:
|
|
101
|
+
|
|
102
|
+
(a) You must give any other recipients of the Work or
|
|
103
|
+
Derivative Works a copy of this License; and
|
|
104
|
+
|
|
105
|
+
(b) You must cause any modified files to carry prominent notices
|
|
106
|
+
stating that You changed the files; and
|
|
107
|
+
|
|
108
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
109
|
+
that You distribute, all copyright, patent, trademark, and
|
|
110
|
+
attribution notices from the Source form of the Work,
|
|
111
|
+
excluding those notices that do not pertain to any part of
|
|
112
|
+
the Derivative Works; and
|
|
113
|
+
|
|
114
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
115
|
+
distribution, then any Derivative Works that You distribute must
|
|
116
|
+
include a readable copy of the attribution notices contained
|
|
117
|
+
within such NOTICE file, excluding those notices that do not
|
|
118
|
+
pertain to any part of the Derivative Works, in at least one
|
|
119
|
+
of the following places: within a NOTICE text file distributed
|
|
120
|
+
as part of the Derivative Works; within the Source form or
|
|
121
|
+
documentation, if provided along with the Derivative Works; or,
|
|
122
|
+
within a display generated by the Derivative Works, if and
|
|
123
|
+
wherever such third-party notices normally appear. The contents
|
|
124
|
+
of the NOTICE file are for informational purposes only and
|
|
125
|
+
do not modify the License. You may add Your own attribution
|
|
126
|
+
notices within Derivative Works that You distribute, alongside
|
|
127
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
128
|
+
that such additional attribution notices cannot be construed
|
|
129
|
+
as modifying the License.
|
|
130
|
+
|
|
131
|
+
You may add Your own copyright statement to Your modifications and
|
|
132
|
+
may provide additional or different license terms and conditions
|
|
133
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
134
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
135
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
136
|
+
the conditions stated in this License.
|
|
137
|
+
|
|
138
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
139
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
140
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
141
|
+
this License, without any additional terms or conditions.
|
|
142
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
143
|
+
the terms of any separate license agreement you may have executed
|
|
144
|
+
with Licensor regarding such Contributions.
|
|
145
|
+
|
|
146
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
147
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
148
|
+
except as required for reasonable and customary use in describing the
|
|
149
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
150
|
+
|
|
151
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
152
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
153
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
154
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
155
|
+
implied, including, without limitation, any warranties or conditions
|
|
156
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
157
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
158
|
+
appropriateness of using or redistributing the Work and assume any
|
|
159
|
+
risks associated with Your exercise of permissions under this License.
|
|
160
|
+
|
|
161
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
162
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
163
|
+
unless required by applicable law (such as deliberate and grossly
|
|
164
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
165
|
+
liable to You for damages, including any direct, indirect, special,
|
|
166
|
+
incidental, or consequential damages of any character arising as a
|
|
167
|
+
result of this License or out of the use or inability to use the
|
|
168
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
169
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
170
|
+
other commercial damages or losses), even if such Contributor
|
|
171
|
+
has been advised of the possibility of such damages.
|
|
172
|
+
|
|
173
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
174
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
175
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
176
|
+
or other liability obligations and/or rights consistent with this
|
|
177
|
+
License. However, in accepting such obligations, You may act only
|
|
178
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
179
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
180
|
+
defend, and hold each Contributor harmless for any liability
|
|
181
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
182
|
+
of your accepting any such warranty or additional liability.
|
|
183
|
+
|
|
184
|
+
END OF TERMS AND CONDITIONS
|
|
185
|
+
|
|
186
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
187
|
+
|
|
188
|
+
To apply the Apache License to your work, attach the following
|
|
189
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
190
|
+
replaced with your own identifying information. (Don't include
|
|
191
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
192
|
+
comment syntax for the file format. We also recommend that a
|
|
193
|
+
file or class name and description of purpose be included on the
|
|
194
|
+
same "printed page" as the copyright notice for easier
|
|
195
|
+
identification within third-party archives.
|
|
196
|
+
|
|
197
|
+
Copyright [yyyy] [name of copyright owner]
|
|
198
|
+
|
|
199
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
200
|
+
you may not use this file except in compliance with the License.
|
|
201
|
+
You may obtain a copy of the License at
|
|
202
|
+
|
|
203
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
204
|
+
|
|
205
|
+
Unless required by applicable law or agreed to in writing, software
|
|
206
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
207
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
|
+
See the License for the specific language governing permissions and
|
|
209
|
+
limitations under the License.
|
|
210
|
+
License-File: LICENSE
|
|
211
|
+
Keywords: agent,cli,code-review,git,pre-push,quality-gate,state-machine
|
|
212
|
+
Classifier: Development Status :: 4 - Beta
|
|
213
|
+
Classifier: Environment :: Console
|
|
214
|
+
Classifier: Intended Audience :: Developers
|
|
215
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
216
|
+
Classifier: Operating System :: MacOS
|
|
217
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
218
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
219
|
+
Classifier: Programming Language :: Python :: 3
|
|
220
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
221
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
222
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
223
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
224
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
225
|
+
Classifier: Typing :: Typed
|
|
226
|
+
Requires-Python: >=3.11
|
|
227
|
+
Requires-Dist: click>=8.1
|
|
228
|
+
Requires-Dist: pydantic>=2.6
|
|
229
|
+
Description-Content-Type: text/markdown
|
|
230
|
+
|
|
231
|
+
# agentic-preflight
|
|
232
|
+
|
|
233
|
+
[](https://github.com/elanthus/agentic-preflight/actions/workflows/ci.yml)
|
|
234
|
+
[](https://github.com/elanthus/agentic-preflight/tree/badges)
|
|
235
|
+
[](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/pyproject.toml)
|
|
236
|
+
[](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/LICENSE)
|
|
237
|
+
|
|
238
|
+
**Stop your coding agent from pushing unverified work.**
|
|
239
|
+
|
|
240
|
+
Agentic Preflight guides the coding agent already working in your repository through
|
|
241
|
+
review, documentation, lint, and test gates. It records the result against the exact
|
|
242
|
+
commit, then uses a pre-push hook to block publication when that evidence is missing or
|
|
243
|
+
stale. The core CLI calls no model and needs no model API key.
|
|
244
|
+
|
|
245
|
+
Interested in the design? See the
|
|
246
|
+
[project evidence and engineering notes](docs/portfolio-review.md).
|
|
247
|
+
|
|
248
|
+

|
|
250
|
+
|
|
251
|
+
## Quickstart
|
|
252
|
+
|
|
253
|
+
You need Git 2.30+, Python 3.11 through 3.13, and
|
|
254
|
+
[`uv`](https://docs.astral.sh/uv/getting-started/installation/). From any directory:
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
uv tool install agentic-preflight
|
|
258
|
+
agentic-preflight integrations install codex claude cursor opencode amp
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Install only the coding-agent integrations you use. Then initialize each repository
|
|
262
|
+
you want to protect:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
cd your-repo
|
|
266
|
+
agentic-preflight init
|
|
267
|
+
git add .agentic-preflight.toml
|
|
268
|
+
git commit -m "Configure Agentic Preflight"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
`init` writes a commented configuration file and installs an advisory pre-push hook.
|
|
272
|
+
Review the generated configuration before starting a run because its setup, lint, test,
|
|
273
|
+
and optional command-review entries execute with your user privileges.
|
|
274
|
+
|
|
275
|
+
Make and commit your product change, then ask your coding agent to invoke
|
|
276
|
+
`$agentic-preflight` in Codex or `/agentic-preflight` in Claude Code. The installed skill
|
|
277
|
+
drives the run, presents any findings, and follows each command returned by the CLI.
|
|
278
|
+
|
|
279
|
+
The [installation guide](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/installation.md)
|
|
280
|
+
covers source installs, upgrades, project-scoped skills, other Agent Skills clients,
|
|
281
|
+
and removal.
|
|
282
|
+
|
|
283
|
+
If you try to push the changed commit before its run is green, the hook stops the push
|
|
284
|
+
and tells you to invoke the installed skill. After verification, the agent shows the
|
|
285
|
+
target remote, branch, commits, and risk before publication. A request to push, publish,
|
|
286
|
+
or open a pull request already authorizes the matching push; otherwise, the agent asks
|
|
287
|
+
at that point. Set `[gate] mode = "manual"` when only a person should run the final Git
|
|
288
|
+
command.
|
|
289
|
+
|
|
290
|
+
## What happens during a run
|
|
291
|
+
|
|
292
|
+
Agentic Preflight moves the change through one ordered workflow:
|
|
293
|
+
|
|
294
|
+
```text
|
|
295
|
+
review -> documentation -> lint -> test -> merge-back -> gate -> push
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
At the start of a run, the agent supplies your objective and acceptance criteria. When
|
|
299
|
+
`origin` exists, Agentic Preflight fetches it and rebases the validation checkout onto
|
|
300
|
+
the fresh base before review. Every agent-facing command returns one JSON object with
|
|
301
|
+
the single next legal command, so interrupted work can resume from recorded state.
|
|
302
|
+
|
|
303
|
+
The stages provide different checks:
|
|
304
|
+
|
|
305
|
+
- **Review** inventories the changed hunks and non-text files, then requires the reviewer
|
|
306
|
+
to account for the complete snapshot. Findings remain recorded with their disposition.
|
|
307
|
+
- **Documentation** checks configured documentation for claims made stale by the change.
|
|
308
|
+
- **Lint and test** run the commands configured for the repository and record their exit
|
|
309
|
+
codes and output hashes. Documentation- and CI-only changes skip the software test
|
|
310
|
+
command through an explicit recorded transition when test authority is local. With
|
|
311
|
+
opt-in trusted CI test authority, publication proceeds with tests pending and the
|
|
312
|
+
current integration commit must pass protected CI before merge.
|
|
313
|
+
- **Merge-back and approval** verify that the reviewed content matches the source branch,
|
|
314
|
+
classify risk from repository policy and findings, and show the target remote, branch,
|
|
315
|
+
and commits before publication.
|
|
316
|
+
- **Push** atomically publishes the branch and its Git-note attestation. Automatic PR mode
|
|
317
|
+
then lets the agent create or reuse a GitHub pull request and monitor its checks; manual
|
|
318
|
+
PR mode returns a compare URL instead.
|
|
319
|
+
|
|
320
|
+
Equivalent-content rebases can reuse stage evidence after a compatible verifier is
|
|
321
|
+
installed on the protected base. Shell stages also need committed input contracts;
|
|
322
|
+
see the [fingerprint contract](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/fingerprint-contract.md).
|
|
323
|
+
|
|
324
|
+
Pull-request merge polling and post-merge cleanup are disabled by default. Set
|
|
325
|
+
`[pr] automatedCleanup = true` to opt in.
|
|
326
|
+
|
|
327
|
+
Run `agentic-preflight status` in the source worktree to inspect or resume its run. Use
|
|
328
|
+
`agentic-preflight status --all` to inventory runs across linked worktrees.
|
|
329
|
+
|
|
330
|
+
## Choose a worktree mode
|
|
331
|
+
|
|
332
|
+
The default `in_place` mode validates in the current checkout. It suits a clean,
|
|
333
|
+
dedicated one-agent/one-PR worktree and can reuse that checkout's installed dependencies.
|
|
334
|
+
|
|
335
|
+
Set `[worktree] mode` to `reusable` or `strict` when validation should leave the source
|
|
336
|
+
checkout untouched. Isolated worktrees do not inherit `.venv`, `node_modules`, `.env`,
|
|
337
|
+
or other ignored files. Configure `setup_command` for dependencies and `copy_files` for
|
|
338
|
+
required ignored files. The
|
|
339
|
+
[worktree-modes guide](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/worktree-modes.md)
|
|
340
|
+
explains the tradeoffs and recovery behavior.
|
|
341
|
+
|
|
342
|
+
## Configure repository policy
|
|
343
|
+
|
|
344
|
+
Commit `.agentic-preflight.toml` at the repository root. It layers over the user-wide
|
|
345
|
+
`~/.config/agentic-preflight/config.toml`, with repository sections taking precedence.
|
|
346
|
+
Use it to set:
|
|
347
|
+
|
|
348
|
+
- the protected base branch and lint/test commands;
|
|
349
|
+
- blocking finding severities and independent command-review policy;
|
|
350
|
+
- documentation paths and generated-file exclusions;
|
|
351
|
+
- path-based risk and the required human-approval mode;
|
|
352
|
+
- in-place, reusable, or strict validation worktrees; and
|
|
353
|
+
- automatic or manual push and pull-request behavior.
|
|
354
|
+
|
|
355
|
+
Unknown keys are errors. Commit configuration changes before starting the run they
|
|
356
|
+
should affect; a run snapshots its resolved configuration. See the
|
|
357
|
+
[configuration reference](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/configuration.md)
|
|
358
|
+
for every option and a complete example.
|
|
359
|
+
|
|
360
|
+
> **Warning:** A repository can configure setup, lint, test, and independent-review
|
|
361
|
+
> commands that execute with your privileges. Run Agentic Preflight only in repositories
|
|
362
|
+
> whose code and build commands you are willing to execute.
|
|
363
|
+
|
|
364
|
+
## Use attestations in CI
|
|
365
|
+
|
|
366
|
+
A successful merge-back writes a versioned JSON attestation as a Git note on the exact
|
|
367
|
+
commit. The note records review coverage, finding dispositions, stage results, policy,
|
|
368
|
+
and the inputs that determine whether evidence still applies after a history rewrite.
|
|
369
|
+
|
|
370
|
+
The local hook checks the commit being pushed. A protected-base GitHub workflow can also
|
|
371
|
+
verify the note and enforce the configured high-risk approval mode before merge. This
|
|
372
|
+
requires forge configuration; committing `.agentic-preflight.toml` alone does not change
|
|
373
|
+
branch protection. See
|
|
374
|
+
[Portable attestations and CI enforcement](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/attestations-and-ci.md)
|
|
375
|
+
for setup and verification commands.
|
|
376
|
+
|
|
377
|
+
## Limits
|
|
378
|
+
|
|
379
|
+
**Agentic Preflight is an advisory quality gate, not a security boundary.**
|
|
380
|
+
|
|
381
|
+
- A person can bypass the local hook with `git push --no-verify`.
|
|
382
|
+
- The push-confirmation token is deliberate ceremony, not a secret. It prevents an
|
|
383
|
+
accidental tool-driven push but does not stop an agent with shell access from invoking
|
|
384
|
+
Git directly.
|
|
385
|
+
- A green record proves what the configured gate reported. It does not prove that the
|
|
386
|
+
reviewer understood the change, and it replaces neither hosted CI nor human review.
|
|
387
|
+
- Git notes are mutable. Anyone allowed to update the notes ref can replace an
|
|
388
|
+
attestation.
|
|
389
|
+
|
|
390
|
+
Set `[gate] mode = "manual"` if the CLI must refuse to perform the final push itself.
|
|
391
|
+
Read the [limits guide](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/docs/limits.md)
|
|
392
|
+
before relying on attestations or evidence reuse for policy enforcement.
|
|
393
|
+
|
|
394
|
+
## Requirements
|
|
395
|
+
|
|
396
|
+
- A supported macOS, Linux, or Windows and Python combination from the
|
|
397
|
+
[compatibility policy](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/COMPATIBILITY.md)
|
|
398
|
+
- Git 2.30+
|
|
399
|
+
- A POSIX shell when a configured command needs shell interpretation or its program
|
|
400
|
+
cannot be resolved directly; on Windows, Git for Windows provides it
|
|
401
|
+
- `gh` when the agent will create pull requests, inspect hosted checks, or verify merges
|
|
402
|
+
|
|
403
|
+
## Help and development
|
|
404
|
+
|
|
405
|
+
Use the [support guide](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/SUPPORT.md)
|
|
406
|
+
for help and security-reporting routes. Contributors should start with the
|
|
407
|
+
[contributor guide](https://github.com/elanthus/agentic-preflight/blob/v0.5.3/CONTRIBUTING.md).
|
|
408
|
+
|
|
409
|
+
Agentic Preflight is Apache 2.0 licensed. It was created by
|
|
410
|
+
[@elanthus](https://github.com/elanthus) with development contributions from OpenAI Codex
|
|
411
|
+
and Anthropic Claude.
|