Skip to content

Add atomic multi-source environmental memory plans - #15

Merged
afflom merged 1 commit into
mainfrom
codex/environment-plan
Nov 15, 2026
Merged

afflom merged 1 commit into
mainfrom
codex/environment-plan

Conversation

@afflom

@afflom afflom commented Nov 15, 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.

Callers can now ingest 1–8 explicitly selected Git sources with one native command and query only those exact keys in plan order. The command validates the whole plan before acquisition, accumulates observations in memory, and replaces the canonical store once only after every source succeeds. Successful output requires exact readback. A later-source failure preserves the previous store bytes.

This draft is stacked on #14 (27a60a6404deac37bc084a3fcbabf2e0d7c07120). It preserves the single-source interface and storage format. It depends on native LexLean candidate 9fd01c31e40bb29577833825f902fafcceedb49a and Lean 4.32.2; full upstream compiler acceptance remains outstanding. It does not include #13’s separate inspection/publication work.

Validation binds commit 96c1c3a9a12130da34458eea8972b04486417e8c, accepted tree 1d3a2719d4a4744f82689bdd685d98f352b041ac, and authored input tree 1a6c55f6f61f143eb66b3273f4cce1b7374f1f56. The final tree adds only normal gate-generated PDF/manifest updates to the tested inputs.

  • Official selected trace verification passed. All 34 original claims remain: five have no axioms and 29 use exactly Quot.sound and propext. Twelve transition declarations explicitly correct their metadata to that existing transitive pair; they are not axiom-free. Six shared wire facts retain the actual parser obligations.
  • Full-profile production passed in 96m13s, exporting both interfaces together. The unchanged normal commit gate separately passed in 96m43s, including 243 tooling tests (four skipped), host/bridge audits, supported exact-input reuse, full API verification, and PDFs. The normal pre-push hook reused its accepted-tree receipt.
  • API acceptance: 159 elaborations, 159 kernel replays, and 5,707 declaration-policy checks (3,240 none, 2,459 exact, eight allow). Attestation: 7a751316db06380fbba3e015c8cebc29565badb96fd28deab06aaa99bd5e16a5. Generated preservation certificates retain the compiler’s existing policy, including Classical.choice; this is not a choice-free certificate claim.
  • Bundle 9606543b1a4ac03f575095663ca6f0583445f89ff8dfa1e0759c3425d8b9954e passed artifact verification and both offline builds. New executables passed 66 acquisition/compatibility invocations with 258 assertions, plus 15 completed fault/restart invocations with 46 assertions. These cover second-source rollback, 32-full and 31-plus-two refusal, checkout-free ordered queries, exact task preservation, cross-reading, actual acquisition/pre-rename/post-rename interruptions, descendant cleanup, lock behavior, and write/rename/readback faults.
  • The new memory binary also passed 56 reconstructed legacy assertions and five contextual runs; the plan interface passed five additional contextual runs. These are separate from the 50 historical assertions. One external trace detector initially missed a relative Git path; its failure is retained. Only unfinished scenarios resumed after fixing the detector and checking cleanup; no product code or proof limit changed.

The inherited 128 MiB aggregate-source and 24 MiB per-stream child-output limits are unchanged. Extraction retained 18,217,541 normalized stdout bytes, 32 roots, 2,717 constants and 114 externals. Successful capture establishes that raw streams fit the cap; exact raw lengths were not retained. Neither production nor the gate added an OOM event.

The command preserves the 4 KiB whole-file bound, 32-record store, 1 MiB serialization/readback bound, and observed-sources-not-proof label. It requires caller-owned repositories and a private directory without symlink/hardlink aliases or adversarial mutation. Locks need an outer deadline; power-loss durability is not established. The synchronous Host driver assumes owned replies; arbitrary forged/replayed same-variant responses and every metadata/read-state variant were not separately injected. The audited transitions are not a complete filesystem transaction proof.

This is controlled acquisition and context delivery, not GitHub crawling, autonomous synthesis, scheduled Engine learning, or proof authority. Keep this draft pending review, exact-head CI, and upstream compiler acceptance. No merge, release or deployment is requested.

@afflom
afflom changed the base branch from codex/draft-environment-memory-fixed-kernel to main November 15, 2026 20:17
@afflom
afflom marked this pull request as ready for review November 15, 2026 20:17
@afflom
afflom merged commit 04aaf9d 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