Skip to content

docs(substrate): §8 strong form — the substrate as a full-stack compiler#610

Merged
AdaWorldAPI merged 3 commits into
mainfrom
claude/jirak-math-theorems-harvest-rfii13
Jun 25, 2026
Merged

docs(substrate): §8 strong form — the substrate as a full-stack compiler#610
AdaWorldAPI merged 3 commits into
mainfrom
claude/jirak-math-theorems-harvest-rfii13

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Jun 25, 2026

Copy link
Copy Markdown
Owner

What

Capstone (§8) of the Substrate Unification Thesis (substrate-unification-thesis.md, shipped in #607). Doc-only.

§0–§7 read one 512-byte node five ways. §8 takes the strong form: what if the value slab itself is homogeneous in the key's algebra, and classid is a schema pointer? Then the node stops being a record and becomes a compilation unit: data → index → schema → view.

§ Claim Grade Gate
8.1 Homogeneous facet — value = N×16B (part_of:is_a) facets via a layout-preserving ValueSchema::Homogeneous (no ENVELOPE_LAYOUT_VERSION bump). Conflation trap named: scalars aren't hierarchical → PQ-code facets, facet_classid discriminates codec. [H] F-1 + F-code
8.2 classid dual-dispatch — one radix lookup → ReadMode (codec: Helix ⊕ CAM-PQ) and ClassView (schema: rails/AST/ERP). Failure = table drift (I-LEGACY-API-FEATURE-GATED). [H] F-collapse
8.3 LEGO across domains — EdgeBlock click via the shared OGAR codebook; compile = SPO manifest→ClassView, run = SoA under UnifiedStep/semiring. Bounds: shared-concept lattice only, structure⊥flow. [S] PROBE-OGAR-ADAPTER-UNICHARSET
8.4 View layer — ClassView→askama with Redmine as donor (FieldFormat/Query/CustomField → cell-renderer / lenses / customattribute). Hybrid (static shell + dynamic codebook cells) dissolves the compile-time vs runtime seam. Row/table = the 4th projection of the node. [S] OGAR core-first
8.5 §8 inherits §4's ladder; §8-specific KILL = homogeneity non-closure.

Why this framing

  • Layout-preserving, not layout-breaking — the homogeneous slab is a new variant alongside the existing ValueTenant columns; the 16/16/480 canon split is untouched (a key re-carve would be canon-level and separate).
  • Every load-bearing joint already has a named, un-run probe — §8 earns its place by being falsifiable end-to-end, not by being proven.
  • §8.4 was sharpened by cross-session feedback mapping Redmine's proven metadata→row architecture 1:1 onto the ClassView renderer.

Honesty

The engineering rungs (§2 axes, #605/#607) are shipped and real. The full-stack-compiler reading is a coherent bet[H] where it reuses shipped structure, [S] where it bets on unbuilt tooling. Nothing in §8 is canon.

Doc-only · zero code · no collision · AGENT_LOG cont.⁴² prepended.

🤖 Generated with Claude Code


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Expanded the thesis with a new “§8” stronger end-to-end interpretation of the substrate as a full-stack compilation unit, including homogeneous facets, classid dual-dispatch, cross-domain composition rules, a view-layer mapping approach, and explicit falsifiable failure/escape framing.
    • Added clarifications correcting earlier homogeneous-facet assumptions and tightening guardrails around presets/schema layouts and versioning expectations.
    • Published an integration plan entry and a new “value tenant” migration protocol describing harvest and sign-off flow plus required read/contract gates.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@AdaWorldAPI, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 53 minutes and 23 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d98082c5-4fe1-4271-b3b2-6b2aa52bd93e

📥 Commits

Reviewing files that changed from the base of the PR and between b3c5aa0 and fdcc862.

📒 Files selected for processing (5)
  • .claude/board/AGENT_LOG.md
  • .claude/board/EPIPHANIES.md
  • .claude/board/INTEGRATION_PLANS.md
  • .claude/knowledge/substrate-unification-thesis.md
  • .claude/plans/soa-value-tenant-migration-v1.md
📝 Walkthrough

Walkthrough

Adds a new §8 thesis section, a migration brief, and matching board notes. The changes describe homogeneous facets, classid-based reading, a value-tenant migration protocol, and updated doc-only tracking entries.

Changes

Substrate strong-form docs update

Layer / File(s) Summary
§8 thesis section
.claude/knowledge/substrate-unification-thesis.md
Adds §8 with homogeneous facets, classid dual-dispatch, OGAR composition limits, ClassView/Askama view mapping, and inherited falsifier gates.
Value-tenant migration plan
.claude/plans/soa-value-tenant-migration-v1.md
Adds the migration brief, harvest inputs, tenant gates, inventory format, migration ordering, and 5+3 sign-off flow.
Board notes
.claude/board/AGENT_LOG.md, .claude/board/EPIPHANIES.md, .claude/board/INTEGRATION_PLANS.md
Prepends or adds board entries that record the doc-only update, correct the homogeneous-facet framing, and index the migration plan.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

I thumped past §8 with a tidy hop,
Through facets and plans that never stop.
classid winked once, then pointed the way,
While board notes filed the trails of the day.
\o/ A paper burrow, neat and bright!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Clearly names the doc-only §8 update and its main thesis, matching the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

@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: 659e8de3b5

ℹ️ 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".

```

The key insight is **compatibility, not replacement**: this is a new
`ValueSchema::Homogeneous` variant *alongside* the existing `ValueTenant` SoA

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 Reconcile the new ValueSchema variant with the guardrail

When future substrate work follows this READ BY thesis, this sentence makes ValueSchema::Homogeneous sound like the layout-preserving implementation path, but the current canon explicitly says classid → ClassView has no new ValueSchema variant (.claude/knowledge/core-first-transcode-doctrine.md:71-72) and the locked plans tie that to the #500 no-new-variant contract test (.claude/plans/genetic-research-substrate-integration-v1.md:14-17, .claude/plans/ocr-canonical-soa-integration-v1.md:93-102). Without stating that §8 first lifts that guardrail/operator decision, implementers will add a contract-surface enum variant that the existing guidance/tests are meant to reject; please frame this as a guardrail change or as ClassView selecting existing presets/tenants.

Useful? React with 👍 / 👎.

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/knowledge/substrate-unification-thesis.md:
- Around line 248-255: The statement in the OGAR convergence section is too
absolute about “no adapter” and should be softened to match the speculative
tone. Update the affected prose in the thesis subsection that discusses
`EdgeBlock`, `canonical_concept_id`, and `UnifiedStep` so it describes the
cross-domain mapping conceptually, while acknowledging that routing still passes
through the per-port codebook tables rather than implying the adapter layer
disappears entirely.
- Around line 199-202: The markdown fence in the thesis note is missing a
language tag and is triggering markdownlint; update the fenced block in the
relevant documentation section to use a language like text while keeping the
existing content unchanged. Locate the bare fenced snippet around the
facet/value schema example and add the appropriate fence label so the markdown
lint warning is resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a943dfd8-c824-49b5-bfa9-9a702ec8aaac

📥 Commits

Reviewing files that changed from the base of the PR and between 63c2347 and 659e8de.

📒 Files selected for processing (2)
  • .claude/board/AGENT_LOG.md
  • .claude/knowledge/substrate-unification-thesis.md

Comment thread .claude/knowledge/substrate-unification-thesis.md Outdated
Comment thread .claude/knowledge/substrate-unification-thesis.md
AdaWorldAPI pushed a commit that referenced this pull request Jun 25, 2026
…a new variant (Codex P2 #610)

Codex P2 + verified against canon: §8.1 and the SoA migration plan framed the
homogeneous facet as a free additive ValueSchema::Homogeneous variant, which
violates the #496 §0 anti-invention guardrail + #500 no-new-variant contract
test (core-first-transcode-doctrine.md:72; genetics + OCR plans ride Full/
Compressed via classid → ClassView, never a new variant).

- §8.1 reframed: the homogeneous facet is a classid → ClassView reading over an
  existing preset; ValueSchema enum + 16/16/480 layout both untouched. A new
  preset is an operator-lifted #496/#500 decision, never a thesis default.
- migration plan §1/§3/§5: same correction; added the #500 guardrail as an
  explicit per-tenant gate; step 1 is now a ClassView reading, not a variant.
- §8.3: softened 'no adapter, no serialization' — the per-port codebook lookup
  still mediates; only the bespoke A→B translation boundary disappears
  (CodeRabbit minor).
- §8.1 fence given a 'text' language tag (markdownlint, CodeRabbit minor).
- EPIPHANIES E-HOMOGENEOUS-FACET-IS-CLASSVIEW-NOT-VARIANT prepended.

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

Copy link
Copy Markdown
Owner Author

All three findings addressed in b3c5aa0f.

Codex P2 — ValueSchema variant vs the #500 guardrail (the important one, accepted in full). Verified against canon — core-first-transcode-doctrine.md:72 ("classid → ClassView … no new ValueSchema variant"), genetic-research-substrate-integration-v1.md:14-16 (#496 §0 + #500 no-new-variant test), ocr-canonical-soa-integration-v1.md:93-102. §8.1 and the migration plan (§1/§3/§5) framed the homogeneous facet as a free additive ValueSchema::Homogeneous variant — that's a contract-surface addition even with bytes unchanged, which the guardrail forbids from a plan. Reframed: the facet is a classid → ClassView reading over an existing preset (Full/Compressed); the enum and the 16/16/480 layout stay untouched. A dedicated preset is now explicitly an operator-lifted #496/#500 decision (contract test updated in the same change), never a thesis default. Added the #500 guardrail as a first-class per-tenant gate in plan §3. Logged as E-HOMOGENEOUS-FACET-IS-CLASSVIEW-NOT-VARIANT in EPIPHANIES.

CodeRabbit — "no adapter" too absolute (§8.3, accepted). Softened: the per-port codebook lookup still mediates; only the bespoke A→B translation boundary (a custom adapter / serialization hop) disappears, consistent with the [S] grade and the consumer-preflight reality (pull via canonical_concept_id).

CodeRabbit — bare markdown fence (§8.1, accepted). Tagged text.


Generated by Claude Code

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/plans/soa-value-tenant-migration-v1.md:
- Around line 92-99: The BBB consumer bullet in the migration plan states the
harvest “confirms” behavior too strongly, which conflicts with the section’s
intent that these are leads to verify. Reword the entry around the existing
SMB/medcare/woa consumer references and the q2 / OGAR note so it stays
tentative, explicitly framing them as candidates the harvest should confirm
rather than asserting they never construct a Bridge or copy the codebook.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3fa9f5bf-1099-4598-b625-7d98ba324703

📥 Commits

Reviewing files that changed from the base of the PR and between 659e8de and b3c5aa0.

📒 Files selected for processing (4)
  • .claude/board/EPIPHANIES.md
  • .claude/board/INTEGRATION_PLANS.md
  • .claude/knowledge/substrate-unification-thesis.md
  • .claude/plans/soa-value-tenant-migration-v1.md
✅ Files skipped from review due to trivial changes (3)
  • .claude/board/EPIPHANIES.md
  • .claude/board/INTEGRATION_PLANS.md
  • .claude/knowledge/substrate-unification-thesis.md

Comment on lines +92 to +99
- The BBB consumers that pull tenants by `*Port::class_id` /
`canonical_concept_id`: **smb-office-rs**, **medcare-rs**, **woa-rs**.
(Per the BBB barrier — they must *pull*, never construct a `*Bridge` or
copy the codebook; the harvest confirms they don't.)
- The q2 / OGAR consumers flagged in cont.³⁹ (e.g. q2 `osint-bake/fma.rs`
`NodeGuid::new_v2(...)` — a 7-group API that does **not** exist in
`canonical_node`; an `I-LEGACY-API-FEATURE-GATED` live blocker to record,
not silently fix).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the BBB consumer references tentative.

This bullet contradicts the brief’s own rule that section-2 pointers are leads, not facts. Reword it as something the harvest should confirm, rather than saying it already “confirms” the BBB consumers never construct bridges or copy the codebook.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/plans/soa-value-tenant-migration-v1.md around lines 92 - 99, The BBB
consumer bullet in the migration plan states the harvest “confirms” behavior too
strongly, which conflicts with the section’s intent that these are leads to
verify. Reword the entry around the existing SMB/medcare/woa consumer references
and the q2 / OGAR note so it stays tentative, explicitly framing them as
candidates the harvest should confirm rather than asserting they never construct
a Bridge or copy the codebook.

claude added 3 commits June 25, 2026 10:52
Capstone of the Substrate Unification Thesis (#607). §0–§7 read one node
five ways; §8 reads the value slab itself in the key's algebra:

- §8.1 homogeneous facet [H]: value = N×16B (part_of:is_a) facets via a
  layout-preserving ValueSchema::Homogeneous (no ENVELOPE_LAYOUT_VERSION
  bump). Conflation trap named: scalar facets carry PQ codes, gated on F-1.
- §8.2 classid dual-dispatch [H]: one radix lookup → ReadMode (codec) +
  ClassView (schema); failure = table drift (I-LEGACY-API-FEATURE-GATED).
- §8.3 LEGO [S]: EdgeBlock click across domains via shared OGAR codebook;
  CONJECTURE until PROBE-OGAR-ADAPTER-UNICHARSET.
- §8.4 view layer [S]: ClassView→askama with Redmine as donor (FieldFormat
  / Query / CustomField → cell-renderer / lenses / customattribute);
  hybrid (static shell + dynamic codebook cells) dissolves the compile-time
  vs runtime seam; row/table = the 4th projection of the node.
- §8.5 inherits §4's gates; §8-specific KILL = homogeneity non-closure.

Doc-only, zero code. AGENT_LOG cont.⁴² prepended.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi
Not the migration — the orientation that produces it. 4 sessions / 3 phases:
P0 brief (this) → P1 one harvest session returns the per-tenant inventory →
P2 two independent 5+3 sessions sign off (convergence = signal).

- §2 WHERE to read, read-not-grep: canonical_node.rs (ground truth) → contract
  SoA columns + SoaEnvelope/#477 → cascade_key/place_buffer/INERTIA_SLOT
  prototypes → producers AND consumers (BBB pullers + q2 new_v2 blocker) →
  LATEST_STATE Contract Inventory. Pointers are leads, not facts.
- §3 per-tenant gates: layout-preserving vs canon bump; I-LEGACY-API-FEATURE-
  GATED + field-isolation matrix; the conflation trap (scalars aren't
  hierarchical → PQ, gated on F-1); iron rules; no hot-path serialization.
- §4 inventory schema. §5 migration body left a skeleton (additive
  ValueSchema::Homogeneous first; KEEP the irreducibly-heterogeneous = the
  honest §8.5 outcome). §6 names the 5 savants + 3 reviewers.

INTEGRATION_PLANS prepended. Doc-only, zero code. Cross-ref thesis §8.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi
…a new variant (Codex P2 #610)

Codex P2 + verified against canon: §8.1 and the SoA migration plan framed the
homogeneous facet as a free additive ValueSchema::Homogeneous variant, which
violates the #496 §0 anti-invention guardrail + #500 no-new-variant contract
test (core-first-transcode-doctrine.md:72; genetics + OCR plans ride Full/
Compressed via classid → ClassView, never a new variant).

- §8.1 reframed: the homogeneous facet is a classid → ClassView reading over an
  existing preset; ValueSchema enum + 16/16/480 layout both untouched. A new
  preset is an operator-lifted #496/#500 decision, never a thesis default.
- migration plan §1/§3/§5: same correction; added the #500 guardrail as an
  explicit per-tenant gate; step 1 is now a ClassView reading, not a variant.
- §8.3: softened 'no adapter, no serialization' — the per-port codebook lookup
  still mediates; only the bespoke A→B translation boundary disappears
  (CodeRabbit minor).
- §8.1 fence given a 'text' language tag (markdownlint, CodeRabbit minor).
- EPIPHANIES E-HOMOGENEOUS-FACET-IS-CLASSVIEW-NOT-VARIANT prepended.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi
@AdaWorldAPI AdaWorldAPI force-pushed the claude/jirak-math-theorems-harvest-rfii13 branch from b3c5aa0 to fdcc862 Compare June 25, 2026 10:52
@AdaWorldAPI AdaWorldAPI merged commit 8f6daa0 into main Jun 25, 2026
1 check was pending
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