Repository navigation
refactor(telegram): remove redundant test coverage - #155040
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 23, 2026, 3:29 AM ET / 07:29 UTC (Revision 11). ClawSweeper reviewWhat this changesConsolidates Telegram tests, removes private testing hooks, updates test routing, and preserves streamed answers in place when reply threading is disabled. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the requested consolidation and quote-policy repair remain useful. Current-head Telegram evidence resolves the earlier proof blocker, and this review found no actionable correctness or security defect. Priority: P3 Review scores
Verification
How this fits togetherThe Telegram plugin turns incoming conversations and agent output into Telegram messages. Its delivery layer coordinates previews, reply targets, final answers, and transport recovery. flowchart LR
A[Telegram conversation] --> B[Agent reply]
B --> C[Telegram delivery policy]
D[Reply settings and quote context] --> C
C --> E[Reuse streamed preview]
C --> F[Send separate reply]
E --> G[Visible Telegram answer]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep distinct Telegram contracts at their strongest test owners and use the existing reply policy consistently for preview finalization. Do we have a high-confidence way to reproduce the issue? Yes for the retained quote defect: current main treats quote context as requiring separate delivery even with reply threading off; the retained HTTP scenario and reported Test Server reverted control exercise that path. This reviewer did not execute it. Is this the best way to solve the issue? Yes. Aligning preview reuse with the sender's existing reply policy is a narrow repair, and the inspected consolidation preserves the previously identified distinct regressions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ab93b4ea598. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
Classes of test-quality mistakes found in this cleanup
Review bar: name the observable contract, the plausible bug that would fail the test, and why existing coverage is insufficient. Use the cheapest adequate owner boundary. Mocked, static, slow, or failing tests are not automatically junk; meaningful regressions stay. |
There was a problem hiding this comment.
Follow-up: requested compaction-end check added
Added in 9b0e796: one test file, 17 added lines, no production changes. The existing success case now waits for its tool-reaction phase, then requires a new accepted thinking reaction after compaction end and before final delivery. Startup thinking cannot satisfy the check.
Validation:
- Focused reaction matrix: 4 passed, 22 unrelated cases excluded; final one-worker invocation 15.03s wall, 3.51s case time. No full-file or live-platform pass is claimed.
- Negative control: temporarily deleting only compaction-end's
setThinking()caused the success case to fail waiting for the missing transition (10-second diagnostic timeout). Production source was restored byte-for-byte, then the four-case matrix passed again. - Explicit one-path changed gate passed: formatting, extension-test types, lint and repository guards. Independent P0–P2 review returned no actionable findings.
- Local test traffic required loopback exclusions in
NO_PROXY/no_proxy; without them, both the unchanged PR baseline and candidate hit the same final-send network error. Only the test process environment was adjusted. - The initial unsynchronized probe exposed a separate in-flight reaction transition concern. This patch sequences the existing tool phase to test the requested compaction transition; it does not claim to fix the broader reaction-controller race.
PR remains draft; no merge or ready transition requested. CI timing/results for this commit are not yet established.
Original review (before the preservation repairs)
Test-pruning methodology review
I agree with the direction, but I would not yet endorse “no meaningful regression protection lost.” This PR contains genuinely better tests—not just fewer tests—but it also removes some distinct regression checks without equivalent replacements. I would continue the methodology in smaller, contract-focused batches after tightening that preservation step.
Reviewed at c15d097087bfb8e56a70d13532cb148bd05bcdf9 against merge base bb3a9b0f40e1a08c4835d2adbd9efd295ecd3664, including independent dispatcher, ingress/durability, and context/command audits. These are source-based coverage findings, not claims that the PR introduces the corresponding runtime bugs. I did not execute the tests or mutation experiments, and this is not an assertion-by-assertion certification of all 272 changed files.
What is good about it
The central diagnosis is right: a test can execute plenty of code while proving almost nothing independently.
Several changes here address that directly:
- Actual media bytes instead of mocked forwarding. The registered-action replacement checks the uploaded attachment contents, not merely whether a helper received the expected paths. Example
- A real leak-window assertion. The modifying-hook test holds the hook unresolved, checks that no non-typing HTTP writes have escaped, then verifies that only the permitted final content remains. Positive controls establish that previews otherwise work. This is materially stronger than checking a mocked “preview allowed” decision. Example
- Independent persistence expectations. The spool test now checks literal persisted event IDs, the topic lane, and actual dispatch order rather than generating the expected event ID with the same helper being tested.
- Shared policy stays with its owner. Removing Telegram copies of core drain retry/tombstone rules is reasonable where core tests retain those rules and Telegram tests still cover admission, acknowledgement, and lifecycle integration.
Removing the mutable action-runtime test indirection is also a useful production simplification. And retaining the three known failing cases instead of deleting or weakening them is the right discipline.
Important gaps I would repair
1. A known routed-agent /think regression loses its test
The deleted test checks a non-default agent whose per-model thinking setting is high or off while the shared setting is low. It asserts the displayed current thinking level. It was added for a specific prior bug, not as an implementation inventory. Deleted regression
The replacement menu test checks a max button and topic routing, but neither the displayed current level nor a routed non-default agent. Removing the still-required agentId forwarding in bot-native-command-builtins.ts:219 would undo the old fix without violating those replacement assertions.
Small repair: add the routed-agent high/off rows to the new registered-bot test and assert the menu text. No need to restore the old harness.
2. Queued assistant-block rotation is not replaced by ordinary preview coverage
The removed draft-rotation suite exercised two queued blocks with different assistant-message indices, including ordering and cancelled/skipped blocks. The production code still uses those indices to decide when one mutable preview must become a separate message. Removed example
The retained explicit queued-block case is unindexed and runs in progress mode, which excludes this rotation branch. The new multi-paragraph producer case runs with streaming off.
A plausible regression is making takeQueuedAnswerBlockRotation() always return false: a later assistant answer can overwrite the earlier preview. Stream-primitive tests cannot establish that the dispatcher preserves assistant boundaries.
Small repair: one real-preview scenario with two indexed assistant blocks, plus a discriminating cancellation/skip case.
3. “Preceding input answer” is retained in the wrong mode for one important risk
The new preceding-input recovery check uses mode: "off". The deleted cases also protected an earlier answer from being replaced by a longer active preview, including a media-bearing answer. Current replacement
The active-preview recovery calls still exist in lane-delivery-text-deliverer.ts. If a Telegram caller stops passing the payload metadata to the shared recovery helper, the helper's own tests can stay green while the wrong answer is substituted.
Small repair: retain an active-preview case, with earlier/latest answers deliberately different. Off-mode transcript recovery is a separate scenario.
4. Runtime behavior does not replace config-validation coverage
The PR removes the schema's acceptance and invalid-type tests for disableAudioPreflight. The new runtime test correctly checks group/topic precedence, but supplies an already-constructed config directly; it does not validate that user configuration. Deleted schema checks
A schema could reject a documented valid setting while that runtime test still passes. Similarly, the retained topic test only asserting rejection of { agentId, unknownField } does not prove that agentId itself remains accepted.
Small repair: compact positive/negative schema examples, or pass representative runtime fixtures through the real validator. Config shape is a public contract, not automatically “literal slop.”
5. Reaction handling does not prove Telegram subscribes to reaction updates
allowed-updates.test.ts disappears, and I found no retained assertion on allowed_updates. Yet polling and webhook registration still construct that field. The remaining reaction tests inject reaction updates after subscription would have occurred. Deleted guard
Dropping message_reaction from the subscription can leave handler tests green while real users' reactions never arrive.
Small repair: assert the required inclusion and unsupported-stop exclusion in a captured polling/webhook request—or retain a small independent helper contract. Copying grammY's entire default inventory is unnecessary.
Additional narrower preservation gaps
- Audio transcript echo routing: deleted cases checked the account, destination and DM/forum thread passed into audio preflight. New cases stub transcription and check model input, not that routing context. The echo sender actually consumes those fields. Extend a voice case to check the preflight context or actual echo destination. See
bot-message-context.body.ts:315–328and the deleted cases. - Compaction reactions: new compaction tests cover progress text with no status-reaction controller; the real-reaction matrix does not exercise compaction. They cannot detect Telegram ceasing to call
setCompacting(). Add compaction to the existing reaction scenario. Owner - Bot teardown ordering: the deleted test explicitly asserted handler completion before
bot.stop(). Retained tests establish that overall shutdown waits, but not that bot teardown itself waits. Preserve an observable bot-stop check while settlement is held; do not rely on an inert mocked stop. - Sticker-cache lookup failure: register/search failure coverage remains, but the asynchronous lookup-rejection case is removed. The narrower missing protection is that lookup still uses the best-effort fallback—not whether the shared fallback works at all. This can be a cheap failure-table row.
I would address these by extending the retained owners, not restoring thousands of lines wholesale.
How I would generalize the methodology
The recurring problem is “covered elsewhere” at too coarse a level. A shared helper test does not prove a caller supplies the right metadata. A broader HTTP test does not replace a smaller test if it runs in a mode that bypasses the relevant branch.
I would use this deletion bar:
- Map each meaningful removal to a named retained test and failure mode. Not just “covered by HTTP tests.” Record the relevant mode, account/topic scope, lifecycle state, and negative outcome. Group genuinely identical cases; no need for a bureaucratic row per assertion.
- Check sensitivity, not just green results. For risky replacements, deliberately break the claimed contract: omit the routed agent ID, disable rotation, remove a subscription, drop recovery metadata. Confirm that the replacement fails for the intended reason. Use a small targeted set, not a mandatory whole-repository mutation campaign.
- Keep independent positive and negative controls. A rejection test can pass because an unrelated guard rejects everything. Pair it with the nearest valid case.
- Choose the cheapest adequate boundary—not always the highest boundary. Small parser/config/helper tests can protect real public contracts. HTTP simulation is excellent for wiring and serialization, but does not independently validate every Telegram rule; this fixture is deliberately permissive.
- Batch by owner and measure cost. This diff has 78,797 changed lines across 272 paths, making coverage equivalence hard to review. Prefer independently reviewable groups. Track maintained contracts, execution cost and fixture complexity; treat deleted LOC as a result, never a target.
Evidence and verdict
The PR reports 869 passed / 3 failed cases across 43 files and a 248-path static check. That is useful scoped evidence, but not proof that all removed contracts survive. The exact-head GitHub checks I inspected during review were administrative/meta checks, not a completed Telegram test run. I independently ran only the diff whitespace check; I did not reproduce the reported tests or live Telegram behavior. No source files or PR state were changed during the review.
My recommendation: keep going with behavior-first consolidation, but repair these coverage gaps before using this PR as the template for a broad rollout. The goal should be less duplicated proof, with every distinct failure still detectable—not fewer tests, and not “integration tests replace unit tests.”
The stated review bar is sound. This PR shows both why it is valuable and where the “same contract” judgment needs to become more precise.
|
Addressed all nine coverage findings from the review in 52abfe2:
Proof: 38 focused cases passed; all 10 deliberate mutations were caught; the 11-path static gate passed; independent repair review returned no actionable findings. The extracted recovery suite is registered in the database-worker lane. Production code is unchanged by this follow-up. Size: +291 test LOC net; overall test reduction remains 41.8%. PR body updated with scope, timings, and existing validation limits. Still draft; not merged. |
Require a new accepted thinking reaction after compaction completes, excluding startup thinking and checking before final delivery. Sequence the existing tool reaction before compaction. Co-authored-by: obviyus <[email protected]>
Preserve current-main regression coverage, isolate retained fixtures, retire pending progress after observed final delivery, and honor off-mode quote policy during preview finalization. Co-authored-by: obviyus <[email protected]>
|
Readiness preparation checkpoint: This preserves the pruning and the first main reconciliation. Retained tests exposed two small delivery defects, now repaired at their owners: observed final delivery retires an accepted pending progress block, and preview finalization respects Verification: reply-target and command-detail HTTP suites passed 36/36; preview/directive/progress-card/lane siblings passed 46/46. The focused final repair review returned no actionable P0–P2 findings. Earlier full-review concerns were checked against complete source, reachable table rows, and retained coverage outside the review chunks. No assertion was weakened to manufacture green. Still in preparation: integrating newer main The PR remains draft; no merge or auto-merge has been requested. |
Keep consolidated test owners, migrate real bound-session help initialization with negative destination checks, and preserve the shared coalescing cutover and replay/cancellation controls. Co-authored-by: obviyus <[email protected]>
|
Review follow-up for
Required current-candidate Telegram Test Server evidence is still in progress through the configured isolated proof environment, and exact-head hosted CI is running. Neither is being replaced by mocked proof or marked complete prematurely. |
|
Required live Telegram proof is blocked before execution; this PR is not yet landing-ready. The Telegram review standard says: “Telegram behavior PRs need real Telegram proof when they touch transport, streaming, topics, callbacks, authorization, or reply context.” That applies to the two delivery corrections here; the passing HTTP tests do not replace it. The local runner lacks Smallest prerequisite to unblock: the proof-runner owner can make an approved Exact-head CI is being followed separately; its baseline-ratchet failure is under investigation. The PR remains open and no merge or auto-merge is authorized. |
Initialize the real runtime and no-binding account owner, bound controlled provider discovery, validate HTTP text types, remove a retired test entry, and place quote policy with payload projection without increasing line caps. Co-authored-by: obviyus <[email protected]>
Consolidate Telegram tests at their behavioral owners and remove redundant mock inventories and private test seams while retaining distinct routing, authorization, replay, media, and streaming regression checks. Align retained delivery tests with the landed shared final-delivery lifecycle. Respect replyToMode off when finalizing a quoted preview so the answer is edited in place instead of deleted and re-sent. Exact-head hosted CI passed. The PR records current-head Telegram Test Server proof with reverted controls and the remaining validation limitations. Work session: https://team.openclaw.ai/chat/roboclaw/dashboard/7320cd5b-9414-4cf6-99fe-0abb9a51df58 Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
…nclaw#156466) Close fixture responses so grammY cannot reuse a socket as the native HTTP server expires its idle lifetime. Preserve production ambiguity handling and the terminal-delivery assertions. Refs openclaw#155040. Reproduced the PR openclaw#156189 run 35834470541 typing-only failure at the native idle boundary; the same case passes with the fixture header. Linux proof includes 30 delayed-response stress trials, 243 tests across 13 files, check:changed, and independent review.
…igns (openclaw#156316) ## Problem Agents keep adding tests that restate implementation or repeat the same contract across layers, and `test-audit` had no repeatable workflow for pruning a whole subsystem's tests. ## Fix The `test-audit` authoring gate now checks new tests against a shared junk-pattern list (tests the retention bar protects are exempt). It requires one primary test per contract at its strongest boundary and one regression per bug. A new campaign mode (`CAMPAIGN.md`) records the step order from the Telegram cleanup in openclaw#155040. ## User impact No user-visible change. Agents writing tests reject known junk patterns, and maintainers can run the same subsystem-wide test cleanup on other areas. ## Proof A fresh read-only agent ran the revised skill on `extensions/policy`: 7 lanes, a 329-declaration ledger (296 retain, 26 consolidate, 7 delete), one test-only seam flagged for a maintainer decision, and both deliberately junk test proposals correctly rejected by the authoring gate. Ambiguities it found were fixed in the final commit. Co-authored-by: Ayaan Zaidi <[email protected]>
Carries openclaw#132409 ("fix(channels): preserve messages stalled before adoption", open; issue openclaw#127229, P1 message loss) onto the 9.6 carry. Applied as diff(9a4114b..217ef6a), the PR's own base to its Sept 10 head, by 3-way merge onto 1d5d6c8. Why that head and not the Sept 27 merge head cc8f0d0: the 9.6 tag's ingress files equal main of 2026-09-22 (814a7e7). cc8f0d0 merges main of 09-27 and integrates the PR with openclaw#158637's claim custody through settlement, which the tag does not have; applied here it conflicts in 4 production files. 217ef6a predates openclaw#158637, applies with one import conflict, and has a green hosted CI run (34543782080). The 09-27 head adds an abort-aware quiescence wait and idle-wake accessors that only openclaw#158637's retained owner and main's reworked monitor use. On this tree the owner is deregistered at abort, so a replacement drain recovers the claim at once; settleStalledClaim checks isStopped() only between attempts, so an attempt already waiting for quiescence still makes its one release write after stop, and the claim token fences that write. What it fixes on the bots: a second update from the same chat waits in grammY sequentialize behind a deferred handler with no heartbeat. At the 300 s adoption watchdog the drain released it for retry while the first callback was still blocked; the retry met the in-process update tracker as a duplicate, returned no outcome, and the row was completed without a recorded processing outcome (rh-bot, updates 735980139 and 735980143, 2026-09-29). Now the stalled claim keeps its lease and heartbeat until the old dispatch and deferred bookkeeping quiesce, then settles the retry; a separate stall-settlement wake repumps the monitor; Telegram's tracker records an owner-aborted deferred update as incomplete. Conflict resolution: - ingress-monitor.ts: import-only; the fork's split imports kept, the wake scheduler import added. - ingress-drain.watchdog.test.ts: main's two tests added after 09-08 kept; in the PR's rewritten "rearms a live deferred wait" test the tag's 1_666 ms heartbeat-cadence assertion is kept (cc8f0d0 dropped it). - polling-session.test.ts: the PR's hunk for "requeues buffered spooled claims when deferred processing times out" is not applied. At the tag the deferred participant settles itself on owner abort (openclaw#150080), so the claim is released at the stall without a manual settle; main later deleted the test (openclaw#155040). ingress-drain.ts equals 217ef6a plus exactly the tag's own 09-08..09-22 drift; drain-state, drain-wake, drain.test, zalouser and mattermost tests are byte-identical to 217ef6a. Original implementation by PollyBot13, with the maintainer fixup in 217ef6a; see openclaw#132409. Drop this commit when an upstream equivalent reaches the fork's base tag.
Closes #155003
What Problem This Solves
Telegram test maintenance carries redundant coverage that repeats mock behavior and the same contracts across multiple layers.
User Impact
User impact: primarily test maintenance. Retained regressions also exposed two existing delivery defects: a stale answer block could be sent after a message-tool final, and with reply threading off a quoted reply deleted its streamed preview and re-sent the answer as a new message. After merging #155906, its shared final-delivery lifecycle already retires the pending block, so this PR keeps only the quote-policy repair; the message-tool case remains covered by retained tests and live proof. No new settings, migration, required user action, or runtime/CI speedup is claimed.
Landing preparation requested. Exact-head CI and the hosted ClawSweeper review must pass before merge. No auto-merge is authorized.
Why This Change Was Made
This requested cleanup removes mock echoes, identity/Promise inventories, redundant send/action/dispatcher/history matrices, and unused support. Contracts are consolidated at stronger existing owners, while distinct authorization, ordering, replay, and media regressions remain; original tests are retained where replacements did not establish equivalent coverage.
The scope also includes private test-only seam cleanup, test-worker routing, shrink-only line-cap updates, and Telegram test-ownership guidance. Before the readiness repairs below, the cleanup campaign's production edits totaled six files and 42 net lines removed.
At
52abfe2655d, against the original cleanup baseline, test code falls from 111,122 to 64,651 lines (−46,471; 41.8%) and support from 7,493 to 5,686 lines (−1,807): 48,278 net lines removed combined (40.7%). These counts include all new and restored tests/helpers; they are campaign measurements, not GitHub's PR diff statistics.Evidence
Maintainer compatibility decision (
3eb1bab78c1)Maintainer decision (Ayaan): this PR changes no user config or stored-data contract, so no migration or upgrade compatibility proof is required. Checked against the complete diff from the merge base: no config schema, default, manifest, migration or SQLite schema change. Production edits are the quote-policy repair (
bot-message-dispatch-payload.ts,bot-message-dispatch-delivery.ts) and removal of test-only seams:message-cache.tsdrops test-supplied store/bucket parameters (production store, bucket key, keys and serialization unchanged),update-offset-persistence.tsdrops an inspection getter (write ordering and on-disk form unchanged), the internal test-onlyresetMissingDefaultWarnFlagexport is removed, andaction-runtime.tscalls the same operations with the same authorization arguments without its test indirection. The ClawSweeper flag came fromunknown-truncated-pull-fileson this 280-file diff, not from a detected change.Merge with #155906 and live Telegram proof (
3eb1bab78c1)Merged current
main(including #155906, which moved Telegram final delivery onto the shared live-preview lifecycle). Conflicts resolved at the new owner:bot-message-dispatch-turn.tstakes main's lifecycle callback, whosefinalStartedguard now retires the pending answer block, so this PR's separate reset was dropped. Test files this PR had already consolidated stay deleted; #155906's newfinal-delivery-lifecyclesuite is kept intact. Retained tests were aligned with the landed contract: the delivery outcome matrix now expects the delivery warning for failed and partially delivered finals, lane tests assert returned delivery results instead of retired deliverer flags, and clear-count assertions that #155906 also removed are gone. No assertion was loosened beyond #155906's own changes.messagetool, thenNO_REPLYChecking the result…messagereplyToMode: off, partial streaming, user replies with a native quoteBoth scenarios were re-run on the merged head
3eb1bab78c1with the same result as the fixed build. The quote scenario used a local proof-only harness extension (quotedsendaction) that is not part of this PR.Previous readiness checkpoint (
e4045b8ef8f7)Hosted CI is green on this exact head: run 35792794579, attempt1, 139 successful jobs, 15 skipped, zero failed/cancelled/pending. GitHub reports the PR mergeable; auto-merge remains disabled.
The published current-head ClawSweeper review reports no code or security findings. Its verdict remains needs-human / blocked for required live Telegram proof and two generic compatibility checklist items. The detailed review identifies no user-config or stored-data contract change, but those checklist flags have not been cleared; this is not represented as approval. Required current-candidate Telegram Test Server proof remains blocked by the documented runner prerequisites. This PR is not yet landing-ready; no merge is authorized.
Concurrency fixture repair (
e4045b8ef8f7)The next CI run passed the preview suite, but exposed five obsolete
/stopresolver waits. Phase traces showed both control updates completing and Telegram acknowledging the stop in topic 100; the shared dispatcher handles/stopthroughfastAbortResolver/finishFastCommandbefore the model resolver. The test now asserts that real acknowledgment and update completion instead of waiting for an impossible callback. All six cases, authorization controls, held ordinary work, cross-topic cancellation, later completion, and final deadlines remain. No production or metadata-admission guard changed.Terminal-fallback diagnostics (
9391ef162c31)The
24495e034358CI run passed its other checks, including hosted lint and static checks, but recorded one failure: an unaccepted-preview model failure left zero visible fallback messages. That failure remains unexplained; this commit is not a claimed causal fix.The original nine-file CI order passed172 cases on both Node26 and CI-matched Node24.19.0. The Node24 full preview suite passed30 cases, and CI-mode terminal/replay controls passed4. The strengthened test asserts the actual preview precondition, no longer broadly permits internal delivery errors, and attaches synthetic HTTP history to the unchanged one-visible-message assertion. Production behavior, deadlines, retries, and suppression are unchanged; the scoped independent review found no actionable P0–P2 issue. Fresh hosted CI is required, and the separate mandatory live-proof blocker remains.
CI repair (
24495e034358)Landing preparation (
3eece00d38a4)e9df70639592b85e6c6f15e609b5a4a1c53b1b18, preserving the shared coalescing cutover, binding-authority controls and the pruning’s stronger owners. Two real/helpinitialization rows replace the newly added symbol-identity/helper checks; they verify selected-session activity and reject wrong peer/parent destinations.uv, and the configured Testbox path has no verified supported private broker injection. The prerequisite and cleanup report records the required owner action; no lease or live scenario ran. No current-head live-platform success is claimed yet.Review follow-up (52abfe2)
The preservation review identified nine real coverage gaps. They are repaired at retained owners: routed-agent
/thinktext; indexed preview rotation and skip cleanup; preceding-answer recovery with an active preview; config acceptance/rejection; polling/webhook reaction subscriptions; voice echo account/thread routing; compaction reactions; bot-stop ordering; and asynchronous sticker lookup fallback.Focused per-file execution cost
Measured case-duration totals from the 38-case run, excluding collection/build overhead. The complete invocation took 133.90 seconds including prerequisite build and worker preparation; no CI timing claim is made.
bot-message-dispatch.preview.telegram-http.test.tsbot-message-dispatch.reply-targets.telegram-http.test.tsbot-message-context.body.test.tssticker-cache.test.tsbot-message-dispatch.recovery.telegram-http.test.tsbot-native-command-dispatch.delivery.test.tspolling-session.test.tswebhook.test.tsconfig-schema.test.tstelegram-ingress-worker.runtime.test.tsEarlier pruning-head evidence
scripts/check-changed.mjscheck passed: production and extension-test types, formatting, lint, guards, zero dead-export entries in the checked scopes, and zero runtime import cycles. Its separate doctor checks passed 6/6.bot-message-dispatch.progress-command-detail.telegram-http.test.ts: progress tool-result acceptance times out.bot-message-dispatch.reply-targets.telegram-http.test.ts: quote-off context produces two messages where one is expected.bot-message-dispatch.progress-card.test.ts: message-tool progress leaves an extra “Checking the result” message.bot-message-context.body.test.tsrun then passed 49/49 (90.47 seconds wall time), followed by the passing changed-path check. Other reported findings were adjudicated against source; this is not a claim that the review reported no findings.The earlier 272-path PR diff also included earlier Telegram-specific integration and tooling cleanup; the final 248-path check does not mean every PR path was rerun. Validation is scoped local proof, not an all-green full-repository run. Separate userbot proof on
c15d097087exercised the Telegram Test Server with a deterministic model backend: core DM/command/streaming/media/history/topic flows passed, but the post-click provider-menu update and distinct reaction-status transitions remained unverified. No new live-platform claim is made for that earlier test-only follow-up; current-candidate live proof remains a separate required gate.