Skip to content

fix(ci): keep the harness request type internal - #207239

Closed
roboclaw-bot wants to merge 4 commits into
mainfrom
openclaw/tide-claw-bf0186
Closed

roboclaw-bot wants to merge 4 commits into
mainfrom
openclaw/tide-claw-bf0186

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Scheduled main’s production and full-tree Knip reports flag AgentHarnessSideQuestionRequest as an unused named export. The request type still belongs in the same module because it describes the side-question callback.

User Impact

No runtime or public SDK change. This removes only the unused named export; the callback’s request and response shapes and policy are unchanged.

Why This Change Was Made

The exact diagnostic recurs on unchanged source. The package export map, harness SDK entrypoints and exact-symbol search did not identify a consumer of the named export. Keeping the alias private preserves its local references without weakening Knip.

Evidence

  • Original scheduled failure and latest repeat.
  • Knip 6.40.0 reproduced the diagnostic in a focused two-file capsule and removed it with the private alias. A strict TypeScript consumer check passed in both forms, including the negative missing-prompt control. The full changed file has identical type-stripped JavaScript.
  • Restricted independent autoreview found no actionable findings on the one-line patch. Repository production/full-tree Knip and broader consumer validation are pending natural PR CI.

The original side-question contract was introduced in #205963; its implementation is unchanged.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 28, 2026 04:42
Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Worked on by:
- @obviyus
- @RomneyDa
- @vincentkoc
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: d058127d-2874-847b-9ba4-b1dfe7bdef19
@clawsweeper

clawsweeper Bot commented Nov 28, 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 agents Agent runtime and tooling size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Makes the harness side-question request type module-private while preserving its fields and callback signatures.

Example: Knip checks AgentHarnessSideQuestionRequest in src/agents/harness/types.ts.

  • Before: The locally used type remains an unused named export.
  • After: The callback retains the same request type without exporting its name.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified maintenance fix with no findings; broader current-head validation remains incomplete.
Proof confidence 🐚 platinum hermit (4/6) No user-visible runtime behavior changes; source inspection verifies the unchanged request shape, while the body reports focused Knip and TypeScript capsule checks and broader current-head CI remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Scheduled dead-export checks report a request type whose named external consumer has already been migrated.
Reason: The maintainer-authored cleanup removes unused internal surface without changing runtime behavior or the current public SDK.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR completes the earlier SDK cleanup with a minimal internal export removal; no actionable findings were identified.

Reviewed head: 731e4253dafb57601350d1abd09f723e52123493

Before merge

None.

Findings

None.

Agent review details

How this fits together

The harness contract connects host-prepared side questions to native runtime plugins, carrying request-policy callbacks and returning answer text and usage.

flowchart LR
  A[Host side question preparation] --> B[Harness callback contract]
  C[Private request type] --> B
  B --> D[Copilot adapter]
  D --> E[Native completion]
  E --> F[Answer and usage]
Loading

Technical review

Best possible solution:

Keep the alias private in its existing module and preserve the callback’s structural contract.

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

Source inspection confirms the named export has no external repository consumer after the SDK cutover; the reported Knip reproduction was not rerun.

Is this the best way to solve the issue?

Removing the export modifier is the smallest complete repair and introduces no suppression, replacement abstraction, or runtime change.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit b13c10d adds src/agents/harness/types.ts:329 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b13c10deed76; files: src/agents/harness/types.ts)
  • Ayaan Zaidi: Raw commit 3f2c0a4 adds extensions/copilot/src/isolated-completion.ts:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3f2c0a46fc5b; files: extensions/copilot/src/isolated-completion.ts)
  • Peter Steinberger: Raw commit c0498d3 adds src/agents/harness/types.ts:311 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: c0498d39fbb9; files: src/agents/harness/types.ts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 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 1 1 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:

No label changes.

Label justifications:

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-28T04:56:25.165Z sha 9eca7e2 :: passed. :: none
  • reviewed 2026-11-28T06:37:47.650Z sha d849f95 :: passed. :: none

Reviewed November 28, 2026, 4:09 AM ET / 09:09 UTC (Revision 3).

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Superseded by #207586, which landed the identical � change. Closing this duplicate without merging.

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

Labels

agents Agent runtime and tooling 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