Repository navigation
feat: full engine parity (estimate, calibration, emit, backfill, dedup, predict forward-view) — v0.2.0 - #1
Merged
Merged
Conversation
…kfill, dedup, predict forward-view (v0.2.0)
Bring the SDK up to the engine's current RPC surface. New methods:
- lattice.estimate() — deterministic estimators (PhenoAge bio-age)
- lattice.getCalibration() — prediction reliability (confidence -> hit-rate)
- events.emit() — write-side of the event log (was poll-only)
- memory.admin.backfillEmbeddings() — vectorize items missing an embedding
- memory.admin.dedup() — semantic dedup (distinct from LLM consolidate)
- lattice.predict() — + occurrencesPerPattern / emitEvents /
imminentWithinHours (forward view + events bridge),
PredictResult.eventsEmitted
Anti-drift: vendor proto/memory.proto (engine main @ d96330867a99) +
proto/coverage.json classifying all 31 RPCs (26 covered, 5 intentionally
internal) + scripts/check-proto-drift.mjs (npm run check:proto) which fails when
the proto gains an unclassified RPC. Bump 0.1.0 -> 0.2.0. tsc + build clean.
Intentionally internal (server-side only): ResolveOrCreateEntity, ExtractAndWire,
BudgetGate, RecordCost, Health.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Brings the SDK up to the engine's current RPC surface (was ~8 days / 6 features behind).
New methods
lattice.estimate()— PhenoAge bio-age / deterministic estimatorslattice.getCalibration()— prediction reliability reportevents.emit()— write-side of the event log (was poll-only)memory.admin.backfillEmbeddings()— catch-up vectorizationmemory.admin.dedup()— semantic dedup (distinct fromconsolidate())lattice.predict()— newoccurrencesPerPattern/emitEvents/imminentWithinHours;PredictResult.eventsEmittedAnti-drift guard
Vendored
proto/memory.proto(engine main @d96330867a99) +proto/coverage.json(all 31 RPCs classified: 26 covered, 5 internal) +scripts/check-proto-drift.mjs(npm run check:proto) — fails CI when the proto gains an unclassified RPC.Requires the matching SaaS API endpoints (memory-thinkfleet PR — estimate/calibration/backfill/dedup/emit routes).
tsc --noEmit+tsupbuild clean;npm run check:protogreen.