Skip to content

fix(ci): prevent plugin prerelease validation timeouts - #117624

Merged
vincentkoc merged 1 commit into
mainfrom
fix-release-plugin-agentic-20260801
Aug 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-release-plugin-agentic-20260801

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where full release validation could fail the plugin prerelease lane because a unit test loaded the complete Codex and Discord production plugin graphs, exceeding the 120-second per-test limit. It also corrects a stale model-normalization expectation after registry snapshot memoization was removed.

Why This Change Was Made

The capability loader tests now use bounded bundled fixtures that preserve the same dist-SDK alias, channel discovery, registration, and active-registry invariants without compiling unrelated production graphs. The normalization test now asserts the current no-prepared-snapshot behavior introduced by the registry snapshot refactor.

User Impact

No runtime behavior changes. Release validation is deterministic and the plugin agentic shard no longer spends several minutes compiling unrelated plugin code.

Evidence

  • Reproduced on the frozen release target acf28495b1ae8b911c38a9980eea303709f7a64f: Codex capability test timed out and model normalization returned bravo-local/demo-model.
  • Focused Testbox: 2 files, 7 tests passed in 1.67s.
  • Exact release-only agentic-plugins Testbox shard: 222 files passed; 3,298 passed, 1 skipped; 89.37s.
  • oxfmt --check clean; git diff --check clean.
  • Autoreview: clean, no accepted/actionable findings; confidence 0.99.

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 20:39
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:44 PM ET / 20:44 UTC.

ClawSweeper review

What this changes

The PR replaces Codex and Discord production-plugin test inputs with small fixtures that exercise the same capability-loader contracts, and updates a manifest-normalization expectation after snapshot behavior changed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer PR open for normal review. The changed fixtures match the plugin test boundary and the supplied Testbox shard evidence is strong, but the target policy requires direct sibling Codex source inspection for Codex-related work and ../codex is absent in this read-only offline environment.

Priority: P2
Reviewed head: 4ba2c1b484e2e52bc8b055dc66f4dad944fac8be
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and its reported release-shard validation is strong, with one repository-policy dependency-contract check still unavailable in this environment.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored PR changes test-only CI behavior, so the external-contributor proof gate does not apply; its reported focused and release-shard Testbox output is still useful validation evidence.
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 PR changes test-only CI behavior, so the external-contributor proof gate does not apply; its reported focused and release-shard Testbox output is still useful validation evidence.
Evidence reviewed 7 items Scoped fixture policy: The plugin-scoped review policy says resolver and public-surface loader tests should use generated tiny plugin fixtures rather than real bundled plugin source APIs, which supports replacing broad production graphs for this contract-focused test.
Capability-loader contract remains exercised: The PR fixture imports the dist SDK media-runtime path and registers media-understanding, web-search, and migration providers; the assertions verify that all three capability families load through the bounded registry.
Dist test path uses explicit SDK shims: The registry enables Vitest aliases only for dist-resolution tests, and the media shim exports the exact compatibility symbol imported by the new fixture.
Findings None None.
Security None None.

How this fits together

Release validation uses the bundled capability registry to discover a selected plugin, resolve its Plugin SDK imports, and collect its registered capabilities without replacing the active runtime registry. Manifest model normalization separately reads the current plugin metadata snapshot when one is available, otherwise resolving metadata afresh for the supplied environment.

flowchart LR
  A[Release validation shard] --> B[Capability registry tests]
  B --> C[Scoped fixture discovery]
  C --> D[Plugin SDK alias resolution]
  D --> E[Registered capabilities]
  F[Manifest metadata] --> G[Model ID normalization]
  G --> H[Expected normalized model ID]
Loading

Decision needed

Question Recommendation
Should this test-only CI stabilization proceed on its exact Testbox shard evidence, or should merge wait for a reviewer with the required sibling Codex checkout to inspect the affected contract directly? Complete the Codex contract check: Review the exact affected Codex runtime or protocol behavior from a sibling checkout, then refresh the PR verdict before merge.

Why: Repository policy explicitly requires direct Codex source inspection for Codex-related verdicts; this read-only environment has no ../codex checkout and cannot retrieve it.

Before merge

  • Resolve merge risk (P1) - Merging changes the release-validation contract tests; direct Codex-source inspection required by the repository policy is unavailable here, so the supplied Testbox result cannot establish the missing dependency-contract check on its own.
  • Complete next step (P2) - No mechanical repair is identified; a maintainer must decide whether the provided release-shard proof is sufficient without the direct Codex source check required by repository policy.
Agent review details

Security

None.

PR surface

Tests +54. Total +54 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 67 13 +54
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 67 13 +54

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: src/plugins/bundled-capability-runtime.test.ts, vector/embedding metadata: src/plugins/manifest-model-id-normalization.test.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Verify the removed production-graph contract (recommended)
    Before merge, inspect the required Codex dependency contract in an eligible checkout and confirm the bounded fixture covers the same capability-loader invariant.
  2. Accept the CI-test scope reduction
    A maintainer may accept the exact release-shard Testbox proof and the scoped fixture policy as sufficient for this test-only change.

Technical review

Best possible solution:

Retain the small fixture-based tests, then complete a direct Codex-source contract check in an environment containing the sibling checkout before treating the release-validation coverage change as fully reviewed.

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

Yes, source-reproducible at medium confidence: the prior tests used complete Codex and Discord graphs, while the replacement fixtures exercise the registry’s dist-SDK alias and registered-capability paths. I did not execute the reproduction because this is a read-only review.

Is this the best way to solve the issue?

Provisionally yes: generated fixtures are the repository-prescribed boundary for these loader-oriented tests, and the revised normalization assertion follows the current no-prepared-snapshot path. Direct Codex dependency-contract inspection remains the missing confirmation.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded release-validation reliability repair with no asserted runtime behavior change.
  • add merge-risk: 🚨 automation: The PR changes the fixtures used to validate plugin prerelease behavior, so incomplete contract coverage could weaken release CI without ordinary runtime checks detecting it.
  • 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. Not applicable: This member-authored PR changes test-only CI behavior, so the external-contributor proof gate does not apply; its reported focused and release-shard Testbox output is still useful validation evidence.

Label justifications:

  • P2: This is a bounded release-validation reliability repair with no asserted runtime behavior change.
  • merge-risk: 🚨 automation: The PR changes the fixtures used to validate plugin prerelease behavior, so incomplete contract coverage could weaken release CI without ordinary runtime checks detecting it.
  • 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. Not applicable: This member-authored PR changes test-only CI behavior, so the external-contributor proof gate does not apply; its reported focused and release-shard Testbox output is still useful validation evidence.

Evidence

What I checked:

  • Scoped fixture policy: The plugin-scoped review policy says resolver and public-surface loader tests should use generated tiny plugin fixtures rather than real bundled plugin source APIs, which supports replacing broad production graphs for this contract-focused test. (src/plugins/AGENTS.md:41, fb3d473a73b0)
  • Capability-loader contract remains exercised: The PR fixture imports the dist SDK media-runtime path and registers media-understanding, web-search, and migration providers; the assertions verify that all three capability families load through the bounded registry. (src/plugins/bundled-capability-runtime.test.ts:63, 4ba2c1b484e2)
  • Dist test path uses explicit SDK shims: The registry enables Vitest aliases only for dist-resolution tests, and the media shim exports the exact compatibility symbol imported by the new fixture. (src/plugins/bundled-capability-runtime.ts:103, fb3d473a73b0)
  • Normalization expectation matches current owner behavior: Without a compatible prepared current metadata snapshot, normalization resolves metadata with cacheable: false; the revised test correctly expects a manifest edit to be observed on the next call. (src/plugins/manifest-model-id-normalization.ts:36, fb3d473a73b0)
  • Recent feature-history signal: Available local history identifies the capability discovery refactor as commit fdec6fe by Peter Steinberger; deeper history traversal was blocked when the partial clone attempted an offline promisor fetch. (src/plugins/bundled-capability-runtime.ts:81, fdec6fe7d4da)
  • Provided real validation evidence: The PR body reports a focused Testbox run with 7 passing tests and the exact release-only agentic-plugins shard passing 222 files, 3,298 tests, and one skip in 89.37 seconds. (4ba2c1b484e2)

Likely related people:

  • steipete: Available local history attributes the capability-discovery refactor that owns this registry path to Peter Steinberger. (role: recent area contributor; confidence: medium; commits: fdec6fe7d4da; files: src/plugins/bundled-capability-runtime.ts, src/plugins/bundled-capability-runtime.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the direct sibling Codex source inspection required by repository policy before a final Codex-related merge verdict.

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.

@vincentkoc

Copy link
Copy Markdown
Member Author

Completed the ClawSweeper rank-up move with a direct sibling Codex source check.

  • Refreshed ../codex and inspected origin/main at 1e85ca099e4265bf89f4016772d299816e231bb3.
  • codex-rs/app-server-protocol/src/protocol/v2/thread.rs:57 retains the thread/start model/provider, cwd, approval, sandbox, config, service-name, developer-instructions, and ephemeral contract consumed by OpenClaw.
  • codex-rs/app-server-protocol/src/protocol/v2/turn.rs:71 retains turn/start with threadId, input, cwd, approval/sandbox, model, and effort overrides.
  • codex-rs/app-server-protocol/src/protocol/v2/turn.rs:292 retains text, remote image, and local image input variants used by the Codex media provider.
  • codex-rs/app-server/src/extensions.rs:93 still installs the Codex web-search extension.

This PR changes no Codex runtime or protocol code. It replaces a loader unit-test input that compiled the full OpenClaw Codex plugin graph with a bounded fixture exercising the same dist-SDK alias and capability-registration boundary. extensions/codex/index.test.ts continues to cover the real Codex provider registrations, and the exact release agentic-plugins shard is green (222 files; 3,298 passed; 1 skipped).

@vincentkoc
vincentkoc merged commit 7779659 into main Aug 1, 2026
160 of 169 checks passed
@vincentkoc
vincentkoc deleted the fix-release-plugin-agentic-20260801 branch August 1, 2026 20:50
@vincentkoc

Copy link
Copy Markdown
Member 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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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