Repository navigation
test(channels): await ingress settlement in channel fixtures - #158933
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: needs maintainer review before merge. Reviewed September 26, 2026, 10:37 AM ET / 14:37 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch updates bundled channel tests to await ingress queue writes, adoption, or monitor idleness and adds a test-only SDK re-export for the existing queue-write observer. Merge readiness✅ Ready for maintainer review Keep open. Current main contains the shared ingress test helper, but not this branch’s channel fixture updates. The work remains distinct, and this review found no actionable patch defect. Priority: P3 Review scores
Verification
How this fits togetherChannel monitors accept incoming messages and settle them through a durable ingress queue. These fixtures drive that flow and inspect delivery, retry, deduplication, and ordering after the relevant work finishes. flowchart LR
A[Channel test event] --> B[Channel monitor]
B --> C[Durable ingress queue]
C --> D[Delivery or retry]
D --> E[Settlement signal]
E --> F[Test assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +115. Total +116 across 13 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the channel fixture updates through normal review gates while retaining their delivery assertions and the test-only SDK boundary. Do we have a high-confidence way to reproduce the issue? Not applicable to a user-facing issue: this PR addresses fixture timing. Source shows the earlier polling points, but this read-only review did not reproduce a failing current-main test. Is this the best way to solve the issue? Yes. Reusing the existing queue-write observer and monitor-owned idle signals is a focused way to make these assertions wait for the state they inspect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d9a52238b381. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
## What Problem This Solves Telegram webhook tests observe handler entry before durable queue settlement and remove database fixtures before asynchronous cleanup finishes. ## User Impact No user-visible behavior changes. This test preparation needs no migration, configuration change, or operator action. Existing Gateway webhook paths, signatures, acknowledgements, and replay behavior are preserved. ## Why This Change Was Made Await the actual ingress monitor's idle/settlement boundaries, reuse shared temporary-state cleanup, and join the SQLite worker cleanup. Keep the Gateway-owned webhook fixture and HTTP lifecycle introduced by the HTTP ingress stack. Production +0/-0/net 0; tests +76/-49/net +27; docs +0/-0/net 0. No test cases were removed. Across all six fixture preparations, consolidation reduces test growth from +546 to +415 (+517 to +386 when including the earlier Telegram cleanup). ## Evidence Provider: blacksmith-testbox; lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)). After frozen install, `pnpm test extensions/telegram/src/webhook.test.ts --maxWorkers=1` passed 110 tests in 14.60s; `pnpm test extensions/telegram/src/telegram-ingress-drain.test.ts --maxWorkers=1` passed 32 tests in 10.01s. The command retained remote logs and exit receipts and exited 0. An earlier streaming command ended 255 after worker compilation without a test completion receipt; no active test process or kernel OOM message was observed. The cause remains unproven, and that attempt is not counted as a pass. Deslop and independent Codex P0–P2 review are clean; the review included the unchanged Gateway fixture. The rebase onto `be46e6966c2b52c6cde06abf965c44f9a175a47f` is patch-identical. Maintainer-authorized exact-head auto-merge remains subject to required hosted CI. Signed-SMS SIGKILL/replay proof follows the final atomic broker cutover on merged main. Legacy Telegram spool import and startup profiling remain documented follow-ups. ## Stack Landed: #157687 → #158203 → #158233 → #158288 → #158412 → #158477 → #158628 → #158637 → #158860 → #158887 → #158896 → #158928 → #158933 → #158980 → #158987. Slice 16 is polling fixtures; this is slice 17 (webhook fixtures); slice 18 completes the broker cutover and worker-access inventory.
## What Problem This Solves Telegram polling tests replace process clocks and timers that the SQLite workers also need, so they cannot reliably exercise worker-backed ingress. ## User Impact No user-visible change. This is preparation for routing the existing ingress queue through the shared-state broker. Updates require no migration, configuration change, or operator action; transport, acknowledgement, dedupe, and recovery semantics stay unchanged. ## Why This Change Was Made Scope the watchdog clock to Telegram liveness, reuse the runtime worker launcher arguments in direct worker fixtures, await committed completions, and join database cleanup. The test-only `test-env` export is excluded from the published package; no production SDK contract changes. Production +1/-0/net +1 (test-only SDK export); tests/support +168/-133/net +35; docs +4/-0/net +4. Across the six fixture preparations, consolidation reduces the original +546 test lines to +415; including the earlier Telegram cleanup, +517 becomes +386. Behavioral cases remain covered. ## Evidence Provider: blacksmith-testbox. On lease `tbx_01m3ezq966mgn19mz1ds1ym28x` ([run](https://github.com/openclaw/openclaw/actions/runs/36246522577)), `pnpm test extensions/telegram/src/polling-session.test.ts --maxWorkers=1` passed 40 tests in 67.31s; worker/runtime/deadline siblings passed 16 tests in 7.43s. On lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)), frozen install, `pnpm tsgo:extensions:test` (85.25s), `pnpm plugin-sdk:api:diff --base 84d71bf --head HEAD` (255.30s), `pnpm plugin-sdk:check-exports` (0.16s), and `pnpm check:docs` (49.62s) passed. SDK diff has no entrypoint or exported-signature change; reachable inferred declarations differ in optional-undefined readonly/property ordering. An earlier SSH command ended 255 without a completion receipt; its type phase is not counted as passing. The fresh run retained per-command logs and exit receipts. Deslop and Codex P0–P2 review are clean. Rebase onto `be46e6966c2b52c6cde06abf965c44f9a175a47f` is patch-identical. Required hosted CI gates exact-head auto-merge, authorized by the maintainer. The final signed-SMS SIGKILL/replay proof runs after the atomic broker cutover lands. Legacy Telegram spool import and startup profiling remain documented follow-ups. ## Stack Landed: #157687 → #158203 → #158233 → #158288 → #158412 → #158477 → #158628 → #158637 → #158860 → #158887 → #158896 → #158928 → #158933 → #158980 → #158987. This is slice 16 (polling fixtures); slice 17 (webhook fixtures) and slice 18 (atomic broker cutover and inventory) follow.
…9073) ## What Problem This Solves The shared channel ingress queue still performs operational reads and writes synchronously on the Gateway thread, despite exposing an asynchronous API. ## User Impact Inbound persistence and replay use the existing shared-state SQLite broker. Admission returns only after commit; claim fencing, per-account ordering, dedupe, retention, and accepted-write settlement remain intact. Operational listings observe earlier committed writes and still create a missing database for ordinary read-write queues. Explicit read-only inspection remains noncreating. Update behavior: no schema, stored-byte, config, port, webhook path, signature, dedupe-window, or retention change; no migration or operator action. The maintainer approved the worker-access change and the broker-ordered listing adjustment. Legacy pre-May-31 Telegram spool import and Telegram startup profiling remain documented follow-ups, as directed. ## Why This Change Was Made All twelve mutations and the operational listings cut over together to preserve one FIFO owner. Diagnostic failed-health, pressure, and account discovery already use read-only workers. Channel parsing and lane policy stay on the host; the worker verifies the prepared ordered snapshot before applying a claim or recovery decision. Custom claim clocks are sampled at transaction admission. Accepted commits settle even if caller authority later revokes. The drain consumes one coherent pending/claimed snapshot. `listUnsettled` is optional for existing external queue implementations through the next SDK major. `purge` accepts an optional cancellation signal, and Telegram passes its existing signal. Runtime construction binds live plugin authority to every operation, replacing the purge-only wrapper. The existing table and database version are unchanged. Deletes the main-thread queue SQL path and superseded runtime wrapper. The final write cutover is intentionally larger than the fixture slices because mixing native and broker mutations would break admission ordering. Earlier slices removed Telegram directory helpers and consolidated shared fixture scaffolding. Production +964/-942/net +22; tests and test support +837/-315/net +522; docs +41/-18/net +23; tooling +3/-0/net +3. The runtime growth preserves authority and settlement across a worker boundary. All earlier slices plus this candidate total production net +446; test fixture consolidation reduced the original +517 growth to +386 before the final routing/regression coverage. ## Evidence Provider: blacksmith-testbox. Lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)), frozen install, `pnpm tsgo:core` (41.13s), `pnpm tsgo:extensions:test` (78.55s), and inventory generation/check passed. Nine focused owner files passed 144 tests. Single-worker wall cost per file: queue 33.02s; claim ownership 9.28s; readonly access 8.07s; pruning 7.20s; drain lanes 8.50s; monitor 9.44s; plugin-state runtime 14.12s; registry runtime-config 11.08s; Telegram monitor 15.15s. The two changed tooling files passed 381 tests in a combined 192.99s single-worker wall. The additional 72-file per-config run used `pnpm test <explicit routed ingress paths> --maxWorkers=1`: 128 core tests and 855 extension tests passed, with two fixture failures over 518.11s. LINE and MS Teams waited for a `listPending` spy that the coherent snapshot intentionally replaces. Both fixtures now capture the real monitor and await its pump, preserving the eight-delivery cap and queued-row assertions. Lease `tbx_01m3faw6necd61h11wcf6se4hs` ([run](https://github.com/openclaw/openclaw/actions/runs/36257798905)) proved the corrections: `pnpm test extensions/line/src/webhook-spool.test.ts --maxWorkers=1` passed 14 tests in 31.09s; `pnpm test extensions/msteams/src/msteams-ingress.test.ts --maxWorkers=1` passed 15 in 18.32s. Extension types (79.74s), runtime import cycles (9.38s; zero), Madge cycles (26.36s; zero), SDK exports (0.22s), and docs sanity (54.79s) passed. The existing pruning case with padded protected IDs passed (five tests, 8.46s). Negative controls failed for the intended reasons: removing normalization deleted a protected row; raising either channel's cap to nine caused nine deliveries where eight were required. The production controls were restored and checked. Worker routing is covered by actual queue operations with calling-thread SQLite primitives refusing execution. Regression probes also cover missing database creation, committed-then-list inside an older ambient snapshot, live authority after awaited policy, custom-clock transaction grants, post-grant settlement, and coherent lane inspection. No weaker guards or assertions were substituted. Deslop is clean. Codex P0–P2 review is clean after supplying the full unchanged worker kernel: two earlier allegations were disproven by existing normalization and corrupt-row filtering, with direct tests. The final review used a byte-verified capture of the full 35-file diff and the broker/kernel context. Rebase onto `4ab72dd0d2c2cc335569da0603f7778f276a1717` was patch-identical. The maintainer authorized GitHub exact-head auto-merge; required CI remains the gate. Fresh proof on published source head `b828403ef8f309ffda1e4859f6eca3268fdc66cb` (same lease): queue/claim/readonly regression suites passed 47 tests in 38.51s; regenerated inventory and its check passed (545 source files, 2543 primitive calls). `pnpm plugin-sdk:api:diff --base 4ab72dd --head b828403` passed in 242.79s; exports passed in 0.17s. The SDK acknowledgement digest is `e2cba13f`. No entrypoints were added or removed; the additive queue contract is intentional and documented. Final head `0b24c42b9242b07e1a7c60147b4cba5f46d5bd91` only refreshes two generated source-line references. Merged-main signed-SMS SIGKILL/replay proof is the remaining post-merge task and will be recorded in this PR. ## Stack Landed: #157687 → #158203 → #158233 → #158288 → #158412 → #158477 → #158628 → #158637 → #158860 → #158887 → #158896 → #158928 → #158933 → #158980 → #158987 → #159006 → #159008. This is the final atomic broker cutover and inventory slice. Signed-SMS crash/replay proof follows on merged main.
…9008) ## What Problem This Solves Telegram webhook tests observe handler entry before durable queue settlement and remove database fixtures before asynchronous cleanup finishes. ## User Impact No user-visible behavior changes. This test preparation needs no migration, configuration change, or operator action. Existing Gateway webhook paths, signatures, acknowledgements, and replay behavior are preserved. ## Why This Change Was Made Await the actual ingress monitor's idle/settlement boundaries, reuse shared temporary-state cleanup, and join the SQLite worker cleanup. Keep the Gateway-owned webhook fixture and HTTP lifecycle introduced by the HTTP ingress stack. Production +0/-0/net 0; tests +76/-49/net +27; docs +0/-0/net 0. No test cases were removed. Across all six fixture preparations, consolidation reduces test growth from +546 to +415 (+517 to +386 when including the earlier Telegram cleanup). ## Evidence Provider: blacksmith-testbox; lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)). After frozen install, `pnpm test extensions/telegram/src/webhook.test.ts --maxWorkers=1` passed 110 tests in 14.60s; `pnpm test extensions/telegram/src/telegram-ingress-drain.test.ts --maxWorkers=1` passed 32 tests in 10.01s. The command retained remote logs and exit receipts and exited 0. An earlier streaming command ended 255 after worker compilation without a test completion receipt; no active test process or kernel OOM message was observed. The cause remains unproven, and that attempt is not counted as a pass. Deslop and independent Codex P0–P2 review are clean; the review included the unchanged Gateway fixture. The rebase onto `2c67755c29899c9deba29d3baaa902ec5d0d6efd` is patch-identical. Maintainer-authorized exact-head auto-merge remains subject to required hosted CI. Signed-SMS SIGKILL/replay proof follows the final atomic broker cutover on merged main. Legacy Telegram spool import and startup profiling remain documented follow-ups. ## Stack Landed: openclaw#157687 → openclaw#158203 → openclaw#158233 → openclaw#158288 → openclaw#158412 → openclaw#158477 → openclaw#158628 → openclaw#158637 → openclaw#158860 → openclaw#158887 → openclaw#158896 → openclaw#158928 → openclaw#158933 → openclaw#158980 → openclaw#158987. Slice 16 is polling fixtures; this is slice 17 (webhook fixtures); slice 18 completes the broker cutover and worker-access inventory.
## What Problem This Solves Telegram polling tests replace process clocks and timers that the SQLite workers also need, so they cannot reliably exercise worker-backed ingress. ## User Impact No user-visible change. This is preparation for routing the existing ingress queue through the shared-state broker. Updates require no migration, configuration change, or operator action; transport, acknowledgement, dedupe, and recovery semantics stay unchanged. ## Why This Change Was Made Scope the watchdog clock to Telegram liveness, reuse the runtime worker launcher arguments in direct worker fixtures, await committed completions, and join database cleanup. The test-only `test-env` export is excluded from the published package; no production SDK contract changes. Production +1/-0/net +1 (test-only SDK export); tests/support +168/-133/net +35; docs +4/-0/net +4. Across the six fixture preparations, consolidation reduces the original +546 test lines to +415; including the earlier Telegram cleanup, +517 becomes +386. Behavioral cases remain covered. ## Evidence Provider: blacksmith-testbox. On lease `tbx_01m3ezq966mgn19mz1ds1ym28x` ([run](https://github.com/openclaw/openclaw/actions/runs/36246522577)), `pnpm test extensions/telegram/src/polling-session.test.ts --maxWorkers=1` passed 40 tests in 67.31s; worker/runtime/deadline siblings passed 16 tests in 7.43s. On lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)), frozen install, `pnpm tsgo:extensions:test` (85.25s), `pnpm plugin-sdk:api:diff --base 8816746 --head HEAD` (255.30s), `pnpm plugin-sdk:check-exports` (0.16s), and `pnpm check:docs` (49.62s) passed. SDK diff has no entrypoint or exported-signature change; reachable inferred declarations differ in optional-undefined readonly/property ordering. An earlier SSH command ended 255 without a completion receipt; its type phase is not counted as passing. The fresh run retained per-command logs and exit receipts. Deslop and Codex P0–P2 review are clean. Rebase onto `2c67755c29899c9deba29d3baaa902ec5d0d6efd` is patch-identical. Required hosted CI gates exact-head auto-merge, authorized by the maintainer. The final signed-SMS SIGKILL/replay proof runs after the atomic broker cutover lands. Legacy Telegram spool import and startup profiling remain documented follow-ups. ## Stack Landed: openclaw#157687 → openclaw#158203 → openclaw#158233 → openclaw#158288 → openclaw#158412 → openclaw#158477 → openclaw#158628 → openclaw#158637 → openclaw#158860 → openclaw#158887 → openclaw#158896 → openclaw#158928 → openclaw#158933 → openclaw#158980 → openclaw#158987. This is slice 16 (polling fixtures); slice 17 (webhook fixtures) and slice 18 (atomic broker cutover and inventory) follow.
…nclaw#159073) ## What Problem This Solves The shared channel ingress queue still performs operational reads and writes synchronously on the Gateway thread, despite exposing an asynchronous API. ## User Impact Inbound persistence and replay use the existing shared-state SQLite broker. Admission returns only after commit; claim fencing, per-account ordering, dedupe, retention, and accepted-write settlement remain intact. Operational listings observe earlier committed writes and still create a missing database for ordinary read-write queues. Explicit read-only inspection remains noncreating. Update behavior: no schema, stored-byte, config, port, webhook path, signature, dedupe-window, or retention change; no migration or operator action. The maintainer approved the worker-access change and the broker-ordered listing adjustment. Legacy pre-May-31 Telegram spool import and Telegram startup profiling remain documented follow-ups, as directed. ## Why This Change Was Made All twelve mutations and the operational listings cut over together to preserve one FIFO owner. Diagnostic failed-health, pressure, and account discovery already use read-only workers. Channel parsing and lane policy stay on the host; the worker verifies the prepared ordered snapshot before applying a claim or recovery decision. Custom claim clocks are sampled at transaction admission. Accepted commits settle even if caller authority later revokes. The drain consumes one coherent pending/claimed snapshot. `listUnsettled` is optional for existing external queue implementations through the next SDK major. `purge` accepts an optional cancellation signal, and Telegram passes its existing signal. Runtime construction binds live plugin authority to every operation, replacing the purge-only wrapper. The existing table and database version are unchanged. Deletes the main-thread queue SQL path and superseded runtime wrapper. The final write cutover is intentionally larger than the fixture slices because mixing native and broker mutations would break admission ordering. Earlier slices removed Telegram directory helpers and consolidated shared fixture scaffolding. Production +964/-942/net +22; tests and test support +837/-315/net +522; docs +41/-18/net +23; tooling +3/-0/net +3. The runtime growth preserves authority and settlement across a worker boundary. All earlier slices plus this candidate total production net +446; test fixture consolidation reduced the original +517 growth to +386 before the final routing/regression coverage. ## Evidence Provider: blacksmith-testbox. Lease `tbx_01m3f53n667mcj031n55vm5tj8` ([run](https://github.com/openclaw/openclaw/actions/runs/36251856365)), frozen install, `pnpm tsgo:core` (41.13s), `pnpm tsgo:extensions:test` (78.55s), and inventory generation/check passed. Nine focused owner files passed 144 tests. Single-worker wall cost per file: queue 33.02s; claim ownership 9.28s; readonly access 8.07s; pruning 7.20s; drain lanes 8.50s; monitor 9.44s; plugin-state runtime 14.12s; registry runtime-config 11.08s; Telegram monitor 15.15s. The two changed tooling files passed 381 tests in a combined 192.99s single-worker wall. The additional 72-file per-config run used `pnpm test <explicit routed ingress paths> --maxWorkers=1`: 128 core tests and 855 extension tests passed, with two fixture failures over 518.11s. LINE and MS Teams waited for a `listPending` spy that the coherent snapshot intentionally replaces. Both fixtures now capture the real monitor and await its pump, preserving the eight-delivery cap and queued-row assertions. Lease `tbx_01m3faw6necd61h11wcf6se4hs` ([run](https://github.com/openclaw/openclaw/actions/runs/36257798905)) proved the corrections: `pnpm test extensions/line/src/webhook-spool.test.ts --maxWorkers=1` passed 14 tests in 31.09s; `pnpm test extensions/msteams/src/msteams-ingress.test.ts --maxWorkers=1` passed 15 in 18.32s. Extension types (79.74s), runtime import cycles (9.38s; zero), Madge cycles (26.36s; zero), SDK exports (0.22s), and docs sanity (54.79s) passed. The existing pruning case with padded protected IDs passed (five tests, 8.46s). Negative controls failed for the intended reasons: removing normalization deleted a protected row; raising either channel's cap to nine caused nine deliveries where eight were required. The production controls were restored and checked. Worker routing is covered by actual queue operations with calling-thread SQLite primitives refusing execution. Regression probes also cover missing database creation, committed-then-list inside an older ambient snapshot, live authority after awaited policy, custom-clock transaction grants, post-grant settlement, and coherent lane inspection. No weaker guards or assertions were substituted. Deslop is clean. Codex P0–P2 review is clean after supplying the full unchanged worker kernel: two earlier allegations were disproven by existing normalization and corrupt-row filtering, with direct tests. The final review used a byte-verified capture of the full 35-file diff and the broker/kernel context. Rebase onto `94580ed1416cbe69b173b6ca85a1b1ab2001d55a` was patch-identical. The maintainer authorized GitHub exact-head auto-merge; required CI remains the gate. Fresh proof on published source head `b828403ef8f309ffda1e4859f6eca3268fdc66cb` (same lease): queue/claim/readonly regression suites passed 47 tests in 38.51s; regenerated inventory and its check passed (545 source files, 2543 primitive calls). `pnpm plugin-sdk:api:diff --base 94580ed --head b828403` passed in 242.79s; exports passed in 0.17s. The SDK acknowledgement digest is `e2cba13f`. No entrypoints were added or removed; the additive queue contract is intentional and documented. Final head `0b24c42b9242b07e1a7c60147b4cba5f46d5bd91` only refreshes two generated source-line references. Merged-main signed-SMS SIGKILL/replay proof is the remaining post-merge task and will be recorded in this PR. ## Stack Landed: openclaw#157687 → openclaw#158203 → openclaw#158233 → openclaw#158288 → openclaw#158412 → openclaw#158477 → openclaw#158628 → openclaw#158637 → openclaw#158860 → openclaw#158887 → openclaw#158896 → openclaw#158928 → openclaw#158933 → openclaw#158980 → openclaw#158987 → openclaw#159006 → openclaw#159008. This is the final atomic broker cutover and inventory slice. Signed-SMS crash/replay proof follows on merged main.
What Problem This Solves
Channel tests sometimes inspect queue state after a callback starts, before its asynchronous settlement finishes, and repeat temporary-state cleanup.
User Impact
No runtime or update behavior changes. Database schema, configuration, retention, message semantics and public Plugin SDK signatures stay unchanged. No migration or operator action is required.
Why This Change Was Made
Reuse the shared test-state fixture and the core queue-write observer through the existing test-only SDK seam. Channel tests await actual adoption, settlement or owned monitor idleness while retaining their delivery, dedupe, ordering and retry assertions. Controlled handlers are released and joined during cleanup. Signal fixtures preserve failures before aborting their mock stream; they no longer risk losing an ingress error inside the monitor.
The test-only SDK module is excluded from the published package. Its one added re-export is used immediately by Discord, Feishu and WhatsApp fixtures. Production-accounting +1/−0; tests/support +216/−101, net +115; docs 0. This is one portion of the reviewed consolidated fixture preparation, whose six slices shrink from net +546 to +424 test lines after the typed-observer correction. No behavioral cases are deleted here.
Evidence
Provider blacksmith-testbox, lease
tbx_01m3et58xr5pchqj2rjcts7az9, run 36241255544. Frozen install and exact-source verification preceded each run.pnpm tsgo:extensions:testpassed in 114.99s. Per-filepnpm test <file> --maxWorkers=1wall costs:The Zalo polling-lifecycle and monitor-mocks sibling suites passed 30 tests in 23.43s. Total: 132 tests across ten files. SDK exports passed. API diff passed in 267.66s; its complete JSON was captured again on blacksmith-testbox lease
tbx_01m3ezq966mgn19mz1ds1ym28x, run 36246522577, in 286.71s. There are no entrypoint or public-signature changes: the reachable-declaration difference only reorders two identical optional properties in an existing recovery result type.Deslop is clean. The consolidated source has a clean Codex review, including a separately checked Zalo completion path. All added/deleted source lines still match the reviewed partition; incorporated main changes retain its Signal test pruning and Zalo type import. Rebase from
889699d69de5onto merged mainece27a12d64cis patch-identical. Published headc1cb523faba9e8186b7c59516cacce6d2e460a25passed fresh consumer verification on leasetbx_01m3ezq966mgn19mz1ds1ym28x, run 36246522577: Discord / Feishu / WhatsApp delivery / Zalo siblings passed 72 tests across five files in 32.31 / 22.07 / 16.43 / 22.55s. The enforced GitHub CI gate replaces a separate Testbox check-changed run.Stack
75e416f1ac2f.bde1d5fae597.ce1e59dc738f.ece27a12d64c.Signed-SMS SIGKILL/replay proof remains required on merged main after the final cutover. Legacy Telegram file import and startup profiling remain maintainer-approved follow-ups.
Stack closeout: all 18 slices are merged.
#157687 → #158203 → #158233 → #158288 → #158412 → #158477 → #158628 → #158637 → #158860 → #158887 → #158896 → #158928 → #158933 → #158980 → #158987 → #159006 → #159008 → #159073
Final merged-main signed-SMS SIGKILL/replay proof passed on
f0b78f55d6d5acfb052a4512d97088b408a0c28d.