This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg
Levi Neely 75f11a7dc9 enforce 128KB tool result ceiling unconditionally
The tool result truncation had two bypasses:

1. Error results were exempt (!isErr condition) — a command returning
   output in its error message could flood the context with megabytes
   of untruncated data.

2. The streaming callback emitted chunks to the event handler (and
   thus D-Bus signals) with no size check, flooding the bus even
   when the final stored result would be truncated.

Fix:
- Remove the configurable ToolResultMaxBytes field; use the constant
  defaultToolResultMaxBytes (128KB) unconditionally for all results
  regardless of success/error status.
- Cap the streaming callback at 128KB so chunks stop being emitted
  once the ceiling is reached.
- Cap output embedded in execute server error messages to 8KB as
  defense in depth.
2026-07-27 13:02:45 +02:00
..
agent enforce 128KB tool result ceiling unconditionally 2026-07-27 13:02:45 +02:00
backend backend: fail fast if OLLIE_OPENAI_KEY is missing for openai/openrouter 2026-07-21 15:07:47 +02:00
config agent: layered preamble scaffolding 2026-07-21 12:53:51 +02:00
elevate elevate: remove SSH agent proxy (unnecessary with integrated broker) 2026-07-27 11:06:21 +02:00
env agent: remove $OLLIE mount dependency from core 2026-06-16 12:30:36 +02:00
log agent: audit logging via OLLIE_AUDIT_LOG=debug 2026-04-27 18:21:13 +02:00
paths expand ~ in cwd across agent core, hooks, and execute server 2026-04-24 20:10:42 +02:00
remote streaming: emit partial tool output via context callback 2026-07-19 21:06:13 +02:00
skills pkg/config, pkg/skills: accept io.Reader, remove filesystem access 2026-04-21 13:51:46 +02:00
tools enforce 128KB tool result ceiling unconditionally 2026-07-27 13:02:45 +02:00