Skip to content

Updated Reports#375

Merged
AdaWorldAPI merged 4 commits into
mainfrom
claude/pr-ll-1-nars-intervene-counterfactual
May 15, 2026
Merged

Updated Reports#375
AdaWorldAPI merged 4 commits into
mainfrom
claude/pr-ll-1-nars-intervene-counterfactual

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Updated Reports

claude added 4 commits May 15, 2026 19:22
Sprint manifest for the NARS Intervention/Counterfactual verbs fleet
(first PR in the learning-layer curriculum sequence from PR #373).

Per-worker file ownership + wave ordering documented. OQ-LL-1 and
OQ-LL-5 autoresolved per "autoattended" directive (graded NARS
confidence, clear ICM bit on counterfactual contradiction).

Worker outputs land via tee -a AGENT_ORCHESTRATION_LOG + per-agent
reports under .claude/board/sprint-log-LL1/agents/agent-W{N}.md.
Meta synthesizes after all 6 workers report; commit of .rs changes
happens at the meta-review step.
W6 was spawned with the older permission snapshot and hit Edit/Write
denials. Main thread backfilled the 4 governance updates per W6's
drafted spec:

- EPIPHANIES.md PREPEND: E-LL-1-INTERVENE (NARS Intervention/CFG verbs)
- AGENT_ORCHESTRATION_LOG.md APPEND: W6 coordination line
- knowledge/causal-edge-64-spo-variant.md APPEND: "Recent additions"
  section linking to PR-LL-1 + curriculum §3.5/§6.1
- sprint-log-LL1/agents/agent-W6.md: agent report (notes the
  permission-snapshot issue for future agent reference)

Future Sprint A wave 2 (W2, W5) and all Sprint B/C waves will have
the expanded .claude/settings.local.json allowlist.

The 3 modified .rs files (edge.rs, nars_dispatch.rs, triplet_graph.rs)
are still in-flight from W1/W3/W4; will commit at meta-review step.
Three of the four wave-1 agents (W1, W3, W4) completed their code
changes but couldn't write their own agent-W{N}.md report files due
to permission snapshots captured pre-expansion. Main thread backfilled
the reports from the agents' task-notification summaries + code diff
inspection.

W1: NarsInferenceType extended with Intervention + Counterfactual,
plus W1 proactively patched 2 downstream exhaustive-match sites
(nars/inference.rs, orchestration_impl.rs) bridging to Abduction.

W3: edge.rs Reserved5/Reserved6 slots renamed to Intervention/
Counterfactual; from_bits decoder updated.

W4: triplet_graph.rs ContextTag enum + CounterfactualSpoG struct +
intervene_on() method.

Workspace cargo check passes. Wave 2 (W2 nars-engine-dispatch + W5
tests-e2e) spawns next with the expanded permissions.
Closes the Pearl 2³ named-but-not-dispatched gap from the
neurosymbolic+RLVR+causal curriculum (PR #373 §6.1). Two new
NARS inference variants land as first-class verbs in the stack;
AriGraph gains an intervene_on() method producing counterfactual
SPO-G tagged with ContextTag::Intervention.

## Worker outputs (6 agents + main-thread coordination)

W1 — `lance-graph-planner/src/thinking/nars_dispatch.rs`:
- NarsInferenceType::Intervention (Pearl rung 2, conf_modifier=0.85)
- NarsInferenceType::Counterfactual (Pearl rung 3, conf_modifier=0.70)
- Doc comments cite Vashishtha 2025 (arXiv:2510.01539) + ICM
- Extended route(), detect_from_query(), confidence_modifier()
- Bridged 2 downstream exhaustive-match sites (nars/inference.rs,
  orchestration_impl.rs) to Abduction semiring as stopgap

W2 — `lance-graph-planner/src/cache/nars_engine.rs`:
- Local Inference enum: Intervention=7, Counterfactual=8 added
- nars_infer() routes Intervention → Abduction × 0.85,
  Counterfactual → Deduction × 0.70
- New style vectors: intervention_style() weights MASK_PO,
  counterfactual_style() weights MASK_SPO
- inference_to_pearl_mask() + inference_to_style() dispatch helpers
- to_causal_edge() updated to map local 7/8 → W3's protocol enum
- 4 new tests covering confidence ordering, mask routing, weights,
  roundtrip

W3 — `causal-edge/src/edge.rs`:
- Reclaimed Reserved5 → InferenceType::Intervention (slot 5)
- Reclaimed Reserved6 → InferenceType::Counterfactual (slot 6)
- from_bits() decoder updated
- No bit-layout change beyond renaming; binary compat preserved

W4 — `lance-graph/src/graph/arigraph/triplet_graph.rs`:
- pub enum ContextTag { Observation, Intervention } — SPO-G "G slot"
  at the AriGraph data layer (raw_g()=0xFF for Intervention)
- pub struct CounterfactualSpoG { triplet, context }
- TripletGraph::intervene_on(subject, predicate, new_object) — Pearl
  rung-2 do-calculus, original graph NOT mutated

W5 — NEW `lance-graph/tests/intervene_counterfactual.rs` (274 lines):
- 8 integration tests covering all 4 worker outputs end-to-end
- 7 pass; 1 marked #[ignore] (three_step_counterfactual_chain —
  depends on abduction substrate wiring, target of PR-LL-4)
- clippy::cloned_ref_to_slice_refs fixed in main-thread cleanup

W6 — governance (backfilled by main thread due to permission snapshot):
- EPIPHANIES.md PREPEND: E-LL-1-INTERVENE entry
- AGENT_ORCHESTRATION_LOG.md appended W6 coordination line
- knowledge/causal-edge-64-spo-variant.md "Recent additions" section

## Verification

- `cargo check --workspace` exits 0 (W1's downstream patches kept it green)
- `cargo test -p lance-graph --test intervene_counterfactual` — 7/8 pass
  (8th #[ignore] for PR-LL-4)
- Clippy lint fixed in W5's test (cloned_ref_to_slice_refs)
- AGENT_ORCHESTRATION_LOG records all 6 worker entries

## OQ ratifications (autoresolved per "autoattended" directive)

- OQ-LL-1: graded NARS confidence ∈ [0,1] (chosen)
- OQ-LL-5: clear ICM bit on counterfactual contradiction (deferred to
  PR-LL-2 where IcmInvarianceColumn lands)

## Predecessor / successor

Predecessor: PR #373 (curriculum v1) + PR #372 (causaledge64 substrate)
Successor: PR-LL-2 (ICM-invariance column + Opt-Sym generator) consumes
the new G slot tagging
@AdaWorldAPI AdaWorldAPI merged commit c30cfa8 into main May 15, 2026
4 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