Skip to content

fix(ci): remove Knowledge unused-export failures - #197260

Merged
steipete merged 1 commit into
mainfrom
fix/2412-knowledge-private-results
Nov 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/2412-knowledge-private-results

Conversation

@steipete

@steipete steipete commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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 leanToolResults composition. 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

  • Exact base 54bfcd8fd601618108b65f6637beb3f611f2e28e reproduces 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).
  • Pinned Bun: 33 focused tests passed in tool-results.test.ts and retrieval.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.
  • Node 26.12.1: the same 33 tests passed in 260.99s including cold private-path compilation under concurrent local checks.
  • Codex autoreview is scoped-clean through P2. pnpm check:changed completed: 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-boundaries stopped 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 head 03f5f769a01814bdf010380210e38e5dbfefa8d3 and completed successfully, including check-additional-boundaries and the aggregate gate. ClawSweeper's final review of this head has zero findings and zero open items.

@clawsweeper

clawsweeper Bot commented Nov 11, 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 11, 2026 15:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 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-11T15:26:17.648266Z 03f5f76 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-environment 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The response contains 10 hits and nextOffset 10.
  • After: The response still contains 10 hits and nextOffset 10, verified against an independent expected value.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-correct, with reported registered-tool validation; evidence remains harness-based and the boundary CI check did not execute.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored export-only cleanup is outside the contributor proof gate; the supplied validation exercises registered Knowledge tools and reports scanner results rather than a live Gateway scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Unused Knowledge exports fail the repository's dependency checks.
Reason: The maintainer-authored direction removes unnecessary internal export surface without changing tool contracts, defaults, or stored data.

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
Reviewed head: 03f5f769a01814bdf010380210e38e5dbfefa8d3

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Knowledge result projections, schema fragments, and row-date helper keeps the original intent (9b7dcdc: Lean agent results reduce context consumption while complete operator results remain available; the feature supplies no public contract requiring these internal helper exports.)
  • Pagination and result-contract tests keeps the original intent (feat(knowledge): lean agent tool results and hash-prefix write fences #196767: Tests protect agent page size, merged identity deduplication, attribution uncertainty, and occurrence dates; the revised tests retain those observable contracts through existing owners.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 862dc22 adds extensions/knowledge/src/retrieval.test.ts:386 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 862dc22f7e79; files: extensions/knowledge/src/retrieval.test.ts)

PR surface

Source -2, Tests -5. Total -7 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 23 25 -2
Tests 2 43 48 -5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 66 73 -7

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: This is internal export cleanup for CI with no runtime or user-facing behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: This is internal export cleanup for CI with no runtime or user-facing behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 11, 2026, 10:40 AM ET / 15:40 UTC.

@steipete
steipete merged commit d99c923 into main Nov 11, 2026
254 of 259 checks passed
@steipete
steipete deleted the fix/2412-knowledge-private-results branch November 11, 2026 15:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: knowledge rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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