Repository navigation
fix(ci): repair worker entry roots and retired exports - #170499
Conversation
Preserve both live workers added by #170266 in the full-tree Knip graph and internalize the schema literal helper after its generator caller was removed.
Finish the #168612 shell cutover by retaining only the production entrypoints and using the shared layout owner in the Lit fixture.
The context-overflow fallback change in #170141 removed the final production caller. Delete the unreachable helper and assertions specific to it.
The final core barrel caller moved to async readiness in #170412. Keep the public plugin SDK getter exported directly from its runtime owner.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR registers two dynamically loaded test workers with Knip and removes unused internal exports and their obsolete assertions. Example: The physical-facts test loads physical-facts-worker.test-support.ts through a computed worker URL.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs concrete static-analysis failures while preserving active runtime and SDK contracts; no actionable code defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherKnip consumes repository entrypoints and imports to report unused files, dependencies, and exports; this repair aligns that graph with existing worker execution and completed owner migrations. flowchart TD
A[Repository sources] --> B[Knip audit configuration]
C[Computed worker entrypoints] --> B
B --> D[Dependency and export graph]
D --> E[CI diagnostics]
A --> F[Existing runtime owners]
Technical reviewBest possible solution: Land this focused repair through the native workflow once its required gates are satisfied. Do we have a high-confidence way to reproduce the issue? Source confirms computed worker entrypoints and retired exports, and GitHub confirms the cited dependency job failed; the exact diagnostic log could not be inspected. Is this the best way to solve the issue? Exact graph roots and deletion of unused internal surfaces address the ownership mismatch without suppressing audit findings or changing active behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e78a253059eb. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -21, Tests -21, Other +6. Total -36 across 10 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 12, 2026, 9:44 PM ET / October 13, 2026, 01:44 UTC. |
Update the stale dashboard readiness JSON expectation for the documented cli_error envelope introduced in #168812. Preserve exact-once output, ExitError identity, exit, and bootstrap-token assertions. Validation: changed dashboard.links.test.ts passes 9/9; CI 38333963436 passes all 18 selected jobs. Types, lint, source contracts, Madge and database ratchets pass. Independent Codex review is clean. Knip findings match untouched scheduled-main findings and are repaired separately in #170499.
) Update the stale dashboard readiness JSON expectation for the documented cli_error envelope introduced in openclaw#168812. Preserve exact-once output, ExitError identity, exit, and bootstrap-token assertions. Validation: changed dashboard.links.test.ts passes 9/9; CI 38333963436 passes all 18 selected jobs. Types, lint, source contracts, Madge and database ratchets pass. Independent Codex review is clean. Knip findings match untouched scheduled-main findings and are repaired separately in openclaw#170499.
…w#170499) Register live computed PostgreSQL worker entrypoints and remove unreachable UI, failover, and core TTS exports after owner migrations. Preserve the public TTS SDK export and production entrypoints. Validation: CI 38333165435 passes all 62 selected jobs, including changed tests and every identified direct TTS mock consumer. Types, lint, source contracts, Madge and database ratchets pass. Pinned workflow 38334569481 passes all canonical Knip scans on the exact head. Independent Codex review is clean.
What Problem This Solves
Scheduled main CI fails dependency, unused-file, and export checks after several owner migrations left unused surfaces or computed worker entrypoints outside Knip's graph. This repairs the exact findings from run 38331230273, job 115081407331.
PostgresFixtureReply. Make the schema catalog's internally usedliteralhelper private. Culprit: refactor(database): prepare shared-state engine admission (PR2a) #170266.renderApplicationShelland the retained layout owner, with their assertions preserved. Culprit: refactor(ui): render the app shell and retained routes with Solid #168612.hasProviderRequestSizeCeilingand its helper-only assertions after feat: use model fallbacks after context overflow recovery #170141 removed its final production caller. The active failover classifier and policy remain unchanged.plugin-sdk/tts-runtimeexport still comes directly fromruntime-api; no SDK contract is removed.No admission, security, freshness, or effect-boundary checks are removed. No schema, update, plugin-loading, service-lifecycle, or SQL execution changes. T1 statements and warmed-turn statement/request counts are unaffected by construction; this is a static red-main repair, not a query-saving claim. No new Knip ignore or baseline exception.
Evidence
Validation: scoped lint/format and independent Codex P0–P2 review pass. CI 38333165435 tests the candidate at synthetic merge
1fab90002d608ef22d191e72dd87c27ea6b1f9b3: all selected test, type, lint, and source-contract leaves pass. Changed UI tests pass (2 shell-view and 6 layout-traits cases), as do 51 failover cases and every identified direct TTS mock consumer, including command TTS (11), capability CLI (84), Gateway TTS (12), Talk handlers (104), and dispatch-from-config (143). These are observed executions, not planner membership.Madge/import cycles: 0. T1 live: 456 → 456; deprecated: 9 → 9. All three dialect categories: 0 → 0. Ordinary PR CI omits dependency scans. Separate workflow 38334569481 checks out and verifies exact candidate
6f0dbf7ed8c76183d097bf44c1fca74fac833c02and passes the canonical dependency, unused-file, and export scans. The temporary proof workflow is not part of this candidate. The existing direct-main GH006 refusal selects the authorized PR/REST squash fallback.Scope: 10 files, +22/-58. The four focused commits separate tooling roots, retired UI surfaces, the unused failover helper, and the redundant TTS re-export. Rebase onto current main preserved all four patches exactly.