Cap tool results by character and gate stale file writes #56

Merged
weichen merged 2 commits from feature/context-engineering into main 2026-10-03 16:25:50 +00:00
Owner

Why: Byte truncation split UTF-8, subagent results could return unbounded text, and a write could overwrite a file that changed after it was read.

Evidence: cutRunes keeps a two-character Chinese prefix. Tool selection honors -name. Checklist reminders go through the reminder bus. deps/agent-squad is 4d53450.

Impact: Tool output limits count characters. A subagent result over 32000 characters is stored as an artifact. fs_write_file rejects an existing file that was not read in this run.

Refs: feature/context-engineering

Why: Byte truncation split UTF-8, subagent results could return unbounded text, and a write could overwrite a file that changed after it was read. Evidence: cutRunes keeps a two-character Chinese prefix. Tool selection honors -name. Checklist reminders go through the reminder bus. deps/agent-squad is 4d53450. Impact: Tool output limits count characters. A subagent result over 32000 characters is stored as an artifact. fs_write_file rejects an existing file that was not read in this run. Refs: feature/context-engineering
weichen added 2 commits 2026-10-03 16:24:55 +00:00
Why: Byte truncation split UTF-8, subagent results could return unbounded text, and a write could overwrite a file that changed after it was read.
Evidence: cutRunes keeps a two-character Chinese prefix; tool selection honors -name; checklist reminders go through the reminder bus.
Impact: Tool output limits count characters. A subagent result over 32000 characters is stored as an artifact and the parent sees the path. fs_write_file rejects an existing file that was not read in this run.
Refs: feature/context-engineering
Co-authored-by: Cursor <cursoragent@cursor.com>
Pin agent-squad to the context-engineering native
ci / vet-and-test (pull_request) Successful in 38s
b2dc9a7e0b
Why: The pin check requires backend's squad gitlink to match the Dev pin, and that squad commit carries the native context-engineering loop.
Evidence: deps/agent-squad is 4d53450, whose agent-native gitlink is 6fd1d44.
Impact: No backend behavior change beyond the shared native loop.
Refs: feature/context-engineering
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit 40728ab671 into main 2026-10-03 16:25:50 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#56