Skip to content

No way for an external caller to resolve a {slug}-keyed external store without reimplementing session_dir_slug #408

Closed

Description

@fdaviddpt

An external caller that needs the real directory of a {slug}-keyed external store has no way to get it short of reimplementing session_dir_slug.

Where this came from

Digital-Process-Tools/claude-oss#614: /oss:doctor reported no identity.md while remember/0.23.0/scripts/doctor.sh reported the same file present and read, on the same machine, seconds apart. The oss check resolved the data directory by joining a fixed relative path onto the repo root, which is not one of remember's real config layers for an external store.

That half is fixed on the oss side (claude-oss#624). What is left is the part no caller can solve alone.

The gap

session_dir_slug in lib-slug.sh is UTF-8-aware, hashes over 200 characters, and folds Windows drive letters. A caller wanting the resolved directory has two options today:

  1. Vendor the algorithm. A second copy of another project's logic, going stale on its own schedule -- and claude-oss declined this deliberately, reporting unresolved instead of guessing, because a wrong resolved path is worse than an honest unknown.
  2. Give up and report unknown. Which is what claude-oss now does, correctly, and which costs the user a real diagnostic every time.

scripts/doctor.sh already computes and prints the resolved directory:

OK   REMEMBER_DIR       = /Users/<user>/.remember/-Users-<user>-<repo>
OK   Storage mode: external (/Users/<user>/.remember/-Users-<user>-<repo>)

So the value exists and is computed on every doctor run. It is only unavailable in a form another program can consume.

Two shapes that would close it, neither strongly held

  • A machine-readable output from doctor.sh -- a --json or --porcelain mode carrying at minimum the resolved data directory and the storage mode. Cheapest, since the computation already runs.
  • A published resolution helper -- a small entry point a caller invokes to get the resolved directory for a given project path, with its own three states so could not resolve never renders as an absence.

Either removes the choice between vendoring and guessing. Neither requires the caller to know how the slug is built, which is the property that matters: the algorithm stays free to change.

Why filed rather than worked around

This is a reachable class rather than a one-off -- any {slug}-configured external install hits it, and any external tooling that wants to read the store hits it the same way. claude-oss's maintainer loop treats filing on a declared dependency as part of finishing the work rather than as a comment on somebody else's roadmap; whether this belongs in remember's is yours to decide.

Activity

  1. self-assigned this
    on Aug 28, 2026
  2. added
    priority:medium
    on Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions