Skip to content

feat: full engine parity (estimate, calibration, emit, backfill, dedup, predict forward-view) — v0.2.0 - #1

Merged
rrader26 merged 1 commit into
mainfrom
feat/full-parity
Jun 3, 2026
Merged

rrader26 merged 1 commit into
mainfrom
feat/full-parity

Conversation

@rrader26

@rrader26 rrader26 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

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 estimators
  • lattice.getCalibration() — prediction reliability report
  • events.emit() — write-side of the event log (was poll-only)
  • memory.admin.backfillEmbeddings() — catch-up vectorization
  • memory.admin.dedup() — semantic dedup (distinct from consolidate())
  • lattice.predict() — new occurrencesPerPattern / emitEvents / imminentWithinHours; PredictResult.eventsEmitted

Anti-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 + tsup build clean; npm run check:proto green.

…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>
@rrader26
rrader26 merged commit ee645fd into main Jun 3, 2026
2 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