Skip to content

fix(ci): retire stale exports while preserving runtime guards - #175673

Merged
steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-guards-20261017
Oct 17, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix9-deadcode-guards-20261017

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Main's dependency checks report internal exports left behind by completed ownership and test migrations. This removes the unused surfaces, keeps live checks at their canonical owners, and registers the two Gateway benchmark subprocess fixtures that a computed path had hidden from Knip. No ignores, weaker assertions, retries, or longer timeouts are added.

The safety-sensitive removals were checked against the caller-removal commits and PR bodies:

The full-tree audit also removes an obsolete iMessage setup re-export and a Telegram test type. It makes the existing iMessage probe assertion and warning-cache test import explicit so Knip can see their real consumers. #175576's dependency-evidence helpers remain live inside their generator and become private. The compaction test retains the same independent 2,000-character bound.

Related overlap: #175656 changes fresh-agent identity adoption in candidate-stores.ts; it does not resolve the unused synchronous API. Its identity-adoption fix should be retained if that PR lands first.

Local validation:

  • 504 distinct focused test cases validated across the auth/lifecycle, provider/sandbox/TTS/lease/compaction, and extension/tooling suites with --maxWorkers=1.
  • The initial auth batch exposed one fixture mismatch: synchronous close starts resource revocation, so the migrated async-reader test must await closeOpenClawAgentDatabaseByPathAsync. Only the affected file was rerun after that correction; both cases pass (26.70 s wall). The other focused batches pass in 207.89 s and 258.63 s.
  • deadcode:exports: script and full-tree scans pass; production scan reports only the retained hooks below. deadcode:dependencies: only the retained hooks and dependency below. deadcode:unused-files: both scans pass.
  • Core and scripts typechecks passed (28.83 s / 58.89 s). Canonical owning agents-other, packages, script-test, extension production, and extension-test graphs passed; scoped core, scripts, and extension lint passed.
  • Formatting and git diff --check passed. Final independent P2 review is clean.

The initial changed-path type selector fell back to all test graphs for the config change and reported existing root-count limits (gateway-root 728 and infra 736 versus 720). This patch adds no test roots and changes no type inventory/budget. That queued broad compilation was stopped; explicit canonical owning graphs supply the scoped type proof. The seven diagnostic reset hooks retained by #175223 and the root @modelcontextprotocol/client dependency retained by #175254 are intentionally untouched. They continue to make the corresponding production deadcode checks exit 1; new findings must not be confused with those accepted rows.

Remove unused API surfaces after the canonical-owner cutovers in
#175577, #175069, #175517 and #175538. Current Add deletion admission,
credential authority, provider sanitization, reserved-key filtering,
workspace exclusion and package lease checks stay at their live owners.

Register the two live Gateway benchmark subprocess fixtures. Make
internal dependency-evidence helpers and provenance types private;
remove obsolete test-only surfaces while preserving explicit probe,
warning-cache and 2000-character compaction assertions.

Proof: 504 distinct focused cases validated with --maxWorkers=1.
The migrated auth-reader fixture initially failed while its synchronous
close was still draining; await the existing async close owner, then
rerun only its two cases successfully. Core/scripts and five owning
type graphs, scoped lint, format and final P2 review pass.

Full-tree/script export and unused-file scans pass. Production deadcode
still reports only the seven diagnostic hooks retained by #175223 and
@modelcontextprotocol/client retained by #175254. No ignores or baseline
increases. The all-graph selector reports existing root-count budgets;
explicit owning compiler graphs passed without changing that budget.
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T16:14:58.937212Z 9a2d5d6 PR opened
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 9a2d5d678840ddcda86277fe9bc48e1e02e69bfc
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/auth-profiles/candidate-stores.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage channel: telegram Channel integration: telegram scripts Repository scripts agents Agent runtime and tooling size: S labels Oct 17, 2026
@steipete
steipete merged commit 5059805 into main Oct 17, 2026
140 of 145 checks passed
@steipete
steipete deleted the ci/fix9-deadcode-guards-20261017 branch October 17, 2026 16:21
steipete added a commit that referenced this pull request Oct 17, 2026
The OpenRouter serialization fixture captured its host before loading the
plugin. Loading can install the agent transport host, so cleanup restored
an older host while leaving the one-shot installer cached. Later simple
completion tests then lost endpoint inference and sent generic OpenAI
reasoning_effort fields to GLM and DeepSeek routes.

Capture the host after plugin registration and before the test override.
Keep all serialized-request assertions and production thinking policy.

The failure appeared after #175673 and reproduces with the two suites
combined; reverting #175673 makes the same pair pass. The fixture lifecycle
bug originated in #175267. Both standalone controls pass, confirming the
shared-worker dependency. The repaired pair passes all 22 cases, the
owning root-other typecheck and scoped lint pass, and P2 review is clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…aw#175673)

Remove unused API surfaces after the canonical-owner cutovers in
openclaw#175577, openclaw#175069, openclaw#175517 and openclaw#175538. Current Add deletion admission,
credential authority, provider sanitization, reserved-key filtering,
workspace exclusion and package lease checks stay at their live owners.

Register the two live Gateway benchmark subprocess fixtures. Make
internal dependency-evidence helpers and provenance types private;
remove obsolete test-only surfaces while preserving explicit probe,
warning-cache and 2000-character compaction assertions.

Proof: 504 distinct focused cases validated with --maxWorkers=1.
The migrated auth-reader fixture initially failed while its synchronous
close was still draining; await the existing async close owner, then
rerun only its two cases successfully. Core/scripts and five owning
type graphs, scoped lint, format and final P2 review pass.

Full-tree/script export and unused-file scans pass. Production deadcode
still reports only the seven diagnostic hooks retained by openclaw#175223 and
@modelcontextprotocol/client retained by openclaw#175254. No ignores or baseline
increases. The all-graph selector reports existing root-count budgets;
explicit owning compiler graphs passed without changing that budget.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
The OpenRouter serialization fixture captured its host before loading the
plugin. Loading can install the agent transport host, so cleanup restored
an older host while leaving the one-shot installer cached. Later simple
completion tests then lost endpoint inference and sent generic OpenAI
reasoning_effort fields to GLM and DeepSeek routes.

Capture the host after plugin registration and before the test override.
Keep all serialized-request assertions and production thinking policy.

The failure appeared after openclaw#175673 and reproduces with the two suites
combined; reverting openclaw#175673 makes the same pair pass. The fixture lifecycle
bug originated in openclaw#175267. Both standalone controls pass, confirming the
shared-worker dependency. The repaired pair passes all 22 cases, the
owning root-other typecheck and scoped lint pass, and P2 review is clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: imessage Channel integration: imessage channel: telegram Channel integration: telegram scripts Repository scripts security-sensitive-changed size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant