Skip to content

fix(ci): remove stale subagent delivery exports - #206429

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-subagent-completion-exports-20261127
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-subagent-completion-exports-20261127

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Main's dependency check fails on unused subagent completion exports left after the completion-policy refactor.

User Impact

Restores the zero-unused-export check without changing runtime delivery behavior.

Why This Change Was Made

Remove the transport's unused forwarding exports and keep policy-only helpers private. Preserve the Discord thread source-matching cases by asserting the policy's public completion result instead of exporting a helper for tests.

Evidence

  • Main failure identifies the stale exports in both production and full-tree scans.
  • Pinned OpenClaw Bun 1.4.4-canary.1+191755ec1: 21 tests passed across the Discord-thread and completion-delivery suites on Linux.
  • Production, full-tree, and script Knip export scans each passed with zero findings on the same patched source.
  • Pinned formatting, git diff --check, and signed commit hooks passed.
  • Broader lint and typechecks remain for exact-head PR CI.
  • Local ClawSweeper reviewed aacfd1c39f77d6da82affb60c37fc4943e11c86c..9f6f9690ae4eac091767015359a5c416d847d946 and found no actionable correctness or security issues.

Related: #206407 covers part of the export cleanup. This patch also removes the test-only hasMessagingToolDeliveryToSource export reported by production scanning; the separate AnnounceCleanupAction type cleanup remains outside this repair.

@vincentkoc vincentkoc self-assigned this Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 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 27, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 05:54
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 27, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 27, 2026 06:01
@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. 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 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR removes unused internal completion-delivery exports and moves Discord-thread assertions to the existing completion-policy result.

Example: A requester in Discord thread 1111111111111111111 sends its result to that thread.

  • Before: The regression test checks delivery through an exported matching helper.
  • After: The test checks requesterVisibleFinalDelivered through the completion-policy result, preserving rejection of parent channel 2222222222222222222.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, behavior-preserving maintenance repair with retained boundary coverage and supporting exact-head checks; remaining CI is still pending.
Proof confidence 🐚 platinum hermit (4/6) No user-visible behavior changes: production function bodies remain identical, the body reports focused tests and export scans passing, and inspected head CI supports type and lint compatibility.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Unused internal exports fail the repository's dependency checks.
Reason: Maintainer authorship establishes direction, and the narrow cleanup removes unused surfaces while preserving runtime behavior and regression contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused CI repair, preserves delivery behavior, and introduces no actionable correctness or security findings.

Reviewed head: 9f6f9690ae4eac091767015359a5c416d847d946

Before merge

None.

Findings

None.

Agent review details

How this fits together

Subagent completion policy receives requester-run outcomes and delivery receipts, classifies completion, and supplies results to transport and lifecycle consumers.

flowchart TD
  A[Child completion] --> B[Requester continuation]
  B --> C[Delivery receipts]
  C --> D[Completion policy]
  D --> E[Announcement result]
  E --> F[Lifecycle cleanup]
Loading

Technical review

Best possible solution:

Retain the minimal export cleanup and preserved Discord regression coverage, with ordinary exact-head CI gating landing.

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

Source inspection confirms the unused export surfaces and the linked main job failed; no target code was executed, and the original scan diagnostics could not be retrieved.

Is this the best way to solve the issue?

The patch uses the existing policy owner, removes unused visibility, and preserves consumed imports and both Discord-thread outcomes without adding machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 811f999 adds src/agents/subagents/announce/subagent-announce-obligation.ts:335 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 811f999f9321; files: src/agents/subagents/announce/subagent-announce-obligation.ts)
  • Mert Başar: Raw commit 782abf3 adds src/agents/subagents/announce/subagent-announce-delivery.discord-thread.test.ts:47 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 782abf332b9c; files: src/agents/subagents/announce/subagent-announce-delivery.discord-thread.test.ts)

PR surface

Source -3, Tests +8. Total +5 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 2 5 -3
Tests 1 16 8 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 18 13 +5

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 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:

  • 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 27, 2026, 1:10 AM ET / 06:10 UTC.

@vincentkoc
vincentkoc merged commit 33fa6a8 into main Nov 27, 2026
274 of 276 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-subagent-completion-exports-20261127 branch November 27, 2026 06:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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