Skip to content

D-CGW-1: CE64 bits 43..45 are the orientation - #1594

Merged
AdaWorldAPI merged 10 commits into
mainfrom
ccr-9f3b8075-74u47l-cgw1
Oct 17, 2026
Merged

AdaWorldAPI merged 10 commits into
mainfrom
ccr-9f3b8075-74u47l-cgw1

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

What

CE64 bits 43..45 now have one meaning everywhere: causal_edge::Orientation (Core = 0, then the seven Haspelmath dative functions).

  • direction() / set_direction() are renamed orientation() / set_orientation(). pack and pack_v2 take an Orientation, so the compiler finds every writer.
  • Removed: the S/P/O pathological triad, concern_level and CausalNetwork::detect_simpsons_paradox. Nothing in production wrote the triad. The only production writer of 43..45 was deepnsm-v2::wire, and it already wrote Haspelmath codes. The planner's ConfounderCheck computes its directions from population masks.
  • Contract moore_tenant: the direction is now MooreDirection { slot, polarity }. lift_ce64 refuses an edge whose orientation is not Core (MooreRefusal::Oriented), and a refused edge writes nothing.
  • About 85 call sites migrated across 8 crates. Probes that read 43..45 the old way are marked superseded.
  • Board: STATUS_BOARD row, the PR_ARC entry for board: synergy map since #1579 (#1580–#1591); #1591 arc; D-CGW decisions #1593, LATEST_STATE, and entry 2026-10-16-d-cgw-1-orientation-contract.md.

Tests

  • causal-edge/tests/orientation_contract.rs: 5 tests, committed red first.

  • moore_tenant: h_direction_is_slot_and_polarity and h2_an_oriented_edge_is_refused. The disable run (refusal check removed) turns h2 red.

  • Passing:

    Crate Result
    causal-edge v2 and v1 green
    contract 9 test binaries green
    deepnsm-v2 lib 231
    planner lib 461, plus the touched tests
    shader-driver lib 131
    osint, p64-bridge, thinking-engine green
  • KJV bible_wave (release) exits 0: 771,176 tokens, 57,325 certain + 29,287 alternative triples, and the pinned-layout accounting check passes.

  • Not run locally: the lance-graph test intervene_counterfactual. The disk filled before it could build. It compiled earlier under cargo check --all-targets; CI covers it.

  • cargo clippy -D warnings on causal-edge reports 5 findings, all on lines that predate this branch (edge.rs 120, 236, 821, 826, 906). They are not touched here.

Open (see the board entry)

  • 46..49: activation moves to a row field (D-CGW-9).
  • 50..52 needs a ruling.
  • Two production edge-facet writers still use the 12+4 slot reading.
  • WordNet DN gates G1–G3 are not measured yet.

Generated by Claude Code

…ntation yet)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Orientation (Core = 0, then the seven Haspelmath dative-map functions) is the
one meaning of bits 43..45. direction()/set_direction() become
orientation()/set_orientation(); pack and pack_v2 take an Orientation, so every
writer is checked by the compiler.

The S/P/O pathological triad is removed, not moved: nothing in production wrote
it, and the planner's confounder check computes its directions from population
masks. Removed: s/p/o_pathological, concern_level, the simplified
CausalNetwork::detect_simpsons_paradox. CausalMask::simpsons_paradox_risk stays
as a function over directions the caller computes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
…+polarity, an oriented edge is refused

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
…es an oriented edge (D-CGW-1)

DirectionReading/SignTriple and require_sign_triple were the per-tenant reading
binding D-CGW-1 replaced: bits 43..45 have one meaning, the orientation. A Moore
lane holds none, so lifting an edge whose orientation is not Core is refused
instead of silently dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Writers pass an Orientation to pack/pack_v2 (zero literals become Core; fixture
bit patterns keep their bits through Orientation::from_code). deepnsm-v2 wire
writes the contract's Orientation instead of its own u8 table. Probes that read
43..45 as a per-class angle or a pathology triad are marked superseded; the
moore_nars16 Simpson tests are removed with the detector they tested; the
gomoku probe no longer writes its Moore direction into 43..45.
docs/architecture/ce64-semantic-upper-half.md: 43..45 settled as orientation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
…rc entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
…rdNet DN decision)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Formatting only. The five causal-edge clippy findings (edge.rs 120, 236,
821, 826, 906) predate this branch and are not touched here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8874eb2c-2a4b-4c29-b798-4ae182184ae9
  • 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.

lift_ce64 now refuses an edge whose bits 43..45 are not Core, so the random
fixture clears them. The divergence check compares every bit, since no field
is excluded any more.

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
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Add Carrot credits or activate Agent usage billing to use Autofix

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review October 17, 2026 08:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T08:03:21.084608Z 0ee072c 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.

@AdaWorldAPI
AdaWorldAPI merged commit 8f50cd9 into main Oct 17, 2026
17 checks passed
AdaWorldAPI pushed a commit that referenced this pull request Oct 17, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
AdaWorldAPI pushed a commit that referenced this pull request Oct 17, 2026
…entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh

@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: 0ee072cb08

ℹ️ 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 on lines +446 to +451
// ─── Orientation (bits 43..45) ──────────────────────────────────

/// 3-bit direction triad: sign(dim0) per S, P, O.
/// bit 0 = S pathological, bit 1 = P pathological, bit 2 = O pathological.
/// The relation's orientation (bits 43..45); see [`Orientation`].
#[inline(always)]
pub fn direction(self) -> u8 {
((self.0 >> DIR_SHIFT) & BITS3_MASK) as u8
pub fn orientation(self) -> Orientation {
Orientation::from_code(((self.0 >> ORIENT_SHIFT) & BITS3_MASK) as u8)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rename the ISA field to Orientation

When tooling or tests consume the machine-readable ISA contracts, this migration still exposes bits 43..45 as isa::Field::Direction: isa.rs documents it as the S/P/O sign triple and every contract passes Direction. This contradicts the new CausalEdge64::orientation() contract and leaves generic field auditors reporting the removed meaning, so the Field variant and its contract entries should be migrated to Orientation as well.

Useful? React with 👍 / 👎.

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