Skip to content

improve: verify Workshop review outcomes through the real runtime - #132707

Merged
steipete merged 1 commit into
mainfrom
codex/frv-workshop-owner-contract
Aug 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-workshop-owner-contract

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Related: #129973

What Problem This Solves

Release verification currently relies on a live model choosing to create a Workshop proposal, while the review prompt also permits an explicit NO_REPLY. The existing deterministic owner tests mock the embedded runner, and the catalog-policy tests use a synthetic Workshop tool. They do not prove that a provider request can pass through the real review, catalog, and proposal service to a recorded outcome.

Why This Change Was Made

Add four controlled-provider integration cases through the real Responses HTTP transport and Workshop owners: a successful proposal, explicit abstention, rejected tool input, and provider failure. The proposal case requires exactly one pending draft, matching persisted content and run progress, a returned tool receipt, and the recorded proposed outcome. Abstention and rejection must leave no proposal; provider failure must throw and record failed.

The integration shares the existing canonical transcript fixtures with the live test, and shares Responses SSE encoding with the transcript-cursor E2E test. It uses the existing loopback server lifecycle helper. No runner, catalog, Workshop tool, or proposal service is replaced.

User Impact

No runtime or release-acceptance behavior changes. All existing live assertions, prompts, model selection, and mutation limits remain unchanged. This supplies the missing deterministic owner coverage requested by #129973; the live criterion is proposed separately in #132726, and the finer durable no-mutation policy in #129973 remains open.

Evidence

  • Blacksmith Testbox tbx_01m1733f5kagznqj90zvqfz3ma, frozen d9fe780239a2cb7158aad437112156605e8d375c plus the test-only patch: all four controlled integration cases pass. The request assertions verify all six historical tool outputs and the real exec, read, and skill_workshop catalog entries.
  • The unchanged live fixture preflight passes all four tests. The transcript-cursor E2E passes with the extracted SSE helper.
  • The first controlled run caught an overly specific test assertion: provider errors are intentionally sanitized. The corrected case checks the existing sanitized rejection contract and the recorded failure.
  • Core and root test typechecks, the original full changed-file gate, and Codex review pass.
  • Mechanical refresh onto f495a539f90 includes the independent UI timing-test repair from chore(lint): upgrade oxlint to 1.79.0 #132682. The five Workshop/SSE files are byte-identical to the original head (git range-diff is equal); 41 Workshop tests and all 107 Markdown tests pass, including the deterministic scan-count assertion. Fresh Codex review is clean. The refreshed full changed-file gate passed. Exact-head CI is running on ee82d9f27b5ffdd361671beef477f8ca2335b56a.
  • The latest ClawSweeper review reports no actionable correctness or security finding. Its unavailable current-main/protocol inspection was a review-host DNS limitation: the maintainer source audit and real HTTP/Testbox evidence cover those boundaries; no code workaround is required.

Production delta: zero. Changes are tests and shared test support; no schema, configuration, dependency, or persistent-state changes.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: L maintainer Maintainer-authored PR labels Aug 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:14 PM ET / 18:14 UTC.

ClawSweeper review

What this changes

The branch adds deterministic controlled-provider end-to-end tests for Workshop experience review and extracts shared OpenAI Responses streaming test helpers.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking findings: the protected maintainer PR adds controlled-provider coverage through the existing Workshop review owner, tool catalog, proposal service, and outcome recorder, and remains open for normal exact-head CI and maintainer review.

Priority: P2
Reviewed head: ee82d9f27b5ffdd361671beef477f8ca2335b56a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused deterministic owner-boundary test addition with no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored, test-only PR changes no user-visible runtime behavior; its controlled-provider E2E is verification coverage, not a claim of changed production behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored, test-only PR changes no user-visible runtime behavior; its controlled-provider E2E is verification coverage, not a claim of changed production behavior.
Evidence reviewed 4 items Introduced owner-boundary coverage: The added E2E invokes the real review owner through a loopback Responses server and checks proposed, abstained, rejected-tool, and provider-failure outcomes without replacing the runner, tool catalog, or proposal service.
Production owner and durable state: The existing owner locks the foreground provider/model, permits only the Workshop tool, tracks the proposal mutation budget, and records failed, nothing, proposed, or applied outcomes through the existing state owner.
Responses stream contract alignment: The extracted test helper emits the Responses event types consumed by OpenClaw's owned stream transport, including function-call completion and terminal response events.
Findings None None.
Security None None.

How this fits together

Workshop experience review replays a detached transcript through the embedded agent runtime and Skill Workshop tool, then records a proposal or review outcome. The new tests use controlled Responses events to verify that existing owner boundary.

flowchart LR
  A[Detached transcript] --> B[Workshop review]
  B --> C[Embedded agent runtime]
  C --> D[Skill Workshop tool]
  D --> E[Proposal service]
  B --> F[Review outcome state]
  G[Controlled Responses stream] --> C
Loading

Before merge

  • Complete next step (P2) - This remains a focused deterministic coverage change for the open canonical Workshop issue; no repair patch is indicated.
Agent review details

Security

None.

PR surface

Source +273, Tests -12. Total +261 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 273 0 +273
Tests 4 290 302 -12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 563 302 +261

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests and test support +563/-302 The introduced delta changes deterministic verification and shared test support only, without expanding runtime behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #129973
Summary: This candidate implements the deterministic integration-contract portion of the canonical Workshop issue; the durable outcome-policy question remains open.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Land the focused owner-boundary integration coverage after normal exact-head checks and maintainer review; keep the distinct live acceptance-policy work in PR 132726 and durable-policy work in issue 129973 separate.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR supplies deterministic coverage rather than reporting a new user-facing failure, and its loopback scenarios directly exercise the relevant owner boundary.

Is this the best way to solve the issue?

Yes. A controlled loopback provider is the narrowest deterministic complement to live model evaluation; replacing the runner, tool catalog, or proposal service would test a different boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8e4eb78fa20b.

Labels

Label justifications:

  • P2: This is a bounded verification improvement for an existing Workshop reliability concern, without a demonstrated production regression from the branch.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored, test-only PR changes no user-visible runtime behavior; its controlled-provider E2E is verification coverage, not a claim of changed production behavior.

Evidence

What I checked:

Likely related people:

  • steipete: Current history includes the original feature, recent live-validation repair, and the state-owner lines attributed to Peter Steinberger. (role: feature owner and recent area contributor; confidence: high; commits: 8fd49c84aa2d, 89c004fc5ff1, c3ce6873b8a4; files: src/skills/workshop/experience-review.ts, src/skills/workshop/collection-review-state.ts)
  • Ayaan Zaidi: History shows the detached-review, foreground-context, and lifecycle refactors in this owner path. (role: major experience-review refactor contributor; confidence: high; commits: b0c27e2d8f57, a901d3318474, f636bf237629; files: src/skills/workshop/experience-review.ts)
  • Josh Lehman: History includes the detached experience-review generation-scope repair. (role: adjacent lifecycle contributor; confidence: medium; commits: 9cfb4ff956c9; files: src/skills/workshop/experience-review.ts)

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-29T16:21:10.750Z sha ce71061 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/frv-workshop-owner-contract branch from ce71061 to ee82d9f Compare August 29, 2026 18:04
@steipete
steipete merged commit 8cd61f0 into main Aug 29, 2026
179 checks passed
@steipete
steipete deleted the codex/frv-workshop-owner-contract branch August 29, 2026 19:57
@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

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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