Skip to content

An act's arguments render whole or plainly elided, never cut (card d624a9a1) - #5280

Merged
joelteply merged 2 commits into
canaryfrom
d624a9a1/act-args-never-cut
Oct 22, 2026
Merged

joelteply merged 2 commits into
canaryfrom
d624a9a1/act-args-never-cut

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

ledger.rs::archive_head cut each call's JSON arguments at 48 chars. On IntelMac
(2026-10-22) resident cf6b4df6 (qwen2.5-coder-1.5b) read
'code/read({"file_path":"/Users/joel/.continuum/citizens/pe)' in her step
list, emitted code/read('/Users/joel/.continuum/citizens/pe/ipc/mod.rs')
three times (refused: escapes workspace), then text imitating a tool
response. A cut value looks real, so a copying model reproduces it: goal 7's
repeat. #5273 removed the steps ledger, but archive_head still writes the
act's head, which the [actions] stream shows once the result ages out.

call_args renders every value whole, except that a string longer than the
budgeted trail_head_chars, or spanning lines (a write body), becomes an
explicit '' marker. One head cut fewer. Test:
an_acts_arguments_are_whole_or_plainly_elided_never_cut. Not compiled here
(IntelMac serving; no coordinated stop for a two-file change); CI is the
compile.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…24a9a1)

ledger.rs::archive_head cut each call's JSON arguments at 48 chars. On IntelMac
(2026-10-22) resident cf6b4df6 (qwen2.5-coder-1.5b) read
'code/read({"file_path":"/Users/joel/.continuum/citizens/pe)' in her step
list, emitted code/read('/Users/joel/.continuum/citizens/pe/ipc/mod.rs')
three times (refused: escapes workspace), then text imitating a tool
response. A cut value looks real, so a copying model reproduces it: goal 7's
repeat. #5273 removed the steps ledger, but archive_head still writes the
act's head, which the [actions] stream shows once the result ages out.

call_args renders every value whole, except that a string longer than the
budgeted trail_head_chars, or spanning lines (a write body), becomes an
explicit '<N chars>' marker. One head cut fewer. Test:
an_acts_arguments_are_whole_or_plainly_elided_never_cut. Not compiled here
(IntelMac serving; no coordinated stop for a two-file change); CI is the
compile.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS (Fable) at exact head a3ad041, conditional on its CI, which was all pending when I read it. It wasn't compiled locally, so CI is the compile.

Claim verified (goal 7, no plausible prefix): call_args renders each JSON value whole, or as <N chars> when it is a string over the budget or spans lines, recursing through arrays and objects. A value she reads is therefore either what she sent or plainly not it. The budget is trail_head_chars (context_budget.rs:322, ~800 per the test at :649), so a real path like the 1.5B's .../citizens/pe... renders whole and only bodies become markers. The test pins all three cases: whole within budget, a multi-line body as a marker, and a tight budget leaving no prefix of the path. pub(super) is reachable from working_memory::tests.

Non-blocking:

  1. The line's total size is now bounded per value, not overall. Many short values or a long numeric array can make an archived head several KB, where it was 48 chars per call. The one allocation prices it, but a per-line cap that falls back to the marker would keep heads uniform. Card it if you agree.
  2. ledger.rs:348 still does a.chars().take(budget.trail_head_chars()) on result text: the same prefix-cut shape, applied to results rather than args. Worth the same whole-or-marker treatment, or a reason it's different.

source-hygiene's no_real_user_home_path_anywhere_in_the_tree failed on the
test fixture and the doc example quoting /Users/joel/...; both now use
/home/resident/. No logic change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS (Fable) re-confirmed at exact head 3d2abf9, conditional on CI (2 pending when read). Delta from a3ad041 verified with git diff a3ad041f9 3d2abf900: 3 lines, a doc example and the test fixture path /Users/joel/ → /home/resident/. The no-prefix assertion keeps its meaning. No logic changed.

@joelteply
joelteply merged commit 5e01cca into canary Oct 22, 2026
9 checks passed
@joelteply
joelteply deleted the d624a9a1/act-args-never-cut branch October 22, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant