Skip to content

fix: make progress cards representation-first - #125613

Merged
steipete merged 1 commit into
mainfrom
steipete/progress-card-description-ab
Aug 18, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/progress-card-description-ab

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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-luna through the Codex runtime. Unprompted adoption was unchanged: neutral tasks that did not name the tool still made zero progress_card calls. 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):

Completed 1,000,000 reversals of a 25-character string. Winner: reduce at 167.095 ms, narrowly beating the for-loop at 169.642 ms; split/reverse/join took 393.224 ms.

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):

**Winner: for-loop** — 174.19 ms

| Method | Time |
|---|---:|
| for-loop | 174.19 ms |
| reduce | 211.13 ms |
| split/reverse/join | 511.32 ms |

Node v26.7.0 · 1,000,000 iterations

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_card made 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.
  • Exact-description assertion updated as the wording ratchet.
  • 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 embed progress_card's description.

AI-assisted; the change and evidence were reviewed by the author.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 18, 2026 05:00
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 1:07 AM ET / 05:07 UTC.

ClawSweeper review

What this changes

Changes the progress-card tool and docs to steer agents toward tables for comparisons, bars for long operations, and checklists only for sequential work.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: de8a4ad605d9a043d47750a6cbfc8a943d6423f8
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-neutral prompt and documentation change with direct after-fix behavior evidence and no actionable defect found.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.
Evidence reviewed 7 items Shared model-visible owner: Current main defines the complete progress_card description in the shared tool factory; the PR changes only that model-visible guidance, leaving its parameters and execution path intact.
Runtime entry point: The normal OpenClaw tool assembler constructs progress_card through the shared factory when policy permits it.
Codex harness boundary: The bundled Codex extension loads OpenClaw’s agent-harness factory and binds its resulting tool surface, so this is an OpenClaw tool-description change rather than a change to sibling Codex Code Mode.
Findings None None.
Security None None.

How this fits together

Agent 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]
Loading

Decision needed

Question Recommendation
Should the representation-first wording become the default behavioral policy for progress cards across OpenClaw tool surfaces? Adopt representation-first guidance: Merge the sampled, documented instruction so comparison and metric results favor compact Markdown representations while sequential work retains a checklist.

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

  • Resolve merge risk (P1) - This changes default model guidance across all eligible progress-card surfaces; the supplied A/B evidence is strong for the sampled comparison and sequential workflow but cannot establish every model/task response.
  • Complete next step (P2) - This maintainer-labeled, model-default change needs human product acceptance rather than an automated repair.
Agent review details

Security

None.

PR surface

Source 0, Tests 0, Docs 0. Total 0 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 1 1 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 3 3 0

Review metrics

Metric Value Why it matters
Production versus test delta runtime +1/-1, docs +1/-1, tests +1/-1 The patch is net-neutral and keeps the user-facing documentation and byte-level prompt contract synchronized.

Merge-risk options

Maintainer options:

  1. Accept the scoped prompt-behavior change (recommended)
    Merge after exact-head checks if maintainers accept the documented A/B evidence as sufficient for this default presentation-policy adjustment.
  2. Pause for broader behavior sampling
    Hold the PR if maintainers require more model or task-family evidence before changing the shared default guidance.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a small, evidence-backed presentation-quality refinement without a demonstrated regression or availability impact.
  • add merge-risk: 🚨 other: The shared model-visible description intentionally changes default agent presentation behavior in ways ordinary static checks cannot fully evaluate.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.

Label justifications:

  • P3: This is a small, evidence-backed presentation-quality refinement without a demonstrated regression or availability impact.
  • merge-risk: 🚨 other: The shared model-visible description intentionally changes default agent presentation behavior in ways ordinary static checks cannot fully evaluate.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes verbatim before/after output from a live isolated Gateway run, showing the after card’s table representation and retained sequential plan.

Evidence

What I checked:

  • Shared model-visible owner: Current main defines the complete progress_card description in the shared tool factory; the PR changes only that model-visible guidance, leaving its parameters and execution path intact. (src/agents/tools/progress-card-tool.ts:35, e6a427c493da)
  • Runtime entry point: The normal OpenClaw tool assembler constructs progress_card through the shared factory when policy permits it. (src/agents/openclaw-tools.ts:462, e6a427c493da)
  • Codex harness boundary: The bundled Codex extension loads OpenClaw’s agent-harness factory and binds its resulting tool surface, so this is an OpenClaw tool-description change rather than a change to sibling Codex Code Mode. (extensions/codex/src/app-server/dynamic-tool-build.ts:244, e6a427c493da)
  • Existing representation contract: Current docs already support small Markdown tables and progress bars, while input normalization stores Markdown and steps independently; the PR supplies selection guidance rather than adding a new card format. Public docs: docs/tools/progress-card.md. (docs/tools/progress-card.md:40, e6a427c493da)
  • History and likely owner: Blame attributes the current description to the commit that introduced the progress-card tool, authored by Peter Steinberger. (src/agents/tools/progress-card-tool.ts:35, b485f0c6270c)
  • After-fix behavior proof: The PR body supplies verbatim before/after isolated-Gateway card output: the after case presents benchmark results as Markdown table data while retaining a sequential plan. (de8a4ad605d9)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the original progress-card description to Peter, and the same history shows the current refinement commit. (role: introduced current behavior and recent area contributor; confidence: high; commits: b485f0c6270c, de8a4ad605d9; files: src/agents/tools/progress-card-tool.ts, docs/tools/progress-card.md)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete steipete self-assigned this Aug 18, 2026
@steipete
steipete merged commit 5d098cd into main Aug 18, 2026
289 of 291 checks passed
@steipete
steipete deleted the steipete/progress-card-description-ab branch August 18, 2026 05:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant