lean-pkg 0.30.2__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.
Files changed (351) hide show
  1. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/CHANGELOG.md +33 -0
  2. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/CITATION.cff +8 -2
  3. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/PKG-INFO +1 -1
  4. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/README.md +1 -1
  5. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/pyproject.toml +1 -1
  6. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/__init__.py +1 -1
  7. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/cli.py +1 -1
  8. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/coverage.py +27 -8
  9. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/verify.py +20 -0
  10. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/PKG-INFO +1 -1
  11. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/SOURCES.txt +1 -0
  12. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_verify_preflight.py +57 -0
  13. lean_pkg-0.30.4/tests/test_verify_signoff_recut.py +66 -0
  14. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/LICENSE +0 -0
  15. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/MANIFEST.in +0 -0
  16. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/PYPI.md +0 -0
  17. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/setup.cfg +0 -0
  18. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/__init__.py +0 -0
  19. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/github.py +0 -0
  20. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/leansearch.py +0 -0
  21. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/loogle.py +0 -0
  22. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/palomar.py +0 -0
  23. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/adapters/reservoir.py +0 -0
  24. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/anchor.py +0 -0
  25. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/audit.py +0 -0
  26. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/binding_file.py +0 -0
  27. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/blueprint.py +0 -0
  28. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/build_scope.py +0 -0
  29. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/ci_github.py +0 -0
  30. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/claim_axioms.py +0 -0
  31. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/claims.py +0 -0
  32. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/claims_mark.py +0 -0
  33. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/cli_parser.py +0 -0
  34. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/command_tree.py +0 -0
  35. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/comparator_config.py +0 -0
  36. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/comparator_contracts.py +0 -0
  37. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/comparator_receipt.py +0 -0
  38. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/comparator_stage.py +0 -0
  39. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/comparator_types.py +0 -0
  40. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/container.py +0 -0
  41. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/controls.py +0 -0
  42. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/core.py +0 -0
  43. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
  44. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
  45. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/data/upgrade-breaking.yaml +0 -0
  46. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
  47. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/deps_closure.py +0 -0
  48. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/deps_fill.py +0 -0
  49. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/dup_constants.py +0 -0
  50. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/exercise.py +0 -0
  51. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/exercise_forbid.py +0 -0
  52. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/export_paths.py +0 -0
  53. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract.py +0 -0
  54. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract_decls.py +0 -0
  55. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract_ledger.py +0 -0
  56. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract_summary.py +0 -0
  57. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract_types.py +0 -0
  58. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/extract_write.py +0 -0
  59. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/formalization.py +0 -0
  60. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/formalization_kept.py +0 -0
  61. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/fresh_repo.py +0 -0
  62. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/gate.py +0 -0
  63. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/headline.py +0 -0
  64. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/help_topics.py +0 -0
  65. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/holes.py +0 -0
  66. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/host_routes.py +0 -0
  67. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/html_blocks.py +0 -0
  68. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/hypotheses.py +0 -0
  69. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/index.py +0 -0
  70. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/json_stdout.py +0 -0
  71. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/lake_hygiene.py +0 -0
  72. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/lean_diag.py +0 -0
  73. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/lean_scan.py +0 -0
  74. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/ledger.py +0 -0
  75. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/next_step.py +0 -0
  76. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/page.py +0 -0
  77. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/page_html.py +0 -0
  78. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/palomar.py +0 -0
  79. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/palomar_check.py +0 -0
  80. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/port_modules.py +0 -0
  81. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/prior_art.py +0 -0
  82. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/producer.py +0 -0
  83. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/producer_skew.py +0 -0
  84. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/public_safety.py +0 -0
  85. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/publish.py +0 -0
  86. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/rebase.py +0 -0
  87. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/receipt.py +0 -0
  88. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/receipt_check.py +0 -0
  89. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/receipt_ci.py +0 -0
  90. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/receipt_systemd.py +0 -0
  91. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/recommended.py +0 -0
  92. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/report.py +0 -0
  93. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/reservoir.py +0 -0
  94. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scaffold.py +0 -0
  95. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
  96. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
  97. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
  98. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
  99. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/ControlsProbe.lean +0 -0
  100. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/DupConstants.lean +0 -0
  101. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/HypProbe.lean +0 -0
  102. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/comparator-check.sh +0 -0
  103. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
  104. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/seal_bundle.py +0 -0
  105. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/search.py +0 -0
  106. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/site_check.py +0 -0
  107. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/site_profiles/easley.yaml +0 -0
  108. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
  109. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/sites.py +0 -0
  110. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/stacks.py +0 -0
  111. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/statements_module.py +0 -0
  112. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
  113. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/toolchain_advisories.py +0 -0
  114. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg/upgrade.py +0 -0
  115. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
  116. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/entry_points.txt +0 -0
  117. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/requires.txt +0 -0
  118. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/src/lean_pkg.egg-info/top_level.txt +0 -0
  119. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_adapters.py +0 -0
  120. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_append_note.py +0 -0
  121. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_claims_coverage.py +0 -0
  122. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_gh_outcomes.py +0 -0
  123. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_missing_path.py +0 -0
  124. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_no_github_mirror.py +0 -0
  125. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_palomar.py +0 -0
  126. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_receipts_paths.py +0 -0
  127. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_audit_reference_branch.py +0 -0
  128. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_binding_file.py +0 -0
  129. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_binding_file_g3.py +0 -0
  130. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_blueprint_check.py +0 -0
  131. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_bootstrap_collaborator.py +0 -0
  132. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_branch_notice.py +0 -0
  133. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_campaign_recovery_docs.py +0 -0
  134. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_check_changelog_releases.py +0 -0
  135. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ci_attested.py +0 -0
  136. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ci_comparator.py +0 -0
  137. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ci_corroborate.py +0 -0
  138. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ci_receipt_level1.py +0 -0
  139. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_claim_axioms.py +0 -0
  140. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_claims.py +0 -0
  141. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_claims_ledger.py +0 -0
  142. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_claims_mark.py +0 -0
  143. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_claims_rebase.py +0 -0
  144. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli.py +0 -0
  145. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_consistency.py +0 -0
  146. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_contract_argv.py +0 -0
  147. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_contract_corpus.py +0 -0
  148. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_contract_help.py +0 -0
  149. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_contract_json.py +0 -0
  150. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cli_contract_names.py +0 -0
  151. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_columns.py +0 -0
  152. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_command_docs.py +0 -0
  153. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_command_tree_stage2.py +0 -0
  154. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_commit.py +0 -0
  155. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator.py +0 -0
  156. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_attempts.py +0 -0
  157. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_config.py +0 -0
  158. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_contracts.py +0 -0
  159. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_coverage.py +0 -0
  160. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_evidence_dir.py +0 -0
  161. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_host_label.py +0 -0
  162. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_list_defaults.py +0 -0
  163. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_log_transport.py +0 -0
  164. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_mismatch_next.py +0 -0
  165. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_name_hints.py +0 -0
  166. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_no_mathlib.py +0 -0
  167. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_readiness.py +0 -0
  168. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_receipt.py +0 -0
  169. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_replace.py +0 -0
  170. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_repo_claims_file.py +0 -0
  171. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_sacct_seal.py +0 -0
  172. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_stage.py +0 -0
  173. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_tool_toolchain.py +0 -0
  174. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_types.py +0 -0
  175. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_comparator_types_deep.py +0 -0
  176. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_compressed_log_bindings.py +0 -0
  177. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_conditional_claims.py +0 -0
  178. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_conditional_closeout.py +0 -0
  179. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_conditional_outputs.py +0 -0
  180. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_consent_dedupe.py +0 -0
  181. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_controls.py +0 -0
  182. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_core_split.py +0 -0
  183. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_coverage_accounted.py +0 -0
  184. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_coverage_conclusion.py +0 -0
  185. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_coverage_extensions.py +0 -0
  186. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_coverage_offline.py +0 -0
  187. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_coverage_witness.py +0 -0
  188. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_cut_release.py +0 -0
  189. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_defaults.py +0 -0
  190. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_docs.py +0 -0
  191. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_docs_classifier_preflight.py +0 -0
  192. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_docs_descendants.py +0 -0
  193. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_docs_old_spellings.py +0 -0
  194. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_doctor.py +0 -0
  195. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_dup_constants.py +0 -0
  196. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_evidence_formalization.py +0 -0
  197. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_exercise.py +0 -0
  198. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_exercise_course.py +0 -0
  199. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_extract_decls.py +0 -0
  200. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_extract_ledger.py +0 -0
  201. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_extract_plan.py +0 -0
  202. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_extract_summary.py +0 -0
  203. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_extract_types.py +0 -0
  204. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_fields_only.py +0 -0
  205. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_formalization.py +0 -0
  206. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_formalization_anchor.py +0 -0
  207. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_formalization_kept.py +0 -0
  208. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_formalization_refresh.py +0 -0
  209. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_formats.py +0 -0
  210. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_fresh_repo.py +0 -0
  211. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate.py +0 -0
  212. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_binding.py +0 -0
  213. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_binding_scope.py +0 -0
  214. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_check.py +0 -0
  215. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_check_next.py +0 -0
  216. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_claims.py +0 -0
  217. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_pins.py +0 -0
  218. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_receipt_path.py +0 -0
  219. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_refresh.py +0 -0
  220. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_gate_regate.py +0 -0
  221. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_headline.py +0 -0
  222. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_help_topics.py +0 -0
  223. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_hints_and_time.py +0 -0
  224. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_host_check.py +0 -0
  225. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_host_routes.py +0 -0
  226. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_hypotheses_ledger.py +0 -0
  227. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_hypotheses_probe.py +0 -0
  228. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ignored_evidence.py +0 -0
  229. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_add.py +0 -0
  230. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_built_on.py +0 -0
  231. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_check.py +0 -0
  232. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_claims.py +0 -0
  233. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_docs_descendants.py +0 -0
  234. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_render.py +0 -0
  235. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_index_schema.py +0 -0
  236. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_init.py +0 -0
  237. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_input_hygiene.py +0 -0
  238. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_internal_claims.py +0 -0
  239. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_json.py +0 -0
  240. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_json_control_chars.py +0 -0
  241. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_json_stdout.py +0 -0
  242. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_judged_as.py +0 -0
  243. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lake_cache_systemd.py +0 -0
  244. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lake_hygiene.py +0 -0
  245. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_large_artifacts_recipe.py +0 -0
  246. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lean_diag.py +0 -0
  247. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lean_scan_extract.py +0 -0
  248. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lease.py +0 -0
  249. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lease_actor.py +0 -0
  250. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lease_expiry_notice.py +0 -0
  251. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lease_registry_stamp.py +0 -0
  252. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ledger_exact_covers.py +0 -0
  253. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_ledger_golden.py +0 -0
  254. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_lifecycle_notes.py +0 -0
  255. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_llms.py +0 -0
  256. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_locking.py +0 -0
  257. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_manuscript_findings.py +0 -0
  258. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_mathlib_none.py +0 -0
  259. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_migrate.py +0 -0
  260. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_migrate_v3.py +0 -0
  261. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_namespace_notes.py +0 -0
  262. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_new.py +0 -0
  263. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_next.py +0 -0
  264. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_noninteractive.py +0 -0
  265. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_olean_manifest.py +0 -0
  266. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_outputs_golden.py +0 -0
  267. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_package_fields.py +0 -0
  268. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_packaging.py +0 -0
  269. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_page.py +0 -0
  270. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_page_repo_head.py +0 -0
  271. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_page_site.py +0 -0
  272. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_palomar_check.py +0 -0
  273. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_palomar_prepare.py +0 -0
  274. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_palomar_snapshot.py +0 -0
  275. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_paper.py +0 -0
  276. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_port_modules.py +0 -0
  277. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_prior_art.py +0 -0
  278. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_producer_skew.py +0 -0
  279. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_promote_audit.py +0 -0
  280. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_promote_scope.py +0 -0
  281. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_public_allow.py +0 -0
  282. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_public_safety.py +0 -0
  283. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_public_safety_gzip.py +0 -0
  284. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_public_safety_long_line_stream.py +0 -0
  285. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_public_safety_scope.py +0 -0
  286. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_publication_hold.py +0 -0
  287. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_publish.py +0 -0
  288. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_check.py +0 -0
  289. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_check_opt_in.py +0 -0
  290. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_ci.py +0 -0
  291. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_container.py +0 -0
  292. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_private_scan.py +0 -0
  293. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_producer.py +0 -0
  294. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm.py +0 -0
  295. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_artifacts.py +0 -0
  296. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
  297. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_fill_plan.py +0 -0
  298. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_preflight_deps.py +0 -0
  299. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
  300. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_sacct_seal.py +0 -0
  301. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_slurm_template_src.py +0 -0
  302. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_subdir_package.py +0 -0
  303. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_receipt_systemd.py +0 -0
  304. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_recommended.py +0 -0
  305. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_record.py +0 -0
  306. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_record_evidence.py +0 -0
  307. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_record_transitions.py +0 -0
  308. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_refresh_descendant.py +0 -0
  309. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_register.py +0 -0
  310. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_registry_core.py +0 -0
  311. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_registry_snapshot.py +0 -0
  312. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_release_script.py +0 -0
  313. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_release_version.py +0 -0
  314. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_render_cache.py +0 -0
  315. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_repo_override.py +0 -0
  316. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_report.py +0 -0
  317. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_report_log_required.py +0 -0
  318. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_reservoir_check.py +0 -0
  319. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_review_fixes_prior_art.py +0 -0
  320. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_robustness.py +0 -0
  321. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_seal_bundle.py +0 -0
  322. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search.py +0 -0
  323. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search_completeness.py +0 -0
  324. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search_declarations.py +0 -0
  325. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search_field_coverage.py +0 -0
  326. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search_scan.py +0 -0
  327. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_search_sources.py +0 -0
  328. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_sibling_packages.py +0 -0
  329. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_signoff_sidecar.py +0 -0
  330. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_site_check.py +0 -0
  331. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_sites.py +0 -0
  332. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_skills.py +0 -0
  333. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_smoke_configs.py +0 -0
  334. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_source_paper_ai.py +0 -0
  335. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_stack_opt_in.py +0 -0
  336. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_stacks.py +0 -0
  337. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_statements_module.py +0 -0
  338. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_status_scope.py +0 -0
  339. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_subdir_package.py +0 -0
  340. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_template_module_headers.py +0 -0
  341. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_toolchain_advisories.py +0 -0
  342. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_toolchain_floor.py +0 -0
  343. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_trust.py +0 -0
  344. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_update_publication_fields.py +0 -0
  345. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_update_relocate.py +0 -0
  346. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_upgrade.py +0 -0
  347. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_user_default.py +0 -0
  348. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_validate.py +0 -0
  349. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_verdict_first.py +0 -0
  350. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_verify_workflow_oidc.py +0 -0
  351. {lean_pkg-0.30.2 → lean_pkg-0.30.4}/tests/test_wiki.py +0 -0
@@ -9,6 +9,37 @@ 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
+
24
+ ## [0.30.3] - 2026-12-04
25
+
26
+ ### Changed
27
+
28
+ - `verify`'s preflight accepts a compared theorem that is the declaration
29
+ of an `internal` or `reusable` claim Lean generates (a structure field,
30
+ an `@[ext]` lemma) when the gate receipt committed at `HEAD` read it
31
+ from the built environment (its `claim_axioms`), as `coverage check
32
+ NAME`, `page --check` and `receipt check` have since 0.30.2 (#465). The
33
+ preflight runs before the build and read only the claims' files, so a
34
+ field report's 106 generated helper declarations stopped `verify`
35
+ unless their configuration was marked as a smoke check. The check's
36
+ line names the receipt it relied on; `coverage check --file` is
37
+ unchanged.
38
+
39
+ public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
40
+
41
+ Zenodo version DOI: [10.5281/zenodo.24826152](https://doi.org/10.5281/zenodo.24826152)
42
+
12
43
  ## [0.30.2] - 2026-12-02
13
44
 
14
45
  ### Changed
@@ -51,6 +82,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
51
82
 
52
83
  public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
53
84
 
85
+ Zenodo version DOI: [10.5281/zenodo.24762717](https://doi.org/10.5281/zenodo.24762717)
86
+
54
87
  ## [0.30.1] - 2026-11-30
55
88
 
56
89
  ### Changed
@@ -6,8 +6,8 @@ authors:
6
6
  - family-names: Chen
7
7
  given-names: Le
8
8
  affiliation: "Auburn University"
9
- version: "0.30.2"
10
- date-released: "2026-12-02"
9
+ version: "0.30.4"
10
+ date-released: "2026-12-04"
11
11
  license: Apache-2.0
12
12
  repository-code: "https://github.com/lean-pkg/lean-pkg"
13
13
  doi: 10.5281/zenodo.23272098
@@ -216,6 +216,12 @@ identifiers:
216
216
  - type: doi
217
217
  value: 10.5281/zenodo.24690284
218
218
  description: Version DOI for 0.30.1
219
+ - type: doi
220
+ value: 10.5281/zenodo.24762717
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
219
225
  url: "https://lean-pkg.github.io/lean-pkg/"
220
226
  keywords:
221
227
  - Lean 4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-pkg
3
- Version: 0.30.2
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.2},
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.2"
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).
@@ -1,3 +1,3 @@
1
1
  """lean-pkg: lifecycle registry and trust gate for Lean 4 formalization packages."""
2
2
 
3
- __version__ = "0.30.2"
3
+ __version__ = "0.30.4"
@@ -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
@@ -1143,13 +1143,16 @@ UNPOSTED_PROBLEM = ("manuscript.version: unposted: theorem numbers of a private
1143
1143
 
1144
1144
  def offline_check(text: str, where: str, *, claims_text: str | None = None, claims_where: str = "claims.yaml",
1145
1145
  configs: dict[str, bytes] | None = None, sidecar: dict | None = None, read_file=None,
1146
- profiles: dict | None = None, allow_private: bool = False, draft: bool = False) -> dict:
1146
+ profiles: dict | None = None, allow_private: bool = False, draft: bool = False,
1147
+ built: frozenset[str] = frozenset(), built_from: str = "") -> dict:
1147
1148
  """Every check of `coverage check` that needs no registry record and no receipt, on the coverage file's
1148
1149
  text: the coverage/1 schema and its length limits, the manuscript version, lean_pkg_version; with the
1149
1150
  claims file's text, its claims/1 schema, each row's claim ids (present, not superseded) and a warning for
1150
1151
  each reusable claim no row names; with comparator configurations ({path: bytes}), R10/R11 (each theorem
1151
1152
  the declaration of a claim a row names or of an internal or reusable claim; `sidecar` marks smoke
1152
- configurations; `read_file(rel)` reads the claims' Lean files, skipped when one is unreadable). draft (verify's preflight): placeholder text and an
1153
+ configurations; `read_file(rel)` reads the claims' Lean files, skipped when one is unreadable; `built`, the
1154
+ decls an earlier gate receipt's claim_axioms read from the built environment (built_decls), described by
1155
+ `built_from`). draft (verify's preflight): placeholder text and an
1153
1156
  unposted manuscript are warnings, not problems (`coverage check` and `page` still refuse them).
1154
1157
  {doc, errors, warnings, checks[{check, status pass|fail|warn|skipped, detail}], skipped[]}."""
1155
1158
  from . import claims as claims_mod
@@ -1247,15 +1250,16 @@ def offline_check(text: str, where: str, *, claims_text: str | None = None, clai
1247
1250
  else:
1248
1251
  _add("reusable claims", "pass", "every reusable claim is named by a row")
1249
1252
  _offline_comparator(_add, doc if valid else None, claims, configs, sidecar, read_file,
1250
- why_not if not valid else None, claims_text is None)
1253
+ why_not if not valid else None, claims_text is None, built, built_from)
1251
1254
  for check, why in OFFLINE_SKIPPED:
1252
1255
  _add(check, "skipped", why)
1253
1256
  return out
1254
1257
 
1255
1258
 
1256
1259
  def _offline_comparator(_add, doc, claims, configs, sidecar, read_file, invalid: str | None,
1257
- no_claims: bool) -> None:
1260
+ no_claims: bool, built: frozenset[str] = frozenset(), built_from: str = "") -> None:
1258
1261
  """The R10/R11 entry of offline_check."""
1262
+ from . import comparator_config as cc
1259
1263
  from . import holes
1260
1264
  check = "comparator theorems"
1261
1265
  if configs is None:
@@ -1289,10 +1293,15 @@ def _offline_comparator(_add, doc, claims, configs, sidecar, read_file, invalid:
1289
1293
  + ", ".join(unreadable[:5]) + "): a decl counts only when its file declares it")
1290
1294
  return
1291
1295
  p = theorem_mapping_problems(doc, claims, parsed, holes.smoke_paths(sidecar), read_file,
1292
- "comparator configuration")
1296
+ "comparator configuration", built)
1293
1297
  n = sum(len(c["theorem_names"]) for c in parsed)
1298
+ # the decls R11 counted only because the earlier build had them: no file's text declares them
1299
+ generated = {str(c.get("decl") or "") for c in claims.values()} & set(built)
1300
+ generated -= cc.qualified_decls(read_file, list(claims.values()))
1294
1301
  _add(check, "fail" if p else "pass", f"each of {n} theorem(s) in {len(parsed)} configuration(s) is the "
1295
- f"declaration of a claim a row names or of an internal or reusable claim (R11)", p)
1302
+ f"declaration of a claim a row names or of an internal or reusable claim (R11)"
1303
+ + (f"; {len(generated)} generated declaration(s) counted because {built_from} read them from the "
1304
+ f"built environment (claim_axioms)" if generated else ""), p)
1296
1305
 
1297
1306
 
1298
1307
  def _offline_reader(root: pathlib.Path):
@@ -1392,7 +1401,8 @@ def do_coverage_check_file(file: str, claims_path: str | None, comparator_paths:
1392
1401
  def preflight_at_head(name: str, pkg: dict, repo: pathlib.Path) -> dict:
1393
1402
  """verify's step 0 (#325): at HEAD, the claims/1 check `claims check --file` runs on the claims file
1394
1403
  (refused: its errors), and, when coverage.yaml is committed, offline_check in draft mode against that
1395
- claims file and the comparator configurations committed at HEAD. Reads only HEAD, never the working tree.
1404
+ claims file and the comparator configurations committed at HEAD; R11 also counts the generated declarations
1405
+ the gate receipt committed at HEAD read from its build (built_decls). Reads only HEAD, never the working tree.
1396
1406
  {ok, claims {file, present, claims, errors[]}, coverage {file, present, ...offline_check} , lines[]}."""
1397
1407
  from . import claims as claims_mod
1398
1408
  from . import comparator_config as cc
@@ -1431,9 +1441,18 @@ def preflight_at_head(name: str, pkg: dict, repo: pathlib.Path) -> dict:
1431
1441
  verdict = f"{where}: coverage: INVALID (1 problem(s); offline)"
1432
1442
  res["lines"] = lines + [verdict, f" {e}", verdict]
1433
1443
  return res
1444
+ # R11's generated declarations (a structure field, an @[ext] lemma) are in no file's text: before the build,
1445
+ # the gate receipt committed at HEAD is the only evidence that they exist (built_decls; the new gate receipt,
1446
+ # which `coverage check`, `page --check` and `receipt check` read after the run, must show them again)
1447
+ gate_rel = (pkg.get("gate") or {}).get("receipt")
1448
+ lower, _raw = receipt_at_head(repo, gate_rel) if gate_rel else (None, None)
1449
+ built = built_decls(repo, lower)
1450
+ built_from = (f"the gate receipt {gate_rel} (commit {str((lower or {}).get('commit'))[:12]})"
1451
+ if built else "")
1434
1452
  rep = offline_check(craw.decode("utf-8", errors="replace"), where, claims_text=claims_text,
1435
1453
  claims_where=f"{rel} at {c12}", configs=cc._configs_at(repo, "HEAD"), sidecar=sidecar,
1436
- read_file=claims_mod._reader(repo, "HEAD"), profiles=profiles, draft=True)
1454
+ read_file=claims_mod._reader(repo, "HEAD"), profiles=profiles, draft=True,
1455
+ built=built, built_from=built_from)
1437
1456
  res["coverage"].update(present=True, errors=rep["errors"], warnings=rep["warnings"], checks=rep["checks"],
1438
1457
  skipped=rep["skipped"])
1439
1458
  payload = offline_payload(rep, name, where, rel if claims_text is not None else None,
@@ -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.2
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
@@ -344,5 +344,6 @@ tests/test_user_default.py
344
344
  tests/test_validate.py
345
345
  tests/test_verdict_first.py
346
346
  tests/test_verify_preflight.py
347
+ tests/test_verify_signoff_recut.py
347
348
  tests/test_verify_workflow_oidc.py
348
349
  tests/test_wiki.py
@@ -207,3 +207,60 @@ def test_verify_passes_memory_max_to_the_lower_tier_receipt(lp, vpkg, capsys, mo
207
207
  calls.clear()
208
208
  verify(lp, capsys, reg, tmp_path)
209
209
  assert all("--memory-max" not in c for c in calls) # absent: receipt systemd's 8G default
210
+
211
+
212
+ # --- R11's generated declarations before the build: the gate receipt committed at HEAD (a field report) ------
213
+
214
+ GENERATED = "Demo.Good.smooth" # a structure field: Lean declares it, no line of Demo/Main.lean does
215
+ CLAIMS_GENERATED = CLAIMS + f"""\
216
+ - id: v/good-smooth
217
+ decl: {GENERATED}
218
+ kind: lemma
219
+ summary: The smoothness field of a good kernel.
220
+ file: Demo/Main.lean
221
+ status: internal
222
+ """
223
+
224
+
225
+ def _preflight_repo(tmp_path, missing: list[str] | None) -> tuple:
226
+ """A package whose comparator compares a generated internal claim; with `missing` not None, a gate receipt
227
+ committed at HEAD whose claim_axioms checked claims.yaml at the package commit, `missing` absent."""
228
+ repo = tmp_path / "pkg"
229
+ repo.mkdir(parents=True)
230
+ _git(repo, "init", "-q")
231
+ cfg = {"challenge_module": "Challenge", "solution_module": "Solution",
232
+ "theorem_names": ["Demo.main_bound", GENERATED]}
233
+ built = commit(repo, {"claims.yaml": CLAIMS_GENERATED, "Demo/Main.lean": LEAN, "comparator.json": json.dumps(cfg),
234
+ "coverage.yaml": yaml.safe_dump(COVERAGE, sort_keys=False)})
235
+ pkg: dict = {}
236
+ if missing is not None:
237
+ lower = {"commit": built, "claim_axioms": {"checked": 2 - len(missing), "nonstandard": [], "missing": missing}}
238
+ commit(repo, {".lean-receipts/gate.json": json.dumps(lower)})
239
+ pkg = {"gate": {"receipt": ".lean-receipts/gate.json"}}
240
+ return repo, pkg, built
241
+
242
+
243
+ def _r11(res: dict) -> dict:
244
+ return next(c for c in res["coverage"]["checks"] if c["check"] == "comparator theorems")
245
+
246
+
247
+ def test_the_preflight_counts_a_generated_declaration_the_gate_receipt_read(tmp_path):
248
+ """verify's preflight runs before any build, so R11 cannot see a declaration Lean generates. The gate receipt
249
+ committed at HEAD read it from the last build (claim_axioms): the preflight counts it, and says so."""
250
+ from lean_pkg import coverage as cov
251
+ repo, pkg, built = _preflight_repo(tmp_path, [])
252
+ res = cov.preflight_at_head("v", pkg, repo)
253
+ assert res["ok"] is True, res["coverage"]["errors"]
254
+ detail = _r11(res)["detail"]
255
+ assert _r11(res)["status"] == "pass"
256
+ assert (f"1 generated declaration(s) counted because the gate receipt .lean-receipts/gate.json "
257
+ f"(commit {built[:12]}) read them from the built environment") in detail
258
+
259
+
260
+ def test_the_preflight_without_that_evidence_still_refuses_a_generated_declaration(tmp_path):
261
+ from lean_pkg import coverage as cov
262
+ for missing in (None, [GENERATED]): # no gate receipt; a gate receipt whose build lacked it
263
+ repo, pkg, _built = _preflight_repo(tmp_path / str(missing is None), missing)
264
+ res = cov.preflight_at_head("v", pkg, repo)
265
+ assert res["ok"] is False and any(f"'{GENERATED}'" in e for e in res["coverage"]["errors"])
266
+ assert "generated declaration" not in _r11(res)["detail"]
@@ -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