Repository navigation
fix(ci): remove Knowledge unused-export failures - #197260
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 changesThis PR makes 23 Knowledge helpers private and moves direct-helper tests to registered tools. Example: An agent searches Knowledge with 11 matching records and no explicit limit.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it removes unused private exports without changing runtime behavior, and the cleanup remains absent from pinned main. No actionable patch defects were found; the failed boundary check stopped during Node setup. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherKnowledge service handlers produce complete results; the existing leanToolResults adapter projects agent responses while operator and Control UI callers retain complete results. flowchart LR
A[Agent tool call] --> B[Knowledge plugin]
B --> C[Knowledge service]
C --> D[Result projection]
D --> E[Lean agent response]
C --> F[Complete operator response]
Technical reviewBest possible solution: Keep unused helpers private, preserve the existing result adapter, and complete the blocked CI check in its supported Node environment. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the unused export surface on pinned main, and the PR reports exact-base scanner reproduction; this read-only review did not rerun the scanner. Is this the best way to solve the issue? Making declarations private is the smallest complete fix: it preserves the existing owner and runtime behavior while replacing helper-coupled expectations with tool-boundary assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a9c961f77748. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -2, Tests -5. Total -7 across 5 files. 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 11, 2026, 10:40 AM ET / 15:40 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes the Knowledge unused-export failures in hourly full CI (
check-dependencies, run 43029104606).User Impact
No user-visible behavior change. Knowledge's agent and Control UI result contracts remain intact.
Why This Change Was Made
#196767 exported 23 schema/projection helpers and defaults with no external production consumer. Keep those declarations private and retain the used
leanToolResultscomposition. The two direct-helper tests now exercise registered tools, and the pagination test uses an independent expected page size rather than importing the implementation constant.Evidence
54bfcd8fd601618108b65f6637beb3f611f2e28ereproduces the 23 Knowledge production findings and 21 full-tree findings. Attribution: feat(knowledge): lean agent tool results and hash-prefix write fences #196767 (9b7dcdc7a66dc1bbcb0767b8109e798eb826954e, @jalehman).tool-results.test.tsandretrieval.test.ts; 117.59s including cold worker compilation. The real registered-tool suite preserves response pagination, hash fences, merged identities, attribution doubt, and full operator responses.pnpm check:changedcompleted: all source checks passed except existing unused exports; its lint step initially lacked the isolated worktree's Solid lint dependency, then the exact five-file lint replay passed after restoring that private dependency copy. The aggregate invocation remains reported as failed. Its export scans report 57→34 production and 32→11 full-tree findings: exactly the 23/21 Knowledge entries disappeared, with no new entries. Remaining findings reproduce on the exact base and belong to separate CI repairs.Production LOC −2; tests −5. This removes export surface only, so no runtime performance gain is claimed. No checker baseline, dependency, cache, config, or schema changes.
CI run 43048067581, attempt 1, passed all executed source checks.
check-additional-boundariesstopped during Node setup: curl could not connect to nodejs.org while fetching Node 24.22.1, before boundary checks ran. Only that setup failure and the aggregate gate failed. Attempt 2 reran only failed jobs at unchanged head03f5f769a01814bdf010380210e38e5dbfefa8d3and completed successfully, includingcheck-additional-boundariesand the aggregate gate. ClawSweeper's final review of this head has zero findings and zero open items.