Repository navigation
foundry-parity-lab: CanCook as a registered DT64 method (G6) + board record for #1991/#1995 - #1996
Merged
Merged
Conversation
… transfer PR_ARC_INVENTORY gets arc entries for #1991 and #1995; LATEST_STATE a row for main after both; STATUS_BOARD marks D-FOUNDRY-PARITY-1 shipped and G1 partial (per-store cost done, limiting resource open as P1b); INTEGRATION_PLANS points at the new entry and EXO-223. New entry D-FOUNDRY-PARITY-1-P1A records arm C and the read-only LGJ crosswalk (the R11 layout-witness gap is D-DRISA-M1). Entries index regenerated; supersession index unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… per binding (G6)
World::new registers one MethodBinding per (item, quantity in {1, 3}). Each
binding's WHEN guard states the CanCook condition as a SetExpr over field
positions, and its reads are exactly the fields the guard names.
PreparedMethod::prepare does the following once per binding:
- admits the MethodRef;
- binds and borrows the reads plus storeId;
- renames field positions to the bound planes and conjoins the reader scope
(the IAM stand-in, never part of the method);
- lowers the guard through relalg and keeps the returned mask-RISC program.
run only executes that program. The lab writes no lowering.
relalg gains rel_from_set, a public wrapper over the SetExpr -> Rel
conversion run_program already applied (from_set stays crate-private), plus a
round-trip test. The lab patches lance-graph-contract to the path crate, so
its graph holds one contract and one ndarray. prepare refuses a lowering of
more than one fold, because relalg keeps only the last fold's program. That
cannot happen today, and a test pins that every guard shape lowers to one
fold.
Eight tests:
- oracle parity for all 16 methods;
- row-order independence;
- the reader scope is load-bearing;
- admit refuses a forged guard, another signature revision and another
store's reference;
- a method whose reads miss a guard field is refused NotBound;
- repeated runs of one prepared method equal the first;
- every guard shape lowers to one fold.
Seven disable runs turned the suite red, each restored afterwards. A
question takes 359-400 ns, level with arm B's hand-written program (474 ns).
The first version re-lowered on every call and took ~21 us.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
…it, xlog The first matrix marked authorization, scenarios, actions and provenance as having no contract without reading ogar-auth, ogar-rbac, lance-graph-rbac, thought-git-probe or lance-graph-xlog. The authorization decision is implemented (row scope + WideFieldMask via ScopedDecision); branches, a single write path with commit witnesses, receipts with replay and a two-phase edge write exist as probes. The gaps are restated as composition on this path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
…corrected Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
…ter, #1993 merged Mapping for #1997 found three errors. authorize_identity reaches authorize_memberships (MembershipDecision), not authorize_scoped. The production LanceCycleWriter (WalSink::commit_cycle) is on main beside the probe's stand-in, so G4 composes shipped pieces. #1993 merged as b34d195. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
# Conflicts: # .claude/board/entries/README.md
AdaWorldAPI
pushed a commit
that referenced
this pull request
Nov 11, 2026
…D-CODEGRAPH-MEM-1) Regenerated after #1996/#1997 merged (--check flagged the drift first). New workflow runs --self-test and --check on PRs touching the generator or .codegraph/. REPORT.md: unrecovered original recipes, crosswalk, negative tests with disable runs, 10-agent A/B measurement (index helps on architecture questions, hurts on call impact while calls are ARTIFACT_MISSING), gap report with owners, suggested CLAUDE.md line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p
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.
This PR has two commits. One adds the G6 lab work:
CanCookexecuted from its DT64MethodRef. The other records the merged Foundry parity work on the board. No DR or DT64 contract changes.G6: a registered method, lowered once per binding (
fcee68c)World::newnow registers oneMethodBindingfor each (item, quantity) pair, with quantity ∈ {1, 3}. Each method's WHEN guard says "this store can makeqof itemm" as aSetExprover the class's field positions: mask fields asSym(field)and value fields as residuals. The method'sreadsare exactly the fields its guard names. DT64 guards take no parameters, so the quantity is a constant of the guard and part of the method id.PreparedMethod::preparedoes the following once per binding:MethodRef(BindStore::admit);storeId;runonly executes that program. The lab writes no lowering of its own.relalg: adds
rel_from_set, a public wrapper over theSetExpr → Relconversion thatrun_programalready applied (from_setstays crate-private), plus a round-trip test.Contract dependency: OGAR pulls
lance-graph-contractfrom git, so the lab now patches it to the path crate, as relalg does. The lab's graph holds one contract and one ndarray.Refusing a multi-fold lowering: relalg keeps only the last fold's program, so
preparerefuses a guard that lowers into more than one fold. That cannot happen today; a test pins that every guard shape lowers to one fold.Evidence
There are 8 new tests, 32 in the lab overall:
admitrefuses a forged guard, another signature revision, and another store's reference;NotBound;Seven disable runs each turned the suite red and were restored:
Allinstead of the guard;All.Measured
cargo run --release --manifest-path crates/foundry-parity-lab/Cargo.toml --bin bench. One VM, single thread, median of 41 runs, four runs:method_ref+admitprepare(admit, bind, borrow, one lowering)CanCookquestion, cached programThe first version called
run_programfor every question, which re-lowers each time, and took about 21 µs per question. A fifth bench run, taken while the machine was loaded, measured 600 ns and is excluded.Open
Board record (
7323855)637d638) and foundry-parity-lab: per-store cost via INT8 packed GEMM (D-FOUNDRY-PARITY-1, G1 partial) #1995 (15d4b4c).D-FOUNDRY-PARITY-1-P1A, covering arm C and the lance-graph-java crosswalk summary, including the R11 layout-witness gap (D-DRISA-M1).The entries and supersession indexes are current, and board files only grew. Linear: EXO-227 (mirror) and EXO-223.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XAqKMPJjVvasjwqhjJ6c9p