refactor(research): published TCloud transport with compatible APIs and cancellation - #222
Conversation
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 8ecae967
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-26T03:22:25Z
…sport Chat usd now comes from the router's X-Tangle-Price-* headers via tcloud's metering. options.signal rejects callers again, a missing key fails before any request, hits without a URL are dropped, and the lockfile includes tcloud. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — c498ca41
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-26T05:04:25Z
|
Closing this migration under the release-owner handoff. At exact head The current public tcloud release is still The branch and its live transport evidence remain available. |
… public APIs Rebuild sweep 4 from current main. Preserve RouterError and retry options, propagate actual transport cancellation, account per-response costs and retain the generated release-gated registry lock. TCloud 0.6.0 must be published before this consumer can install from npm. Delete the old audit note and local HTTP/retry/pricing implementations.
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 6fb91b9b
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-27T05:03:21Z
…ation Rebuilt and checked in actions run 36296093325. The registry activation lock has identical parsed content and measured SDK integrity, without unrelated YAML reformatting.
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — d98263b0
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-27T05:06:26Z
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 7e17fe30
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-28T04:54:41Z
|
P2 — The public research-loop signal does not cancel its router calls at
An exact-head built-package local HTTP reproduction aborted the worker signal during a delayed chat. The worker and socket remained open 150 ms after abort and settled only with the server response at 400 ms. This can leave a paid call running after cancellation. Pass the run signal to the default router for each worker invocation, composing it with any configured signal, or add a per-call signal to the public |
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 8768eb47
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-28T05:06:41Z
|
P2 — Cancellation can still resolve a completed research round at
P2 — The verifier can accept a source after cancellation. The catch in Check cancellation after awaited calls and before fallback or persistence. A local proof should cover the worker and verifier terminal outcome, including non- |
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 9f382ea0
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-09-28T05:21:41Z
|
Read-only independent recheck of exact pushed head The two cancellation findings at The six-request local HTTP adapter proof passed: Remote CI is still running. The focused Vitest attempt timed out under host load, so it is not counted as passing. No paid calls, source edits, or package publishing occurred in this review. |
Change
Use published
@tangle-network/tcloud@0.6.0for research chat and search. Keep the publicRouterClient,RouterError,maxRetries, andretryBaseMscontracts. Require Interface^2.13.0for the installed Sandbox dependency. Keep one receipt-sourced cost total; reportusage().usdas NaN when a successful response lacks a cost receipt.Pass run cancellation through the default worker, verifier, claim extractor, and page fetch. Make abort terminal before fallback, source registration, or round event when the signal is observed. A configured router signal also cancels default worker and driver requests. Injected routers keep their public contract.
Exact-head proof
Head
9f382ea0abb3500a87fd2fccd7a922a98c7ef1c6; main20e8f44d89f1431422e242ad030b8fe280bb272f. GTR, Node 24.20.0, pnpm 10.34.5:pnpm lint,pnpm typecheck,pnpm build, andpnpm verify:packagepassed. The packed public consumer installed one copy each of Eval 0.199.0, Core 0.9.7, Interface 2.13.0, and Zod 4.5.4; five imports resolved.node scripts/prove-research-transport.mjspassed against local HTTP: six requests usedtcloud-sdk/0.6.0; concurrent chat and search cost USD 0.033; missing URL was rejected; 401 retainedRouterError(401); abort closed the socket; a rate-only successful response yielded NaN. Retry proof returned the billed response after exactly one 503 retry and canceled backoff in 34 ms without a second request.stopand closed sockets. The driving driver passed with both run and configured signals. A realrunVerifiedResearchLoopatmaxRounds: 1rejectedstop, closed its socket, and left zero sources and zero iteration events. An injected verifier returning a valid accept verdict after abort still rejectedstop.8768eb4passed both remote CI jobs. On this head, a focused local Vitest run reached two 15-second timeouts while GTR load exceeded 400; no assertion result was obtained for those two cases. Exact-head rerun and remote CI are pending.git diff --check, and normal commit and push hooks passed.The maintained transport proof is scripts/prove-research-transport.mjs. Cancellation scripts and receipts are at
/tmp/agent-knowledge-222-proof/on GTR. No paid model call, package publication, or deployment occurred.