lean-pkg 0.30.3__tar.gz → 0.30.4__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.
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/CHANGELOG.md +14 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/CITATION.cff +4 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/PKG-INFO +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/README.md +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/pyproject.toml +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/__init__.py +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/cli.py +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/verify.py +20 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/PKG-INFO +1 -1
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/SOURCES.txt +1 -0
- lean_pkg-0.30.4/tests/test_verify_signoff_recut.py +66 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/LICENSE +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/MANIFEST.in +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/PYPI.md +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/setup.cfg +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/__init__.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/github.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/leansearch.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/loogle.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/palomar.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/adapters/reservoir.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/anchor.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/audit.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/binding_file.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/blueprint.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/build_scope.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/ci_github.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/claim_axioms.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/claims_mark.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/cli_parser.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/command_tree.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/comparator_config.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/comparator_contracts.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/comparator_receipt.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/comparator_stage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/comparator_types.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/container.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/controls.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/core.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/coverage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/data/upgrade-breaking.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/deps_closure.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/deps_fill.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/dup_constants.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/exercise.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/exercise_forbid.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/export_paths.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract_decls.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract_ledger.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract_summary.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract_types.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/extract_write.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/formalization.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/formalization_kept.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/fresh_repo.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/gate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/headline.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/help_topics.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/holes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/host_routes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/html_blocks.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/hypotheses.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/index.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/json_stdout.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/lake_hygiene.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/lean_diag.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/lean_scan.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/ledger.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/next_step.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/page.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/page_html.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/palomar.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/palomar_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/port_modules.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/prior_art.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/producer.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/producer_skew.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/public_safety.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/publish.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/rebase.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/receipt.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/receipt_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/receipt_ci.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/receipt_systemd.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/recommended.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/report.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/reservoir.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scaffold.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ControlsProbe.lean +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/DupConstants.lean +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/HypProbe.lean +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/comparator-check.sh +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/seal_bundle.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/search.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/site_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/site_profiles/easley.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/sites.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/stacks.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/statements_module.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/toolchain_advisories.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/upgrade.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/entry_points.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/requires.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/top_level.txt +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_adapters.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_append_note.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_claims_coverage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_gh_outcomes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_missing_path.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_no_github_mirror.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_palomar.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_receipts_paths.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_audit_reference_branch.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_binding_file.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_binding_file_g3.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_blueprint_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_bootstrap_collaborator.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_branch_notice.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_campaign_recovery_docs.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_check_changelog_releases.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ci_attested.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ci_comparator.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ci_corroborate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ci_receipt_level1.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_claim_axioms.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_claims_ledger.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_claims_mark.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_claims_rebase.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_consistency.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_contract_argv.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_contract_corpus.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_contract_help.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_contract_json.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cli_contract_names.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_columns.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_command_docs.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_command_tree_stage2.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_commit.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_attempts.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_config.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_contracts.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_coverage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_evidence_dir.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_host_label.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_list_defaults.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_log_transport.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_mismatch_next.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_name_hints.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_no_mathlib.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_readiness.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_receipt.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_replace.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_repo_claims_file.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_sacct_seal.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_stage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_tool_toolchain.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_types.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_comparator_types_deep.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_compressed_log_bindings.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_conditional_claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_conditional_closeout.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_conditional_outputs.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_consent_dedupe.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_controls.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_core_split.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_coverage_accounted.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_coverage_conclusion.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_coverage_extensions.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_coverage_offline.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_coverage_witness.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_cut_release.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_defaults.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_docs.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_docs_classifier_preflight.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_docs_descendants.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_docs_old_spellings.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_doctor.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_dup_constants.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_evidence_formalization.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_exercise.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_exercise_course.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_extract_decls.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_extract_ledger.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_extract_plan.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_extract_summary.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_extract_types.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_fields_only.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_formalization.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_formalization_anchor.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_formalization_kept.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_formalization_refresh.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_formats.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_fresh_repo.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_binding.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_binding_scope.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_check_next.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_pins.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_receipt_path.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_refresh.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_gate_regate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_headline.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_help_topics.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_hints_and_time.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_host_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_host_routes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_hypotheses_ledger.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_hypotheses_probe.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ignored_evidence.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_add.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_built_on.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_docs_descendants.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_render.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_index_schema.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_init.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_input_hygiene.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_internal_claims.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_json.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_json_control_chars.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_json_stdout.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_judged_as.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lake_cache_systemd.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lake_hygiene.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_large_artifacts_recipe.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lean_diag.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lean_scan_extract.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lease.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lease_actor.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lease_expiry_notice.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lease_registry_stamp.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ledger_exact_covers.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_ledger_golden.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_lifecycle_notes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_llms.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_locking.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_manuscript_findings.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_mathlib_none.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_migrate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_migrate_v3.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_namespace_notes.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_new.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_next.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_noninteractive.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_olean_manifest.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_outputs_golden.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_package_fields.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_packaging.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_page.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_page_repo_head.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_page_site.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_palomar_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_palomar_prepare.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_palomar_snapshot.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_paper.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_port_modules.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_prior_art.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_producer_skew.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_promote_audit.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_promote_scope.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_public_allow.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_public_safety.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_public_safety_gzip.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_public_safety_long_line_stream.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_public_safety_scope.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_publication_hold.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_publish.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_check_opt_in.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_ci.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_container.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_private_scan.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_producer.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_artifacts.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_fill_plan.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_preflight_deps.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_sacct_seal.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_slurm_template_src.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_subdir_package.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_receipt_systemd.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_recommended.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_record.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_record_evidence.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_record_transitions.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_refresh_descendant.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_register.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_registry_core.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_registry_snapshot.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_release_script.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_release_version.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_render_cache.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_repo_override.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_report.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_report_log_required.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_reservoir_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_review_fixes_prior_art.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_robustness.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_seal_bundle.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search_completeness.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search_declarations.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search_field_coverage.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search_scan.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_search_sources.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_sibling_packages.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_signoff_sidecar.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_site_check.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_sites.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_skills.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_smoke_configs.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_source_paper_ai.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_stack_opt_in.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_stacks.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_statements_module.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_status_scope.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_subdir_package.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_template_module_headers.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_toolchain_advisories.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_toolchain_floor.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_trust.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_update_publication_fields.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_update_relocate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_upgrade.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_user_default.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_validate.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_verdict_first.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_verify_preflight.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_verify_workflow_oidc.py +0 -0
- {lean_pkg-0.30.3 → lean_pkg-0.30.4}/tests/test_wiki.py +0 -0
|
@@ -9,6 +9,18 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.30.4] - 2026-12-04
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- `verify` cuts both receipts again at `HEAD` when `lean-pkg-signoff.json`
|
|
17
|
+
differs from the gated commit, instead of saying `already verified`
|
|
18
|
+
(#466). The file is not a build input, so the old receipts still covered
|
|
19
|
+
`HEAD`; but the page and rule R11 read its smoke marks at the receipts'
|
|
20
|
+
commit too, so a dropped mark kept counting until a build input changed.
|
|
21
|
+
|
|
22
|
+
public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
|
|
23
|
+
|
|
12
24
|
## [0.30.3] - 2026-12-04
|
|
13
25
|
|
|
14
26
|
### Changed
|
|
@@ -26,6 +38,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
|
|
|
26
38
|
|
|
27
39
|
public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
|
|
28
40
|
|
|
41
|
+
Zenodo version DOI: [10.5281/zenodo.24826152](https://doi.org/10.5281/zenodo.24826152)
|
|
42
|
+
|
|
29
43
|
## [0.30.2] - 2026-12-02
|
|
30
44
|
|
|
31
45
|
### Changed
|
|
@@ -6,7 +6,7 @@ authors:
|
|
|
6
6
|
- family-names: Chen
|
|
7
7
|
given-names: Le
|
|
8
8
|
affiliation: "Auburn University"
|
|
9
|
-
version: "0.30.
|
|
9
|
+
version: "0.30.4"
|
|
10
10
|
date-released: "2026-12-04"
|
|
11
11
|
license: Apache-2.0
|
|
12
12
|
repository-code: "https://github.com/lean-pkg/lean-pkg"
|
|
@@ -219,6 +219,9 @@ identifiers:
|
|
|
219
219
|
- type: doi
|
|
220
220
|
value: 10.5281/zenodo.24762717
|
|
221
221
|
description: Version DOI for 0.30.2
|
|
222
|
+
- type: doi
|
|
223
|
+
value: 10.5281/zenodo.24826152
|
|
224
|
+
description: Version DOI for 0.30.3
|
|
222
225
|
url: "https://lean-pkg.github.io/lean-pkg/"
|
|
223
226
|
keywords:
|
|
224
227
|
- Lean 4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-pkg
|
|
3
|
-
Version: 0.30.
|
|
3
|
+
Version: 0.30.4
|
|
4
4
|
Summary: Lifecycle registry and trust gate for Lean 4 formalization packages: leases, receipt-bound gates, comparator (Palomar) evidence, one-way promotion.
|
|
5
5
|
Author: Le Chen
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -365,7 +365,7 @@ DOIs. To cite a state between releases, cite the repository at a commit:
|
|
|
365
365
|
author = {Chen, Le},
|
|
366
366
|
title = {lean-pkg: a registry and trust gate for Lean 4 formalization packages},
|
|
367
367
|
year = {2026},
|
|
368
|
-
version = {0.30.
|
|
368
|
+
version = {0.30.4},
|
|
369
369
|
url = {https://github.com/lean-pkg/lean-pkg},
|
|
370
370
|
note = {commit <sha>}
|
|
371
371
|
}
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lean-pkg"
|
|
7
|
-
version = "0.30.
|
|
7
|
+
version = "0.30.4"
|
|
8
8
|
description = "Lifecycle registry and trust gate for Lean 4 formalization packages: leases, receipt-bound gates, comparator (Palomar) evidence, one-way promotion."
|
|
9
9
|
# PyPI renders the long description without the repository around it, so README.md's relative links and
|
|
10
10
|
# images would break there: PYPI.md is a short page whose links are all absolute (tests/test_packaging.py).
|
|
@@ -3188,7 +3188,7 @@ gate validate receipt; gate-pending -> verified-private; --receipt/--compar
|
|
|
3188
3188
|
flags: --receipt PATH (required), --comparator PATH (optional), --refuse-private (private paths in a receipt: refuse, exit 1,
|
|
3189
3189
|
nothing copied; default a stderr WARN "receipt field F contains a ... (kept: ...; --refuse-private refuses such a receipt)" + JSON private_strings[{field, kind}]), --refuse-dirty (modified tracked files; default WARN + JSON dirty[]), --refresh-formalization [--agent A] (then regenerate formalization.yaml + pointer in one step, JSON "formalization": {...}; lease + schema checked BEFORE the gate; identical re-gate with a current file: refused, nothing written; no pointer recorded yet: the derived-only formalization.yaml exception applies to the path it will own), --check (read-only, any status: every gate validation vs HEAD, both tiers with --comparator; ✓ lines or gate's refusal; claims.yaml at the receipt commit: ✓ schema ok / ✗ first error (exit 1) / · not tracked; no write, no event; exit 0/1; JSON event gate-checked, checks[], claims_schema; comparator --check prints the same binding ✓ lines), --check --repo DIR (validate against the checkout DIR, not the registered local_path, this call only: never saved; stderr note; JSON repo_override {path, registered_path, remote_match}, null without it; DIR must be a git work tree and, when it has remotes, one must be the package's repo (a local-path repo /p also matches Host:/p, ssh://Host/p, file:///p; DIR = the registered local_path needs no remote), else the caller vouches; a writing gate refuses --repo, exit 2: it binds the registered checkout (drop --repo to gate it), move that with update --path). Success (and promote --yes) ends with a results-ledger: line (JSON rl_reminder, rl_hint): lean-pkg keeps no results ledger, the outcome is in `status NAME` and `claims ledger NAME`; add it to the project's own results ledger if it keeps one (docs/lifecycle.md#results-ledger)
|
|
3190
3190
|
ex: lean-pkg gate my-lean --receipt /tmp/receipt.json --comparator /tmp/comparator.json | receipt slurm --job J --log PATH --receipt-commit SHA [--stdout JOB.out] [--stderr JOB.err] [--checker TEXT] [--repo DIR] [--redact REGEX]... [--sacct-file F] [--out PATH] [--append-readme] (no registry): writes the lower-tier receipt from a finished Slurm job; refuses (exit 1, nothing written) unless sacct's main job line is COMPLETED 0:0, the stdout's verify-log-sha256 = sha256(raw log) and pre-manifest-sha256 = post-manifest-sha256 = sha256(lake-manifest.json at SHA) (no --stdout: the log's own `verify-log-sha256:` line = sha256 of the log minus that line), stderr is empty, lean_toolchain/mathlib_rev from SHA agree with any log line, sorry 0 and axioms from the log (sorry-count:/axioms: lines, else 'sorry' warnings/#print axioms output; a sorry-count: below the log's own 'sorry' warnings, or an axioms: line omitting an axiom its #print axioms output reports, is refused; universe suffixes .{u} ignored), a checker (--checker or checker:), a log commit: line equal to SHA (none: refused without --stdout; with --stdout a WARN "the verify log has no commit: line; it is bound to the commit only through lake-manifest.json", JSON log_commit_bound false, also in the written receipt, and a `- WARN:` line in the README entry), fields read from the RAW log (a redaction that removes or alters a sorry warning, #print axioms output, a build-completion line or a key: line other than checker: is refused; checker is published redacted), no committed symlink at SHA into .lean-receipts/, and no public-safety blocking hit is left after redacting /tmp/<account>-job, /scratch/<user>/ and --redact (blocking also this machine's user and host names and a bare /home/<x>, /Users/<x>); --append-readme: a symlinked or non-UTF-8 README.md refuses before writing; job_id slurm-<J>; writes .lean-receipts/<c12>-slurm-<J>.json + <c12>-slurm-<J>-verify.redacted.log (report_sha256; --compress-log: <...>.log.gz instead, deterministic gzip, report_sha256 still of the uncompressed log, additive report_compressed {format gzip, sha256 of .gz, bytes}, restore gzip -dc X.log.gz > X.log; without it a log over 90 MiB WARNs naming the flag; log_commit_bound true/false; with --stdout also job_stdout_sha256 + manifest_sha256; additive keys gate ignores: it never reads log_commit_bound), prints the README entry (with --stdout a `- Seal:` line naming both; --append-readme: appended to .lean-receipts/README.md) and `gate NAME --check --receipt PATH`; --json {ok, receipt, log, report_sha256, job_id, sealed[] {role, path, sha256, receipt_key} (the exact files bound; systemd's `properties` is the raw unsealed capture), checks[], refusals[], ...}; --template (no other flag, no registry): print a minimal sbatch wrapper emitting every line the receipt reads (stdout seal lines, empty stderr, checker:/sorry-count:/axioms: in the log; exact-runtime preflight before any tool runs: LC_ALL=C LANG=C PYTHONUTF8=1 (#SBATCH --export line + export; stderr stays strict, never filtered) and a `type -P` probe of the host tools (+EXTRA_TOOLS) and, under $RUN, the first word of VERIFY_CMD/AXIOMS_CMD/LEAN_PATH_CMD (+lean beside lake, +RUN_TOOLS): a missing one fails the job before the work, log line runtime-preflight: ok (...); optional artifact seal ARTIFACTS_DIR=<dir relative to the job's tree, or to $WORK with ARTIFACTS_BASE=work>: after the audit the job copies every regular file under it to ARTIFACTS_OUT (default $OUT_DIR/artifacts-<J>, never overwritten) with artifacts.sha256, sorted `<path> <size> <sha256>` lines (a symlink, special file or newline name fails the job), and prints `artifacts-manifest-sha256 <hex>` on stdout before post-manifest-sha256); --check --log PATH [--stdout] [--stderr] [--receipt-commit SHA] [--job J --sacct-file F]: preflight a job's files, every problem named, no sacct, nothing written, exit 0/1, --json {ok, log_commit_bound (true/false; null without --receipt-commit), checks[], problems[]}; --contracts-preflight [--repo DIR] (before sbatch, a mode of its own; not with --job/--log/--receipt-commit or another mode): the same contracts-only diagnostic on every comparator configuration of the checkout, its modules built there; refuses (exit 1) when one differs, a configured module is not built or the diagnostic cannot run; writes nothing; --json {ok, contracts_preflight, written: [], checks[], refusals[], report}; --preflight-deps (--deps-tar T | --deps-dir D) [--receipt-commit SHA, default HEAD] [--entries GLOB]... (before sbatch, reads only, builds and writes nothing, exit 0/1): the import closure of the entry files committed at SHA (default Verify/**/*.lean, Audit/**/*.lean, OwnedAudit/**/*.lean, **/AxiomCheck*.lean, **/TypeCheck*.lean, **/Examples*.lean, **/OwnedAudit*.lean), followed through the package's modules and the dependency sources in the cache, must have every external module's .olean and .ilean (regular files) in exactly one manifest package (import Mathlib = Mathlib.olean and everything Mathlib.lean imports, transitively; toolchain roots Init/Std/Lean/Lake aside), every manifest git package present at its rev (.git/HEAD); --json {ok, preflight_deps, commit, entries[], required_external_modules, missing_count, missing[] {module, package, files, required_by}, checks[], problems[]}; + --fill-plan DONOR [--plan-out FILE] [--base-list FILE] (read-only; steps 1-4 of docs/receipts.md "Filling missing dependency artifacts from a pinned donor"): every missing module (no 500 cap), each with every regular file DONOR holds under its path in the package's .lake/build or build (lib/lean, lib, ir: <path>.<any extension>) with size and sha256; refuses (exit 1, refusals[] {code, reason}) on base-problem (a preflight problem other than missing files: not fillable), donor-cache, donor-toolchain (DONOR/lean-toolchain not the commit's byte for byte), donor-manifest (a manifest package not at its rev, the preflight's pin check), donor-source-edits (git status --porcelain --untracked-files=no non-empty, an index entry marked assume-unchanged or skip-worktree, an untracked or ignored *.lean/lakefile/lean-toolchain/lake-manifest.json outside .lake/, no .git directory or unreadable; GIT_OPTIONAL_LOCKS=0, the checkout's core.fsmonitor off), olean-header (a candidate .olean's first 80 bytes (46 for format 1) differ from the base's, which must agree), donor-lacks-module (no .olean/.ilean in DONOR either), base-overlap (an addition is a base member, a --base-list name, or under a non-directory member), package-build (under the package's own .lake/build or a root namespace), plan-out (exists, inside DONOR/the base/.lake, unwritable); --plan-out FILE, only when ok: FILE = additions one per line (relative to the directory holding .lake, for tar -T) + FILE.provenance.json (schema lean-pkg-fill-provenance/1: commit, lean_toolchain, manifest_revs, base, donor, donor_checks, plan, additions, created_utc; collector provenance, never a job seal), never overwritten; the archive is written by the user and the preflight rerun on it confirms the fill; --json {ok, preflight_deps, fill_plan, commit, entries[], required_external_modules, missing_count, missing[], base, donor, donor_checks[] {check, ok, detail}, plan[] {module, package, lacking, required_by, fillable, files[] {path, size, sha256}, bytes}, not_fillable[], refusals[], totals {missing_modules, fillable_modules, files, bytes}, plan_out, checks[], problems[]}; --artifacts DIR [--artifacts-manifest NAME] (needs --stdout; also with --check): sha256(DIR/NAME, default artifacts.sha256) must equal the stdout's one artifacts-manifest-sha256 line, and every file under DIR is rehashed in 1 MiB chunks against it (missing, extra, changed files, symlinks, special files, path traversal, duplicate or unsorted entries refuse; previously copied files are adopted only by this rehash, never by another attempt's hashes); the receipt gains artifacts_manifest_sha256 (additive, gate ignores it) and the manifest is written beside it as <c12>-slurm-<J>-artifacts.sha256 (sealed[] role artifacts.sha256), JSON artifacts {ok, dir, files, bytes, manifest, manifest_sha256}; without --artifacts nothing changes; --seal-sacct [--user NAME] (optional, additive; not with --check/--template/--preflight-deps; --job a number J or J_T; --out only inside <repo>/.lean-receipts/): seal the job's sacct record as `receipt comparator --seal-sacct` does: live sacct runs `SLURM_TIME_FORMAT=%Y-%m-%dT%H:%M:%S%z sacct -j J --format=JobID,State,ExitCode,Start,End,Elapsed,TotalCPU,User,NodeList -P` (or --sacct-file F, that output with its header); refuses unless Start..End (zoned) contain the log's generated-at: line (none: refused) and User = this account (live) or --user (not checked otherwise; node: not checked, the receipt names none); writes <c12>-slurm-<J>-sacct.txt (JobID|State|ExitCode|Start|End|Elapsed, UTC; no user or node names) and the additive slurm_sacct {schema slurm-sacct-seal/1, job, file, sha256, state, exit_code, start, end, elapsed, checks, source} into the receipt, a `- Seal: sacct record ...` README line, sealed[] role sacct.txt (receipt_key slurm_sacct.sha256), JSON slurm_sacct (its sacct object without user/node names); gate, gate --check, receipt check and every core.validate_receipt caller then refuse the receipt unless that record is committed at HEAD and still hashes and parses to the block ("sacct seal record missing or changed: ..." / "sacct seal: ..."); a receipt without the block is judged as before | receipt systemd (alias local) --unit U --log PATH --receipt-commit SHA [--properties-file F | --run [--memory-max 8G] [--memory-swap-max 0] [--cpu-quota 400%] [--runtime-max 4h] [--setenv K=V]... [--require-tools A,B,...]... [--contracts-preflight] [--properties-out PATH] -- CMD...] + the same --stdout/--stderr/--checker/--repo/--redact/--out/--append-readme/--json: the same receipt from a finished systemd --user service unit; the unit state comes from --run (lean-pkg runs CMD bounded via systemd-run --user -p RemainAfterExit=yes, WorkingDirectory=--repo, so the finished unit stays loaded: properties are captured to <log>.unit.properties before it is stopped and reset; --require-tools: each named executable resolved with type -P in the unit's PATH before the unit is created (paths and sha256 to stderr and --json run_tools; a missing one refuses, nothing run; --contracts-preflight: the contracts-only diagnostic (comparator check --contracts-only) on every comparator configuration before the unit is created: a configuration that differs, a configured module not built (the refusal names the lake build) or a diagnostic that cannot run refuses, nothing run or written; --json contracts_preflight {ok, report}; never in the receipt); the checkout must be at SHA with no tracked change and no untracked file (less .lean-receipts/, .lake/ and the run's own files; ignored files are not bound) under the package dir before and after), --properties-file (saved `systemctl --user show U -p ...` + a Hostname= line) or live `systemctl --user show U`; refuses unless LoadState=loaded, Id=U, terminal (failed/inactive or active+exited), Result=success (oom-kill, timeout, signal named), ExecMainCode exited with ExecMainStatus 0, NRestarts 0, plus every receipt slurm seal/field/redaction check (optional stdout invocation-id = InvocationID); job_id systemd-user:<U>:<InvocationID>@<host label> (label h-<12 hex of sha256(lower-cased host name)>; the name itself is never written); also writes <c12>-<slug>-unit.properties (additive unit_properties_sha256); built-in redaction <repo>, <HOME>, /run/user/<UID>/; --run interrupted (SIGINT/SIGTERM/SIGHUP) while waiting: the unit is not stopped, its temporary LAKE_CACHE_DIR is kept while the unit may still run (removed when it is gone or finished), exit 128+N, and the recovery command `lean-pkg receipt systemd --unit U --log ... --receipt-commit ...` (no --run) is printed with a WARN that recovery skips the source-unchanged-during-the-run check | receipt ci --log PATH [--receipt-commit SHA, default GITHUB_SHA] [--attest: the job attests (verify.yml, S4): ci.attestation = <c12>-gha-R-A.sigstore.json, the Sigstore bundle the next step (actions/attest-build-provenance) signs over the receipt and its log; refused without an OIDC token] + the same --checker/--repo/--redact/--out/--compress-log/--append-readme/--json (no --stdout: the log carries its own verify-log-sha256: seal; proposal 0008 S2; inside a GitHub Actions job, the last step of lean-pkg's reusable .github/workflows/verify.yml; no registry, no token): the same receipt with job_id gha-<GITHUB_RUN_ID>-<GITHUB_RUN_ATTEMPT> and the additive ci block built from the runner's variables (job_workflow = the OIDC token's job_workflow_ref claim when the job has id-token: write, else null; the token is never printed or written); refuses (exit 1, nothing written) outside GitHub Actions (GITHUB_ACTIONS != true), on a self-hosted runner (naming receipt local), a missing GITHUB_SERVER_URL/GITHUB_REPOSITORY/GITHUB_REPOSITORY_ID/GITHUB_RUN_ID/GITHUB_RUN_ATTEMPT/GITHUB_JOB/GITHUB_EVENT_NAME/GITHUB_SHA/GITHUB_WORKFLOW_REF/GITHUB_WORKFLOW_SHA/RUNNER_ENVIRONMENT/RUNNER_OS/RUNNER_ARCH, an event other than push/workflow_dispatch, a server other than https://github.com, --receipt-commit != GITHUB_SHA, the workflow file missing at GITHUB_WORKFLOW_SHA (shallow clone named), a failed OIDC token request, a block failing level 1, plus every receipt slurm seal/field/redaction check; built-in redaction <repo>, <GITHUB_WORKSPACE>, <RUNNER_TEMP>, <RUNNER_TOOL_CACHE>, <HOME> (also /home/runner), /run/user/<UID>/; after writing prints exactly one `::notice title=lean-pkg-receipt::receipt_sha256=<hex> report_sha256=<hex>` (stderr under --json) and appends to GITHUB_STEP_SUMMARY; --json adds ci, producer; --collect RUN [--attempt N] [--repo DIR] [--json] (on your machine; never commits or pushes): gh run download of artifact lean-pkg-receipt-RUN-N (your gh login; no --attempt: the run's only lean-pkg-receipt-RUN-* artifact), the receipt checked as gate --check does against the checkout (validator incl. ci level 1, report_sha256 against the log), receipt + log copied into .lean-receipts/, and the Sigstore bundle ci.attestation names (refused when the artifact lacks it or its subjects are not exactly the receipt and the log); refuses (exit 1, nothing copied) on no gh, no artifact, several artifacts without --attempt, not exactly one <c12>-gha-R-A.json, ci.run_id != RUN or run_attempt != N, a receipt the gate refuses, other bytes at the destination, a symlinked .lean-receipts/; --json {ok, run_id, attempt, receipt, log, copied[] {path, sha256}, checks[], next, refusals[]}; --template (no other flag): print the caller workflow (on push + workflow_dispatch, permissions contents: read + id-token: write, uses: lean-pkg/lean-pkg/.github/workflows/verify.yml@<40-hex: the installed lean-pkg's commit when pip recorded one, else a placeholder>), --json {ok, template, pinned}
|
|
3191
|
-
verify NAME [--work-dir DIR] [--unit U] [--script verify.sh] [--judges N] [--memory-max BYTES] [--agent A] [--reason T] [--dry-run]: the newcomer's one step to verified-private on this machine. Refuses first (nothing run) an unknown package, a checkout that is not a clean commit (untracked files other than this commit's receipts), no committed verify script, no comparator config, status scratch/archived/upstreamed, --registry-snapshot. Then step 0, the preflight (#325; read-only, also under --dry-run): the claims/1 check of `claims check --file` on the claims file committed at HEAD, and, when coverage.yaml is committed, the offline coverage check against the files and comparator configs committed at HEAD (placeholders and an unposted manuscript only warn there); a refusal stops verify with that message, nothing run, nothing written; the working tree is never read; and port-modules' import scan at HEAD: a module-headed file importing a non-module file of the package is a warning naming the files and `lean-pkg palomar port-modules NAME --dry-run`, never a refusal (skipped silently when the tree is unreadable). Then, each printed and run as its own invocation, at HEAD X: (1) `receipt comparator --repo CHECKOUT` (COMPARATOR_RECEIPT_NO_MATHLIB=1 when verify.sh declares `mathlib-rev: none` and the manifest has no Mathlib), (2) `receipt systemd --unit NAME-verify --receipt-commit X --log W/verify.log ... --run -- bash verify.sh W/verify.log` (W outside the checkout: $XDG_STATE_HOME/lean-pkg/verify/NAME/<c12>-<stamp>), (3) an active package: `update NAME --status gate-pending --reason ...`, (4) `gate NAME --receipt LOWER --comparator COMP` (--regate for verified-private/public). Comparator first: it refuses untracked files, the lower tier allows .lean-receipts/; nothing is committed between them, so both bind X. A receipt of X already present is reused. Writes only what those commands write, commits nothing in the checkout; HEAD an evidence-only descendant of the gated commit: `already verified`, nothing run. coverage.yaml at HEAD with `stack: S`: lean-toolchain and the lake-manifest.json Mathlib commit checked against stack S, then the comparator receipt's tool digests; `on stack S (supported until D)` or a warning per difference, a stack past its window or undeclared here warns too; never refuses (proposal 0004). --json {ok, name, commit, checkout, dry_run, status_before, status, work_dir, steps[{step, command, rc, skipped?, output?}] (first {step "0/3 preflight", rc, output {ok, claims, coverage, module_imports[{file, line, module, target}], warnings[]}}), receipts{lower, comparator}, gate, next[], stack (null without the key: {name, declared, matches, supported_until, window, toolchain, mathlib, comparator_tools, lean_pkg, mismatches[], warnings[]}), already?, error?}
|
|
3191
|
+
verify NAME [--work-dir DIR] [--unit U] [--script verify.sh] [--judges N] [--memory-max BYTES] [--agent A] [--reason T] [--dry-run]: the newcomer's one step to verified-private on this machine. Refuses first (nothing run) an unknown package, a checkout that is not a clean commit (untracked files other than this commit's receipts), no committed verify script, no comparator config, status scratch/archived/upstreamed, --registry-snapshot. Then step 0, the preflight (#325; read-only, also under --dry-run): the claims/1 check of `claims check --file` on the claims file committed at HEAD, and, when coverage.yaml is committed, the offline coverage check against the files and comparator configs committed at HEAD (placeholders and an unposted manuscript only warn there); a refusal stops verify with that message, nothing run, nothing written; the working tree is never read; and port-modules' import scan at HEAD: a module-headed file importing a non-module file of the package is a warning naming the files and `lean-pkg palomar port-modules NAME --dry-run`, never a refusal (skipped silently when the tree is unreadable). Then, each printed and run as its own invocation, at HEAD X: (1) `receipt comparator --repo CHECKOUT` (COMPARATOR_RECEIPT_NO_MATHLIB=1 when verify.sh declares `mathlib-rev: none` and the manifest has no Mathlib), (2) `receipt systemd --unit NAME-verify --receipt-commit X --log W/verify.log ... --run -- bash verify.sh W/verify.log` (W outside the checkout: $XDG_STATE_HOME/lean-pkg/verify/NAME/<c12>-<stamp>), (3) an active package: `update NAME --status gate-pending --reason ...`, (4) `gate NAME --receipt LOWER --comparator COMP` (--regate for verified-private/public). Comparator first: it refuses untracked files, the lower tier allows .lean-receipts/; nothing is committed between them, so both bind X. A receipt of X already present is reused. Writes only what those commands write, commits nothing in the checkout; HEAD an evidence-only descendant of the gated commit: `already verified`, nothing run, unless lean-pkg-signoff.json differs there: then both receipts are cut again at HEAD (the page and R11 read the receipts' commit's marks too). coverage.yaml at HEAD with `stack: S`: lean-toolchain and the lake-manifest.json Mathlib commit checked against stack S, then the comparator receipt's tool digests; `on stack S (supported until D)` or a warning per difference, a stack past its window or undeclared here warns too; never refuses (proposal 0004). --json {ok, name, commit, checkout, dry_run, status_before, status, work_dir, steps[{step, command, rc, skipped?, output?}] (first {step "0/3 preflight", rc, output {ok, claims, coverage, module_imports[{file, line, module, target}], warnings[]}}), receipts{lower, comparator}, gate, next[], signoff_changed?, stack (null without the key: {name, declared, matches, supported_until, window, toolchain, mathlib, comparator_tools, lean_pkg, mismatches[], warnings[]}), already?, error?}
|
|
3192
3192
|
comparator attach NAME --receipt PATH (old spelling: comparator NAME --receipt PATH) attach comparator evidence to a verified-private/public package;
|
|
3193
3193
|
no status change; event comparator-attached; identical re-attach = no-op; another receipt for the same commit: --replace keeps the old one as <c12>-comparator.replaced-<stamp>.json, event comparator-replaced {replaced}. It is required by promote.
|
|
3194
3194
|
The receipt is written by `lean-pkg receipt comparator` (the comparator-receipt program: the same code and flags) on a host its policy allows (a GitHub-hosted runner, checked first: GITHUB_ACTIONS=true and RUNNER_ENVIRONMENT=github-hosted, recorded as host_policy "GitHub Actions run R attempt A", job_id gha-R-A and the ci block of receipt ci less verify_log_sha256, refusing (exit 1, nothing written) on a runner variable missing or malformed, an event other than push/workflow_dispatch, a server other than github.com, the workflow file missing at GITHUB_WORKFLOW_SHA or GITHUB_SHA != the checkout's HEAD; GITHUB_ACTIONS without RUNNER_ENVIRONMENT, or a self-hosted runner, is not recognized and the other rules apply; proposal 0008 S5, verify.yml with comparator: true runs it after the AppArmor userns sysctl and comparator host-check --routes; a Slurm job, a host in
|
|
@@ -40,6 +40,12 @@ comparator configuration, a status the gate cannot reach (scratch, archived, ups
|
|
|
40
40
|
A step that fails stops verify with that step's exit code; the steps before it stay done (their receipts are
|
|
41
41
|
reused by the next verify at the same commit).
|
|
42
42
|
|
|
43
|
+
HEAD at the gated commit, or a descendant its receipts still cover (evidence-only or docs-only), is `already
|
|
44
|
+
verified`: nothing runs. Except when lean-pkg-signoff.json differs from the gated commit: it is not a build
|
|
45
|
+
input, so HEAD stays covered, but the page and R11 read its smoke marks and reviewers at the receipts' commit
|
|
46
|
+
as well as at HEAD, so dropping a smoke mark would never count. verify then says so and cuts both receipts
|
|
47
|
+
again at HEAD, as for a new commit (`--json` carries `signoff_changed`, the gated commit).
|
|
48
|
+
|
|
43
49
|
A package whose committed coverage.yaml declares an LTS stack (`stack: NAME`, proposal 0004) is checked against
|
|
44
50
|
it first: lean-toolchain and the Mathlib commit of lake-manifest.json at HEAD, then, once the comparator
|
|
45
51
|
receipt exists, its toolchain digests. verify prints `on stack NAME (supported until DATE)` or one warning per
|
|
@@ -63,6 +69,7 @@ import sys
|
|
|
63
69
|
|
|
64
70
|
from . import cli, cli_parser, gate as gate_mod
|
|
65
71
|
from . import core
|
|
72
|
+
from .holes import SIDECAR as SIGNOFF_SIDECAR
|
|
66
73
|
|
|
67
74
|
GATE_FROM = ("gate-pending", "active") # a first gate
|
|
68
75
|
REGATE_FROM = ("verified-private", "public") # a re-gate on a new commit (public: evidence, status kept)
|
|
@@ -223,12 +230,19 @@ def plan(args) -> dict:
|
|
|
223
230
|
gate = pkg.get("gate") or {}
|
|
224
231
|
bound = gate_mod.recorded_json(repo, gate.get("receipt"))
|
|
225
232
|
already = None # the gated commit, when HEAD is it or an evidence-only descendant of it
|
|
233
|
+
signoff_changed = None # the gated commit, when HEAD descends from it but lean-pkg-signoff.json differs
|
|
226
234
|
if isinstance(bound, dict) and gate.get("comparator") and isinstance(bound.get("commit"), str):
|
|
227
235
|
if bound["commit"] == head:
|
|
228
236
|
already = head
|
|
229
237
|
else:
|
|
230
238
|
ok, _note, _docs = gate_mod.package_descendant(repo, bound["commit"], head, pkg, checker=bound.get("checker"))
|
|
231
239
|
already = bound["commit"] if ok else None
|
|
240
|
+
# lean-pkg-signoff.json is not a build input, so a change to it alone keeps HEAD a descendant; but
|
|
241
|
+
# the page and R11 read its smoke marks and reviewers at the receipts' commit too (smoke_configs takes
|
|
242
|
+
# the union), so the change counts only once the receipts bind a commit that has it: cut them again
|
|
243
|
+
if already and core.git_show_bytes(repo, SIGNOFF_SIDECAR, already) != core.git_show_bytes(
|
|
244
|
+
repo, SIGNOFF_SIDECAR, head):
|
|
245
|
+
signoff_changed, already = already, None
|
|
232
246
|
if already:
|
|
233
247
|
return {"reg": reg, "pkg": pkg, "status": status, "repo": repo, "head": head, "c12": c12,
|
|
234
248
|
"already": already, "work": None}
|
|
@@ -262,6 +276,7 @@ def plan(args) -> dict:
|
|
|
262
276
|
comparator = repo / ".lean-receipts" / f"{c12}-comparator.json"
|
|
263
277
|
return {"reg": reg, "pkg": pkg, "status": status, "repo": repo, "head": head, "c12": c12, "unit": unit,
|
|
264
278
|
"work": work, "script": script, "already": already, "comparator": comparator,
|
|
279
|
+
"signoff_changed": signoff_changed,
|
|
265
280
|
"no_mathlib": knowingly_no_mathlib(repo, head, script)}
|
|
266
281
|
|
|
267
282
|
|
|
@@ -380,6 +395,11 @@ def cmd_verify(args) -> int:
|
|
|
380
395
|
f"{p['pkg']['gate'].get('comparator')}; nothing to do")
|
|
381
396
|
payload.update(ok=True, already=p["already"], status=p["status"])
|
|
382
397
|
return _finish(args, payload, 0)
|
|
398
|
+
if p["signoff_changed"]:
|
|
399
|
+
payload["signoff_changed"] = p["signoff_changed"]
|
|
400
|
+
steps.say(f"verify: {SIGNOFF_SIDECAR} changed since the gated commit {p['signoff_changed'][:12]} (HEAD {c12} "
|
|
401
|
+
f"is otherwise covered by its receipts); the page and R11 read it at the receipts' commit, so the "
|
|
402
|
+
f"receipts are cut again at {c12}")
|
|
383
403
|
# 0. the preflight: the schema refusals of claims.yaml, coverage.yaml and lean-pkg-controls.yaml at HEAD
|
|
384
404
|
pre = preflight(steps, name, p["pkg"], repo, c12)
|
|
385
405
|
if not pre["ok"]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-pkg
|
|
3
|
-
Version: 0.30.
|
|
3
|
+
Version: 0.30.4
|
|
4
4
|
Summary: Lifecycle registry and trust gate for Lean 4 formalization packages: leases, receipt-bound gates, comparator (Palomar) evidence, one-way promotion.
|
|
5
5
|
Author: Le Chen
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""verify cuts the receipts again when only lean-pkg-signoff.json changed since the gated commit. The file is not
|
|
3
|
+
a build input, so such a HEAD stays covered by the receipts (`already verified`); but the page and R11 read its
|
|
4
|
+
smoke marks at the receipts' commit as well as at HEAD (comparator_config.smoke_configs, a union), so a mark
|
|
5
|
+
dropped after the gate would count until some build-input change. A field report dropped a smoke mark and verify
|
|
6
|
+
said `already verified ... nothing to do`."""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from .conftest import _git
|
|
13
|
+
from .test_command_tree_stage2 import VERIFY_SH, fake_steps, run, steps_of
|
|
14
|
+
from .test_page import prepare
|
|
15
|
+
|
|
16
|
+
SIGNOFF = "lean-pkg-signoff.json"
|
|
17
|
+
RUNNABLE = {"verify.sh": VERIFY_SH} # what verify needs before it runs a step (comparator.json: the fixture's)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _signoff(smoke: bool) -> str:
|
|
21
|
+
cfg = {"smoke": {"reason": "a sanity theorem that tests the comparator set-up"}} if smoke else {}
|
|
22
|
+
return json.dumps({"schema": "lean-pkg-signoff/1", "configs": {"comparator.json": cfg} if smoke else {}},
|
|
23
|
+
indent=2) + "\n"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _commit(repo, rel: str, text: str) -> str:
|
|
27
|
+
(repo / rel).write_text(text)
|
|
28
|
+
_git(repo, "add", rel)
|
|
29
|
+
_git(repo, "commit", "-q", "-m", rel)
|
|
30
|
+
return _git(repo, "rev-parse", "HEAD").stdout.strip()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def test_a_changed_signoff_file_cuts_the_receipts_again(lp, env, capsys, monkeypatch, tmp_path):
|
|
34
|
+
gated = prepare(env, extra=RUNNABLE)
|
|
35
|
+
repo = env.repo_b
|
|
36
|
+
head = _commit(repo, SIGNOFF, _signoff(smoke=False)) # a sidecar added after the gate: it differs
|
|
37
|
+
calls, _ = fake_steps(monkeypatch, repo)
|
|
38
|
+
rc, out, err = run(lp, capsys, "--registry", str(env.registry), "verify", "beta", "--unit", "v-verify",
|
|
39
|
+
"--work-dir", str(tmp_path / "w"))
|
|
40
|
+
assert rc == 0, err
|
|
41
|
+
assert "already verified" not in out
|
|
42
|
+
assert (f"{SIGNOFF} changed since the gated commit {gated[:12]} (HEAD {head[:12]} is otherwise covered by its "
|
|
43
|
+
f"receipts)") in out
|
|
44
|
+
assert steps_of(calls)[:2] == ["receipt comparator", "receipt systemd"] and steps_of(calls)[-1] == "gate beta"
|
|
45
|
+
assert any(w == head for w in calls[1]) # the lower tier binds HEAD, not the gate
|
|
46
|
+
calls.clear()
|
|
47
|
+
rc, out, _err = run(lp, capsys, "--registry", str(env.registry), "--json", "verify", "beta", "--dry-run")
|
|
48
|
+
data = json.loads(out)
|
|
49
|
+
assert data["signoff_changed"] == gated and not data.get("already")
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def test_dropping_a_mark_cuts_them_again_too_and_other_docs_do_not(lp, env, capsys, monkeypatch, tmp_path):
|
|
53
|
+
"""The field case: the mark was in the gated commit and HEAD drops it. A README edit alone stays covered."""
|
|
54
|
+
repo = env.repo_b
|
|
55
|
+
_commit(repo, SIGNOFF, _signoff(smoke=True))
|
|
56
|
+
prepare(env, extra=RUNNABLE) # gated with the mark
|
|
57
|
+
calls, _ = fake_steps(monkeypatch, repo)
|
|
58
|
+
_commit(repo, "README.md", "# beta\n\nA note.\n")
|
|
59
|
+
rc, out, _err = run(lp, capsys, "--registry", str(env.registry), "verify", "beta")
|
|
60
|
+
assert rc == 0 and "already verified" in out and calls == [] # docs-only: nothing to do, as before
|
|
61
|
+
_commit(repo, SIGNOFF, _signoff(smoke=False))
|
|
62
|
+
calls, _ = fake_steps(monkeypatch, repo) # the fake receipts bind the new HEAD
|
|
63
|
+
rc, out, err = run(lp, capsys, "--registry", str(env.registry), "verify", "beta", "--unit", "v-verify",
|
|
64
|
+
"--work-dir", str(tmp_path / "w"))
|
|
65
|
+
assert rc == 0, err
|
|
66
|
+
assert f"{SIGNOFF} changed since the gated commit" in out and steps_of(calls)[0] == "receipt comparator"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lean_pkg-0.30.3 → lean_pkg-0.30.4}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|