Repository navigation
fix(ci): restore unused-export checks for QA cron fixtures - #199679
Conversation
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesMakes three QA cron response constants module-private without changing fixture output. Example: Run the full-tree unused-export audit.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherQA 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
Technical reviewBest 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
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 15, 2026, 11:46 AM ET / 16:46 UTC. |
|
Merged via squash.
|
…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.
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, andQA_CRON_ONE_SHOT_CHILD_RESULTmodule-private. Each still has real uses insideplanCronOneShotTurn; 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.tsfindings were in the production scan, not the full-tree scan. #197510 added a real consumer forFsSafeErrorCode; #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.git log -Sand blame identify fix(cron): ended cron runs admit late turns from background work #199585 as the introducer of all three.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.git diff --checkpasses.pnpm check:changedpassed (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.