Skip to content

fix(cli): accept --content/--text for engram store; clearer error#7

Merged
dakl merged 1 commit into
mainfrom
claude/store-arg-robustness
Jun 25, 2026
Merged

fix(cli): accept --content/--text for engram store; clearer error#7
dakl merged 1 commit into
mainfrom
claude/store-arg-robustness

Conversation

@dakl

@dakl dakl commented Jun 25, 2026

Copy link
Copy Markdown
Owner

What

engram store only accepted content positionally, but transcript analysis
across ~1800 sessions showed the model frequently reaches for
engram store --content "…" (or --text) — a natural guess, since update
uses --content. Those attempts failed silently with store: missing content,
leaving memories unsaved. This is a concrete, evidenced cause of the
"nothing gets stored" problem (≥17 such failures in transcripts).

Changes

  • Accept store content positionally or via --content / --text.
  • Replace the bare missing content error with one that shows the correct
    invocation forms.
  • CLISmokeTests: assert all three forms store + round-trip via fetch, and that
    the content-less error is actionable.

Verification

  • swift build --product engram + swift test green (102 tests, incl. the new
    cliStoreAcceptsContentAndTextFlags and
    cliStoreWithoutContentFailsWithHelpfulMessage).

Context

Part 1 of the "are memories actually being stored?" investigation. Part 2 (a
model-in-the-loop eval measuring how reliably the agent decides to store) is
separate, upcoming work.

🤖 Generated with Claude Code

Transcript analysis showed the model frequently guessed `engram store --content
"…"` (or --text) — natural, since `update` uses --content — and hit a silent
"store: missing content" failure, leaving memories unsaved. Accept content
positionally OR via --content/--text, and make the missing-content error show
the correct invocation forms. Adds CLISmokeTests covering all three forms plus
the helpful-error path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dakl dakl merged commit ddcd264 into main Jun 25, 2026
1 check 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