Skip to content

Extend the agent-usability baseline to the live loop, mixed batches, elided threads, packages and shared sources - #1332

Merged
max-sixty merged 5 commits into
mainfrom
agent-afe5faa6c028db603
Sep 27, 2026
Merged

max-sixty merged 5 commits into
mainfrom
agent-afe5faa6c028db603

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Adds the five cases the agent-usability baseline left uncovered and records what they found. Three are live: the child serves the page from its own session, and the harness plays the user by posting moves through the served page between turns. handoff covers the first handoff's status and the delivery-receipt loop across two rounds. mixed sends a comment, an Ask's pick, a reaction, a card move and its undo, and a page error in one delivery. elided asks a question whose premise is in the middle of a closed 24-message thread, the part the delivery leaves out. Two are headless: package asks for a widget that only the page's own package supplies, and shared-source covers two lf-worktree widgets on one source that also holds a look-alike record.

Results, three scored runs per case at 64186bc ($5.71 scored, $8.76 with pilots): no run gave a wrong answer, wrote to the wrong place or lost user state. Three process checks failed. One mixed-batch run claimed its work page-wide instead of on the comment's thread. On shared-source, reading agents opened the renderer to confirm the id join. On package, agents read the widget source to describe what it draws. A paired A/B ($7.11) tried a conversation-loop.md clause and a sharper lf-worktree description. Neither changed the result, so both were reverted and no shipped guidance or interface changes. notes/agent-usability-evals.md, "Second slice", has the detail. The elided condition never bound: every agent picking the page up read the thread first. The TODO.md bullet now leaves the plain-HTML comparison and #20.

Owner: the eval tooling's live-session mechanism now lives in one place. Before, eval_claude_delivery.py held the only copy of the page client, the stream readers and the held-open claude -p lifecycle, and the new cases needed all three. scripts/eval_harness.py now owns them as LiveChild (child, deadline, stdin close, cleanup), PageClient.post(event), waits_started (now also matches a launcher held in a variable), hook_delivered, tool_calls and commands. eval_claude_delivery.py is cut over, and its copies of the page client, URL pattern, stream readers and Popen/deadline/kill code are deleted. The two drivers keep their own read loops, because they schedule posts differently (mid-turn with sampling, against once per ended turn). In the usability harness, admit and acknowledge share one arm_python runner, and fixture builders dispatch through one table.

Checks: ruff over the changed scripts; eval_claude_delivery.py imports cleanly after the cut-over, but its paid run was not repeated. A smoke run of handoff exercised LiveChild after the refactor.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint job is red because Prettier rewrites two new fixture lines. The inline suggestions use its exact output; both formatting changes are needed for the check to pass.

@max-sixty
max-sixty merged commit 0def7a8 into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-afe5faa6c028db603 branch September 27, 2026 19:19
max-sixty added a commit that referenced this pull request Sep 28, 2026
…ng-leaf (#1371)

`evals/README.md` held the suite's method and a Record table of every
A/B. The table grew to two thirds of the file in three days and repeated
each fix's commit message. Nothing said when a case measured during a
fix should stay, so cases that passed on both arms stayed too: 6 of the
15 have never told two wordings apart. This change sets the rule for new
cases and records where each old one stands; removing the six is a
separate decision.

- **Method** moves to `/developing-leaf`, "Score a guidance change",
where the repo keeps its workflows, trimmed to what an agent running or
adding a case needs. It runs A/Bs through `leaf-dev guidance-ab`
(#1366), which no longer prints a Record row.
- **Rule for adding a case:** it pins a clause no case pins, and it
separated two arms, with the base failing most runs and the change
passing every run, or a blunter draft failing a guardrail the change
passes. That is usually one case per problem, rarely more than two. A
case both arms passed goes in the commit message instead.
- **History:** each case's Record history is now a comment at the top of
its `case.yaml`: where it came from, and base against change at named
commits. The rows for A/Bs that kept no case live in their commit
messages (#1311, #1332). `tags` stay the suite's categories.
- `AGENTS.md`, `dev/AGENTS.md` and `leaf_dev/harness.py` point at the
new section.

#1363's rows are in its three cases' comments. Two unopened branches
that add rows will conflict on the deleted file; their rows move the
same way.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

2 participants