Repository navigation
feat(cognee): add manual memory lookup helper - #130
Closed
JTInventory wants to merge 9 commits into
Closed
JTInventory wants to merge 9 commits into
JTInventory wants to merge 9 commits into
Conversation
Adopt upstream baseline and active watcher fix
feat: adopt deterministic route resolver
* feat(cognee): add local lookup manifest checker * feat(cognee): verify local source hints
JTInventory
force-pushed
the
feat/cognee-memory-command
branch
from
June 29, 2026 01:00
ecf0bf7 to
b6794df
Compare
Author
|
Closing because this work is maintained in the JTInventory fork. We are not expecting upstream review or merge for this branch. |
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 2, 2026
…nchenguid#130) * feat(bin): speak a captain-facing outcome out of this machine's speaker Firstmate could already speak to the captain: the glasses loop owns the spoken register - outcome first, two or three short sentences, never a URL, path or id, and never a request for a spoken yes - and enforces it in code before anything reaches a voice. What it could not do was speak when he is at the desk without the glasses, because that path's only sink is the phone mailbox. fm-speak.sh is that missing sink and nothing else. It shapes every line through the existing register owner by absolute path and hands the result to say. It is not a second copy of the register: a copy in this repository would drift from the one the glasses already speak, so an unreachable owner ends in silence rather than in a fallback that reads a URL aloud. Because that owner refuses text asking the captain to decide, a merge, a spend or an outward action structurally cannot be put to him by voice and stays in the reply he reads. Opt-in is per home and per device through private config/speak, so cloning this repo, seeding a secondmate home, or adding a device never makes one talk. Both halves are bounded so a captain-facing turn is never held open. The register call is waited on under a watchdog because its output is needed; the speaker call is detached with its standard streams closed, so a caller capturing this script's output is not blocked until the audio finishes, and a runaway speaker is killed rather than left holding the audio device. What it deliberately does not claim: exit 0 means the shaped line was handed to the speaker, never that audio was produced or that the captain heard it. * chore(fork-surface): declare the desk voice-out capability The speak script and its suite are fork-only paths, so the manifest has to claim them or the surface gate reports them unowned. The commits entry points at the implementation commit and follows the file's existing convention of being repaired to the squash-merge commit once the PR lands. The config path is deliberately not added to the portable set: config/speak decides whether this machine talks, with a voice installed on this machine, so porting it to a second home is exactly the self-enrolment the opt-in prevents. * test(shards): place the speak suite in a serial shard The coverage guard requires every portable script to sit in exactly one serial shard. It goes at the end of shard 1, the slot the previously added suite took, because the shard order is longest-first from CI timing artifacts and a new script has none yet. Measured locally at 17s against 310s for the pinned first entry and 135s for the second, so it is nowhere near the head; the authoritative position follows from the next timing artifact, not from these numbers. Also names bin/fm-speak.sh as the speak path in the AGENTS.md line rather than leaving the pronoun to reach back across the sentence. * no-mistakes(review): split speak bounds, close shaper stdin, name timeouts, reap watchdogs * no-mistakes(document): docs(speak): point timeout defaults to script header
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 2, 2026
The integration branch carries the merged patch groups, so it can no longer fast-forward to main. Keeping it current by merging main in preserves every merged group and the commits their pull requests point at, which a rebase of a shared branch would rewrite. This brings in the glasses shift loop (kunchenguid#109) and the desk speaker (kunchenguid#130). Both touch bin/fm-test-run.sh and fork-surface.conf, the two files every patch group edits, so carrying them now keeps later groups from rebasing across the drift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-briefwrites only opened source paths or a non-blocking unavailable note into a brief.Safety Boundaries
FM_COGNEE_LOOKUP_CMDexits 0 withmemory unavailable, so dispatch can continue without memory context.Validation
bash -n bin/fm-memory-lookup.sh tests/fm-memory-lookup.test.shtests/fm-memory-lookup.test.shset -e; for t in tests/*.test.sh; do "$t"; donegit diff --checkplus no-index whitespace checks for the two new executable filesshellcheck bin/fm-memory-lookup.sh tests/fm-memory-lookup.test.shwas not run becauseshellcheckis not installed in this environmentce-code-reviewwas not run because this session's multi-agent tool policy only allows subagent spawning when explicitly requestedPost-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 unavailableand exits 0, a configured read-only backend keepsmemory hint,verified local source path, andwarningseparate, 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.