Repository navigation
fix: make progress cards representation-first - #125613
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 1:07 AM ET / 05:07 UTC. ClawSweeper reviewWhat this changesChanges the progress-card tool and docs to steer agents toward tables for comparisons, bars for long operations, and checklists only for sequential work. Merge readinessKeep open for maintainer product review. The shared tool description reaches default and Codex-harness tool construction, and the submitted live A/B evidence supports the intended representation change; no correctness or security defect was found. Priority: P3 Review scores
Verification
How this fits togetherAgent tool assembly exposes progress_card to eligible sessions, where it writes a durable Markdown note and optional step plan through the Gateway. The stored card is then rendered as the session’s at-a-glance status in OpenClaw surfaces. flowchart LR
A[Agent task] --> B[Tool assembly]
B --> C[Progress-card guidance]
C --> D[Gateway card update]
D --> E[Durable session card]
E --> F[OpenClaw status surfaces]
Decision needed
Why: This is a model-visible default that intentionally changes how agents choose status-card representations; tests can lock the text but cannot make that product choice. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0, Docs 0. Total 0 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept one canonical representation-first instruction in the shared tool factory, keep the public guidance and exact prompt contract aligned, and merge after normal exact-head gates pass. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a prompt-guidance improvement rather than a deterministic broken API report; the PR includes before/after live Gateway output for the intended behavior. Is this the best way to solve the issue? Yes. The guidance belongs in the shared progress_card definition because both normal assembly and the bundled Codex harness consume that factory; changing persistence or rendering would not address representation choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e6a427c493da. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Models tend to default progress cards to checklist-shaped status, even when the result is better represented as a comparison table or another compact visual. In the live baseline, the model put benchmark timings into prose in the card while formatting those same results as a table in its final chat reply.
Why This Change Was Made
The tool description is the model-visible surface that teaches representation choice. This change makes that guidance representation-first: use tables for comparisons or metrics, progress bars for one long operation, and checklists only for genuinely sequential work; omit a checklist when another representation says it better. The public docs now state the same selection rule.
The wording was selected from an A/B run on August 17, 2026, using a live isolated Gateway and
gpt-5.6-lunathrough the Codex runtime. Unprompted adoption was unchanged: neutral tasks that did not name the tool still made zeroprogress_cardcalls. Changing that system-prompt behavior is explicitly out of scope here.User Impact
When agents use
progress_card, comparison-heavy and metric-heavy work is more likely to produce a richer, glanceable card without duplicating facts between Markdown and the process checklist. Tool inputs, persistence, rendering, limits, clearing behavior, and availability are unchanged.Evidence
Live A/B cards
The same benchmark prompt was run before and after the description change.
Before — old description (
markdown, verbatim):Before — old description (
plan, verbatim):[ { "step": "Create benchmark script", "status": "completed" }, { "step": "Run 1,000,000-iteration benchmark", "status": "completed" }, { "step": "Compare timings and report winner", "status": "completed" } ]The final chat reply for that same run rendered the three timings as a table; the card did not.
After — representation-first description (
markdown, verbatim):After — representation-first description (
plan, verbatim):[ { "step": "Create benchmark script", "status": "completed" }, { "step": "Run 1,000,000-iteration benchmark", "status": "completed" }, { "step": "Compare timings and report winner", "status": "completed" } ]The checklist remained useful for the process, while the result facts appeared once in the table instead of being duplicated.
Two neutral comparison tasks that did not name
progress_cardmade zero calls and created no card, both before and after the wording change.Gates
node scripts/run-vitest.mjs src/agents/tools/progress-card-tool.test.ts src/agents/openclaw-tools.registration.test.ts— 2 shards passed, 56 tests passed.pnpm prompt:snapshots:check— current, 7 files.pnpm tool-display:check— up to date; this artifact contains display metadata, not descriptions.node_modules/.bin/oxfmt --check src/agents/tools/progress-card-tool.ts src/agents/tools/progress-card-tool.test.ts docs/tools/progress-card.md— clean.pnpm docs:check-mdx— passed, 776 files.git diff --check— clean..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean, no accepted/actionable findings.Prompt snapshots were regenerated with
pnpm prompt:snapshots:gen; none changed because these fixtures do not embedprogress_card's description.AI-assisted; the change and evidence were reviewed by the author.