feat: atomic extract-and-connect + stale PR monitor + response audit #4

Merged
m3taversal merged 70 commits from epimetheus/atomic-connect-and-stale-monitor into main 2026-03-30 11:03:35 +00:00
Showing only changes of commit e921eda0a0 - Show all commits

View file

@ -202,9 +202,10 @@ def _git_commit_archive(archive_path, filename: str):
def _load_learnings() -> str:
"""Load Rio's learnings file for prompt injection."""
"""Load Rio's learnings file for prompt injection. Sanitized (Ganymede: prompt injection risk)."""
try:
return Path(LEARNINGS_FILE).read_text()[:3000] # Cap at 3K chars for prompt budget
raw = Path(LEARNINGS_FILE).read_text()[:3000]
return sanitize_message(raw) # Same sanitization as user messages
except Exception:
return ""