Repository navigation
Improve CLI tracking and add AI SDK memory tools - #97
Conversation
## Summary - Improve first-memory tracking for the CLI while honoring analytics opt-out. Update Rust dependencies and preserve existing timestamp formats. - Add user-scoped memory search and ingestion tools for AI SDK 6, with an example app and Cloud defaults for the TypeScript client. - Validate ingestion responses and handle request cancellation consistently. Prepare CLI 0.5.0, TypeScript SDK 1.1.2, and Vercel adapter 0.1.2; this PR does not publish those versions. ## Validation - The public export passed the sanitizer and staged content checks. Run the public PR checks against this exact candidate before merging. Co-authored-by: Anthony Cueva <acueva@atomicstrata.ai>
2d61a7e to
afd53b7
Compare
ethanj
left a comment
There was a problem hiding this comment.
Combined Codex + Claude review of afd53b71386b6bf9f2425f643c213c18f467be56 against e04ddb916282185dece85197700efee03e990bc9. No blocking correctness, security, or data-integrity defects found within the reviewed scope.
Nonblocking follow-ups:
-
P3 — Clarify or implement cancellation for context packaging.
SearchRequest.signalis inherited byPackageRequestat line 239, butAtomicMemoryProvider.package()omits it from the HTTP options. An offline probe through the exact-headMemoryClient, using a fetch stub, confirmed thatclient.package({ query: 'tea', scope: { user: 'u' }, signal: AbortSignal.abort() })still reaches fetch with a non-aborted timeout signal and resolves, while the equivalentclient.search()rejects withAbortError. Forward the signal for packaging or explicitly exclude/document this inherited field. The new tools callsearch(), so their cancellation path is unaffected. -
P3 — Make timestamp compatibility evidence verifiable from this repository.
crates/core-types/TIMESTAMPS.md:58–67claims provider-flow and encrypted-store restart coverage and describes components whose corresponding implementation/tests are absent from this checkout. Scope the statement to the public fixtures/tests, or link reproducible public evidence and mark the remaining coverage separately. -
P3 — Document opt-out's local filesystem side effects.
main.rs:96invokes suppression before command dispatch;first_memory.rs:136–158rotates and persists the consent fence. Consequently, a read-only command with--no-telemetryorAM_TELEMETRY=0creates/rewrites the sidecar and lock, and an unwritable config directory produces a warning on every invocation. This is not an analytics transmission or an opt-out bypass; retain the revocation fence, but document the behavior and consider reducing repeated warning noise.
Scope: CLI first-memory consent/persistence/retry callsites and timestamp wire adapters; SDK Cloud defaults, credential selection/browser boundaries, ingest response validation and shared HTTP cancellation; AI SDK tool schemas, fixed user scope, output projection/error masking, exports/peers and packed verification; example, Docker, workflow and public-contract changes. Claude independently reviewed the same revision; I checked the findings and traced the relevant integrated paths before combining.
Validation: git diff --check e04ddb916282185dece85197700efee03e990bc9 afd53b71386b6bf9f2425f643c213c18f467be56 passed. The focused offline probe used exact Git source blobs transpiled in memory on Node 22.22.3, with no network request or server. GitHub reports 24/24 successful checks at this exact head, including the six AI SDK/Zod packed combinations, Node 22/24 affected checks, package/public/security contracts, Core Docker smoke, and Rust/MSRV/platform checks (CI, Rust, macOS Deno). Those are hosted results, not fresh local suite runs.
Not verified: deployed Cloud authorization/isolation and ingest responses, real PostHog ingestion/deduplication, external persisted datasets, live model execution, or registry publication. No local install, build, broad test suite, or live service/model run was performed. This review does not establish publication readiness.
ethanj
left a comment
There was a problem hiding this comment.
Approved at afd53b7 following re-review. No blocking findings; the three nonblocking follow-ups remain documented in the earlier combined review. All 24 hosted checks are successful at this revision. Deployed Cloud/PostHog behavior and publication readiness remain outside the verified scope.
Summary
Validation
Co-authored-by: Anthony Cueva acueva@atomicstrata.ai