Skip to content

sdk: reflect() + proto re-vendor (8 new RPCs classified) - #10

Merged
rrader26 merged 2 commits into
mainfrom
feat/sdk-reflect-sync
Jul 8, 2026
Merged

sdk: reflect() + proto re-vendor (8 new RPCs classified)#10
rrader26 merged 2 commits into
mainfrom
feat/sdk-reflect-sync

Conversation

@rrader26

@rrader26 rrader26 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Brings @thinkfleet/memory-sdk back in sync with the engine's RPC surface.

  • 5b917ef — re-vendor engine proto (d9633085e381923) and classify the 8 RPCs whose resources already existed but weren't recorded in coverage.json (typed attributes, healthcare, behavior discovery). Drift guard was green-but-blind for these.
  • 5511d9cmemory.admin.reflect({ userId?, maxSources?, maxInsights?, dryRun? }) for the engine's new Reflect RPC (reflection / insight synthesis, ThinkfleetAI/thinkfleet-memory-engine#49). Adds ReflectRequest / ReflectResult / Insight types. Re-vendor proto → 7f1c2be.

check:proto green (44 RPCs, 39 covered, 5 internal); typecheck + build pass.

Follow-up: the TS Fastify shell still needs POST /admin/memory/reflect wired to the gRPC Reflect call for this to work over REST. The engine RPC itself is functional (callable via gRPC today). Merge after the engine PR.

🤖 Generated with Claude Code

rrader2890 and others added 2 commits July 7, 2026 17:02
Vendored proto was behind engine main (d963308 -> 5e381923). The typed-
attribute, healthcare, and behavior-discovery resources were already
implemented in the client but their RPCs weren't recorded in
coverage.json, so the drift guard had nothing to check them against.

Classify all 8 as covered:
  UpsertAttributeDef      -> typed.registerAttribute
  QueryAttributeDefs      -> typed.listAttributes
  SaveTypedObservations   -> typed.ingest / typed.enqueue
  QueryTypedObservations  -> typed.queryObservations
  GetAccumulator          -> typed.accumulator
  GetHealthProfile        -> health.getProfile
  GetCohortHealthRisk     -> health.getCohortRisk
  DiscoverBehaviors       -> behaviors.discover

check:proto now green: 43 RPCs, 38 covered, 5 internal. typecheck + build pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Surface the engine's new Reflect RPC (reflection / insight synthesis).
memory.admin.reflect({ userId?, maxSources?, maxInsights?, dryRun? })
POSTs /admin/memory/reflect and returns synthesized insights with
provenance. Adds ReflectRequest / ReflectResult / Insight types.

check:proto green: 44 RPCs, 39 covered, 5 internal.

Note: the TS Fastify shell still needs the POST /admin/memory/reflect
route wired to the gRPC Reflect call for this to work over REST; the
engine RPC itself is live.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit ebe5ec9 into main Jul 8, 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