Skip to content

Integrate #1694/#1695 into main with isolated math-foundry CI and semantic gates - #1698

Merged
AdaWorldAPI merged 6 commits into
mainfrom
review/math-foundry-integration-gates-20261022
Oct 22, 2026
Merged

AdaWorldAPI merged 6 commits into
mainfrom
review/math-foundry-integration-gates-20261022

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Why

#1694 merged into #1693's feature branch, and #1695 into #1694's feature branch, not main. Their source modules remain absent from the default branch. This draft integrates the lab stages explicitly while withholding production admission.

Changes

  • Carry Stage D catalogue/tests and Stage E heritage/tests/docs from the merged stack.
  • Add a dedicated .github/workflows/egglog-r2il-probe.yml for the excluded Cargo workspace (fmt/clippy/release tests).
  • Add crates/egglog-r2il-probe/REVIEW_GATES.md with explicit cross-PR falsifiers.

Blocking gates (review findings, not fixes)

  • P0 Exact → checked runtime: an exact-int proof need not preserve intermediate i64 overflow of an eager checked baseline (e.g. a=i64::MAX*c, z=0*a, c=2). Require an error-preserving extractor or an input-range witness.
  • P0 premise consistency: unrestricted egglog union premises and the i128 oracle's first-known LHS can accept contradictory/ambiguous assumptions without a declared input domain.
  • P1 cache: BTreeMap<SemanticKey,Entry> stores only one ABI/binding per expression; promoting another replaces it rather than demonstrating multi-frame simultaneous reuse.
  • P1 proof: ReplayCapsule::recheck regenerates egglog proofs and compares rendered bytes; an independent durable proof checker and pinned provenance remain open.
  • P1 cost: caller-supplied CostEvidence is a policy input, not a measured 256×4096 total-cost certificate.

Non-goals

No production JIT admission, no hot egglog or MORK, no new R2IL opcodes, no cross-table gathers, no Thought-Git write-path change and no certification of historical attributions.

DRAFT / DO NOT MERGE until the isolated Cargo job passes and P0 semantics have been resolved. I have not run Cargo locally; GitHub CI is the execution gate.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7e686d99-ba77-4713-9e98-ca3ce2d57680
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Owner Author

Targeted CI result from the first integration head (9e12faf7): egglog R2IL mathematical compiler probe failed at fmt; clippy and tests were skipped, so their results are still unknown. See https://github.com/AdaWorldAPI/lance-graph/actions/runs/39738522953. This validates the need for a separate excluded-crate workflow. A subsequent docs-only commit (bbf10fe3) corrects Stage E's misleading merged-to-main wording and clarifies that E1 uses scalar FoldDialect, not a mask-RISC bulk fold. No Rust source behavior has been changed by this integration review. Formatting, targeted tests, and the P0 semantic admission gates remain blocking. Please do not treat root-workspace green checks as equivalent.

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review October 22, 2026 10:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-10-22T10:20:14.628604Z bbf10fe Draft marked ready
ℹ️ 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: bbf10fe35c

ℹ️ 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 crates/egglog-r2il-probe/src/catalogue.rs
AdaWorldAPI and others added 6 commits October 22, 2026 11:17
…isolated CI fmt step)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
…inside the checked range

Two P0 gates from REVIEW_GATES.md (and codex P2 on #1698), both reproduced
before the fix:

- Premises. `oracle::solve` skipped any premise whose lhs was already known,
  so `[z=2c, z=3c]` certified 14 at c=7 and, with the premises swapped, 21;
  the oracle agreed both times because it had the same first-wins bias.
  `oracle::coefficients` now checks every premise (a second definition must
  agree; a cycle like c = 2c is inconsistent; a premise the target cannot
  reach is refused), and `ReplayCapsule::certify` refuses such systems with
  `InvalidPremises` before egglog runs.
- Checked range. An exact-integer proof does not preserve the checked
  baseline's intermediate overflows: `a = -1*c; z = -1*a` compiles to `1*c`
  and answered i64::MIN on a cache hit where the eager checked baseline
  overflows (and `a = MAX*c; z = 0*a` answered 0 at c=2). Every premise is
  linear in the target, so `Catalogue::promote` now records the interval of
  inputs where every intermediate fits i64, and `execute_or` falls back to
  the baseline outside it (`FallbackReason::OutsideCheckedRange`).

Two existing tests re-pinned with the reason: a dropped premise is now
`InvalidPremises` (was `OpenTerm` after compiling), and E1 at i64::MAX is now
`OutsideCheckedRange` (was `CompiledRefused`); both still refuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
@AdaWorldAPI
AdaWorldAPI force-pushed the review/math-foundry-integration-gates-20261022 branch from bbf10fe to e5b06c0 Compare October 22, 2026 11:23
AdaWorldAPI pushed a commit that referenced this pull request Oct 22, 2026
…xecuted P0 falsifiers

#1696 merged (df214bb), so #1694/#1695 are no longer stranded; the
contradictory-premise counterexample has been executed (14 vs 21 by premise
order) and is fixed for linear E1 in #1698 (11ca3fe), together with the
checked-overflow range guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
@AdaWorldAPI
AdaWorldAPI merged commit 022b92f into main Oct 22, 2026
11 checks 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.

2 participants