Files
aigc-home/calliope-backend
Justo Stoll dfb82264bf get_workspace sections + teaching truncation note + assets-role editors
On a large project (43 scenes with full action paragraphs) get_workspace
serializes past the 4000-char tool-result cap, so the tail-chop landed
mid-beats and characters/locations/items were ALWAYS below the waterline —
observed live: an assets sub-agent re-called get_workspace in a loop, blind
to the sections it needed, with no editor tools in its allowlist anyway.

- get_workspace gains sections=[beats|characters|locations|items|scenes];
  project + stats always included; omitted sections listed; invalid sections
  error names the valid set; no-arg call unchanged (back-compat).
- All three truncation sites share TRUNCATE_NOTE, which names the way out
  (sections=[...], scoped tools) instead of a bare '[truncated]'.
- The assets role gains update_character / update_location / update_item
  (deletes deliberately excluded).

(cherry picked from commit 9460b6c2e398bad5403ff73e4e8e7d2a96478821)
2026-08-26 21:24:57 +02:00
..