Repository navigation
Add bounded environmental memory with native Lean 4.32.2 - #14
Merged
Merged
Conversation
This was referenced Nov 15, 2026
afflom
marked this pull request as ready for review
November 15, 2026 20:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 treeae2a9621b1a5765c157ca4cf201ead021918656e, using exact native compiler candidate9fd01c31e40bb29577833825f902fafcceedb49aand 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, tree8ecd0df55b33b9da9b322ec81bc95abef69551d8:b2109eb044fa5b00010b2c85bf2abed5f35cb5cc98d21310ae2581be9aaa2157.463547b712cac88fb0875b56bad3a971f19cd004cf06f5f8baa6897b3af63880passed artifact verification and an offline native build. Executable SHA-256:9c71d67efedf736b8cadde4006554f54ddbc1d5633e342da4d7788bf78c1e2f8.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.