Skip to content

feat(cognee): add manual memory lookup helper#130

Open
JTInventory wants to merge 9 commits into
kunchenguid:mainfrom
JTInventory:feat/cognee-memory-command
Open

feat(cognee): add manual memory lookup helper#130
JTInventory wants to merge 9 commits into
kunchenguid:mainfrom
JTInventory:feat/cognee-memory-command

Conversation

@JTInventory

Copy link
Copy Markdown

Summary

Firstmate can now run an optional manual Cognee memory lookup before dispatch without making Cognee part of the authority chain. The helper prints untrusted memory hints separately from opened local source paths and warnings, and --append-brief writes only opened source paths or a non-blocking unavailable note into a brief.

Safety Boundaries

  • Manual-only command; no dispatch path auto-queries Cognee.
  • Missing or failed FM_COGNEE_LOOKUP_CMD exits 0 with memory unavailable, so dispatch can continue without memory context.
  • Raw Cognee answers are never appended to briefs as proof.
  • No write/admin Cognee capability, config mutation, or Gbrain fallback path is added.

Validation

  • bash -n bin/fm-memory-lookup.sh tests/fm-memory-lookup.test.sh
  • tests/fm-memory-lookup.test.sh
  • set -e; for t in tests/*.test.sh; do "$t"; done
  • git diff --check plus no-index whitespace checks for the two new executable files
  • shellcheck bin/fm-memory-lookup.sh tests/fm-memory-lookup.test.sh was not run because shellcheck is not installed in this environment
  • Manual diff scan completed; ce-code-review was not run because this session's multi-agent tool policy only allows subagent spawning when explicitly requested

Post-Deploy Monitoring & Validation

No additional production monitoring is required because this is an inert manual CLI helper. Validate on first real use by confirming an unavailable backend prints memory unavailable and exits 0, a configured read-only backend keeps memory hint, verified local source path, and warning separate, and any brief attachment contains only opened local source paths plus advisory wording. Treat any raw Cognee answer in a brief, automatic dispatch query, Gbrain invocation, or nonzero unavailable-backend exit as a rollback trigger.


Compound Engineering
GPT--5_Codex

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