Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

feat(cognee): add cost telemetry guardrails - #14

Merged
JTInventory merged 1 commit into
mainfrom
fm/cognee-cost-telemetry
Jun 29, 2026
Merged

JTInventory merged 1 commit into
mainfrom
fm/cognee-cost-telemetry

Conversation

@JTInventory

Copy link
Copy Markdown
Owner

Summary

Cognee wrapper runs now leave secret-safe local JSONL telemetry before usage scales. The events record operation/mode/status, retry count, latency, known import size/token counts, source-verification outcome, and explicit cost fields without writing prompt text, answer bodies, source bodies, credentials, bearer tokens, cookies, signed URLs, or secret values.

Local source verification is marked as known zero-cost, while a real configured Cognee lookup backend records unknown vendor cost instead of silently reporting zero. Raw 404 readback in the TSV manifest path now blocks proof as a durability failure.

Telemetry writes are best-effort: a broken telemetry path does not stop lookup dispatch, while proof paths still fail closed when source verification is missing or unsafe.

Tests

  • bash tests/fm-cognee-telemetry.test.sh
  • bash tests/fm-cognee-lookup.test.sh
  • bash tests/fm-cognee-source-verify.test.sh
  • bash tests/fm-memory-lookup.test.sh
  • git diff --check

Compound Engineering
GPT-5.5

@JTInventory
JTInventory merged commit 654f9f8 into main Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant