Skip to content

D155 slice 6: remember mount wrapper - #612

Merged
fazpu merged 5 commits into
mainfrom
feat/remember-mount
Nov 13, 2026
Merged

fazpu merged 5 commits into
mainfrom
feat/remember-mount

Conversation

@fazpu

@fazpu fazpu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

remember mount DIR now mounts a managed remember.dev project's corpus read-only through mountable. It reuses the CLI's signed key (including its org), project selection and issuer metadata, then posts to the advertised account API's /v1/orgs/{org_id}/mount-sessions with a fresh UUID4 idempotency key. The returned ticket goes only to mountable mount --ticket-stdin --json DIR on stdin, which is closed after writing. Tickets are redacted from forwarded diagnostics/events and never placed in argv, environment or files.

The CLI reports the canonical-path mounted JSON event with session_id immediately, then stays in the foreground for mountable's lifecycle. remember unmount DIR delegates locally without a ticket or credential lookup. Missing mountable, HTTP 401/403/404, invalid session/event responses and child failures have clear nonzero outcomes. CLI help explains installation and foreground use.

This implements the CLI portion of D155 slice 6. The binding E0 design records the supplied control-plane contract and mountable lifecycle. Public website docs remain OSS-only: removed the stale wrapper entry from not-built-yet and regenerated llms exports, without adding cloud mount pages or instructions. The existing self-host filesystem-views page already specifies any S3 filesystem tool with read-only credentials/options, so it needs no change. No compatibility shims, provider integrations or ingestion/reuse generations changed; Rule 4 paid-work identities are unaffected.

Verification

  • Targeted mount suite: 37 passed, with MockTransport and a fake executable on PATH; no network or FUSE required. Covers stdin-only tickets and EOF, argv/environment exclusion, shell metacharacters, canonical paths, UUID4 keys, key/project precedence, matching JSON events, foreground mount/unmount, stderr draining/redaction, child exit codes (including failure after mounting), missing executable, 401/403/404, malformed sessions/tickets and failed/expired tickets. Added to .github/ci/unit-paths.txt.
  • Ruff check and format check: passed (758 files formatted).
  • Import contracts: 5 kept, 0 broken.
  • Test inventory: 178 unit files, 95 integration files, 273 discovered; passed.
  • Pyright (src/ benchmarks/, Python 3.13): 0 errors, 0 warnings.
  • Generated-artifact checks: OpenAPI regenerated to a temporary output and byte-compared; public llms exports, TypeScript Python contracts, generated TypeScript modules and Python parity fixtures all pass their generator checks. Only Python source hashes changed in the three SDK metadata artifacts; no API schema change. Documentation truth check also passes. No website build, hosted-model run or benchmark run.
  • Full .github/ci/unit-paths.txt suite on Python 3.13: 3575 passed, 11 skipped, with one existing Starlette/httpx deprecation warning (137 seconds).

Outstanding qualification

No scope deviations. The wrapper stays in the foreground because mountable owns the mount's foreground lifecycle; its mounted event is reported immediately.

The remember.dev control-plane route is built separately in the cloud repository. This PR implements the binding client contract; no end-to-end managed-cloud run is claimed.

Credentialed AWS S3, GCS XML/HMAC and mountable.io sandbox conformance remains to be run, including signing/addressing, checksums, conditional creates, pagination, multipart cleanup/provider-managed expiry, separate endpoints, access logs, bucket=filesystem-id, and read-only session/cache erasure acknowledgement. Fake CLI tests do not qualify those providers.

Mountable source checked at d936589b1e200e347f03dfc32609c5d368668ae2: mounted carries event, path, filesystem_id, mode; mounting remains foreground until unmount, and mountable unmount DIR is supported. No source is copied.

Contributor agreement

Signing on behalf of a legal entity (leave blank if accepting individually):

@fazpu
fazpu marked this pull request as ready for review November 13, 2026 20:07
@fazpu
fazpu merged commit 318865d into main Nov 13, 2026
19 checks passed
@fazpu fazpu mentioned this pull request Nov 14, 2026
1 task done
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.

1 participant