Skip to content

fix(ci): restore unused-export checks for QA cron fixtures - #199679

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-main-knip15-20261115
Nov 15, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-main-knip15-20261115

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes main's full-tree unused-export check after #199585 (d0733c6e0e8ffe68c8d6d215c7b322fc50941d17) introduced three exported QA cron response markers without external consumers.

User Impact

The dead-export gate can pass again. No user-visible behavior, fixture output, public SDK, configuration, or schema changes.

Why This Change Was Made

Make QA_CRON_ONE_SHOT_YIELD_OUTPUT, QA_CRON_ONE_SHOT_SERVICE_OUTPUT, and QA_CRON_ONE_SHOT_CHILD_RESULT module-private. Each still has real uses inside planCronOneShotTurn; deleting the constants would discard useful names. Whole-tree searches confirm no external imports, including tests. Existing cron Gateway tests assert the output through the public flow using independent literals.

The previously reported fifteen src/infra/fs-safe.ts findings were in the production scan, not the full-tree scan. #197510 added a real consumer for FsSafeErrorCode; #199657 (7310fc289ab9dcf2f578e8f10dcdc9ab7bf6a708) removed the other fourteen. This PR preserves that already-landed repair.

Production LOC delta: 0 (+3/-3), source bytes: -21. No new test-only export, ignore, baseline, or cache.

Evidence

Fresh base: e552c49f373cdb6b7490d197f7eef3462846f288.

  • Before: exact Knip 6.40.0 all-exports scan exits 1 with these three symbols; git log -S and blame identify fix(cron): ended cron runs admit late turns from background work #199585 as the introducer of all three.
  • After: the same full-tree scan exits 0 with zero findings. Command: pnpm dlx --package [email protected] knip --config config/knip.all-exports.config.ts --no-progress --reporter compact --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers --no-config-hints.
  • pnpm test extensions/qa-lab/src/providers/mock-openai/server.test.ts extensions/qa-lab/src/providers/mock-openai/server.tool-routing.test.ts extensions/qa-lab/src/providers/mock-openai/server.responses-stream.test.ts --maxWorkers=1: 138 passed across three files.
  • Independent Codex autoreview, P0–P2, against the fresh base plus the complete changed module: scoped-clean, no actionable findings. Author simplification retained only the three export removals; git diff --check passes.
  • Full pnpm check:changed passed (841.49 seconds), including production/full-tree/scripts export scans with zero findings, affected typechecks, lint and policy guards. No checks were skipped. No UI-imported module changed.

Keep the three one-shot response markers local to their only consumer module. They were introduced as unused exports in d0733c6 (#199585). Fixture output and public scenario behavior stay unchanged.
@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@steipete
steipete marked this pull request as ready for review November 15, 2026 16:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T16:33:49.898550Z f20f42d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Makes three QA cron response constants module-private without changing fixture output.

Example: Run the full-tree unused-export audit.

  • Before: The audit reports QA_CRON_ONE_SHOT_YIELD_OUTPUT, QA_CRON_ONE_SHOT_SERVICE_OUTPUT, and QA_CRON_ONE_SHOT_CHILD_RESULT.
  • After: These constants remain available inside the fixture without exposing unused exports.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified repair supported by reported audit results and passing current-head CI; shipped-entry-point proof is unnecessary for this change.
Proof confidence 🐚 platinum hermit (4/6) This static module-boundary cleanup changes no user-visible behavior; the reported audit results and exact-head CI are appropriate validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The repository's full-tree unused-export gate fails on internal QA fixture constants.
Reason: The maintainer-authored repair restores an existing gate with no behavioral change or added machinery.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, correct repair for unused fixture exports still present on main; no actionable findings remain, and the reviewed head's CI gate passed.

Priority: P3
Reviewed head: f20f42d863f0ef0ee644fde60b8d6f6b55d1fcb6

Before merge

None.

Findings

None.

Agent review details

How this fits together

QA Lab's mock OpenAI provider receives scripted cron prompts and returns tool calls or assistant events; the full-tree export audit checks its module boundaries.

flowchart LR
  A[Cron QA scenario] --> B[Mock OpenAI provider]
  B --> C[Automation turn planner]
  C --> D[One-shot cron fixture]
  D --> E[Tool calls and assistant events]
  F[Full-tree export audit] --> D
Loading

Technical review

Best possible solution:

Keep the named constants local to the existing fixture and retain the unchanged planner and scenario assertions.

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

Current-main source confirms three unused exports, and the author reports the exact audit failing before and passing afterward; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Removing only the unused export modifiers is the smallest complete repair and preserves meaningful internal names without suppressing the audit.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • One-shot cron response markers keeps the original intent (d0733c6: The original cron repair added scripted responses for yield, service, and child-completion scenarios; its Gateway tests consume the resulting output through independent literals.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 3 3 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 3 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: A narrow static-analysis repair with no runtime, configuration, or data changes.
  • 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.

Label justifications:

  • P3: A narrow static-analysis repair with no runtime, configuration, or data changes.
  • 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.

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 November 15, 2026, 11:46 AM ET / 16:46 UTC.

@steipete
steipete merged commit 89ee0bd into main Nov 15, 2026
195 of 196 checks passed
@steipete
steipete deleted the steipete/fix-main-knip15-20261115 branch November 15, 2026 16:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…199679)

Keep the three one-shot response markers local to their only consumer module. They were introduced as unused exports in 703442c (openclaw#199585). Fixture output and public scenario behavior stay unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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