Skip to content

docs(contract)+knowledge+agents: de-brand sequencing primitives; bank the compilation-vs-runtime + assembler-vs-storage rulings#693

Merged
AdaWorldAPI merged 2 commits into
mainfrom
claude/council-contract-doclabel-cleanup
Jul 15, 2026
Merged

docs(contract)+knowledge+agents: de-brand sequencing primitives; bank the compilation-vs-runtime + assembler-vs-storage rulings#693
AdaWorldAPI merged 2 commits into
mainfrom
claude/council-contract-doclabel-cleanup

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Two commits, one correction arc

Commit 1 — strip consumer-provenance label-bleed (5+3 council R5)

The zero-dep contract's execute_compute_dag / execute_defaults doc-comments branded them "the ActionDef value executor" and baked one consumer's provenance into them ("the medcare transpile arc's lane-3a increment", "the sono Recal_* family"). Every consumer of lance-graph-contract inherits that mislabel. They are generic sequencing primitives — reworded generically + an explicit scope-note ("NOT an ActionDef-body interpreter; takes no ActionDef, reads no kausal/EnterEffect" — that concern is OGAR's ACTIONDEF-VALUE-DISPATCH-PROPOSAL.md). Code untouched; 48 class_view tests green; E-LAYER-CONFUSION-OGAR-VS-SPINE-1 + AGENT_LOG record the council run. Load-bearing council result: #690's placement is correct — OGAR's ogar-class-view consumes lance_graph_contract::ClassView; nothing reverted. Filed #692 (contract::action shape-parity-fuse gap).

Commit 2 — bank the two operator rulings as knowledge + guard agents

The failure chain (#691 wrong-repo → OGAR #208 hallucinated three times) came from two conflations the operator ruled on. Banked so no session re-derives them the hard way:

  • knowledge/compilation-vs-runtime-substrate.md — contracts compile types; ruff+OGAR codegen emits Rust into consumer repos; cargo (laptop/CI/Railway) builds them against ogar-vocab/lance-graph-contract as plain type deps. SoA / temporal.rs / NARS / RBAC / mailbox write-on-behalf = the running engine's internal mechanics — never a gate on a build or a typed-value construction (the door-knocking-compiler test). 30-second checklist.
  • knowledge/assembler-vs-storage-substrate.mdOGAR = the V3 assembler substrate (IR/mint/codegen); lance-graph = spine (contracts + query); Lance persistence = calcification, never an ingest API. Ownership quick-map + the observed failure signatures.
  • agents/layer-boundary-warden.md — pre-flight gate (verdicts: COMPILE-TIME-CLEAN / RUNTIME-CLEAN / MIXED-SPLIT-IT / DOOR-KNOCKER / WRONG-SHELF), fires before cross-repo issues and seam docs.
  • agents/codegen-flow-cartographer.md — carries the harvest→mint→codegen→consumer-repo→cargo pipeline map; answers placement/phase questions with receipts while a design is being written.
  • CLAUDE.md knowledge list registers both docs.

Companion GitHub state (same arc)

OGAR #208 closed as HALLUCINATED + repurposed: its body now states the two distinctions verbatim-spirit. OGAR #209 is the from-scratch rewrite of the Klickwege seam at the correct layer — a compile-time lowering fn + golden test, cargo-only, zero ceremony. MedCare-rs #211 (E-MEDCARE-30) and the a2ui-rs seams-doc retraction complete the set.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Reformatted an internal assertion statement for improved readability without changing behavior.
  • Documentation
    • Updated and clarified several public-facing doc comments around recompute/default execution helpers and their scope.
  • Chores
    • Added new documentation/agent prompt files and knowledge-base guidance to improve compile-time vs runtime and layer-boundary decision-making.
    • Updated internal documentation logs with recent audit and resolution notes.

@cursor

cursor Bot commented Jul 14, 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_ac180be4-2d61-4669-8e19-e6d77094ff1f)

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds compile-time and substrate-boundary guidance, records related governance findings, and clarifies contract sequencing documentation. It also reformats a 24-bit assertion without changing its behavior.

Changes

Documentation and contract cleanup

Layer / File(s) Summary
Layer-boundary guidance
.claude/agents/*, .claude/knowledge/*
Adds agent specifications and knowledge documents distinguishing compile-time/runtime and assembler/storage responsibilities.
Guidance wiring and governance records
CLAUDE.md, .claude/board/*
Indexes the new guidance and records the OGAR/lance-graph audit findings and related documentation cleanup.
Contract documentation and assertion formatting
crates/lance-graph-contract/src/class_view.rs, crates/lance-graph-contract/src/legacy_outliers.rs
Clarifies sequencing helper comments and test headers, and reformats the put_u24_le assertion without changing its condition or message.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: claude

Poem

A rabbit reads the layers with care,
Compile-time paths are mapped in the air.
Comments now tell what helpers do,
And three-byte bounds stay steady too.
Hop hop—the contracts are clear!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is specific and aligned with the main changes: doc-comment rebranding plus new knowledge/agent guidance.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

…mpute_dag/execute_defaults doc-comments (5+3 council R5)

A 5+3 council flagged that the ZERO-DEP contract's recipe-sequencing
primitives were branded "the ActionDef value executor" and carried one
consumer's provenance ("the medcare transpile arc's lane-3a increment", "the
sono Recal_* family", "RecipeCentroid::Default harvest") in their doc-comments
— which every consumer of the contract inherits. They are generic sequencing
primitives, NOT an ActionDef-body interpreter (that is OGAR's
ACTIONDEF-VALUE-DISPATCH-PROPOSAL.md concern).

- execute_compute_dag / execute_defaults doc-comments reworded to describe the
  primitive generically (topological-order / fire-if-absent sequencing over
  ComputeEdge / positions) + a scope-note drawing the ActionDef-interpreter
  boundary explicitly. Code unchanged; 48 class_view tests green.
- ClassView::default_targets + test section comments de-branded likewise.
- E-LAYER-CONFUSION-OGAR-VS-SPINE-1 (EPIPHANIES) + AGENT_LOG entry record the
  council run and the load-bearing result: #690's execute_defaults IS correctly
  placed (OGAR consumes lance_graph_contract::ClassView) — NOT reverted.
- Filed #692 for the highest residual: contract::action re-declares OGAR IR
  names with no shape-parity fuse.

Incidental: cargo fmt fixed a pre-existing fmt-dirty legacy_outliers.rs
(same as the thinking_styles/style_family reflow in #690).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AdaWorldAPI AdaWorldAPI force-pushed the claude/council-contract-doclabel-cleanup branch from 1219b84 to b4ce015 Compare July 14, 2026 17:08
…ine (operator rulings, 2026-07-14)

Two knowledge files and two guard agents banking the two layer distinctions
the operator ruled after the #691/#208 failure chain:

- knowledge/compilation-vs-runtime-substrate.md — contracts compile types;
  ruff+OGAR codegen emits Rust INTO consumer repos; cargo (laptop/CI/Railway
  pulling GitHub) builds them against ogar-vocab/lance-graph-contract as
  plain type deps. The SoA / temporal.rs / NARS / RBAC / mailbox
  write-on-behalf machinery is the running engine's INTERNAL mechanics —
  it never gates a build or a typed-value construction. Canonical negative
  image: the door-knocking compiler ("may I compile on behalf of the SoA
  using RBAC..."). 30-second checklist.
- knowledge/assembler-vs-storage-substrate.md — OGAR is the V3 assembler
  substrate (IR, minting, codegen); lance-graph is the spine (zero-dep type
  contracts + query/planner); Lance persistence is calcification, never an
  ingest API. Ownership quick-map + the observed failure signatures
  (wrong-repo filing, "ingest" vocabulary, "V3 substrate = lance-graph",
  compiler-on-disk).
- agents/layer-boundary-warden.md — pre-flight gate; verdicts
  COMPILE-TIME-CLEAN / RUNTIME-CLEAN / MIXED-SPLIT-IT / DOOR-KNOCKER /
  WRONG-SHELF; fires before cross-repo issues and seam docs.
- agents/codegen-flow-cartographer.md — carries the harvest→mint→codegen→
  consumer-repo→cargo pipeline map; answers placement/phase questions with
  receipts while a design is being written.

CLAUDE.md knowledge list registers both docs. Companion GitHub state:
OGAR #208 closed as hallucinated + repurposed to state the two distinctions;
OGAR #209 is the from-scratch rewrite of the Klickwege seam at the correct
(compile-time) layer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 15, 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_447f19a5-7c33-43a8-b8b7-ddd38a57958c)

@AdaWorldAPI AdaWorldAPI changed the title docs(contract): strip consumer-provenance label-bleed from recipe-sequencing doc-comments (5+3 council R5) docs(contract)+knowledge+agents: de-brand sequencing primitives; bank the compilation-vs-runtime + assembler-vs-storage rulings Jul 15, 2026

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

🧹 Nitpick comments (1)
.claude/agents/codegen-flow-cartographer.md (1)

30-30: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Specify a language for the fenced code block.

To prevent markdown linting warnings, specify a language identifier (e.g., text) for this fenced code block.

♻️ Proposed fix
-```
+```text
🤖 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/agents/codegen-flow-cartographer.md at line 30, Update the fenced
code block in the codegen-flow-cartographer documentation to include an explicit
language identifier, such as text, immediately after the opening fence; leave
the block’s contents unchanged.

Source: Linters/SAST tools

🤖 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.

Nitpick comments:
In @.claude/agents/codegen-flow-cartographer.md:
- Line 30: Update the fenced code block in the codegen-flow-cartographer
documentation to include an explicit language identifier, such as text,
immediately after the opening fence; leave the block’s contents unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e34ac3f0-db78-460f-86a4-eb6c9a7c29be

📥 Commits

Reviewing files that changed from the base of the PR and between 1219b84 and 4f4369a.

📒 Files selected for processing (9)
  • .claude/agents/codegen-flow-cartographer.md
  • .claude/agents/layer-boundary-warden.md
  • .claude/board/AGENT_LOG.md
  • .claude/board/EPIPHANIES.md
  • .claude/knowledge/assembler-vs-storage-substrate.md
  • .claude/knowledge/compilation-vs-runtime-substrate.md
  • CLAUDE.md
  • crates/lance-graph-contract/src/class_view.rs
  • crates/lance-graph-contract/src/legacy_outliers.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/lance-graph-contract/src/legacy_outliers.rs

@AdaWorldAPI AdaWorldAPI merged commit 6cb61be into main Jul 15, 2026
7 checks passed
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