lean-pkg 0.28.0__tar.gz → 0.29.0__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 (343) hide show
  1. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/CHANGELOG.md +43 -0
  2. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/CITATION.cff +4 -1
  3. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/PKG-INFO +1 -1
  4. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/README.md +1 -1
  5. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/pyproject.toml +1 -1
  6. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/__init__.py +1 -1
  7. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/cli.py +3 -25
  8. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/cli_parser.py +2 -0
  9. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/command_tree.py +2 -2
  10. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/core.py +52 -4
  11. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/producer_skew.py +1 -1
  12. lean_pkg-0.29.0/src/lean_pkg/site_check.py +470 -0
  13. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/PKG-INFO +1 -1
  14. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/SOURCES.txt +2 -0
  15. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_contract_argv.py +3 -1
  16. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_formats.py +50 -0
  17. lean_pkg-0.29.0/tests/test_site_check.py +163 -0
  18. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/LICENSE +0 -0
  19. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/MANIFEST.in +0 -0
  20. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/PYPI.md +0 -0
  21. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/setup.cfg +0 -0
  22. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/__init__.py +0 -0
  23. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/github.py +0 -0
  24. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/leansearch.py +0 -0
  25. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/loogle.py +0 -0
  26. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/palomar.py +0 -0
  27. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/adapters/reservoir.py +0 -0
  28. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/anchor.py +0 -0
  29. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/audit.py +0 -0
  30. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/binding_file.py +0 -0
  31. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/blueprint.py +0 -0
  32. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/build_scope.py +0 -0
  33. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/ci_github.py +0 -0
  34. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/claim_axioms.py +0 -0
  35. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/claims.py +0 -0
  36. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/claims_mark.py +0 -0
  37. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/comparator_config.py +0 -0
  38. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/comparator_contracts.py +0 -0
  39. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/comparator_receipt.py +0 -0
  40. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/comparator_stage.py +0 -0
  41. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/comparator_types.py +0 -0
  42. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/container.py +0 -0
  43. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/coverage.py +0 -0
  44. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
  45. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
  46. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/data/upgrade-breaking.yaml +0 -0
  47. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
  48. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/deps_closure.py +0 -0
  49. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/deps_fill.py +0 -0
  50. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/dup_constants.py +0 -0
  51. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/exercise.py +0 -0
  52. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/exercise_forbid.py +0 -0
  53. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/export_paths.py +0 -0
  54. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract.py +0 -0
  55. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract_decls.py +0 -0
  56. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract_ledger.py +0 -0
  57. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract_summary.py +0 -0
  58. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract_types.py +0 -0
  59. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/extract_write.py +0 -0
  60. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/formalization.py +0 -0
  61. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/formalization_kept.py +0 -0
  62. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/fresh_repo.py +0 -0
  63. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/gate.py +0 -0
  64. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/headline.py +0 -0
  65. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/help_topics.py +0 -0
  66. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/holes.py +0 -0
  67. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/host_routes.py +0 -0
  68. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/html_blocks.py +0 -0
  69. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/hypotheses.py +0 -0
  70. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/index.py +0 -0
  71. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/json_stdout.py +0 -0
  72. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/lake_hygiene.py +0 -0
  73. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/lean_diag.py +0 -0
  74. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/lean_scan.py +0 -0
  75. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/ledger.py +0 -0
  76. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/next_step.py +0 -0
  77. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/page.py +0 -0
  78. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/page_html.py +0 -0
  79. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/palomar.py +0 -0
  80. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/palomar_check.py +0 -0
  81. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/port_modules.py +0 -0
  82. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/prior_art.py +0 -0
  83. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/producer.py +0 -0
  84. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/public_safety.py +0 -0
  85. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/publish.py +0 -0
  86. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/rebase.py +0 -0
  87. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/receipt.py +0 -0
  88. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/receipt_check.py +0 -0
  89. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/receipt_ci.py +0 -0
  90. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/receipt_systemd.py +0 -0
  91. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/recommended.py +0 -0
  92. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/report.py +0 -0
  93. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/reservoir.py +0 -0
  94. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scaffold.py +0 -0
  95. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
  96. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
  97. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
  98. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
  99. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/DupConstants.lean +0 -0
  100. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/HypProbe.lean +0 -0
  101. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/comparator-check.sh +0 -0
  102. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
  103. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/seal_bundle.py +0 -0
  104. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/search.py +0 -0
  105. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/site_profiles/easley.yaml +0 -0
  106. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
  107. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/sites.py +0 -0
  108. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/stacks.py +0 -0
  109. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/statements_module.py +0 -0
  110. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
  111. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/toolchain_advisories.py +0 -0
  112. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/upgrade.py +0 -0
  113. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg/verify.py +0 -0
  114. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
  115. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/entry_points.txt +0 -0
  116. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/requires.txt +0 -0
  117. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/src/lean_pkg.egg-info/top_level.txt +0 -0
  118. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_adapters.py +0 -0
  119. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_append_note.py +0 -0
  120. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_claims_coverage.py +0 -0
  121. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_gh_outcomes.py +0 -0
  122. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_missing_path.py +0 -0
  123. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_no_github_mirror.py +0 -0
  124. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_palomar.py +0 -0
  125. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_receipts_paths.py +0 -0
  126. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_audit_reference_branch.py +0 -0
  127. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_binding_file.py +0 -0
  128. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_binding_file_g3.py +0 -0
  129. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_blueprint_check.py +0 -0
  130. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_bootstrap_collaborator.py +0 -0
  131. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_branch_notice.py +0 -0
  132. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_campaign_recovery_docs.py +0 -0
  133. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_check_changelog_releases.py +0 -0
  134. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ci_attested.py +0 -0
  135. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ci_comparator.py +0 -0
  136. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ci_corroborate.py +0 -0
  137. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ci_receipt_level1.py +0 -0
  138. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_claim_axioms.py +0 -0
  139. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_claims.py +0 -0
  140. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_claims_ledger.py +0 -0
  141. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_claims_mark.py +0 -0
  142. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_claims_rebase.py +0 -0
  143. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli.py +0 -0
  144. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_consistency.py +0 -0
  145. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_contract_corpus.py +0 -0
  146. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_contract_help.py +0 -0
  147. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_contract_json.py +0 -0
  148. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cli_contract_names.py +0 -0
  149. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_columns.py +0 -0
  150. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_command_docs.py +0 -0
  151. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_command_tree_stage2.py +0 -0
  152. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_commit.py +0 -0
  153. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator.py +0 -0
  154. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_attempts.py +0 -0
  155. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_config.py +0 -0
  156. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_contracts.py +0 -0
  157. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_coverage.py +0 -0
  158. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_evidence_dir.py +0 -0
  159. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_host_label.py +0 -0
  160. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_list_defaults.py +0 -0
  161. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_log_transport.py +0 -0
  162. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_mismatch_next.py +0 -0
  163. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_name_hints.py +0 -0
  164. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_no_mathlib.py +0 -0
  165. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_readiness.py +0 -0
  166. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_receipt.py +0 -0
  167. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_replace.py +0 -0
  168. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_repo_claims_file.py +0 -0
  169. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_sacct_seal.py +0 -0
  170. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_stage.py +0 -0
  171. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_tool_toolchain.py +0 -0
  172. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_comparator_types.py +0 -0
  173. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_compressed_log_bindings.py +0 -0
  174. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_conditional_claims.py +0 -0
  175. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_conditional_closeout.py +0 -0
  176. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_conditional_outputs.py +0 -0
  177. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_consent_dedupe.py +0 -0
  178. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_core_split.py +0 -0
  179. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_coverage_conclusion.py +0 -0
  180. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_coverage_offline.py +0 -0
  181. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_coverage_witness.py +0 -0
  182. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_cut_release.py +0 -0
  183. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_defaults.py +0 -0
  184. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_docs.py +0 -0
  185. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_docs_classifier_preflight.py +0 -0
  186. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_docs_descendants.py +0 -0
  187. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_docs_old_spellings.py +0 -0
  188. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_doctor.py +0 -0
  189. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_dup_constants.py +0 -0
  190. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_evidence_formalization.py +0 -0
  191. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_exercise.py +0 -0
  192. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_exercise_course.py +0 -0
  193. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_extract_decls.py +0 -0
  194. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_extract_ledger.py +0 -0
  195. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_extract_plan.py +0 -0
  196. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_extract_summary.py +0 -0
  197. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_extract_types.py +0 -0
  198. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_fields_only.py +0 -0
  199. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_formalization.py +0 -0
  200. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_formalization_anchor.py +0 -0
  201. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_formalization_kept.py +0 -0
  202. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_formalization_refresh.py +0 -0
  203. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_fresh_repo.py +0 -0
  204. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate.py +0 -0
  205. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_binding.py +0 -0
  206. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_binding_scope.py +0 -0
  207. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_check.py +0 -0
  208. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_check_next.py +0 -0
  209. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_claims.py +0 -0
  210. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_pins.py +0 -0
  211. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_receipt_path.py +0 -0
  212. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_refresh.py +0 -0
  213. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_gate_regate.py +0 -0
  214. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_headline.py +0 -0
  215. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_help_topics.py +0 -0
  216. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_hints_and_time.py +0 -0
  217. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_host_check.py +0 -0
  218. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_host_routes.py +0 -0
  219. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_hypotheses_ledger.py +0 -0
  220. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_hypotheses_probe.py +0 -0
  221. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ignored_evidence.py +0 -0
  222. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_add.py +0 -0
  223. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_built_on.py +0 -0
  224. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_check.py +0 -0
  225. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_claims.py +0 -0
  226. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_docs_descendants.py +0 -0
  227. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_render.py +0 -0
  228. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_index_schema.py +0 -0
  229. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_init.py +0 -0
  230. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_input_hygiene.py +0 -0
  231. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_internal_claims.py +0 -0
  232. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_json.py +0 -0
  233. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_json_control_chars.py +0 -0
  234. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_json_stdout.py +0 -0
  235. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_judged_as.py +0 -0
  236. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lake_cache_systemd.py +0 -0
  237. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lake_hygiene.py +0 -0
  238. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_large_artifacts_recipe.py +0 -0
  239. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lean_diag.py +0 -0
  240. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lean_scan_extract.py +0 -0
  241. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lease.py +0 -0
  242. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lease_actor.py +0 -0
  243. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lease_expiry_notice.py +0 -0
  244. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lease_registry_stamp.py +0 -0
  245. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ledger_exact_covers.py +0 -0
  246. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_ledger_golden.py +0 -0
  247. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_lifecycle_notes.py +0 -0
  248. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_llms.py +0 -0
  249. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_locking.py +0 -0
  250. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_manuscript_findings.py +0 -0
  251. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_mathlib_none.py +0 -0
  252. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_migrate.py +0 -0
  253. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_migrate_v3.py +0 -0
  254. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_namespace_notes.py +0 -0
  255. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_new.py +0 -0
  256. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_next.py +0 -0
  257. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_noninteractive.py +0 -0
  258. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_olean_manifest.py +0 -0
  259. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_outputs_golden.py +0 -0
  260. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_package_fields.py +0 -0
  261. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_packaging.py +0 -0
  262. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_page.py +0 -0
  263. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_page_repo_head.py +0 -0
  264. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_page_site.py +0 -0
  265. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_palomar_check.py +0 -0
  266. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_palomar_prepare.py +0 -0
  267. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_palomar_snapshot.py +0 -0
  268. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_paper.py +0 -0
  269. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_port_modules.py +0 -0
  270. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_prior_art.py +0 -0
  271. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_producer_skew.py +0 -0
  272. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_promote_audit.py +0 -0
  273. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_promote_scope.py +0 -0
  274. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_public_allow.py +0 -0
  275. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_public_safety.py +0 -0
  276. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_public_safety_gzip.py +0 -0
  277. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_public_safety_long_line_stream.py +0 -0
  278. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_public_safety_scope.py +0 -0
  279. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_publication_hold.py +0 -0
  280. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_publish.py +0 -0
  281. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_check.py +0 -0
  282. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_check_opt_in.py +0 -0
  283. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_ci.py +0 -0
  284. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_container.py +0 -0
  285. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_private_scan.py +0 -0
  286. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_producer.py +0 -0
  287. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm.py +0 -0
  288. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_artifacts.py +0 -0
  289. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
  290. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_fill_plan.py +0 -0
  291. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_preflight_deps.py +0 -0
  292. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
  293. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_sacct_seal.py +0 -0
  294. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_slurm_template_src.py +0 -0
  295. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_subdir_package.py +0 -0
  296. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_receipt_systemd.py +0 -0
  297. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_recommended.py +0 -0
  298. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_record.py +0 -0
  299. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_record_evidence.py +0 -0
  300. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_record_transitions.py +0 -0
  301. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_refresh_descendant.py +0 -0
  302. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_register.py +0 -0
  303. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_registry_core.py +0 -0
  304. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_registry_snapshot.py +0 -0
  305. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_release_script.py +0 -0
  306. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_release_version.py +0 -0
  307. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_repo_override.py +0 -0
  308. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_report.py +0 -0
  309. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_report_log_required.py +0 -0
  310. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_reservoir_check.py +0 -0
  311. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_review_fixes_prior_art.py +0 -0
  312. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_robustness.py +0 -0
  313. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_seal_bundle.py +0 -0
  314. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search.py +0 -0
  315. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search_completeness.py +0 -0
  316. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search_declarations.py +0 -0
  317. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search_field_coverage.py +0 -0
  318. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search_scan.py +0 -0
  319. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_search_sources.py +0 -0
  320. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_sibling_packages.py +0 -0
  321. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_signoff_sidecar.py +0 -0
  322. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_sites.py +0 -0
  323. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_skills.py +0 -0
  324. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_smoke_configs.py +0 -0
  325. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_source_paper_ai.py +0 -0
  326. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_stack_opt_in.py +0 -0
  327. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_stacks.py +0 -0
  328. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_statements_module.py +0 -0
  329. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_status_scope.py +0 -0
  330. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_subdir_package.py +0 -0
  331. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_template_module_headers.py +0 -0
  332. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_toolchain_advisories.py +0 -0
  333. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_toolchain_floor.py +0 -0
  334. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_trust.py +0 -0
  335. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_update_publication_fields.py +0 -0
  336. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_update_relocate.py +0 -0
  337. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_upgrade.py +0 -0
  338. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_user_default.py +0 -0
  339. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_validate.py +0 -0
  340. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_verdict_first.py +0 -0
  341. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_verify_preflight.py +0 -0
  342. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_verify_workflow_oidc.py +0 -0
  343. {lean_pkg-0.28.0 → lean_pkg-0.29.0}/tests/test_wiki.py +0 -0
@@ -9,6 +9,47 @@ 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.29.0] - 2026-11-09
13
+
14
+ ### Added
15
+
16
+ - `lean-pkg site check [NAME] [--dir DIR] [--no-registry]`, phase 1 of the
17
+ accepted site standard (proposal 0012, #444): a read-only check of a
18
+ package's documentation site of any kind, a Jekyll site, an MkDocs site or
19
+ a static site served as committed (`.nojekyll`). It fails on a generated
20
+ page (`verification.md`, `coverage.md`) that is stale or not linked,
21
+ Markdown inside an HTML block, mathematics with no MathJax in the head, the
22
+ noindex meta tag missing while the package is private (or left once it is
23
+ public), a served copy of a build input, and an `index.html` shadowing
24
+ `index.md`. Counts, versions and commits written by hand outside generated
25
+ blocks, and the opt-in key, are warnings until `site render` (phase 2) can
26
+ write them. Without `NAME`, or with `--no-registry`, it runs in the checkout
27
+ with no registry (the CI form). See docs/site.md, a new guide.
28
+
29
+ - Every line lean-pkg appends to the event log names the lean-pkg that
30
+ wrote it (proposal 0013, #447): an additive `producer` key
31
+ `{lean_pkg, install, commit, dirty}`, with the release, the install kind
32
+ (`installed`, `editable` or `unknown`, as `--version` detects it) and, for
33
+ an editable checkout, its full `HEAD` and whether it was modified. Event
34
+ lines stay `v: 1`, so an older lean-pkg reads them as before; a line
35
+ without the key was written before and means producer unknown. The key
36
+ carries no path, host or user name and is not copied into `history[]`.
37
+ See docs/formats.md, "Event log".
38
+
39
+ ### Documentation
40
+
41
+ - Proposal 0011, non-vacuity witnesses on coverage rows, is marked
42
+ implemented in 0.28.0 (#443), in its status line and the proposals table.
43
+ - Proposal 0010, the strength of a row's conclusion in coverage.yaml, is
44
+ marked implemented in 0.26.0 (#445), in its status line and the proposals
45
+ table.
46
+ - Proposals 0001 (the paper's statement), 0005 (per-claim axioms), 0006 (the
47
+ claim-to-comparator mapping) and 0007 (`built_on` credits) are marked
48
+ implemented in the releases that shipped them, 0.11.0, 0.14.0, 0.14.0 and
49
+ 0.15.0 (#448), in their status lines and the proposals table.
50
+
51
+ public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
52
+
12
53
  ## [0.28.0] - 2026-11-09
13
54
 
14
55
  ### Added
@@ -62,6 +103,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
62
103
 
63
104
  public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
64
105
 
106
+ Zenodo version DOI: [10.5281/zenodo.24085127](https://doi.org/10.5281/zenodo.24085127)
107
+
65
108
  ## [0.27.0] - 2026-11-07
66
109
 
67
110
  ### Added
@@ -6,7 +6,7 @@ authors:
6
6
  - family-names: Chen
7
7
  given-names: Le
8
8
  affiliation: "Auburn University"
9
- version: "0.28.0"
9
+ version: "0.29.0"
10
10
  date-released: "2026-11-09"
11
11
  license: Apache-2.0
12
12
  repository-code: "https://github.com/lean-pkg/lean-pkg"
@@ -204,6 +204,9 @@ identifiers:
204
204
  - type: doi
205
205
  value: 10.5281/zenodo.24041994
206
206
  description: Version DOI for 0.27.0
207
+ - type: doi
208
+ value: 10.5281/zenodo.24085127
209
+ description: Version DOI for 0.28.0
207
210
  url: "https://lean-pkg.github.io/lean-pkg/"
208
211
  keywords:
209
212
  - Lean 4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-pkg
3
- Version: 0.28.0
3
+ Version: 0.29.0
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.28.0},
368
+ version = {0.29.0},
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.28.0"
7
+ version = "0.29.0"
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.28.0"
3
+ __version__ = "0.29.0"
@@ -134,6 +134,7 @@ if __name__ == "__main__":
134
134
  # the supported interface (AGENTS.md), so removing them later is not a deprecation under RELEASING.md.
135
135
  # Code in core.py and in the command modules reads core's globals: rebinding or monkeypatching one of these
136
136
  # names here is not seen there (tests patch both: conftest.patch_core).
137
+ from .core import event_producer, _event_producer, install_detect # noqa: F401 proposal 0013 (core)
137
138
  from .core import ( # noqa: F401 re-exports, one release (#317)
138
139
  _ACTOR, ancestor_attribute_changes, append_event, BOARD_HEADER, bound_tree, branch_notice, branch_state,
139
140
  BULK_FIELDS, check_event_logs_appendable, checker_paths, CLAIMS_COMMIT_FIRST, COMPARATOR_CONFIG_FIELDS,
@@ -3222,7 +3223,7 @@ index public catalog <index>/<name>/entry.yaml + receipts/ (root: --index, e
3222
3223
  claims claims.yaml (schema claims/1) at the package repo root: named reusable results, cached in the registry.
3223
3224
  sync NAME read claims.yaml at HEAD (committed bytes only); every decl must occur in its file; event claims-synced; a pin on no remote-tracking branch (unpushed) prints a stderr WARN (--json pin_published true|false|null).
3224
3225
  mark NAME --from-comparator CONFIG.json --status reusable|internal|experimental [--write|--dry-run] [--agent A]: set status on exactly the claims whose decl the config's theorem_names cover (the --coverage/ledger rule: full name or <Prefix>.<decl> of a fully qualified decl), in the checkout's working copy; default prints the plan; --write edits only those status values (else re-dumps, reformatted true), never commits, never the registry; lists unmatched names, then the rule and a hint per name that differs from exactly one claim's decl only in its leading namespace component (never applied); --json {ok, name, file, config, status, matched[{id, decl, from, to, changed}], changed, unmatched[], written, reformatted, rule, hints[{name, decl, shape, rename_to, hint}]}. sync and check print `WARN NAME: gated, N claim(s), none with status reusable: ...` (--json warnings[]) for a gated package with no reusable claim. | list [NAME] | check [NAME] [--file PATH] cached claims with status and derived trust | re-validate; exit 0/1 (--file: schema-check a working-copy file, schema only: no checkout, so declarations unchecked; no registry; --json {ok, path, claims, errors[]}). With NAME both report coverage synced|empty|unsynced|none (--json: coverage, cached_claims, claims_yaml present|absent|unknown, legacy_claims[], hint); check NAME exits 1 on none/unsynced (no coverage is not ok) and names any legacy *claims.json in the checkout | migrate NAME --from PATH [--out claims.yaml] [--dry-run] [--agent A]: legacy JSON rows -> a claims/1 skeleton in the checkout (mapped fields; TODO markers, TODO.lean for the rest, which sync refuses); never overwrites, never writes the registry, grants nothing: commit it, then claims sync. | ledger NAME [--stage gate|promote]: read-only, nothing stored: each claim (claims.yaml at the gate-bound commit, else the cache) with named diagnostics from the recorded receipts, re-checked with gate's and promote's validators; a claim is verified only with zero diagnostics. Claim status: out-of-scope (superseded; internal unless judged: an internal theorem/lemma a configuration names, with the comparator tier clean, gets the reusable checks and can be verified, judged_internal true, never required) | blocked (a depends_on claim not closed) | unknown (unreadable evidence) | open (an open/failed code) | conditional (proposal 0003: the claim lists hypotheses, or inherits outstanding ones via depends_on, depends-on-conditional; never verified, even with every hypothesis discharged) | verified | open. Required = status reusable; --stage promote (default) also needs the comparator tier for reusable theorems/lemmas. Package status fails closed: unknown (no claims, none reusable, no checkout, unreadable evidence) | failed (evidence contradicts a required claim) | open | ready (every required claim verified or conditional). Conditional claims are judged from the hyp-probe/1 section of the gate receipt's sealed verify log at the bound commit, recomputed on every call: each hypothesis an explicit binder of the decl (and, promote stage, of its Challenge theorem) headed by a def or inductive Prop (else hypothesis-not-in-type / hypothesis-inadmissible, failed); discharged only at the promote stage with a clean comparator tier, through a corollary claim (discharges) whose Challenge type is the target's minus exactly the discharged binders (hyp-corollary) and proof claims of exactly the hypothesis (hyp-proof; a proof quantifying over data is attribution, the corollary alone the evidence), all three credited by exactly one non-smoke comparator name and clean (else discharge-type-mismatch failed / discharge-not-compared open); an outstanding hypothesis is hypothesis-open (class conditional, never blocks); missing facts (no section, a part not run, ambiguous credit) are hypotheses-unchecked (open); witness {claim, state checked|unchecked|mismatch, why?}, a mismatch witness-type-mismatch (failed). Codes: docs/lifecycle.md. Exit 0 only when ready, else 1; --json {ok, package_status, reasons[], stage, bound_commit, receipt_sha256, comparator_sha256, counts, claims[{id, decl, kind, claim_status, required, judged_internal, status, statement_basis, manuscript_findings[], diagnostics[{code, detail}], hypotheses[{decl, state open|discharged, by {proof, corollary}|null, via}]?, discharges?, witness?}], manuscript_findings {total, open, fixed, by_kind, corrected_statements[], findings[], source}, ledger_digest; only when a claim uses the keys: counts.conditional, conditional_required[], outstanding_hypotheses[]} (sha256 over the canonical claims, codes and receipt hashes: recompute, never trust a stored one). Manuscript findings change no status (publish --dry-run and palomar prepare print the same one-line summary, JSON manuscript_findings); a lean_evidence decl missing at the bound commit is finding-evidence-missing. | rebase NAME --from-tex OLD.tex --to-tex NEW.tex --to-aux NEW.aux [--from-aux OLD.aux] [--from-sha256 HEX] [--to-version arXiv:IDvN | --to-commit HEX [--to-repo URL]] [--unwrap-macro NAME ...] [--claims-file PATH] [--coverage-file PATH] [--out-dir DIR] (#6): move claims.yaml + coverage.yaml (committed at HEAD) to a new manuscript version; never writes the registry or the checkout, never changes a claim status, never sets fixed_in. Refused: OLD.tex's sha256 differs from coverage.yaml's manuscript sha256, or is none of the .tex hashes of the data/source-baselines record of its arXiv version (none recorded: --from-sha256 must state it; the proposal drops eprint_sha256), TeX not UTF-8 or with unbalanced begin/end, a referenced label defined twice (OLD, NEW or NEW.aux). References: coverage rows (paper.label, else paper.number via --from-aux), manuscript_findings location.label (a TeX label, else a number via --from-aux), TeX labels named in a citation. Per label, the enclosing statement (theorem-like incl. \\newtheorem names) or equation environment in OLD vs NEW, normalized (comments, label commands, \\textcolor/\\colorbox/\\color, --unwrap-macro, ~, whitespace, trailing . , ; :; braces kept): unchanged (carried; number token re-keyed from NEW.aux, finding page from NEW.aux, tex_line shifted only when the environment is byte-identical, else null) | changed | missing | moved-into-proof | not-in-old | unsupported | unnumbered (no NEW.aux number); all but unchanged need review and are left as they were. --out-dir (new or empty; files read-only): claims.yaml, coverage.yaml (manuscript.version = --to-version or {repo, commit, sha256 of NEW.tex}; required when coverage.yaml exists), rebase-report.json (schema claims-rebase/1), rebase-report.md (old/new excerpts), review/NNN-LABEL.{old.tex,new.tex,diff}, MANIFEST.sha256; deterministic. Without --out-dir: report only. --json {ok, name, written, out_dir, counts, labels[], rows[], findings[], citations[], needs_review[{where, label, status, reason}], proposed_errors[], statuses_changed, normalizations[], inputs, to_version, warnings[], files[{path, sha256}]}; exit 0 everything carried / 1 something needs review or refused / 2 usage. docs/prior-art.md#move-to-a-new-manuscript-version
3225
- formalization NAME [--write] [--no-registry] [--out PATH] [--force [--reason TEXT]] [--author A ...] [--headline-config PATH] [--repo DIR] [--agent A] render formalization.yaml (mathlib-initiative
3226
+ formalization NAME [--write] [--no-registry] [--out PATH] [--force [--reason TEXT]] [--author A ...] [--headline-config PATH] [--repo DIR] [--agent A] render formalization.yaml (mathlib-initiative | site check [NAME] [--dir DIR] [--repo DIR] [--no-registry] [--allow-private-manuscript] read-only, proposal 0012 phase 1 (docs/site.md): the package's documentation site in DIR (default docs, relative to the repository root). Kind: static (DIR/.nojekyll: served as committed), mkdocs (mkdocs.yml whose docs_dir, default docs, is DIR), jekyll (anything else GitHub Pages builds from DIR: _config.yml or an index page); none: OK, nothing to check. Problems (exit 1): a generated page (verification.md, coverage.md carrying the `Generated by lean-pkg page` note) stale against page --site (needs NAME), not linked from the landing page/layouts (mkdocs: nav), Markdown inside an HTML block (the page --check --site rule; not on a static site), pages with mathematics and no MathJax in the head (jekyll layouts/includes; mkdocs custom_dir or extra_javascript, plus pymdownx.arithmatex; static: a warning), the noindex meta tag absent while the record's visibility is private (a static site: every served page) or present once public, a served copy of a build input (claims.yaml, coverage.yaml, *.lean, lakefile.*, lake-manifest.json, lean-toolchain, ... whose path matches a tracked file outside DIR), DIR/index.html beside index.md (jekyll). Warnings: not opted in (lean_pkg_site: 1 in _config.yml, mkdocs.yml extra:, or DIR/lean-pkg-site.yaml), counts/versions/commits written by hand outside generated blocks in the pages, README.md, llms.txt and the CITATION.cff abstract (<!-- lean-pkg:site:exempt SOURCE --> covers its line and the next), a hand-written page under a generated name, unclassified served files, .nojekyll bypassing exclude. Without NAME or with --no-registry: the repository is the current directory and the record checks are not checked (the CI form); --repo needs NAME (else exit 2). Verdict first; --json {ok, name, dir, kind, opt_in, registry, generated[], stale[], links {missing[]}, html_blocks[], counts[], exemptions[], math {pages_with_math, mathjax, problems[]}, noindex {expected, present, files[]}, served {files, build_input_copies[], unclassified[]}, shadowing_index_html, binding, snapshot (null until phase 2), problems[], warnings[]}. docs/site.md
3226
3227
  v0.4, what Palomar reads) from the registry + the repo at HEAD. Derived every run: project.name/license (license_spdx),
3227
3228
  automation.notes, status.sorry_count/axioms/evidence (gate receipt), status.main_results (every tracked comparator config:
3228
3229
  comparator_config, declaration, file; definition holes carry judged_as, from lean-pkg-signoff.json or the deprecated inline key, null when unsigned; with a headline configuration (--headline-config PATH, else registry headline_config, else comparator.headline.json when tracked; Palomar's six keys only, else refused) its theorems only, when every name is covered (the --coverage rule) by a config with the same challenge/solution modules in the gate-bound comparator receipt validated at HEAD and every hole is signed in lean-pkg-signoff.json by such a config, else refused naming them; no receipt validating at HEAD: not applied, stderr warning, the default; --write records --headline-config; JSON headline {config, source, applied, reason, receipt, theorems} or null), alignment (claims.yaml). Every other
@@ -3297,7 +3298,7 @@ conclusion, immutable workflow/control revision, runner identity, and resources.
3297
3298
  partial manifest, pre-terminal marker, or prior-candidate receipt is not gate evidence.
3298
3299
 
3299
3300
  EVENT LINE SCHEMA (one JSON object per line, keys sorted; package events also go to history[]; index-added, prior-art-searched, registry-* are log-only; every event name and its keys: docs/formats.md "Event log")
3300
- v 1 (the line's version, since 0.22.0); a line without v is version 0, read as before; a newer or unreadable v is not interpreted (the claim prior-art note skips it with a stderr warning naming the upgrade)
3301
+ v 1 (the line's version, since 0.22.0); a line without v is version 0, read as before; a newer or unreadable v is not interpreted (the claim prior-art note skips it with a stderr warning naming the upgrade); producer {lean_pkg, install installed|editable|unknown, commit (full HEAD of an editable checkout, else null), dirty} since 0.29.0 (proposal 0013): the lean-pkg that wrote the line, no path, not in history[]; absent = producer unknown
3301
3302
  ts UTC ISO-8601 with offset, second precision (all written times; dates are UTC; same-second order = file order; naive = legacy UTC, doctor warns)
3302
3303
  event one of: registry-created, registry-migrated, registry-recommended, registered, updated, claimed, claim-refreshed, claim-forced,
3303
3304
  released, release-forced, lease-expired, gate-passed, regated, promoted, publication-withdrawn, publication-hold-released, audit-fix, relocated, status-changed,
@@ -4593,29 +4594,6 @@ def commit_now(ctx: dict) -> str:
4593
4594
  return lines[-1].removeprefix("lean-pkg: ") if lines else ""
4594
4595
 
4595
4596
 
4596
- def install_detect(d: pathlib.Path) -> dict:
4597
- """Which build is running, local and fast (no network, no fetch): {"install": "editable" | "installed" |
4598
- "unknown", "path", "commit", "dirty"}. editable when the package's __init__.py is tracked by a git checkout
4599
- (path: the checkout; commit: its short HEAD; dirty: modified tracked files); installed for a wheel or pipx
4600
- install (path: the package directory; commit and dirty null); unknown when git is not on PATH. The one
4601
- detection behind `doctor`'s install line and `--version`."""
4602
- info = {"install": "unknown", "path": str(d), "commit": None, "dirty": None}
4603
- if shutil.which("git") is None:
4604
- return info
4605
- top = registry_git(d, "rev-parse", "--show-toplevel")
4606
- tracked = registry_git(d, "ls-files", "--error-unmatch", "__init__.py").returncode == 0
4607
- if top.returncode != 0 or not top.stdout.strip() or not tracked:
4608
- info["install"] = "installed" # not tracked: e.g. site-packages that sit inside a checkout
4609
- return info
4610
- root = pathlib.Path(top.stdout.strip())
4611
- # --no-optional-locks: a read-only probe must not refresh (rewrite) the checkout's .git/index
4612
- st = registry_git(root, "--no-optional-locks", "status", "--porcelain", "--untracked-files=no")
4613
- info.update(install="editable", path=str(root),
4614
- commit=registry_git(root, "rev-parse", "--short", "HEAD").stdout.strip() or "?",
4615
- dirty=bool(st.stdout.strip()) if st.returncode == 0 else None)
4616
- return info
4617
-
4618
-
4619
4597
  def version_line(version: str, info: dict) -> str:
4620
4598
  """`lean-pkg --version`: lean-pkg X.Y.Z (<short-sha>[+dirty], <install kind> <path>)."""
4621
4599
  if info["install"] == "editable":
@@ -745,6 +745,8 @@ def build_parser():
745
745
  publish_mod.add_parsers(sub, add_json)
746
746
  from . import coverage as coverage_mod
747
747
  coverage_mod.add_parsers(sub, add_json)
748
+ from . import site_check as site_mod
749
+ site_mod.add_parsers(sub, add_json)
748
750
  from . import page as page_mod
749
751
  page_mod.add_parsers(sub, add_json)
750
752
  from . import reservoir as reservoir_mod
@@ -188,7 +188,7 @@ TIERS: dict[str, str] = {
188
188
  "doctor": "newcomer", "help": "newcomer",
189
189
  "register": "author", "update": "author", "record": "author", "gate": "author", "next": "author",
190
190
  "list": "author", "search": "author", "receipt": "author", "comparator": "author", "claims": "author",
191
- "coverage": "author", "formalization": "author", "palomar": "author", "reservoir": "author",
191
+ "coverage": "author", "site": "author", "formalization": "author", "palomar": "author", "reservoir": "author",
192
192
  "blueprint": "author", "public-safety": "author", "report": "author", "seal-bundle": "author",
193
193
  "lease": "coordination", "registry": "coordination", "repo": "coordination", "index": "coordination",
194
194
  "llms": "coordination",
@@ -198,7 +198,7 @@ TIERS: dict[str, str] = {
198
198
  NOUN_DESTS = {"lease": "lease_cmd", "registry": "registry_cmd", "repo": "repo_cmd",
199
199
  "comparator": "comparator_cmd", "formalization": "formalization_cmd"}
200
200
  NESTED_DESTS = ("index_cmd", "claims_cmd", "reservoir_cmd", "blueprint_cmd", "palomar_cmd", "receipt_cmd",
201
- "coverage_cmd")
201
+ "coverage_cmd", "site_cmd")
202
202
 
203
203
  # Root options that take a value (skipped when looking for the command word).
204
204
  GLOBAL_VALUE_FLAGS = ("--registry", "--events", "--registry-snapshot")
@@ -20,6 +20,7 @@ import collections
20
20
  import contextlib
21
21
  import datetime as dt
22
22
  import fnmatch
23
+ import functools
23
24
  import fcntl
24
25
  import hashlib
25
26
  import json
@@ -76,7 +77,10 @@ RETRACT_EVENT = "retract" # `record NAME retract`: append-only correction of a
76
77
  # it (written before) is version 0, read exactly as before. A reader that interprets events skips a line
77
78
  # of a newer (or unreadable) version and says so; it never guesses at it.
78
79
  EVENT_LINE_VERSION = 1
79
- EVENT_LINE_KEYS = ("ts", "event", "name", "v")
80
+ # Proposal 0013: every line lean-pkg writes since 0.29.0 also carries `producer` {lean_pkg, install, commit,
81
+ # dirty}, the lean-pkg that wrote it (event_producer), additive within version 1; a line without it was
82
+ # written before and means producer unknown. It is not copied into history[].
83
+ EVENT_LINE_KEYS = ("ts", "event", "name", "producer", "v")
80
84
  # Events written only to the log (no history[] entry, no `actor` unless listed); every other event is a
81
85
  # package event written by record(), which may also carry `actor` (the --agent of the invocation, #21.3).
82
86
  LOG_ONLY_EVENTS = ("registry-created", "registry-migrated", "registry-recommended", "index-added",
@@ -1276,9 +1280,53 @@ def materialize_snapshot(args, commit: str, tmp: pathlib.Path) -> str:
1276
1280
 
1277
1281
 
1278
1282
  def _event_line(ts: str, name, event: str, **fields) -> str:
1279
- """One event-log line: EVENT_LINE_KEYS (`v` last, so no field can replace it) and the event's fields."""
1280
- return json.dumps({"ts": ts, "event": event, "name": name, **fields, "v": EVENT_LINE_VERSION},
1281
- sort_keys=True) + "\n"
1283
+ """One event-log line: EVENT_LINE_KEYS (`producer` and `v` last, so no field can replace them) and the
1284
+ event's fields."""
1285
+ return json.dumps({"ts": ts, "event": event, "name": name, **fields, "producer": event_producer(),
1286
+ "v": EVENT_LINE_VERSION}, sort_keys=True) + "\n"
1287
+
1288
+
1289
+ def install_detect(d: pathlib.Path) -> dict:
1290
+ """Which build is running, local and fast (no network, no fetch): {"install": "editable" | "installed" |
1291
+ "unknown", "path", "commit", "dirty"}. editable when the package's __init__.py is tracked by a git checkout
1292
+ (path: the checkout; commit: its short HEAD; dirty: modified tracked files); installed for a wheel or pipx
1293
+ install (path: the package directory; commit and dirty null); unknown when git is not on PATH. The one
1294
+ detection behind `doctor`'s install line and `--version`."""
1295
+ info = {"install": "unknown", "path": str(d), "commit": None, "dirty": None}
1296
+ if shutil.which("git") is None:
1297
+ return info
1298
+ top = registry_git(d, "rev-parse", "--show-toplevel")
1299
+ tracked = registry_git(d, "ls-files", "--error-unmatch", "__init__.py").returncode == 0
1300
+ if top.returncode != 0 or not top.stdout.strip() or not tracked:
1301
+ info["install"] = "installed" # not tracked: e.g. site-packages that sit inside a checkout
1302
+ return info
1303
+ root = pathlib.Path(top.stdout.strip())
1304
+ # --no-optional-locks: a read-only probe must not refresh (rewrite) the checkout's .git/index
1305
+ st = registry_git(root, "--no-optional-locks", "status", "--porcelain", "--untracked-files=no")
1306
+ info.update(install="editable", path=str(root),
1307
+ commit=registry_git(root, "rev-parse", "--short", "HEAD").stdout.strip() or "?",
1308
+ dirty=bool(st.stdout.strip()) if st.returncode == 0 else None)
1309
+ return info
1310
+
1311
+
1312
+ def event_producer() -> dict:
1313
+ """Proposal 0013: the lean-pkg writing event lines, {lean_pkg, install, commit, dirty}: the head of a
1314
+ receipt's `producer` without its hashes, and no path. install is install_detect's kind; commit is the
1315
+ full HEAD of an editable checkout (null for an installed release, whose version names its tag); dirty
1316
+ likewise. Computed once per process (_event_producer); each call returns a fresh copy."""
1317
+ return dict(_event_producer())
1318
+
1319
+
1320
+ @functools.lru_cache(maxsize=1)
1321
+ def _event_producer() -> dict:
1322
+ version = getattr(sys.modules.get(__package__ or "lean_pkg"), "__version__", None) # no import (core rule)
1323
+ info = install_detect(pathlib.Path(__file__).resolve().parent)
1324
+ commit = None
1325
+ if info["install"] == "editable":
1326
+ p = registry_git(pathlib.Path(info["path"]), "--no-optional-locks", "rev-parse", "HEAD")
1327
+ head = p.stdout.strip() if p.returncode == 0 else ""
1328
+ commit = head if _HEX40.fullmatch(head) else None
1329
+ return {"lean_pkg": version, "install": info["install"], "commit": commit, "dirty": info["dirty"]}
1282
1330
 
1283
1331
 
1284
1332
  def _write_event_lines(events_p: pathlib.Path, lines: list[str]) -> None:
@@ -61,7 +61,7 @@ OTHER_AREAS = frozenset({
61
61
  "index add", "index check", "index render", "index entries", "blueprint", "stacks", "comparator check",
62
62
  "comparator config --coverage and --from-claims", "comparator config", "tests", "docs (receipts recipe)",
63
63
  "repo export", "publish", "search", "lean-exercise", "palomar port-modules",
64
- "palomar prepare", "seal-bundle", "install", "coverage", "comparator host-check"})
64
+ "palomar prepare", "seal-bundle", "install", "coverage", "comparator host-check", "site check"})
65
65
 
66
66
  UNKNOWN_NOTE = ("the receipt records no `producer` (written before receipts recorded it, or by `receipt systemd` "
67
67
  "without --run)")