docs(schema): track the 65-item schema review page
ci / python (pull_request) Successful in 16s
ci / lean (pull_request) Successful in 29s
ci / image (pull_request) Has been skipped

This commit is contained in:
2026-10-28 21:42:45 +08:00
parent 29fe3e1aa5
commit 4eee78be09
6 changed files with 9375 additions and 8 deletions
+11 -3
View File
@@ -114,6 +114,8 @@ def main():
parser.add_argument("--private-out", required=True, type=Path)
parser.add_argument("--index", required=True, type=Path)
parser.add_argument("--summary", required=True, type=Path)
parser.add_argument("--review-page", type=Path,
help="Also export the owner-approved schema-only HTML review into the project")
args = parser.parse_args()
if "data" not in args.private_out.parts:
parser.error("Private schemas must remain in the gitignored data/ directory")
@@ -149,14 +151,20 @@ def main():
sides.append(f'<h3>{side}</h3><pre>{html.escape(content)}</pre>')
sections.append(f'<section id="{row["blind_id"]}"><h2>{row["blind_id"]}</h2>'
+ ''.join(sides) + '</section>')
(args.private_out / "schemas.html").write_text(
review_page = (
'<!doctype html><html lang="en"><meta charset="utf-8"><title>P0 semantic simplex schemas</title>'
'<style>body{font:16px/1.5 system-ui;max-width:1050px;margin:32px auto;padding:16px}'
'pre{white-space:pre-wrap;background:#f5f5f5;padding:16px}section{border-top:1px solid #ccc}</style>'
'<h1>65 semantic multi-role relation schemas</h1>'
'<p>Private annotation seeds, not independently validated mathematical statements. '
'<p>Schema annotation seeds, not independently validated mathematical statements. '
'A simplex joins the objects, assumptions and conclusion in its slots. '
'References are partial symbol/syntax candidates.</p>' + ''.join(sections) + '</html>')
'References are partial symbol/syntax candidates. '
'This review contains schema annotations and Lean signature text, not textbook passages '
'or full assistant judgment explanations.</p>' + ''.join(sections) + '</html>')
(args.private_out / "schemas.html").write_text(review_page, encoding="utf-8")
if args.review_page is not None:
args.review_page.parent.mkdir(parents=True, exist_ok=True)
args.review_page.write_text(review_page, encoding="utf-8")
# JSON-only reload is independently checked; it does not use pickle.
for row in snapshots:
for side in ["source", "lean"]: