Skip to content

Small cleanups: CLI, SDK and Compose loose ends - #485

Merged
fazpu merged 4 commits into
mainfrom
fix/small-cleanups
Nov 6, 2026
Merged

fazpu merged 4 commits into
mainfrom
fix/small-cleanups

Conversation

@fazpu

@fazpu fazpu commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

CLI queries could be misparsed when a flag value happened to name a query subcommand, and the two Python client classes reported missing files differently. Recognize subcommands only immediately after query, and use one inherited ingest implementation for Client and MemoryClient.

  • Add remember ingest --filename NAME. An explicit stored name changes the document name while MIME still follows the actual source path unless --mime is given.
  • Missing string and Path sources consistently raise FileNotFoundError before any request. Preserve the complete current lineage, version-key, source-path and effective-period contract through the shared implementation.
  • Export the existing DeploymentBuildInfo and NegativeKind types at the Python package root, reconcile the SDK inventory, and regenerate TypeScript contracts and compatibility metadata. The corresponding TS model types were already exposed.
  • Use canonical MCP serverInfo.name = remember, improve ingest help, and correct the obsolete OpenRouter overload-setting name in documentation/tests.
  • Remove unused Langfuse settings from stock Compose and .env.example. Only the benchmark CLI constructs the opt-in generation recorder; stock API/worker profiles do not. Keep the recorder and benchmark tracing behavior intact.
  • Reconcile public CLI, Python, MCP and observability references and regenerate combined reader docs.

Integration and validation

Integrated current main 17e1e381b including D140/D143, graph/citation changes and merged #486. The PostgreSQL header fix from the old branch already exists on main and has no net change here.

Runtime/test checkpoint d0e6535802a20f3307bc299b3c139f7cb23bfa83 and docs-only successor e581d9fdef3a471fbbc35496d4bde9e0df40e2ea are pushed. The focused client/CLI/MCP/effective-time/profile/protocol suite passed 242 cases; the strengthened upload file passed 28 cases. Those proofs cover different source/override extensions, no request on missing paths, and exact bytes and current metadata through both clients with string and Path sources. Ruff/format, SDK contract/parity generation and public/cloud documentation truth checks pass.

Full local unit pack: 2,978 passed, 11 environment-dependent skips. Full Pyright, Ruff/check-format, five import contracts, test inventory, SDK contract/parity drift, TypeScript typecheck and the SDK suite pass. Opus found the implementation correct and requested two stale documentation fixes. The successor updates the ingest guide (including its missing --filename guidance), the provider setting name, the filename-normalization note and generated combined docs. Public/cloud documentation truth and drift checks pass. Claude Code Opus 5.5, high effort, explicitly APPROVED e581d9fdef3a471fbbc35496d4bde9e0df40e2ea, carrying forward its code review and 89 focused checks and verifying the final documentation fixes. The TypeScript SDK suite passed 514 cases, eight skipped. All refreshed CI passed on the approved head, including integration, SDK compatibility, Compose quickstart and the unit job. The unit job succeeded after retrying a slow Ubuntu dependency download. Merged as 1c280ac1cd9eec8d570a2604a3cc4b6cfa6e8639.

Scope and reuse

Sources inspected: current client/CLI/MCP code, MIME behavior, lineage/effective-period interfaces, profile/benchmark recorder construction, SDK parity contracts and reader docs. No E0/E1/E2 code, source-lineage rules, processing generations or paid-product cache keys change. The filename option exposes an existing SDK capability; choosing a different name retains the existing D134 metadata semantics. String-source normalization now matches the previous Client behavior in both classes. For MemoryClient(source="./name.md", content=...) without filename, redundant path syntax in the fallback name is normalized; callers controlling that spelling should set filename explicitly. Such a changed name remains an ordinary D134 metadata input change on resubmission, not a global paid-product invalidation or automatic reprocessing. No model bindings, answer/judge prompts or benchmark runs change. Retained benchmark data remain untouched.

CLA

🤖 Generated with Claude Code

https://claude.ai/code/session_01AXAuJJ6Tswr9Q3Auc1VPKb

fazpu and others added 3 commits September 25, 2026 10:29
- `remember ingest --filename NAME` stores the file under another name.
- `remember query WORD` treats only the word right after `query` as a
  possible subcommand, so a flag value such as `--project space` no longer
  turns a question into `query space`.
- `Client.ingest` and `MemoryClient.ingest` are one method: a missing path,
  `str` or `Path`, raises FileNotFoundError.
- `remember` exports `DeploymentBuildInfo` and `NegativeKind`.
- The local MCP server reports `serverInfo.name` "remember".
- `ingest` help no longer says "push a file through E0".
- Compose no longer passes LANGFUSE_* variables the engine never reads;
  .env.example drops the benchmark-only tracing keys.
- The OpenRouter overload setting's docstring and tests name the real
  variable, REMEMBERSTACK_OPENROUTER_CHAT_UPSTREAM_OVERLOAD_MAX_RETRY_AFTER_S.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AXAuJJ6Tswr9Q3Auc1VPKb
The PGDG archive now serves 19~beta4 headers, and apt installed them into
the 19beta3 builder. pg_textsearch compiled against them fails at
CREATE EXTENSION ("index access method handler ... did not return an
IndexAmRoutine struct"), which broke every job that builds
Dockerfile.postgres. Pin postgresql-server-dev-19 and libpq-dev to the base
image's PG_VERSION.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AXAuJJ6Tswr9Q3Auc1VPKb
@fazpu
fazpu marked this pull request as draft November 6, 2026 09:51
@fazpu
fazpu marked this pull request as ready for review November 6, 2026 10:20
@fazpu
fazpu merged commit 1c280ac into main Nov 6, 2026
31 of 33 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.

1 participant