Skip to content

Commit 5a0abe4

Browse files
committed
feat(contract): the 34 tactics as 34 working Rust kernels (green)
recipe_kernels.rs: one uniform behaviour `trait Tactic` (meta/gate/apply/ run) + 34 unit-struct implementations (Rte..Hkf), registry-dispatched by id. Each kernel performs its characteristic operation on a shared ThoughtCtx using OUR substrate markers (CollapseGate SD FLOW/HOLD/BLOCK, Berry-Esseen noise floor, NARS contradiction, XOR self-inverse for ABBA/fusion/counterfactual). Implicit gating: Gate-bucket recipes skip in FLOW. This is the Elixir-like layer: common interface, 34 hot-dispatchable units; richer fingerprint substrate slots behind the same trait later. 5 tests green (all 34 dispatch+run without panic, confidence in range; TCP prunes low branches; CR drops coherence on same-topic contradiction; ICR builds XOR counterfactual world; Gate recipes skip in FLOW). No warnings. 446 prior contract tests unaffected. https://claude.ai/code/session_017GFLBnDy23AWBqvkbHHC41
1 parent a0857c0 commit 5a0abe4

3 files changed

Lines changed: 694 additions & 0 deletions

File tree

.claude/board/AGENT_LOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@
8383

8484
---
8585

86+
## [Main-thread] [DONE — green] the 34 tactics as 34 working Rust kernels (Elixir-like behaviour)
87+
88+
`crates/lance-graph-contract/src/recipe_kernels.rs` (new, wired in lib.rs). One uniform
89+
behaviour `trait Tactic { meta(); gate(); apply(); run() }` + **34 unit-struct
90+
implementations** (Rte..Hkf), each performing its characteristic op on a shared
91+
`ThoughtCtx` (sd/free_energy/dissonance/temperature/confidence/rung/candidates/beliefs)
92+
using OUR markers — CollapseGate SD thresholds (FLOW<0.15/BLOCK>0.35), Berry-Esseen noise
93+
floor, NARS-style contradiction, XOR self-inverse for ABBA/fusion/counterfactual. Implicit
94+
gating: Gate-bucket recipes skip in FLOW. Registry `kernel(id)` / `all_kernels()`. **5 tests
95+
green** (all 34 dispatch+run without panic & confidence stays in range; TCP prunes; CR drops
96+
coherence on same-topic contradiction; ICR builds the XOR counterfactual; Gate recipes skip
97+
in FLOW). No warnings. 446 prior contract tests unaffected. Charter D4 step 1 of "per-recipe
98+
evaluators" — these are deterministic kernels over a lightweight ctx; richer fingerprint
99+
substrate slots behind the same trait later.
100+
101+
---
102+
86103
## [Main-thread] [DONE — green] ada-rewrite charter + the 34-tactic recipe catalogue (working code)
87104

88105
**Decision (charter D0):** ladybug-rs has NO relation, never will — it's the failed "empty cathedral." We rewrite on our substrate; ladybug/ada-consciousness/neo4j-rs docs are spec-references only, never deps/ports. `.claude/knowledge/ada-rewrite-charter.md` is the once-and-for-all settled-decision record (substrate, SPOQ lattice, hardware partition, 34-as-recipe-targets, build order).

crates/lance-graph-contract/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub use qualia::{
7272
QUALIA_DIMS, QUALIA_I4_DIMS, QUALIA_I4_LABELS, ZERO,
7373
};
7474
pub mod reasoning;
75+
pub mod recipe_kernels;
7576
pub mod recipes;
7677
pub mod repository;
7778
pub mod scenario;

0 commit comments

Comments
 (0)