Skip to content

cognitive-shader-driver: emit CE64 from the SPOFC record (land #1294 on main) - #1295

Merged
AdaWorldAPI merged 5 commits into
mainfrom
claude/llvm-codegen-polyfill-gni3cw
Sep 25, 2026
Merged

AdaWorldAPI merged 5 commits into
mainfrom
claude/llvm-codegen-polyfill-gni3cw

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Why this PR exists. #1294 was stacked on #1293's branch, and GitHub merged it into that branch at 19:32:16Z. #1293 had already merged to main 17 seconds earlier, so #1294's four commits (plus its merge commit) are stranded on claude/llvm-codegen-polyfill-gni3cw and are not on main:

fa9a9b09 Merge pull request #1294
04315c74 plan: mint D-CSL ids for ce64-spofc-learning-v1 + STATUS_BOARD rows
3bbbc8fd plan: ce64-spofc-learning-v1 — SPOFC into CE64, blocked legs named
951e7f67 cognitive-shader-driver: pin the emitted Pearl mask at the call site
7d8a8961 cognitive-shader-driver: emit CE64 from the SPOFC record

This PR carries exactly those commits to main. There are no new changes. The content, tests and rationale are the ones reviewed in #1294; its description applies unchanged.

What lands

Emitted CausalEdge64 (CE64) is packed from the SPOFC record:

  • S and O are palette256 indices: the row's stored archetype and the partner's.
  • Truth is the SPOFC evidence (a count of supporting relations), not the resonance repeated as confidence.
  • The Pearl mask is now the inverse of edge_to_layer_mask. The raw predicates & 7 had turned SUPPORTS into CONTRADICTS.
  • Topology bits 59–60: Direct for a P64 target, Unknown for a content-similarity partner.

Also included:

  • tests/ce64_recount_probe.rs: characterises that learn() recounts a repeated observation, and that emission plasticity is ALL_FROZEN.
  • Plan .claude/plans/ce64-spofc-learning-v1.md, with deliverables D-CSL-A…F and their STATUS_BOARD rows. The blocked legs name their missing dependencies.

Checks

All 10 checks were green on 04315c74 when #1294 merged. The only commit since is the merge commit fa9a9b09. CI re-runs here against main.

🤖 Generated with Claude Code

https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm


Generated by Claude Code

claude and others added 5 commits September 25, 2026 15:53
Stage [5] packed every edge from the hit alone: S = row%256, O =
(row/4)%256 (a row id in palette-address space), f = c = resonance, the
p64 predicate bits raw as the Pearl mask, and topology left at the packed
default Direct.

Now each edge is packed from its candidate's SPOFC record:
- S / O are palette256 indices: the row's stored archetype (the value the
  cascade queries with) and the partner's (a P64 target, or a row
  partner's stored archetype). P stays 0: no predicate palette exists.
- f / c are the SPOFC truth; confidence counts supporting relations.
- The Pearl mask is the inverse of edge_to_layer_mask's causal half.
  `predicates & 7` put SUPPORTS on bit 2, which reads back as CONTRADICTS.
- Topology says how the relation was found: a P64 target is Direct, a
  content-similarity partner is Unknown.

Adds ce64_recount_probe: learn() pools a repeated observation as fresh
evidence, and the driver's ALL_FROZEN emission plasticity stops learn()
moving S/P/O. Both are characterisations for the cross-cycle work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm
The round-trip test covered layers_to_causal_mask, but emission could
still pass the raw bits: the CAUSES fixture maps to bit 0 either way.
Moved the fixture to a SUPPORTS plane, which has no Pearl bit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm
…l-gni3cw-ce64-spofc

cognitive-shader-driver: emit CE64 from the SPOFC record (follow-up to #1293)
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 3ea762d9-4bff-4390-b2de-48e2e76f2727

📥 Commits

Reviewing files that changed from the base of the PR and between a1c9cae and fa9a9b0.

📒 Files selected for processing (6)
  • .claude/board/INTEGRATION_PLANS.md
  • .claude/board/STATUS_BOARD.md
  • .claude/board/SUPERSESSION-INDEX.md
  • .claude/plans/ce64-spofc-learning-v1.md
  • crates/cognitive-shader-driver/src/driver.rs
  • crates/cognitive-shader-driver/tests/ce64_recount_probe.rs
 ______________________________________________________________________________________________________________________
< You can't write perfect software. Software can't be perfect. Protect your code and users from the inevitable errors. >
 ----------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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

@cursor

cursor Bot commented Sep 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_74995a8b-c04d-4a58-b4e7-1788f728f496)

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review September 25, 2026 19:34
@AdaWorldAPI
AdaWorldAPI merged commit 9cfe8c0 into main Sep 25, 2026
10 of 11 checks passed

@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: fa9a9b09a2

ℹ️ 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 +777 to +779
spofc.truth.frequency,
spofc.truth.confidence,
layers_to_causal_mask(spofc.predicates),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep evidence scoped to the selected object

When one row has supports to different objects or through different predicate planes, CandidateTable keeps only the highest-resonance object but unions predicates and counts support across every relationship. Packing that aggregate here therefore attributes unrelated predicate bits and inflated confidence to the single chosen S/O pair; for example, a strong CAUSES hit to target A plus a weaker CONTRADICTS hit to target B emits target A as both CAUSES and CONTRADICTS, and edges_to_layered_rows materializes the fabricated contradiction. Aggregate evidence per object, or emit separate edges, before encoding it as a binary CE64 relation.

Useful? React with 👍 / 👎.

This was referenced Sep 26, 2026
AdaWorldAPI added a commit that referenced this pull request Sep 26, 2026
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