feat(planner): AutocompleteCache — 4096 interdependent attention heads 4 modules, 20 tests: cache/kv_bundle.rs: HeadPrint, AttentionMatrix (HIP 64×64, TWIG 256×256) cache/candidate_pool.rs: CandidatePool, Phase (Exposition→Coda), ranked emit cache/triple_model.rs: TripleModel (self/user/impact), Plasticity, DK, Truth cache/lane_eval.rs: LaneEvaluator, Tension (Euler-gamma noise floor) Next: refactor HeadPrint → palette u8 index with O(1) lookup, add SPO decomposition (3×u8), Pearl 2³ mask (8 projections), NARS inference rules as style weight vectors over 8 projections. https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK#73
Merged
AdaWorldAPI merged 4 commits intomainfrom Mar 31, 2026
Merged
feat(planner): AutocompleteCache — 4096 interdependent attention heads
4 modules, 20 tests:
cache/kv_bundle.rs: HeadPrint, AttentionMatrix (HIP 64×64, TWIG 256×256)
cache/candidate_pool.rs: CandidatePool, Phase (Exposition→Coda), ranked emit
cache/triple_model.rs: TripleModel (self/user/impact), Plasticity, DK, Truth
cache/lane_eval.rs: LaneEvaluator, Tension (Euler-gamma noise floor)
Next: refactor HeadPrint → palette u8 index with O(1) lookup,
add SPO decomposition (3×u8), Pearl 2³ mask (8 projections),
NARS inference rules as style weight vectors over 8 projections.
https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK#73AdaWorldAPI merged 4 commits intomainfrom
AdaWorldAPI merged 4 commits intomainfrom
Conversation
ChatBundleStrategy implements PlanStrategy with: - ChatBundle: Base17 fingerprint accumulator with recency decay - Topic shift detection via L1 distance from bundle - Affinity scoring: 0.95 for chat JSON, 0.0 for Cypher/GQL/SPARQL - Routes: Direct (palette answer), GraphQuery (cold path), DeepThinking Wired into default_strategies() as strategy #17. The planner now handles BOTH paths: Cold: Cypher → DataFusion → Arrow → Lance (columns/rows) Hot: Chat → ChatBundle → Base17 → HHTL → RouteAction 121 planner tests passing. https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK
AUTOCOMPLETE_CACHE_PLAN.md: 6 agent scopes, contract mapping, integration mapping, dependency graph. cache/ module started (agents building kv_bundle, candidate_pool, triple_model, lane_eval). Will refactor to palette-index O(1) lookup after agents complete — not raw L1 on dims. https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK
4 modules, 20 tests: cache/kv_bundle.rs: HeadPrint, AttentionMatrix (HIP 64×64, TWIG 256×256) cache/candidate_pool.rs: CandidatePool, Phase (Exposition→Coda), ranked emit cache/triple_model.rs: TripleModel (self/user/impact), Plasticity, DK, Truth cache/lane_eval.rs: LaneEvaluator, Tension (Euler-gamma noise floor) Next: refactor HeadPrint → palette u8 index with O(1) lookup, add SPO decomposition (3×u8), Pearl 2³ mask (8 projections), NARS inference rules as style weight vectors over 8 projections. https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
AdaWorldAPI
added a commit
that referenced
this pull request
Apr 30, 2026
…betrieb
Reusable Foundry-style mapper between the wire-shape DTO surface
(already in `ontology_dto`) and the inner SoA / SPO substrate.
Domain-agnostic — every module operates on whatever `Ontology` is
handed in. No medcare or smb specifics live under transcode/.
## Modules (all under crate::transcode)
zerocopy OuterColumn / OuterSchema / OwnedColumn /
from_columns. The cheap-zerocopy lane: Vec<T> →
Buffer is O(1) reinterpretation. Refuses
undeclared columns at the boundary.
cam_pq_decode CamPqDecoder trait + PassthroughDecoder for
CodecRoute::{Skip, Passthrough}. The codec math
itself stays in lance_graph_contract::cam.
spo_filter SpoFilterTranslator: SQL filter terms →
SpoLookup. Domain-agnostic; uses canonical
lance_graph_contract::hash::fnv1a for predicate
fingerprints.
ontology_table OntologyTableProvider: DataFusion TableProvider
over (Ontology, entity_type). Round-1 backs scan
with MemTable; SpoStore reader is the next round.
parallelbetrieb DriftEvent + DriftKind + Reconciler trait. The
ONE deliberate transition bandaid: MySQL ↔
DataFusion ↔ SPO ground-truth reconciliation.
Schema matches MedCareV2's C# DriftEvent.ToJson()
so both sides feed one dashboard.
## Why a submodule, not a sibling crate
PR #73 on medcare-rs explicitly framed `lance-graph-callcenter` as
the Foundry / supabase-realtime transcode crate. A sibling crate
would create a competing framing. These are the four reusable
primitives + the one bandaid; they belong here.
## What this does NOT introduce
- No duplicate of ontology_dto. The DTO surface stays canonical;
transcode re-exports OntologyDto / EntityTypeDto / Locale /
Label / SchemaExpander from one path so consumers reach the
whole transcode surface from one import.
- No duplicate of version_watcher. Realtime fan-out belongs to
LanceVersionWatcher; transcode does not introduce a second
channel primitive.
- No new HTTP / WS deps. Realtime transport adapters live in
the consumer-facing serve feature.
## Cargo / features
- Adds `async-trait = "0.1"` (small, no transitive deps).
- transcode/zerocopy + transcode/ontology_table compile under
`query-lite` or `persist` (both pull in arrow); the others
are always-on.
## Verified
- cargo check: clean across {default, persist, query-lite,
audit-log, query-lite+persist+audit-log,
auth-rls-lite+query-lite}
- cargo test transcode::: 26 passed, 0 failed
- clippy: zero transcode warnings across the same feature combos
- rustfmt --check: clean on all 6 new files
AdaWorldAPI
pushed a commit
that referenced
this pull request
Apr 30, 2026
…ached_dtos + cohort_similarity_z SmbStack assembled facade closes the last review-open item from PR #21 (96fb069 + bb3df0b on smb-office-rs claude/review-csharp-rust-transcode-9ygcR). 27 smb-realtime tests pass, clippy clean. REQUEST: three upstream improvements to retire copy-pasted consumer caches in medcare-rs + smb-office-rs: 1. &'static Ontology factories (LazyLock-once, not allocate-per-call) 2. OntologyDto::cached_dtos -> CachedOntologyDtos { de, en } 3. lance_graph_contract::distance::cohort_similarity_z<F: Distance> Both consumers (medcare PR #73, smb PR #22) invented identical caches locally; promoting upstream eliminates the drift class.
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.
No description provided.