Skip to content

fix(ci): repair deterministic scheduled full-CI failures - #188398

Merged
roboclaw-bot merged 12 commits into
mainfrom
main-ci/scheduled-ci-repair-20261030
Oct 30, 2026
Merged

roboclaw-bot merged 12 commits into
mainfrom
main-ci/scheduled-ci-repair-20261030

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the listed deterministic failures observed in scheduled full CI on main.

User Impact

User impact: these inventory and test-expectation repairs address the listed CI failures without changing user-facing behavior; other failing lanes remain separate.

Why This Change Was Made

The stack repairs stale inventories, dead exports, and test expectations from scheduled CI while preserving the intended runtime contracts. It retains the upstream Skill Workshop direct alias from #188395.

  • 16bc9db2d77: repairs labeler-extension-coverage.test.ts by covering Particle; introduced by 851a5ea4afe.
  • 0b1a0a790ba: repairs boundary-invariants.test.ts by removing the retired diffs prompt-hook inventory; introduced by aacb5e162cf.
  • a0527bdfeaf: repairs ci-node-worker-e2e.test.ts by selecting the Codex node app-server process proof; introduced by 3a195d3336c.
  • 800579e388e: repairs dead-code checks by removing dead exports/wrappers (45893d3ee45, db60454f310, 8100c600886, 9344233e7a6) and registering maintained Knip entrypoints (2e720d00c70, b53a06bfd93).
  • 26fc9ba0164: repairs package-update-refusal.test.ts to require the preserved public source location; introduced by bd54db00f0d.
  • fa265733535: repairs package-update-steps.native-transaction.test.ts to require successful rollback after backup publication and source cleanup failure; introduced by ca7ef93a998.
  • be70730fcac: repairs the Windows POSIX-mode assertion in update-managed-service-handoff-lifecycle.test.ts while retaining metadata coverage; introduced by eb3d2405454.
  • ada302a3c3a: repairs service.failure-alert.test.ts and timer.batch-finalization.test.ts to assert requester job identity; introduced by 8100c600886.
  • dcbf8828637: repairs attempt-session-replay-cohort.test.ts to match bounded hydration refresh while rejecting stale replay; introduced by 8bc631709922.
  • 466788ad796: repairs S15 unused-file findings by registering the maintained Doctor retirement and GitHub readiness benchmark entrypoints; introduced by f61e550d22c and 885e57e9f9d.
  • 18d60e1babb: repairs the redundant internal prepareTtsRequest runtime re-export by moving type/test consumers to its request owner while preserving the PluginRuntime method and signature; exposed by 46fcb7cb861.
  • 4cb4f66c4ab: repairs S15 export reachability by tracing each supplying lazy TTS binder and exact selected method, preserving all three live TTS exports; exposed by 46fcb7cb861.

Evidence

Failing evidence: scheduled CI run 41056382100, head 509d3f0083; the listed signatures also appeared at f980e01150. The retained scheduled run 41063477930, head f80ab2ad1c1a0d01ce5a73c39959c27daf425248, records newer dead-code findings and other independent failures. Direct publication to main was rejected with "push declined due to repository rule violations", so this stack uses the documented PR flow.

Prior-head evidence is retained as prior-head evidence: six focused Vitest shards, architecture checks, core typecheck, and the main-push test-lines, max-lines, assertion-safety, test-mock-exports, and test-timeout-race ratchets passed. Independent repair-lane autoreviews were clean. The S15 worker additionally recorded 88 focused tests and scoped typecheck/lint/format passing, plus an independent P0–P2 scoped-clean review of its complete six-file candidate.

The combined candidate rebases the nine independent repairs onto 63dbee6a514580948082dc20cb930c7e748c019e, drops the superseded Core-rename patch completely, and folds only the three reviewed S15 patches. The benchmark-list overlap retains both exact entrypoint sets. Simplification keeps one dynamic-consumer owner, removes the redundant request barrel path, and preserves negative controls for deleted/redirected consumers. The complete change is 129 added and 110 removed lines across 20 files. No baseline growth, blanket ignores, invented consumers, new owners, or CHANGELOG edits.

Current-head evidence: combined Codex autoreview of 63dbee6a514580948082dc20cb930c7e748c019e..4cb4f66c4ab returned scoped-clean through P2. It assessed the diff and supplied source contracts; project execution and trailer verification were outside that independent review. On this exact combined head, all 74 tests across check-deadcode-exports.test.ts, tts-runtime-routing.test.ts, tts-request.resources.test.ts, and tts.test.ts passed (86.63s wrapper wall time). The scanner file took 863ms; the cold-runtime facade file took 48.56s including its first-call module preparation. Scoped typecheck, lint, formatting, and git diff --check passed. All twelve task commits carry the exact requested human trailer; changed lines match their reviewed inputs, and the upstream alias files have no branch diff. Full Knip scans, broad suites, and Docker were left to PR CI. Local ClawSweeper is unavailable; the autoreview fallback is used.

This stack does not claim every CI job is green. macOS fixture, registry build, and other independently owned failures remain separate lanes; remaining PR failures must be attributed to actual main signatures before any inherited-CI exception.

Requested by @steipete.

Work sessions

@clawsweeper

clawsweeper Bot commented Oct 30, 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 gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: S labels Oct 30, 2026
@roboclaw-bot
roboclaw-bot force-pushed the main-ci/scheduled-ci-repair-20261030 branch from 4585a0b to 58c5bcc Compare October 30, 2026 14:02
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
roboclaw-bot and others added 12 commits October 30, 2026 14:16
Register the legitimate Particle provider and its documentation in the existing extension labeler inventory.

Co-authored-by: steipete <[email protected]>
The diffs tool now owns its callable-only prompt guidance through registerTool. Drop its obsolete before_prompt_build entry while preserving exact hook coverage.

Co-authored-by: steipete <[email protected]>
Include the new worker-hosted Codex app-server E2E in the shared owner and hourly inventory. The existing two-row capacity contract remains enforced.

Co-authored-by: steipete <[email protected]>
Keep local helpers and preview types private, remove the retired lifecycle dispatch wrapper and its obsolete tests, and register the two maintained benchmark commands with their documented host compiler.

Co-authored-by: steipete <[email protected]>
The swap-result owner now preserves the original error, including its public source location. Require that location after the typed reason while retaining the private-diagnostic checks.

Co-authored-by: steipete <[email protected]>
A published backup now registers compensation before source cleanup completes. Verify that the retained transaction restores the previous package version and runtime file after cleanup fails.

Co-authored-by: steipete <[email protected]>
Windows does not implement POSIX owner, group, and other permission bits. Keep the metadata cases active there and retain the exact 0600 assertion on POSIX.

Co-authored-by: steipete <[email protected]>
Update both exact notification expectations for the requester identity introduced by 8100c60. Preserve message, owner, delivery, and call-count assertions.

Co-authored-by: steipete <[email protected]>
Expect an empty refreshed transcript with no initial replay after a destructive rewrite, and projection unavailability at final replay. Preserve rejection of stale replay consumption and owner revocation. Follows the bounded refresh contract from 8bc6317.

Co-authored-by: steipete <[email protected]>
Register the two standalone measurement commands documented by their source headers as exact Knip roots. Keep their imports subject to normal reachability analysis.

Co-authored-by: steipete <[email protected]>
Keep request preparation on its existing owner and preserve the PluginRuntime method signature. Route the remaining type and test references directly to the request module.

Co-authored-by: steipete <[email protected]>
Project the exact methods selected through each supplying lazy runtime binder. Preserve live TTS exports and remove projected edges when their loader, binder, or selector disappears.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the main-ci/scheduled-ci-repair-20261030 branch from 58c5bcc to 4cb4f66 Compare October 30, 2026 14:19
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 30, 2026 14:30
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates CI inventories, models lazy TTS consumers, removes unused internal exports, and aligns tests with existing runtime behavior.

Example: Scheduled CI inventories node-worker process tests.

  • Before: codex-node-app-server.e2e.test.ts is missing from the explicit inventory, causing the inventory contract to fail.
  • After: The process test joins the existing selection and two-row capacity contract.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused repairs with no discrete introduced defect found; validation primarily consists of focused tests and an unfinished CI cycle.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal CI repair is outside the ordinary contributor proof gate; supplied focused test results and exact-head CI exercise relevant contracts, while completed full Knip scans are not shown.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Scheduled CI fails on stale inventories and assertions, obscuring useful validation results.
Reason: The maintainer-authored direction has clear operational value, and the scoped repairs preserve intended runtime behavior without new settings or public contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs concrete CI inventory and expectation failures still present on main; no introduced correctness defect was found.

Priority: P2
Reviewed head: 4cb4f66c4abd6e12f09ecce18f95e3a9939fc3c0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Completed full Knip unused-file and export scans on the combined head are not supplied; focused scanner and runtime tests support the change.
Agent review details

How this fits together

Repository CI consumes source files, explicit entrypoints, and test inventories to select validation work and identify unreachable code.

flowchart LR
  A[Repository source] --> B[CI inventories]
  A --> C[Dynamic consumer compiler]
  B --> D[Test planner]
  C --> E[Knip analysis]
  D --> F[CI gate]
  E --> F
Loading

Technical review

Best possible solution:

Land the focused inventory and expectation repairs through the existing CI gate while leaving unrelated failures with their owners.

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

The missing inventory entry deterministically violates the existing exact-inventory assertion; reported scheduled failures also have verified failed run metadata, although no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch uses existing inventory and dynamic-consumer owners, removes unreachable internal paths, and preserves production contracts rather than weakening assertions or adding blanket exclusions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Lazy consumer projection keeps the original intent (9372bf6: Recognize real lazy module consumers without suppressing genuinely unused exports.)
  • Retired lifecycle dispatcher keeps the original intent (9344233: Restart recovery was consolidated around ordinary session input, leaving the older detached dispatch wrapper unreachable.)
  • TTS request preparation keeps the original intent (00be453: Await credential preparation while retaining compatible PluginRuntime contracts; this PR removes only the redundant internal re-export.)
  • Replay cohort expectations keeps the original intent (8bc6317: Release writer admission during bounded reads, retry one intervening mutation, and reject stale consumption.)
  • Native backup rollback expectation keeps the original intent (ca7ef93: Register compensation when a fallback destination is published, even if subsequent source cleanup fails.)
  • Private authority and preview exports keeps the original intent (fix: preserve authored CSP in relative HTML previews #188013: Preview resources support authored CSP handling; making unused types private changes no preview or authorization behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit fb81cb7 adds scripts/lib/ci-node-worker-e2e-inventory.mts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fb81cb7e6416; files: scripts/lib/ci-node-worker-e2e-inventory.mts)
  • Shakker: Raw commit 9372bf6 adds config/knip-dynamic-consumers.mjs:116 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9372bf6c87ca; files: config/knip-dynamic-consumers.mjs)

PR surface

Source -30, Tests +10, Config +6, Other +33. Total +19 across 20 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 7 37 -30
Tests 10 77 67 +10
Docs 0 0 0 0
Config 1 6 0 +6
Generated 0 0 0 0
Other 3 39 6 +33
Total 20 129 110 +19

Labels

Label changes:

  • add P2: Concrete scheduled validation failures warrant repair, with no demonstrated urgent user-facing runtime regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Concrete scheduled validation failures warrant repair, with no demonstrated urgent user-facing runtime regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 10:37 AM ET / 14:37 UTC.

@roboclaw-bot
roboclaw-bot merged commit e1f1a79 into main Oct 30, 2026
175 of 177 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/scheduled-ci-repair-20261030 branch October 30, 2026 14:44
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Oct 30, 2026
Backport the exact platform guard from main PR #188398 for the Windows FRV handoff lifecycle failures. Windows does not expose POSIX chmod semantics, so the 0600 assertion is only meaningful on non-Windows hosts.

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 30, 2026
* test(release): skip POSIX mode check on Windows

Backport the exact platform guard from main PR #188398 for the Windows FRV handoff lifecycle failures. Windows does not expose POSIX chmod semantics, so the 0600 assertion is only meaningful on non-Windows hosts.

Co-authored-by: RomneyDa <[email protected]>

* test(gateway): use spelled-word marker in Codex steer live test (#172666)

The model intermittently drops trailing characters when echoing the 16-char hex steer marker, failing the exact-match assertion. Spelled NATO words echo intact; the exact equality check is unchanged.

Co-authored-by: RomneyDa <[email protected]>

* test(release): accept unloaded parent-child refusal

The live Codex harness can safely refuse a parent-controlled V2 child either because the child remains controlled by its parent or because the unloaded child must be reached through the parent first. Preserve the refusal proof while accepting both exact runtime messages observed by FRV.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 30, 2026
Repair scheduled full-CI inventory and stale test-expectation failures. Remove dead internal exports, register maintained benchmark entrypoints, and trace real lazy TTS method consumers while preserving the public PluginRuntime methods and upstream Skill Workshop alias.

Co-authored-by: steipete <[email protected]>
(cherry picked from commit e1f1a79)
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…8398)

Repair scheduled full-CI inventory and stale test-expectation failures. Remove dead internal exports, register maintained benchmark entrypoints, and trace real lazy TTS method consumers while preserving the public PluginRuntime methods and upstream Skill Workshop alias.

Co-authored-by: steipete <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 31, 2026
The #188398 backport registered Particle, but this frozen release does not ship that extension. Remove the forward-only label entry so the branch-owned extension inventory remains exact.

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 31, 2026
The #188398 backport registered the forward-only Codex app-server E2E, but that test is not part of this frozen release. Remove the nonexistent owner so discovery and matrix balancing remain exact.

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 31, 2026
The #188398 test update expected newer main hydration behavior that this release does not ship. Restore the branch-owned SessionEntryChangedDuringReadError contract for selected replay rewrites.

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 31, 2026
The #188398 backport carried main-only expectations for cron repair authority, package refusal source locations, and successful native rollback. Restore the contracts implemented by this frozen release.

Co-authored-by: RomneyDa <[email protected]>
NEXTAltair added a commit to NEXTAltair/openclaw that referenced this pull request Nov 10, 2026
目的:
プラグインがプロバイダーに合わせた発話ガイダンスを組めるよう、
現在有効な一次 TTS プロバイダー・モデル・ペルソナを合成せずに取得する。

変更:
api.runtime.tts.prepareSpeechPromptContext を追加する。通常の TTS と同じ
ユーザー設定、agent / channel / account 層、ペルソナ binding、
モデル解決を使い、auto オフ・テキスト上書き不許可・一次 binding 不可は
ready: false を返す。合成、fallback、credential、音声ファイル、
テキスト書き換えは行わず、プロバイダー設定や秘密情報も返さない。
runtime facade は選択中 registry とプラグインの寿命に束縛する。

検証:
tts-prompt-context と registry.runtime-config のテストが通過。

rebase 時のコンフリクト解決 (onto 57fd13e, 元コミット 89d6eb7578c):
- 上流 329a56d (openclaw#178002) が resolveReadySpeechProvider を単一呼び出しとして
  フォールバックループ内のクロージャへ畳み込んだ。本コミットで
  tts-prompt-context.ts が2つ目の呼び出し元になるため、export した関数として
  1か所に戻し、ループ側のクロージャはその呼び出しに置き換えた。
  畳み込みで外れていた VoiceModelRef の import も戻した
- 上流 b3d00c9 (openclaw#183424) が types-core.ts の TTS 型エイリアスを
  TtsRuntimeApi[...] の直接参照へ畳んだ。エイリアスは復活させず、
  prepareSpeechPromptContext も同じ直接参照の形で追加

rebase 時のコンフリクト解決 (onto 258d034, 元コミット 892cff4dd4d):
- 上流 00ebec0 (openclaw#188280) が getResolvedSpeechProviderConfigForVoiceModel の
  引数を providerId から provider (SpeechProviderPlugin) へ変えた。export 済みの
  resolveReadySpeechProvider をその形へ合わせ、ループ側は本コミットの呼び出しを採用
- 上流 e1f1a79 (openclaw#188398) が prepareTtsRequest を runtime-api.ts から外し、
  loadTtsRequestRuntime の読み込み先を tts-request.js へ変えて、knip の
  動的 consumer 追跡に lazy TTS メソッドを登録した。そのままでは
  prepareSpeechPromptContext が tts-request.js に無く実行時に解決できないため、
  同じ方式で tts-prompt-context.js 専用の lazy loader / binder を足し、
  型も typeof import(tts-prompt-context.js) の直接参照にし、
  knip-dynamic-consumers.mjs に consumer を登録した。runtime-api.ts からの
  再 export は上流の方針どおり置かず、test-support は直接 import する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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