Skip to content

fix: remove internal exports blocking dependency checks - #172956

Merged
steipete merged 1 commit into
mainfrom
ci/fix7-private-runtime-exports
Oct 15, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix7-private-runtime-exports

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes repeated check-dependencies failures after internal helpers and types lost their external consumers.

User Impact

No user-visible behavior change, migration, update-path change, or release-note entry. Live runtime, Postgres CLI, and release-verification functions keep their existing behavior.

Why This Change Was Made

Make internal declarations private and remove the unused Google minimum-duration constant. Preserve the import-free transcript filename owner from #172392 and the shared duration validation from #172420. The X fixture infers its record from the store's real input contract.

The current script scan also exposes internal declarations. Keep prefetchPreparedPlugins exported because the release publication workflow actually imports it from its frozen harness; model that source import in Knip's existing workflow compiler. This adds no ignores. The regression verifies that removing the actual import removes the analyzer edge.

The two remaining UI exports in the baseline belong to the separate active #172926 and are deliberately untouched.

Evidence

Frozen offline install passes. Unmodified main reproduces six core/plugin and ten script findings. After the cleanup, both production and script export scans report zero; the full-tree scan retains only the two peer-owned UI findings. Both unused-file scans pass with zero entries.

The new workflow-consumer regression fails on the old config and passes after repair (10 tests, including its removal control). Independent P2 review is clean. All 398 focused tests pass across 16 files with --maxWorkers=1 (Google, X, model diagnostics, chat state, archives, SDK filename runtime, Postgres generation, usage ledger, maturity, OpenGrep, release preparation, and Knip). Core/scripts and targeted Google/X typechecks, scoped core/scripts/plugin/boundary lint, formatting, and the line-cap ratchet pass. The full runtime build also passes. Both source-Gateway and built-CLI SQLite flip-proof callers pass unchanged (2 cases), for 400 passing selected tests across 18 files in total. PR CI supplies broad proof.

CI follow-through

Exact-head run 38708319231 has two failed cases in session-management.sidebar.e2e.test.ts: both “nests spawned sessions” variants expect zero children and receive four. The completed clean-main replay at 37e45ded12fc already reproduces both exact cases/assertions; this test file is unchanged through the CI main parent f41b2b656be5. That saved proof is reused rather than repeated.

Active non-draft #171981 contains the exact fixture repair: establish the intended collapsed state before the unchanged zero-child assertion, following main #172362. No competing UI hunk is included. Native review and GitHub-gated preparation completed at this head without another push. Merge remains unrequested because exact-head green CI is required.

Make unused runtime and tooling declarations private after the Google
validation cutover (#172420) and import-free archive grammar move (#172392).
Remove the zero-consumer Google minimum-duration constant without changing
validation, metadata, diagnostics, session lifecycle, or update behavior.

Preserve the release publication import of prefetchPreparedPlugins and model
its actual frozen-harness workflow edge in Knip. The regression removes the
real import and verifies that its analyzer edge disappears. No ignores added.

The two baseline UI findings belong to the separate active #172926.
@clawsweeper

clawsweeper Bot commented Oct 15, 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 gateway Gateway runtime security Security documentation scripts Repository scripts agents Agent runtime and tooling extensions: google channel: x size: S labels Oct 15, 2026
@steipete
steipete marked this pull request as ready for review October 15, 2026 08:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T08:52:09.427644Z a85729c 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 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. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes unused internal exports private and teaches Knip to recognize release-workflow imports from the frozen harness.

Example: The release publication workflow imports prefetchPreparedPlugins from ./.release-harness/scripts/openclaw-release-ready.mjs.

  • Before: Knip cannot see the workflow consumer and can report the required export as unused.
  • After: The workflow compiler exposes its actual import to Knip while preserving the release function.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The source supports a correct, useful cleanup; supplied validation is predominantly reported scans, tests, and CI rather than attached execution output.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored maintenance PR changes export visibility and static analysis; its body reports repaired scans, focused regressions, build checks, and unchanged SQLite proof callers.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository dependency checks fail on obsolete internal exports and an unmodeled release-workflow consumer.
Reason: The feature-history owner proposes a focused repair to demonstrated checks while retaining runtime behavior and the separately owned UI cleanup.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs concrete dependency-check failures, preserves real consumers, and introduces no identified defect; the protected security label also prevents closure.

Priority: P3
Reviewed head: a85729cea5bb38e9ed758923da09e1e6fbb409f5

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository dependency checks analyze source exports and executable roots; workflow compilers translate embedded imports into dependency edges used by Knip.

flowchart TD
  A[Source modules] --> D[Knip analyzer]
  B[Release workflow] --> C[Workflow import compiler]
  C --> D
  E[Executable root configuration] --> D
  D --> F[Dependency check results]
Loading

Technical review

Best possible solution:

Retain the focused export cleanup and source-derived workflow edges through the existing CI and landing workflow.

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

Current-main source retains unused exports and omits the real release-workflow import edge; the PR reports baseline scan failures and clean repaired scans, but no target code was executed during this review.

Is this the best way to solve the issue?

Privatizing unused declarations and extending the existing workflow compiler addresses the analyzer boundary directly without weakening checks or changing runtime ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9b2bc0ed7e13.

Provenance checked

  • Workflow-consumer compiler keeps the original intent (164210c: Expose real workflow imports to strict export scans without exempting exports from auditing.)
  • Release preparation helpers keeps the original intent (820f2a7: Verify prepared plugin artifacts before publication; the public prefetch entry and its implementation remain intact.)
  • Transcript filename parsing and proof helper keeps the original intent (9d8180f: Keep filename grammar import-free so identity consumers avoid archive-compression initialization.)
  • X work-origin type keeps the original intent (eb0fc57: Preserve immutable origin facts and manual-reply guidance; only type visibility changes.)
  • PostgreSQL generation helpers keeps the original intent (050e315: Preserve generated schema constraints and feature metadata; helper bodies, outputs, and CLI dispatch are unchanged.)
  • OpenGrep metadata helpers keeps the original intent (6de9d71: Validate security-rule provenance in the detector pipeline; CLI execution and validation remain unchanged.)
  • Diagnostic, chat, matrix, and maturity declarations keeps the original intent (f77e791: Prior changes established runtime diagnostics, chat buffering, usage accounting, and generated-page banners; this patch changes declaration visibility while retaining their implementations.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source -1, Tests +18, Other +14. Total +31 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 5 6 -1
Tests 3 22 4 +18
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 7 23 9 +14
Total 15 50 19 +31

Labels

Label changes:

  • add P3: This is dependency-analysis maintenance with no intended user-visible runtime 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 dependency-analysis maintenance with no intended user-visible runtime 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 October 15, 2026, 5:05 AM ET / 09:05 UTC.

@steipete
steipete merged commit a8efc0d into main Oct 15, 2026
249 of 257 checks passed
@steipete
steipete deleted the ci/fix7-private-runtime-exports branch October 15, 2026 09:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged at the verified head a85729c as a8efc0d.

The only red in exact-head CI run 38708319231 was UI e2e 2/7: two session-management.sidebar cases (nests spawned sessions, personal pin true and false). They fail on main because new child sessions are now revealed automatically (#172362), and open #171981 updates those fixtures. This PR touches no UI files; it only narrows internal export visibility and models the release-workflow consumer of checkPostgresCatalog in the scripts Knip config. 400 focused tests and the targeted static gates passed locally on this head.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
)

check-dependencies reported internal declarations exported without production consumers after recent refactors (Google video duration constants, session archive suffix helper, X work origin, model diagnostic observation state, chat run record) plus script exports. Internal declarations become private and the unused Google constant is removed; the real release-workflow consumer of checkPostgresCatalog is modeled in the scripts Knip config instead of being deleted. No runtime capability, public SDK, schema or behavior change.
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: x extensions: google gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security Security documentation 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