feat: pooling strategies + builder pattern + commit sinks (EmbedAnything patterns)#116
Merged
Merged
Conversation
…ing patterns)
Three patterns from EmbedAnything translated to codebook-lookup paradigm:
pooling.rs (6 tests):
ArgMax: steelwind — sharp, decisive, single peak (current default)
Mean: woodwarm — broad gestalt, all active atoms above threshold
TopK(k): oceandrift — multiple currents, k strongest peaks
Weighted: nightshade — ghost-biased, experience-modulated energy
PooledResult: primary peak + atoms + entropy + concentration
Different pooling = different qualia from same convergence
builder.rs (7 tests):
ThinkingEngineBuilder::new()
.lens(Lens::Jina) // baked HDR lens selection
.table_type(TableType::SignedI8) // u8 or i8 encoding
.pooling(Pooling::TopK(5)) // energy pooling strategy
.max_cycles(10) // convergence budget
.on_commit(|bus| l4.learn(bus)) // adapter: commit sink
.on_commit(|bus| lance.insert(bus)) // multiple sinks
.build()?;
ConfiguredEngine::process(): reset → perturb → think → pool → notify sinks
BuiltEngine enum: Unsigned(ThinkingEngine) | Signed(SignedThinkingEngine)
CommitSink: Box<dyn Fn(&BusDto) + Send + Sync> — adapter pattern
Lens enum: Jina, BgeM3, Reranker, Custom(Vec<u8>)
Commit sinks = adapter pattern (Lance/L4/NARS/Upstash as FnOnce callbacks)
201 tests pass (+13 new).
https://claude.ai/code/session_019RzHP8tpJu55ESTxhfUy1A
AdaWorldAPI
pushed a commit
that referenced
this pull request
May 16, 2026
…sprint-12 meta + board refresh + OQ catalog Five more Opus planners landed: PP-4 (Opus): `pr-sprint-13-think-methods.md` (674 LOC) — D-CSV-14 spec for splat-ops on Think carrier. Found: zero external callers of the 4 free fns (deprecation cycle is conservative not forcing); Think struct doesn't exist yet (sprint-13 introduces minimum-viable with splat_field + cycle; sprint-15+ accretes trajectory/awareness/etc). PP-5 (Opus): `pr-sprint-13-witness-cam-pq.md` — D-CSV-16 spec for real ndarray CAM-PQ wiring replacing the Wave G HashMap placeholder. PP-7 (Opus): `.claude/board/sprint-log-12/meta-review.md` — sprint-12 closing meta-review. PP-10 (Opus): LATEST_STATE.md (+50 lines) + STATUS_BOARD.md (+15 lines) refresh. 7 new "Recently Shipped" PR rows (#383-#389), 19+ new contract types in inventory, sprint-13 queued specs surfaced. Phase A/B/C marked Shipped; Phase D partial; Phase E (sprint-13) section added. PP-11 (Opus): `.claude/board/sprint-log-13/oq-catalog.md` — 13 OQs (OQ-CSV-7..19); 10 block sprint-13 spawn; 3 sprint-14+ tracking (ndarray PR #116 pin/vendor, VAMPE+Jirak scope, splat persistence). 7 of 12 PP planners done. 5 still in flight (PP-2 iron-rules done separately; PP-6 SIMD spec, PP-9 PR_ARC backfill, PP-12 cross-repo audit pending). https://claude.ai/code/session_01UwJuKqP828qyX1VkLgGJFS
AdaWorldAPI
pushed a commit
that referenced
this pull request
May 16, 2026
PP-12 (Opus): `.claude/knowledge/cross-repo-dependency-audit-2026-05.md` — audits the sibling-repo coordination requirements before sprint-13 spawn. Topics: ndarray dep map (PR #147 status, cam_pq shape, rayon feature gate, simd_caps singleton, PR #116 hpc-extras), p64 / p64-bridge state (convergence drift), sprint-13 D-CSV-* coordination order, and a cross-repo PR coordination protocol proposal. 12 of 13 PP planners done. PP-9 (PR_ARC backfill) + PP-13 (brutally- honest-tester) still in flight. https://claude.ai/code/session_01UwJuKqP828qyX1VkLgGJFS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three patterns from EmbedAnything translated to codebook-lookup paradigm:
pooling.rs (6 tests):
ArgMax: steelwind — sharp, decisive, single peak (current default)
Mean: woodwarm — broad gestalt, all active atoms above threshold
TopK(k): oceandrift — multiple currents, k strongest peaks
Weighted: nightshade — ghost-biased, experience-modulated energy
PooledResult: primary peak + atoms + entropy + concentration
Different pooling = different qualia from same convergence
builder.rs (7 tests):
ThinkingEngineBuilder::new()
.lens(Lens::Jina) // baked HDR lens selection
.table_type(TableType::SignedI8) // u8 or i8 encoding
.pooling(Pooling::TopK(5)) // energy pooling strategy
.max_cycles(10) // convergence budget
.on_commit(|bus| l4.learn(bus)) // adapter: commit sink
.on_commit(|bus| lance.insert(bus)) // multiple sinks
.build()?;
ConfiguredEngine::process(): reset → perturb → think → pool → notify sinks
BuiltEngine enum: Unsigned(ThinkingEngine) | Signed(SignedThinkingEngine)
CommitSink: Box<dyn Fn(&BusDto) + Send + Sync> — adapter pattern
Lens enum: Jina, BgeM3, Reranker, Custom(Vec)
Commit sinks = adapter pattern (Lance/L4/NARS/Upstash as FnOnce callbacks)
201 tests pass (+13 new).
https://claude.ai/code/session_019RzHP8tpJu55ESTxhfUy1A