feat(cognee): verify local source hints#129
Open
JTInventory wants to merge 1 commit into
Open
Conversation
Author
|
Superseded for the captain workflow by clean fork PR JTInventory#9, which has been merged into JTInventory/firstmate. Closing this upstream contribution because it is no longer the active delivery path. |
Author
|
Reopening to preserve this as an upstream contribution. The active delivery path for the captain fork is already merged at JTInventory#9. |
3 tasks
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
Cognee hint text can now be checked against local evidence before Firstmate treats it as useful memory context. The verifier parses saved/redacted answer fixtures for
SOURCE_ID,SOURCE_PATH,SEED_FILE, data UUIDs, and chunk UUIDs, then fails closed unless the local manifest row and reopened source file agree.The verifier stays local-only. It does not call Cognee or any live API, and its output always keeps
action_authorized: falseso memory results cannot become approval for merges, deploys, cleanup, vendor actions, or other external work.What Changed
bin/fm-cognee-verify-source.sh, a local JSONL-manifest verifier that emits structured verification JSON.Tests
bash tests/fm-cognee-source-verify.test.shpassed after the initial test-first red failure.bash -n bin/fm-cognee-verify-source.sh tests/fm-cognee-source-verify.test.shpassed.for t in tests/*.test.sh; do bash "$t"; done.Caveats
shellcheckis not installed in this environment, so shell lint was limited tobash -nand behavior tests.no-mistakes doctorwas otherwise healthy, but the installed no-mistakes version reported an update warning (v1.30.1 -> v1.31.2)./root/.no-mistakes/repos/...; per direct-PR instruction, this PR uses the clean amended HEAD07543deplus the passed focused/full shell tests as evidence.Post-Deploy Monitoring & Validation
No additional operational monitoring required. This is a local-only CLI verifier with no live Cognee API calls, no daemon behavior, and no remote mutation path.