990e594a1dbfd08c0e4c26d76c035f5cafb202df
Summary hardening: - SHA256 fingerprint of events content for deduplication (skips LLM call when events unchanged since last summary) - Versioned summary storage: summary:agent:channel:vN keys - Latest pointer: summary_latest:agent:channel for fast retrieval - Prompt injection defense: sanitize event content before LLM, strip [SYSTEM]/[INTERNAL] markers, block "ignore instructions" patterns - Anti-injection clause in SUMMARY_SYSTEM_PROMPT Database fix: - list_facts_by_agent: SQL filter by fact_prefix to only return chat_events (prevents summary/version facts from consuming LIMIT quota) - Fixed NULL team_id issue in UNIQUE constraint (PostgreSQL NULL != NULL) using "__system__" sentinel for team_id in summary operations Tested on NODE1: dedup works (same events → skipped), force=true bypasses. Co-authored-by: Cursor <cursoragent@cursor.com>
Description
DAARION & MicroDAO - Main Project Repository
Languages
HTML
65.4%
Python
32.7%
Shell
1%
PLpgSQL
0.3%
Jupyter Notebook
0.2%
Other
0.2%