Skip to content

fix(ci): repair worker entry roots and retired exports - #170499

Merged
steipete merged 4 commits into
mainfrom
dbasync/redmain-knip-entry-roots
Oct 13, 2026
Merged

steipete merged 4 commits into
mainfrom
dbasync/redmain-knip-entry-roots

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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.

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 6f0dbf7ed8c76183d097bf44c1fca74fac833c02 and 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 13, 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 app: web-ui App: web-ui scripts Repository scripts agents Agent runtime and tooling size: S labels Oct 13, 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 Oct 13, 2026
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Knip cannot discover the live worker through its static import graph.
  • After: An exact entrypoint makes the worker and its dependencies reachable to the audit.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused maintenance patch with verified callers and preserved contracts; validation is not represented as complete.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored static cleanup changes no observable runtime behavior; inspected screenshots belong to the earlier shell migration and do not establish this repair's CI result.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository CI reports live workers as unreachable and internal exports as unused after completed migrations.
Reason: The maintainer-authored direction is established, and source verifies a narrow repair that preserves runtime behavior and public contracts.

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
Reviewed head: 6f0dbf7ed8c76183d097bf44c1fca74fac833c02

Before merge

None.

Findings

None.

Agent review details

How this fits together

Knip 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]
Loading

Technical review

Best 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

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Verified PR scope: The pinned introduced diff contains exact worker roots, internal export removals, and corresponding fixture changes; the current-main comparison retains the same central repair. (config/knip.all-exports.config.ts:100, 6f0dbf7ed8c7)
  • Live worker consumers: physicalFactsTestEntrypoint names the physical-facts worker, and openPostgresFixture resolves the workboard worker before passing it to openEngineWorkerStore; PostgresFixtureReply remains consumed by the worker. (extensions/workboard/src/test/postgres-fixture.ts:12, 6f0dbf7ed8c7)
  • Public TTS contract preserved: The SDK continues exporting getResolvedSpeechProviderConfig directly from runtime-api; only the unused core barrel re-export is removed. (src/plugin-sdk/tts-runtime.ts:18, 6f0dbf7ed8c7)
  • Failover policy preserved: The earlier fallback migration removed the helper's production caller; current source retains requestSizeCeiling and the active provider-ceiling classifier and recovery branches. (src/agents/model-fallback-runner.ts, cedf8a938f90)
  • CI state and attribution: The cited main dependency job failed. At review, head CI remained incomplete; the completed PR-context failure requests named body sections and does not identify a source or test defect. (6f0dbf7ed8c7)
  • Inspection limits: The original CI log redirected to a blocked Azure host; its job metadata was readable. One historical blame encountered a missing blob, while scoped logs, introduction patches, and surviving-line blame supplied the ownership trail. No tests or builds were run. (6f0dbf7ed8c7)

Likely related people:

  • Peter Steinberger: Raw commit eca633a adds ui/src/app/shell-layout-owner.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eca633a8801b; files: ui/src/app/shell-layout-owner.ts)
  • Jerome: Raw commit 7e05bd4 adds src/agents/failover-error.ts:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 7e05bd49ea0d; files: src/agents/failover-error.ts)

PR surface

Source -21, Tests -21, Other +6. Total -36 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 5 26 -21
Tests 3 10 31 -21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 7 1 +6
Total 10 22 58 -36

Labels

Label changes:

  • add P2: A focused repair restores repository static-analysis gates without demonstrated user-facing runtime impact.
  • 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.

Label justifications:

  • P2: A focused repair restores repository static-analysis gates without demonstrated user-facing runtime impact.
  • 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.

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 12, 2026, 9:44 PM ET / October 13, 2026, 01:44 UTC.

steipete added a commit that referenced this pull request Oct 13, 2026
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.
@steipete
steipete merged commit 12be6f6 into main Oct 13, 2026
159 of 162 checks passed
@steipete
steipete deleted the dbasync/redmain-knip-entry-roots branch October 13, 2026 02:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
)

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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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