Skip to content

Improve CLI tracking and add AI SDK memory tools - #97

Merged
bregydoc merged 3 commits into
mainfrom
sync/monorepo-ac63fa0
Nov 24, 2026
Merged

bregydoc merged 3 commits into
mainfrom
sync/monorepo-ac63fa0

Conversation

@bregydoc

Copy link
Copy Markdown
Contributor

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

## 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>
@bregydoc
bregydoc requested a review from ethanj November 23, 2026 16:03
@bregydoc
bregydoc force-pushed the sync/monorepo-ac63fa0 branch from 2d61a7e to afd53b7 Compare November 23, 2026 16:47

@ethanj ethanj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.signal is inherited by PackageRequest at line 239, but AtomicMemoryProvider.package() omits it from the HTTP options. An offline probe through the exact-head MemoryClient, using a fetch stub, confirmed that client.package({ query: 'tea', scope: { user: 'u' }, signal: AbortSignal.abort() }) still reaches fetch with a non-aborted timeout signal and resolves, while the equivalent client.search() rejects with AbortError. Forward the signal for packaging or explicitly exclude/document this inherited field. The new tools call search(), so their cancellation path is unaffected.

  • P3 — Make timestamp compatibility evidence verifiable from this repository. crates/core-types/TIMESTAMPS.md:58–67 claims 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:96 invokes suppression before command dispatch; first_memory.rs:136–158 rotates and persists the consent fence. Consequently, a read-only command with --no-telemetry or AM_TELEMETRY=0 creates/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 ethanj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bregydoc
bregydoc merged commit fa7cc6a into main Nov 24, 2026
24 checks passed
@bregydoc
bregydoc deleted the sync/monorepo-ac63fa0 branch November 24, 2026 18:35
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