Skip to content

Add bounded environmental memory with native Lean 4.32.2 - #14

Merged
afflom merged 2 commits into
mainfrom
codex/draft-environment-memory-fixed-kernel
Nov 15, 2026
Merged

afflom merged 2 commits into
mainfrom
codex/draft-environment-memory-fixed-kernel

Conversation

@afflom

@afflom afflom commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Scoped release disposition (2026-11-15)

The implementation owner and independent source/acceptance reviewer recommend integrating #14–16 for a bounded native CLI release. This explicitly supersedes the earlier draft hold below requiring full upstream compiler acceptance, and the earlier no-merge/no-release request, for this scope.

The combined source is commit ef0f7a9ae5ef405e0b7dce37ee5d242d17e16b52, accepted tree ae2a9621b1a5765c157ca4cf201ead021918656e, using exact native compiler candidate 9fd01c31e40bb29577833825f902fafcceedb49a and Lean 4.32.2. Rule30's full consumer qualification and exact-head hosted gates passed (#14, #15, #16). Full upstream compiler acceptance remains incomplete; this decision does not declare it complete.

All documented custody, interruption and archival limitations remain in force. In particular, archival case 73116 remains boundary_credited=false; only the supported interrupted-open observation is credited. There is no claim of durable archival, exactly-once/restart recovery, universal descendant cleanup, scheduled Engine integration, synthesis, crawling or an inspector replacement. #13 and the optional query-to-research coordinator are separate work, not prerequisites for this scoped CLI release.

Native asset publication is still pending exact-byte packaging and custody verification. The retained tested binaries are x86_64 GNU/Linux debug builds, dynamically linked and unstripped, with GLIBC symbol requirements through 2.39. Other platforms and older ABI baselines are untested. Each distributed command must retain its own qualified production/build provenance; a GitHub tag by itself does not deliver these native assets.

The validation record below is preserved as history, including the superseded draft wording.

Rule30 can now retain bounded source observations from an exact local Git commit and retrieve matching context alongside an unchanged research task. The native command resolves commit/path/blob identity, checks the content digest, persists and revalidates its store, and separates revisions and unrelated queries. It retains up to 32 observations of at most 4 KiB each and returns at most eight matches.

This draft combines that memory interface with the coordinated Lean 4.32.2 migration on main. It depends on native LexLean candidate 9fd01c31e40bb29577833825f902fafcceedb49a; full upstream acceptance remains outstanding. The migration updates coupled toolchain pins, encoded fixtures, standards, locks and generated products. The catalog fixture now reflects 150 distinct modules.

Validation completed on commit 27a60a6404deac37bc084a3fcbabf2e0d7c07120, tree 8ecd0df55b33b9da9b322ec81bc95abef69551d8:

  • Unchanged full repository gate passed in 86m22s. API verification passed 154 elaborations, 154 kernel replays and 5,626 declaration-policy checks: 3,212 none, 2,406 exact, eight allow. Preservation certificates retain the compiler's existing axiom policy; this is not a choice-free claim.
  • Normal commit hook reused the exact accepted-tree receipt. Normal standalone production then passed in 86m43s and reproduced API attestation b2109eb044fa5b00010b2c85bf2abed5f35cb5cc98d21310ae2581be9aaa2157.
  • Bundle 463547b712cac88fb0875b56bad3a971f19cd004cf06f5f8baa6897b3af63880 passed artifact verification and an offline native build. Executable SHA-256: 9c71d67efedf736b8cadde4006554f54ddbc1d5633e342da4d7788bf78c1e2f8.
  • That new executable passed 56 reconstructed replay assertions, including malformed stores/requests, revision isolation, hostile text as inert data, interrupted writes, real Git timeout/cleanup and blocking-lock controls. Five separate contextual-task runs preserved the entire unverified task/sequent with observation counts 1,1,0,0,1. These checks are distinct from the feature package's 50 historical assertions.

Two reviewed resource policies changed: aggregate generated source 96→128 MiB and child stdout/stderr cap 16→24 MiB per stream. Complete normalized extraction output measured 17,602,142 bytes with 31 roots, 2,626 constants and 114 externals, leaving 7,563,682 bytes of normalized-output headroom. Successful capture establishes raw streams fit the cap; exact raw sizes were not retained. All roots, tests, timeouts, proof policies and gate code remain intact. The full-gate sampled cgroup peak was 12.90 GiB under a 16 GiB limit, with no new OOM event.

Observations remain untrusted source context, never proof authority. Acquisition uses caller-owned local Git objects and does not authenticate the claimed GitHub repository label. Scheduled Engine learning, GitHub crawling and draft #13's inspector integration remain future work. Lock contention requires an outer deadline; power-loss durability is not established. This stays a draft pending upstream compiler acceptance and review; no merge, release or deployment is requested.

@afflom
afflom marked this pull request as ready for review November 15, 2026 20:17
@afflom
afflom merged commit dd427f0 into main Nov 15, 2026
1 check passed
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