Skip to content

test(workshop): isolate marker casing fixture identities - #139554

Merged
steipete merged 1 commit into
mainfrom
codex/test-audit-workshop-isolation
Sep 6, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-audit-workshop-isolation

Conversation

@steipete

@steipete steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Related: #139428

What Problem This Solves

The Workshop evaluation suite fails its second marker-casing case on case-insensitive filesystems because both rows create the same agent-owned skill. Distinct workspace directories no longer isolate that target.

Why This Change Was Made

Give each row a distinct normalized skill identity and use it consistently for creation, frontmatter, and update. Preserve both marker filenames, rendered test names, rename steps, missing-canonical-marker behavior, and bundle assertions.

User Impact

No production behavior changes. Both casing scenarios reach their intended assertions without colliding with each other. This adds four test lines and repairs one blocker found in the full-suite profiling run.

Evidence

Original order reproduced one passing row and one failure at the existing-target guard. After the fixture repair, all 71 tests across evaluation, service, and lifecycle-hook suites pass. The full changed gate, formatting, diff check, deslop, and independent P2 review pass. No runtime speedup is claimed.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 6, 2026
@steipete
steipete marked this pull request as ready for review September 6, 2026 00:28
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 8:33 PM ET / September 6, 2026, 00:33 UTC.

ClawSweeper review

What this changes

Give Workshop’s two marker-filename casing tests distinct skill identities so their shared agent storage does not cause a fixture collision.

Merge readiness

✅ Ready for maintainer review

The fixture repair remains necessary on inspected main and preserves both filesystem casing scenarios without weakening assertions. No actionable patch defect was found; the protected maintainer contribution should remain open for normal landing.

Priority: P3
Reviewed head: 03a201930bc9ed3f902d33d29878cb7e5d10984d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with a source-supported cause, preserved assertions, and reported before/after validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored change modifies test fixtures only; the body reports original-order failure and 71 passing tests after repair, and no production runtime proof gate applies.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored change modifies test fixtures only; the body reports original-order failure and 71 passing tests after repair, and no production runtime proof gate applies.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff changes only fixture identities and the parameterized test title; rename steps, missing-marker handling, and bundle assertions remain intact. The read-only diff check passed.
Shared storage explains the collision: Workshop roots depend on the agent, not the session workspace. The suite creates one state directory before all tests and cleans workspace directories between rows, leaving agent-owned skills present.
Creation guard and retained evaluation contract: Creation rejects an existing canonical marker. On case-insensitive filesystems, the first row's renamed marker still resolves at that path, preventing the second row from reaching its assertions. The bundle builder separately preserves actual marker casing only when the recorded target resolves.
Findings None None.
Security None None.

How this fits together

Skill Workshop creates and evaluates proposed changes to agent-owned skills. These tests exercise how existing skill filenames become baseline and candidate evaluation bundles.

flowchart LR
  A[Casing test rows] --> B[Distinct skill identities]
  B --> C[Shared agent Workshop storage]
  C --> D[Rename skill marker]
  D --> E[Build evaluation bundles]
  E --> F[Verify casing or missing marker]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4. Total +4 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 10 6 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 10 6 +4

Review metrics

None.

Technical review

Best possible solution:

Keep the shared suite state and distinct per-row skill identities while retaining both platform-dependent marker assertions.

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

Yes: running the original rows in order on a case-insensitive filesystem reuses the same agent-owned target and reaches the existing-skill guard. Source establishes this path; the author reports reproducing it, but this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes: distinct normalized identities repair fixture ownership at creation while preserving the production guard and all existing casing assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 652738ca86cc.

Labels

Label changes:

  • add P3: This is a bounded test-fixture repair with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored change modifies test fixtures only; the body reports original-order failure and 71 passing tests after repair, and no production runtime proof gate applies.

Label justifications:

  • P3: This is a bounded test-fixture repair with no production behavior change.
  • 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: The maintainer-authored change modifies test fixtures only; the body reports original-order failure and 71 passing tests after repair, and no production runtime proof gate applies.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff changes only fixture identities and the parameterized test title; rename steps, missing-marker handling, and bundle assertions remain intact. The read-only diff check passed. (src/skills/workshop/service-evaluation.test.ts:347, 03a201930bc9)
  • Shared storage explains the collision: Workshop roots depend on the agent, not the session workspace. The suite creates one state directory before all tests and cleans workspace directories between rows, leaving agent-owned skills present. (src/skills/workshop/skills-root.ts:10, 03a201930bc9)
  • Creation guard and retained evaluation contract: Creation rejects an existing canonical marker. On case-insensitive filesystems, the first row's renamed marker still resolves at that path, preventing the second row from reaching its assertions. The bundle builder separately preserves actual marker casing only when the recorded target resolves. (src/skills/workshop/service-propose.ts:102, 03a201930bc9)
  • Current main still needs the repair: Inspected main still uses existing-marker-case for both rows. No replacement fixing PR is established by the supplied context. Inspection of the latest release's test blob failed because its object was unavailable and GitHub DNS resolution failed; release inclusion is unverified. (src/skills/workshop/service-evaluation.test.ts:347, 652738ca86cc)
  • Documented ownership boundary: The documentation explicitly places Workshop skills under the active agent directory and separates Workshop storage from the session workspace. Public docs: docs/tools/skill-workshop.md. (docs/tools/skill-workshop.md:17, 03a201930bc9)
  • Area history: Current-main history identifies Ayaan Zaidi's agent-owned Workshop change and Peter Steinberger's recent evaluation-directory and revision repairs as relevant routing context. (src/skills/workshop/service-evaluation.test.ts, a4514a0aff9d)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 merged commit e284dad into main Sep 6, 2026
166 checks passed
@steipete
steipete deleted the codex/test-audit-workshop-isolation branch September 6, 2026 00:40
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 6, 2026
* origin/main: (302 commits)
  test(gateway): preserve held-work close failures (#139593)
  refactor(exec): share package argument scanning (#139560)
  fix(audit): preserve sequence range validation before numeric decoding (#139587)
  fix(transcripts): retain capture ownership through failed cleanup (#139572)
  refactor(models): share selector reference traversal (#139571)
  perf(agents): classify allowlists without intermediate sets (#138392)
  chore(release): update appcast for 2026.9.2 (#139575)
  fix(ci): synchronize cloud retries and board widget input (#139506)
  fix(plugins): explain SDK incompatibilities after core updates (#139458)
  fix(voice-call): retain installed WebSocket behavior under Bun (#139567)
  test(text): consolidate literal sanitizer cases (#139579)
  test(gateway): observe native drain without a lint exception (#139576)
  test(memory): consolidate visibility fixtures without policy defaults (#139569)
  fix(ui): show shimmer skeletons while loading Control UI (#139525)
  test(qa): make cleanup child logging deterministic (#139566)
  test(cli): keep Unix socket fixtures within path limits (#139565)
  fix: avoid slow incognito key checks in large session stores (#139528)
  feat(macos): open Gateway windows from the Gateways menu (#139522)
  test(workshop): isolate marker casing fixture identities (#139554)
  fix(process): require cleanup evidence before releasing owned work (#139517)
  ...

# Conflicts:
#	scripts/release-check.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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