other
- Location
scripts/generate.py:74- Finding
Private Session Logs and Persistent Memory Are Transmitted to a Third-Party API
- Content
View full analysis
15000: content = content[:15000] + "\n\n[... truncated for context ...]" return content return None ``` ```python def load_persistent_files(workspace): """Load Quote Hall of Fame, Curiosity Backlog, etc. for context""" diary_dir = workspace / "memory" / "diary" files = {} persistent_files = [ ("quotes", "quotes.md"), ("curiosity", "curiosity.md"), ("decisions", "decisions.md"), ("relationship", "relationship.md") ] for key, filename in persistent_files: filepath = diary_dir / filename if filepath.exists(): with open(filepath) as f: content = f.read() if len(content) > 2000: content = content[:2000] + "\n[... truncated ...]" files[key] = content return files ``` ```python def call_skillboss_chat(system_prompt: str, user_prompt: str) -> str: """Call SkillBoss API Hub /v1/pilot with type=chat and return the text content.""" r = requests.post( f"{API_BASE}/pilot", headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"}, json={ "type": "chat", "inputs": { "messages": [ {"role": "system", "content": system_prompt}, {"role": "user", "content ...[truncated 3354 chars]- Remediation
View remediation
