How do I bound a Go Montage status diagnostic with context cancellation?
Go applications should keep a remote diagnostic bounded and represent interruption honestly. Review the SDK’s documented context and session ownership before checking Montage, distinguishing a cancelled client wait from confirmed server rejection or proof that remote work was undone. The context should belong to the request whose diagnostic it bounds. If the caller stops waiting, preserve uncertainty rather than claiming server rollback; this status-only workflow deliberately avoids writes whose effects would make interruption harder to interpret.
Help me bound a Go Montage status diagnostic with context cancellation. Locate the context used for connection setup, discovery and the direct tool call. Inspect the actual workspace if returned, or retain the context and transport blocker without fabricated coverage. No writes.Map request ownership
Locate the context used for connection setup, discovery and the direct tool call. Determine which application request owns cancellation rather than allowing a background session to outlive the caller without an explicit lifetime decision.
Use the documented session pattern
Follow the installed Go SDK’s client lifecycle with the hosted Streamable HTTP endpoint. Do not invent a Montage cancellation parameter or assume every release exposes identical helper methods for context propagation.
Keep uncertain outcomes explicit
If the caller stops waiting before a response arrives, report the interrupted diagnostic rather than asserting success or server-side rollback. Cancellation of local work does not establish that every already-sent remote operation was undone.
Prefer a status-only test
Use approved authorization and call signals_status directly under the intended bounded context. Avoid writes in this diagnostic so recovery does not require replaying operations whose remote effects might already have occurred.
Confirm response or interruption
Inspect the actual workspace if returned, or retain the context and transport blocker without fabricated coverage. Release session resources through supported methods and do not loop indefinitely or widen auth to make a cancelled check appear complete.
Keep the boundaries clear.
- Cancellation of local work does not establish that every already-sent remote operation was undone.
- Release session resources through supported methods and do not loop indefinitely or widen auth to make a cancelled check appear complete.
Start with a read-only check: ask your agent to report actual source coverage before collecting records or exporting an audience.
Primary references
Documentation reviewed 2026-11-15. Product capabilities, client availability and plans can change. Third-party marks identify their products, not an affiliation.