Skip to content

fix(ci): retired exports break main checks - #168048

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/question-card-baseline-dead-exports
Oct 10, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/question-card-baseline-dead-exports

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #168040, #168004, #167898, #167968

What Problem This Solves

Fixes: main and unrelated PR checks fail after production callers and avatar identity invalidation moved to their new owners.

User Impact

User impact: no runtime or UI behavior changes; developers can run the dead-export checks without these inherited failures. No migrations or user action required.

Why This Change Was Made

Remove the retired Telegram predicate and model-selection re-export, privatize the direct-chat helper after its production callers moved, and migrate all test/prompt-snapshot consumers to the existing owner entry points. The avatar publication fixture now triggers identity invalidation through the existing capability instead of expecting the intentionally removed TTL. All publication and rerender assertions remain intact. No scanner exceptions or production UI changes.

This is a maintainer-authorized red-main repair. Direct push of the proven fix was attempted first and rejected with GH013: “Changes must be made through a pull request.” This PR is the repository-prescribed fallback, not an unsolicited CI cleanup.

Requested by @steipete; contributor credit is retained in the commit.

Work sessions

Evidence

  • Main check-dependencies failure names both original exports. Reproduced at main 999bf5ecc5c, which additionally had the direct-context export introduced by its caller migration.
  • pnpm deadcode:full: passed both production and full-tree scans.
  • node --import tsx scripts/check-deadcode-exports.mts: production, full-tree, and script scans all report zero entries; repeated successfully on rebased head 5d299d236d2ccdd2e07941a8f3b86d9d0fec2c2c.
  • Focused sequential-key, ingress-supersede, model-selection, groups, and session-preparation suites: 82 tests passed, 161.89s wall time using the repository runner with --maxWorkers=1. No tests added; no incremental CI test seconds.
  • Targeted type-aware core/extension lint, formatting, and git diff --check: passed. Independent P1 autoreview: scoped-clean. Rebase retained identical changed blobs and patch ID.
  • Follow-up CI correction: check-prompt-snapshots exposed two missed helpers under test/helpers/agents. Migrated both; pnpm prompt:snapshots:check passes with all seven snapshots unchanged. Repository-wide search leaves the private direct helper only inside its owner.
  • Avatar baseline: main contract change 00b00e25326 (perf(ui): stop idle identity reads and restart probes #167968) removed TTL. Parent reproduced all three unchanged publication-test failures from UI CI run 38008988386, job 114084573657; test SHA-256 fb9bf451d67888ff73a109a8cdb3a9a8abe892477e6c78e5c4af736eaf285ab3 matched main. Publication/avatar/identity suites now pass 47 tests locally (13.13s wrapper, 10.59s Vitest); no new tests or runtime changes.
  • Full expanded candidate fresh P1 autoreview: scoped-clean.
  • Main d810d753e31 independently landed the avatar invalidation fix while this PR was under review. Resolved the actual merge conflict by preserving that main fixture byte-for-byte (including its expired-cache coverage). The composed tree passes the same 47 avatar/identity tests (11.01s wrapper, 6.76s Vitest); this PR now has no net UI changes.
  • Inherited CI exception: run 38010590560, attempt 1 fails only checks-node-changed-1 and the aggregate gate. Four unchanged model-fallback.reply-entry.e2e.test.ts OAuth-recovery cases fail during finalization with “Agent database execution generation was replaced.” The tested merge is 4c46ad9e065d0e1b37234064d5e721fbff1a4e22, based on main 89c0368fe52. Its test, state/config owners, finalization/read chain, and workflow match baseline exactly.
  • Independent baseline reproduction: the supported secretless isolated runner on clean 89c0368fe52 reproduces all four failing cases (4 failed, 5 passed; 132.89s Vitest). Three have the same generation-replaced error; access recovery has the same owner’s admission-closed variant. Node26.8.2 differs from CI24.21.0, and both fail. Container cleanup confirmed. A direct host attempt was fenced from managed-Gateway artifacts; the isolation route preserved that guard.
  • No safe scoped database-lifecycle repair was established in bounded investigation. No generation, authority, schema, or assertion guard was weakened. Landing uses the authorized native inherited-failure exception, preserving these failures rather than claiming green CI.
  • Known unrelated local gap: source-delivery integration suite failed 10 tests both with this change and after restoring its helper/test to baseline. Existing /tmp/mock-sessions*.sqlite fixtures use schema 24; the unchanged dispatch harness selects them, and a later generation-scope case also fails. Inspected those shared fixtures read-only; did not migrate/delete them or mask the failures. Full build/typecheck/full test suite not run for this bounded dead-export repair.

View the OpenClaw team session

Remove the Telegram read-only control predicate left without callers by
427f926. Drop the unused model-selection context-token re-export and
point its test directly at the existing owner. Make direct chat context
private after 999bf5e migrated production callers to the shared source
conversation entry point, and move tests to that same entry point.

Reproduces main check-dependencies run 38004851105, job 114071382936,
plus the new direct-context dead export on 999bf5e. No scanner
exceptions or retained runtime behavior changes.

Validation: exact pnpm deadcode:full and production/full-tree/script
export scans clean; targeted lint clean; independent P1 autoreview clean.
Five focused files passed 82 tests in 161.89s, without adding tests.
Source-delivery integration proof failed 10 tests identically with the
changed helper and test reverted to baseline. Both runs hit existing /tmp/mock-sessions*.sqlite schema-24 databases through the
unchanged dispatch harness, plus a subsequent generation-scope failure.
Those unrelated shared fixtures were inspected read-only, not modified.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 10, 2026 00:37
@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram agents Agent runtime and tooling size: XS labels Oct 10, 2026
Complete prompt-snapshot callers of the private direct-context helper. Migrate the stale avatar publication TTL fixture to the identity capability invalidation owner, preserving every publication and rerender assertion. Prompt snapshots remain byte-current; 47 avatar and identity tests pass. Full candidate P1 autoreview is scoped-clean.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot roboclaw-bot changed the title fix(ci): dead exports break main checks after caller migrations fix(ci): stale exports and avatar fixtures break main checks Oct 10, 2026
Resolve the actual avatar fixture conflict by retaining main d810d75, which independently landed the same identity invalidation repair plus expired-cache coverage. The complete avatar/publication/identity suites pass 47 tests after composition. Dead-export and snapshot-consumer repairs remain unchanged.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot roboclaw-bot changed the title fix(ci): stale exports and avatar fixtures break main checks fix(ci): retired exports break main checks Oct 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes unused internal exports and moves test and prompt-snapshot callers to the existing conversation-context and model-context helpers.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, narrow cleanup with direct check evidence, preserved prompt output, and no actionable patch defects.
Proof confidence 🐚 platinum hermit (4/6) This collaborator-authored maintenance PR is outside the external-contributor runtime-proof gate. Its relevant developer entry points are the export scans and prompt-snapshot check; recorded scans pass, and the pinned-head snapshot check succeeds. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter inherited check failures after production callers move to their new owners.
Reason: This authorized maintenance repair completes existing caller migrations without changing designed runtime behavior or adding another implementation path.

Merge readiness

✅ Ready for maintainer review

This maintainer-authorized repair remains useful on the pinned main branch. The reviewed delta has no actionable correctness or security findings.

Priority: P3
Reviewed head: 374115e0e051bcb8e8ea582edf37a64d3ef37ec0

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository checks detect unused exports and verify generated agent prompts. This cleanup aligns their consumers with the helpers already used by conversation preparation without changing runtime output.

flowchart TD
  A[Repository source tree] --> B[Unused export checks]
  C[Tests and prompt fixtures] --> D[Existing conversation and model helpers]
  D --> E[Unchanged prompts and context budgets]
  A --> D
  B --> F[Repository check results]
Loading

Technical review

Best possible solution:

Land the existing-owner cleanup while preserving runtime behavior and committed prompt bytes.

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

Not applicable to a runtime bug: source confirms the retired exports and migrated callers, and the PR documents the failing repository checks and successful repair checks.

Is this the best way to solve the issue?

Yes: removing unused internal seams and using existing owners is narrower than retaining aliases or weakening the export scanner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 89c0368fe52e.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned patch and clean checkout: The introduced delta removes an unused Telegram predicate, privatizes the direct-context helper, removes a model-context re-export, and migrates their remaining test consumers. There are no net UI, workflow, dependency, configuration, or storage changes; the checkout remains clean. (374115e0e051)
  • Existing conversation owner preserves output: The shared builder dispatches direct and DM contexts to the unchanged private helper. Every migrated direct-context fixture supplies one of those chat types, including the heartbeat fixture inherited from the Telegram direct fixture. Main still exposes the retired helper, so this cleanup is not already implemented there. (src/auto-reply/reply/groups.ts:177, 89c0368fe52e)
  • Conversation-owner history: The shared conversation builder was added by the merged fix(agents): subagent completions discard cached conversation context #167898 to preserve conversation context across completion turns. The local introducing patch and raw recorded parent were inspected; this PR follows that ownership direction. (src/auto-reply/reply/groups.ts:177, 999bf5ecc5c0)
  • Telegram cancellation owner remains intact: The merged fix(telegram): keep pending questions when settings commands arrive #168004 moved pending-input cancellation to the narrower supersede predicate. Current main authorizes only abort and session-reset cancellation there; the removed read-only predicate has no remaining callers, while control-lane routing retains its read-only command set. (extensions/telegram/src/telegram-ingress-supersede.ts, 89c0368fe52e)
  • Complete internal caller cutover: Repository-wide search finds buildDirectChatContext only inside its owning module and no remaining isTelegramReadOnlyControlLaneText references. The removed symbols are not exposed through the searched plugin SDK or Telegram public barrel. (src/auto-reply/reply/groups.ts:158, 374115e0e051)
  • Recorded validation and exact-head checks: The captured PR body, source revision 0c9c4fdfda3c218bb92475d9db6d2a7a613eea1c1eea949bec0827239c098f72, reports clean production/full-tree/script export scans, 82 focused passing tests, and seven unchanged prompt snapshots. REST verification confirms successful check-prompt-snapshots, check-additional-boundaries, and check-source-contracts checks on the pinned head. Builds and tests were not executed during this read-only review. (374115e0e051)

Likely related people:

  • Peter Steinberger: Raw commit 999bf5e adds src/auto-reply/reply/groups.ts:177 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 999bf5ecc5c0; files: src/auto-reply/reply/groups.ts)

PR surface

Source -11, Tests +2. Total -9 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 1 12 -11
Tests 6 19 17 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 20 29 -9

Labels

Label changes:

  • add P3: This is a bounded internal export and test-consumer cleanup with unchanged runtime behavior.
  • 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:

  • P3: This is a bounded internal export and test-consumer cleanup with unchanged runtime behavior.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 9, 2026, 8:54 PM ET / October 10, 2026, 00:54 UTC.

@roboclaw-bot
roboclaw-bot merged commit afb4f0f into main Oct 10, 2026
142 of 145 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/question-card-baseline-dead-exports branch October 10, 2026 01:19
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
* fix(ci): remove retired Telegram and reply exports

Remove the Telegram read-only control predicate left without callers by
b701007. Drop the unused model-selection context-token re-export and
point its test directly at the existing owner. Make direct chat context
private after f17b454 migrated production callers to the shared source
conversation entry point, and move tests to that same entry point.

Reproduces main check-dependencies run 38004851105, job 114071382936,
plus the new direct-context dead export on f17b454. No scanner
exceptions or retained runtime behavior changes.

Validation: exact pnpm deadcode:full and production/full-tree/script
export scans clean; targeted lint clean; independent P1 autoreview clean.
Five focused files passed 82 tests in 161.89s, without adding tests.
Source-delivery integration proof failed 10 tests identically with the
changed helper and test reverted to baseline. Both runs hit existing /tmp/mock-sessions*.sqlite schema-24 databases through the
unchanged dispatch harness, plus a subsequent generation-scope failure.
Those unrelated shared fixtures were inspected read-only, not modified.

Co-authored-by: steipete <[email protected]>

* fix(ci): migrate prompt and avatar test consumers

Complete prompt-snapshot callers of the private direct-context helper. Migrate the stale avatar publication TTL fixture to the identity capability invalidation owner, preserving every publication and rerender assertion. Prompt snapshots remain byte-current; 47 avatar and identity tests pass. Full candidate P1 autoreview is scoped-clean.

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
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: telegram Channel integration: telegram 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