Skip to content

Remove obsolete proof campaigns and isolate the direct guarantee core - #81

Open
Th0rgal wants to merge 5 commits into
mainfrom
codex/closure-repo-cleanup
Open

Th0rgal wants to merge 5 commits into
mainfrom
codex/closure-repo-cleanup

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

The registered guarantees previously pulled in the superseded model/CFG/Ξ proof campaign, and the delivery tree contained hundreds of obsolete campaign artifacts. This extracts the execution support the current proofs actually use and removes the unused campaigns and artifacts.

Result

  • The correctness library is 62 modules / about 18k lines, down from 89 / 49k. The supporting library and all tests have explicit separate targets. CI runs the complete make check.
  • All old model/CFG/Ξ modules are removed. The source adapters use the extracted execution helpers. Tests.MutationReceipts retains the required fixtures and exactly five original native receipts; the six registered refutations keep their statements.
  • All 51 direct-proof bodies are unchanged apart from imports. ResourceAssumptions.lean is byte-identical to the merged resource proof. All five retained native receipt commands are copied exactly from the original source.
  • The tracked tree is about 7.9 MB / 376 files, compared with current main's 55 MB / 1,205 files. This removes obsolete receipts/reviews, .pr27-receipts, campaign setup/logs, frozen release metadata, unused protocol slot/withdrawal extraction, and other unreachable modules. Earlier small-module consolidation is recorded in the migration map.
  • The active clause map and reproduction guide replace the dated narrative. Seven source/provenance archives and the resource-proof receipt remain because current evidence or regression inputs use them. The block generator is documented and targets the current execution module.

audit/CLEANUP.md gives the deletion inventory and retention reasons. audit/delivery-roots.json names the current evidence roots. Checks reject orphan modules, superseded core imports, unreferenced receipts and unexpected correctness/refutation/resource axioms.

Validation

Full make check passed in GitHub CI for head 2aa144f250f0f37eee357e3ab43e00eb4a19d42e: successful prove job. This covers the complete library partition, registered guarantees, all retained tests, resource proof and axiom guards.

Also passed: deployment/pin verification, exact generator reproduction, the direct-call, nested-rollback and factory Anvil suites, and negative checks for the import-partition guard.

The three correctness parents, funded LOG0 witness and eight resource theorems retain only standard Lean axioms. The five drain/control receipts retain A-NATIVE-DECIDE. Canonical Ethereum applicability remains an explicit boundary. Bytecode, interpreter and normative pins are unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T15:07:57.132727Z 2aa144f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5dbd07757

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +78 to +82
"superseded_direct_registry_entries": {
"archived_from": "audit/assumptions.yaml",
"source_commit": "0e38bf80ed60dbf3f0927312ebb598bb6f731895",
"note": "Historical summaries removed from the active registry. Original snapshot entries above are preserved unchanged.",
"assumptions": [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Redirect source references before archiving named gaps

Moving these IDs out of audit/assumptions.yaml leaves still-built Lean modules pointing auditors to the wrong registry: for example, Eip8282/Audit/UniversalBoundary.lean:96-100 says that A-ABSTRACT-TX and its components are recorded in that file, while numerous Trust.lean comments likewise identify it as the current named open gap. Anyone auditing those historical parents now sees an unregistered obligation unless they independently discover this new JSON subsection. Keep the IDs in the active registry or update the surviving references to the archived location.

AGENTS.md reference: AGENTS.md:L3-L5

Useful? React with 👍 / 👎.

@Th0rgal Th0rgal changed the title Simplify proof repository structure and preserve audit history Separate proof libraries and simplify the audit repository Sep 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8ef5bc2307

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/library_layout.py Outdated
Comment on lines +13 to +14
files={'.'.join(p.relative_to(ROOT).with_suffix('').parts):p for p in (ROOT/'Eip8282').rglob('*.lean')}
edges={n:set(re.findall(r'^import\s+(\S+)',p.read_text(),re.M)) for n,p in files.items()}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include root facades in the partition graph

Build files and edges from the three root facades as well as Eip8282/**/*.lean. As written, imports in Eip8282.lean, Eip8282Candidates.lean, and Eip8282Tests.lean are never inspected, so a future cross-tier import—or another root-level Lean module—can leave python3 scripts/library_layout.py green while the advertised core/candidate/test partition is violated. This makes the required library-partition check fail open.

AGENTS.md reference: AGENTS.md:L12-L14

Useful? React with 👍 / 👎.

@Th0rgal Th0rgal changed the title Separate proof libraries and simplify the audit repository Remove obsolete proof campaigns and isolate the direct guarantee core Sep 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2aa144f250

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread audit/CLEANUP.md
Comment on lines +64 to +65
- Seven source/provenance archives under `audit/receipts` supply pinned external
source bodies, genesis data provenance and the factory-regression input.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the retained genesis provenance input

The retained audit/receipts/direct-genesis-funding-input-20260910.json names audit/receipts/genesis-funding-input-mainnet.json as its source_asset, and its embedded reproduction script immediately reads that path, but this cleanup deletes the asset; a repo-wide search finds no replacement. Consequently, a fresh checkout cannot reproduce or independently verify the genesis extraction despite this section claiming that the retained archives supply genesis provenance. Restore the source asset or update the reproduction chain to materialize it from a pinned location.

AGENTS.md reference: AGENTS.md:L22-L24

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant