Skip to content

planner: derivation ledger and load-bearing ablation (D-EPI-COT C0–C2) - #1840

Merged
AdaWorldAPI merged 6 commits into
mainfrom
ccr-39105428-bcm2m2-epi-cot
Oct 28, 2026
Merged

AdaWorldAPI merged 6 commits into
mainfrom
ccr-39105428-bcm2m2-epi-cot

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

D-EPI-COT C0–C2: a substrate audit, plus a derivation ledger that says which sources carry a conclusion and what happens to its truth when they are removed.

C0 — audit (docs/research/epistemic-cot/c0-substrate-audit.md)

What exists today, and what each piece can and cannot answer:

  • the NARS truth laws;
  • BeliefArena;
  • the planner tactics and their figures;
  • the 34 recipe kernels: all scalar transforms with no statements, 31 operational and 3 demonstration;
  • CertificationModel and its statistical gaps;
  • EpistemicState5.

C1/C2 — nars::support::DerivationLedger

The ledger sits beside BeliefArena, which is unchanged. It is append-only and holds observations (stmt, truth, source) and admitted derivations (chain, law, premises, conclusion).

  • Admission: a step whose terms do not fit its law's figure is refused (NotAFigure). The figures are the ones the planner tactics use (RCR abduction, TR analogy, CAS induction/deduction). admit takes a tactic Candidate directly.
  • Evaluation under an Ablation (sources and/or derivations removed):
    • proofs are built from each premise's pooled evidence;
    • the pooled truth is the root-disjoint proof set with the most total evidence weight. This is exact, with dominated proofs dropped first; roots are exact source ids;
    • it reports which chains still derive the statement.
  • Two reads:
    • load() asks whether the conclusion still exists: FirstCritical, SecondCritical, Synergistic, Redundant, NotLoadBearing or Absent;
    • sensitivity() asks how strong it still is: Δf, Δc, chains lost and roots lost. A conclusion can survive while its evidence collapses.
  • Bounds: evaluation refuses rather than truncating, through Refusal::{Steps, Depth, Pool}. The evidence horizon stays at k = 1.

16 tests. Each of 10 disables turns its test red: revise-everything, no path guard, no joint ablation, ignore source ablation, ungrounded productive, no step budget, no figure check, greedy selection, no depth bound, no pool bound and no dominance filter.

Scope

  • Derivation dependence only. Outcome and trigger dependence, causation and Epi5 writes are not in this PR.
  • Load-bearing is evidence for an existing Epi5 reading. It is not a new bit and not a sidecar.
  • The Epi5 bridge (C3, falsifiers L1–L4) goes in a follow-up PR.

Draft; not for automatic merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4

…n (D-EPI-COT C1/C2)

BeliefArena keeps one premise pair per statement and an empty stamp on
derived entries, so it cannot say which observations a conclusion needs.
DerivationLedger records every observation with its source and every
derivation with its law, premises and chain, and evaluates any statement
under an ablation: proofs over pooled premise evidence, NARS revision
across disjoint roots only, chains that still derive it, and a
single/joint ablation classification (critical, synergistic, redundant).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
The 34 contract recipe kernels change scalars only; the five planner
tactics are the term-logic base. Records what the certification folds
guarantee and what C1/C2 (nars::support) add, with the falsifiers and
the disables that turn them red.

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

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b5d92a64-3fa1-4f56-805c-89b00e28dd5e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

…t evidence selection, depth bound

- derive checks the step's terms against its law's figure (the figures the
  planner tactics use) and refuses otherwise; admit records a tactic
  Candidate directly, so the tactics stay the proposing authority.
- sensitivity reports Δfrequency, Δconfidence, chains and roots lost: a
  conclusion can survive an ablation while its evidence collapses. load is
  unchanged.
- pooling selects the root-disjoint set of proofs with the most total
  evidence weight; a greedy pick by single-proof confidence could suppress
  two independent proofs that outweigh one stronger shared-root proof.
- MAX_DEPTH refuses a path deeper than 64; MAX_STEPS bounded work only.
  Truncated becomes Refusal { Steps, Depth, Pool }.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
…selection, bounds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
…ith the bits 50..52 conflicts

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

chatgpt-codex-connector Bot commented Oct 28, 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-28T19:09:59.627634Z f8c582e 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.

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

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

- grounded_since counts a derivation only if a proof uses it, not when its
  conclusion already has other support (codex P2).
- Pooled::chains is computed per chain with every other chain's
  derivations removed, instead of from the pooled proof's combined
  provenance, which mixed chains wherever a premise had proofs from two
  (codex P2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMPWTwovjYJEUMuGPb4
@AdaWorldAPI
AdaWorldAPI merged commit c7fe962 into main Oct 28, 2026
11 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