Skip to content

feat(context): ledger receipts name the invocation (call arg hint) - #34

Merged
ayman3000 merged 1 commit into
mainfrom
feat/receipt-arg-hint
Jul 28, 2026
Merged

feat(context): ledger receipts name the invocation (call arg hint)#34
ayman3000 merged 1 commit into
mainfrom
feat/receipt-arg-hint

Conversation

@ayman3000

Copy link
Copy Markdown
Owner

Follow-up to the receipt-conclusion fix (#32). A compacted receipt said that a run_shell failed but not which command. Now it includes a short hint of the call's key argument, so the ledger reads:

run_shell(python3 build.py) → ERROR: … UnicodeEncodeError … [artifact-…]

ContextManager pairs each tool result with its originating AgentToolCall (by id) and extracts a salient param (command/path/query/…, truncated). Together with the head+tail conclusion, a compacted tool exchange now tells the agent both what ran and how it turned out.

Regression test: a compacted run_shell receipt names the command. All 129 tests pass.

A compacted ContextSift receipt now includes a short hint of the call's key
argument (shell command, file path, query, ...), so the ledger reads
`run_shell(python3 build.py) -> ERROR: ...` instead of just
`run_shell -> ERROR: ...`. With the conclusion (head+tail) change, a compacted
tool exchange now conveys BOTH what ran and how it turned out.

ContextManager pairs each tool result with its originating AgentToolCall (by
id) to derive the hint. Regression coverage added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@ayman3000
ayman3000 merged commit 4d2a585 into main Jul 28, 2026
1 check passed
@ayman3000
ayman3000 deleted the feat/receipt-arg-hint branch July 28, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant