Repository navigation
probe(dr-math): D-DRCA-2 DR256::WHERE × DR#3 with guarded reuse - #1836
Merged
Merged
Conversation
…reuse A three-valued global WHERE selection (Quack Draft::bind + Filter::sql_where, mask-risc Keep over 65,536 addresses) is projected into one table's 64-slot frame through the counted LocalMap, re-admitted against every guard on each read, and folded over the bound DR#3 register. The library module takes the TRUE and FALSE Keep masks as borrowed words and depends on neither engine. Twelve tests against a source-ID scalar oracle: in/out-of-frame selection, equal ordinals of two tables, YZ rotation, NULL/UNKNOWN never FALSE, source, scope/focus, FK target, reseal/coordinate, owner/codebook/criteria/schema changes, empty and full selections, the stale detached-Keep shape, and zero allocations in projection, admission and folds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
The first disable pass showed both seal checks inside project() were not load-bearing: no test projected under a stale global seal, a foreign owner's seal, or a resealed local frame. This test does, with a silence twin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
examples/dr256_where_stages.rs measures every stage separately (cold preparation, bind, lower, WHERE TRUE+FALSE Keep, projection, admission, warm read, rotated read, folds) and the reuse of one projected selection over N = 1, 2, 4, 8, 64 compatible reads against fresh evaluation and rebind-after-invalidation. Totals above 1,000 us are printed as failed gates without a ratio. Warm reuse pays from N = 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…bcm2m2-dr256-where-dr3
The same defect Codex found in hhtl16::cooccurrence (#1834) applied to selected_count, selected_column and selected_cell: they read payload bits as presence and accepted rows of a three-valued register. Admitted now records whether the register it was admitted against is two-valued and distinct, the folds take the Admitted instead of a bare word and return None otherwise. selected_column_k3 reads validity and serves both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
…efusal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
Semantic correction. Epistemic absence ($null, NaN, SQL NULL, an unset validity bit, K3 UNKNOWN) is one logical value: no TRUE/FALSE judgment. The projection no longer takes a second FALSE mask as a truth representation. It takes Quack's one WHERE Keep (TRUE rows, three-valued through sql_where); Admitted exposes TRUE only and no complement, because the complement of a selection reads UNKNOWN as FALSE. A negation is its own WHERE over the negated criteria, so NOT UNKNOWN stays UNKNOWN; reusing one selection as the other is refused (CriteriaChanged). The three-valued property read returns the register's own value + validity form, with value masked by validity so a stale payload under an UNKNOWN cell is never TRUE. No Epi5 state is derived from absence. The stage example drops the second WHERE program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
…ingle WHERE README section and board entry rewritten for the single-WHERE contract: UNKNOWN ($null, NaN, NULL, unset validity) is one undecided value, never read as FALSE, no complement offered, negation is its own WHERE, no Epi5 derived from absence. Measured back to back against the previous two-program path on the same fixture: the fresh read halves (41.5-43.2 us to 20.6 us); reuse still pays from N = 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
AdaWorldAPI
changed the base branch from
ccr-39105428-bcm2m2-hhtl16-dr-proof
to
main
October 28, 2026 09:37
AdaWorldAPI
marked this pull request as ready for review
October 28, 2026 09:37
Codex Review SummaryThis 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. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
This was referenced Oct 28, 2026
AdaWorldAPI
pushed a commit
that referenced
this pull request
Oct 30, 2026
STATUS_BOARD: D-DRCA-1 and D-DRCA-2 marked Shipped (#1834, #1836); D-DRCA-3 In PR. Entries index regenerated (503 rows). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMNiyjwqFke9CfmoBgn
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.
Base:
main. #1834 (D-DRCA-1,hhtl16), which this was stacked on, has merged, and this PR now targetsmain. The diff againstmaincontains only D-DRCA-2. Contract: the DR/DT amendment in #1835.Tests the composition global selection → optional amortized global→local mapping → HHTL16 Cartesian projection → native fold. It is a lab probe in the workspace-excluded
dr-math-binding-probecrate: no production source, ABI, planner or store is touched.Semantics: epistemic absence
$null, NaN, SQL NULL, an unset validity bit and K3 UNKNOWN are one logical value: no TRUE/FALSE judgment has been established.How #1836 applies this:
Draft::bind, three-valued throughFilter::sql_where, mask-riscKeep) produces the TRUE rows. That mask is the only selection input; there is no FALSE mask as a second truth representation.Admittedoffers no complement: a complement would read UNKNOWN as FALSE.NOT UNKNOWNis UNKNOWN. A negation is its own WHERE over the negated criteria, with its own criteria identity. Reusing one selection as the other is refused.BoundDr64::validity).selected_column_k3returns(value, validity), with value masked by validity, so a stale payload under an UNKNOWN cell is never TRUE. The Boolean folds refuse a three-valued or bag register, the rule from the Codex finding on probe(dr-math): D-DRCA-1 HHTL16 Cartesian direct-routing projection proof #1834.What is reused, and what is new
MethodSignature(owner class, axes, truth, population) is what a selection is projected for and re-admitted against.LocalMap(D-DRCA-1), which gainsdigest(); a frame carries that digest as itscoordinatesrevision.src/where_dr3.rs(no dependency on either engine):project:map.len()probes, no map search;LocalSelection::admit: re-checks every guard;Admittedis the only readable form;LocalSelectionis a caller-owned value: no cache, store, sidecar or persistent mask, no dense Cartesian product, and no local ordinal promoted to a global identity.Falsifiers (13 tests, independent source-ID scalar oracle)
The oracle reads plain per-address values (
class,sel: Option<i32>,live). Verdicts are amatchonOption, and local positions come fromposition()in the frame's id list. It shares no code with Quack, mask-risc,hhtl16orwhere_dr3. NULL rows carry the payload the predicate tests for.AxisMismatchandDifferentFrameare refused.Keepreused after its criteria input changed answers silently, and is refused when projected under the old seal. The original control is unchanged and still printsreused R2 1032 vs fresh 31.Disable runs: 16. Each was committed first, its anchor asserted and its restore checked with
git diff --quiet, and every one turns at least one test red. They include the complement projected as the selection, UNKNOWN reported as known, and value not masked by validity.Measured: single WHERE vs the previous two-program path
Back to back on the same fixture, alternating old (
cbc7930, TRUE + FALSE programs) and new three times. 4-vCPU shared Xeon @ 2.10 GHz, avx512f, median of 21; the two quiet pairs are shown, and the third pair was disturbed by host load in both arms.Keep, 65,536 rowsadmittakes 76–82 ns, a warm read 84–91 ns andprojectabout 920 ns, all with 0 allocations. Rebind costs the same as fresh. These are microbenchmarks, reported, not gates.Open limitations
Keepprojected under a new seal is accepted. A test pins this, so a fix turns it red. Closing it needs the producer to bind a mask to its seal; Quack's boundQueryhas no frame.Criteriais a caller-supplied id. The codebook revision rides inFrameRevisions::relation_map. Owner, ACL and scope are the labFrameStoreandScopeequality.NOT UNKNOWNstaying UNKNOWN.2026-10-28-d-drca-2-dr256-where-dr3.md. The D-DRCA-2 STATUS_BOARD row lives in docs(D-DRDT): DR = HHTL16 Cartesian direct routing, DT = ClassId binding store #1835's file and is left untouched here to avoid overlapping edits.Not started, as instructed: D-DRCA-3, HIRO KI, ruff OGIT.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4