Repository navigation
D-NALP-3: NAL revision as one grouped cross-moment fold, keyed by evidential base - #1538
Conversation
…nce-class key Beliefs::seal_evidence stores the fixed-point evidence weight (scale 2^16, written once, c=255 refused) and an evidence class per row, computed per statement from the stamps: independent, exact duplicate (counted once), overlapping, no provenance. nal::Revision folds the statement's range with mask-risc GroupCrossPowerSumsI32 keyed by that class (x = w, y = f) and commits once: refuses overlap and missing provenance, caps c at ONA's 0.99. lance-graph-r2il gains FoldDialect::with_cross_sums / fold_cross_power_sums, a dialect method like emit_pred; no R2IL byte is minted. Oracles: ONA Truth_Revision transcribed from Truth.c at dc4efd0, and the three OpenNARS revision_points values. W2 tests unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
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. |
|
Add Carrot credits or activate Agent usage billing to use Autofix |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d0880fbb8
ℹ️ 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".
Codex P2: once ONA's running confidence reaches its 0.99 cap, its pairwise Truth_Revision turns the capped confidence back into a bounded weight, so its answer depends on arrival order: ten (255,230) then ten (0,230) give f = 104, the reverse 151, interleaved 125. The fold sums every weight once and caps only the result, so it is order-independent and gives the exact NAL revision (f = 128). Keep that, state it at the commit law, in the plan and in the ONA program doc, and pin it with a test that also asserts ONA's own fold disagrees with itself on the fixture (so it cannot stop reaching saturation unnoticed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
PR A of the ONA assimilation brief: revision, evidence independence, oracle parity. NAL stays in
crates/lance-graph-nal. No opcode is added, OGAR is not changed, and the W2 tests are not touched.What changed
lance-graph-nalBeliefs::seal_evidence(class, &[Evidence { belief, stamp }], version)writes two lanes besidefandc:w: the evidence weightround(2¹⁶ · c / (255 − c)), written once at seal. Confidence code 255 is refused withUnboundedWeight.evidence: aU32class per row, worked out per statement in sealed order from the stamps:InvalidStamp). ONA drops such events at input (Memory.c:501).nal::Revision::bind(bound, statement)keeps one mask-risc program: the statement's range plusGroupCrossPowerSumsI32 { key: evidence, x: w, y: f }into a 4-group sink.PreparedRevision::revisecommits once:DependentEvidence) or group 3 is not empty (MissingProvenance);f = round(Σw·f / Σw)andc = round(255·Σw / (Σw + k·2¹⁶)), withk = 1andccapped at code 252 (ONA'sMAX_CONFIDENCE0.99);Nonewhen there is no evidence.Beliefs::seal(W2) carries no stamps, so its populations answer the W2 queries but never revise.lance-graph-r2ilFoldDialect::with_cross_sumsandfold_cross_power_sums. This is a dialect method likeemit_pred, not an R2IL byte; the fold band has no cross-moment call.Oracles
Truth_Revisiontranscribed fromsrc/Truth.catdc4efd0abd520cdb79bf53bfa3c285ebb24f2e8a(horizon 1, max confidence 0.99), folded pairwise. This is an independent re-implementation of the C source, not a run of the ONA binary.revision_points.nal: (0.87, 0.91), (0.45, 0.77), (0.50, 0.95).Tests (
tests/w3.rs: 10; plus 1 in r2iltests/dialect.rs)ΣwandΣw·fequal the integer row sums exactly;[10,2,11,2,1]is refused at seal; unbounded weight is refused; no evidence answersNone; a revision bound on one population refuses to run on another.Disable runs
Seven guards, each removed in turn after the commit; each turned its own test red, and the tree was restored after each:
wscale droppedGates run
lance-graph-nal: 8 W2 tests (unchanged) and 10 W3 tests pass; fmt and clippy-D warningsare clean.lance-graph-r2il: tests pass; fmt and clippy are clean.r2il-mask-abi-probe: 40 tests pass.crates/lance-graphcore build (disk is tight). The r2il change is additive (one field set innew, two new methods), so I expect it to build; CI will confirm.Decisions for review
wlanew = c/(1−c); mask-risc has no per-row divisionc(zero-copy concern); deltas that carry their own weight (D-HL-7) would remove itemit_pred; avoids minting an opcodeogar-r2ilfold byte could follow if procedures need it in textNot measured on the v4 arm yet. Board: D-NALP-3 is set to In PR; the plan has a Status 2026-10-13 section.
🤖 Generated with Claude Code
https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Generated by Claude Code