Skip to content

Teach single-call mailbox delivery and durable operations - #4

Merged
Disdjj merged 1 commit into
mainfrom
teach-mailbox-delivery
Aug 31, 2026
Merged

Teach single-call mailbox delivery and durable operations#4
Disdjj merged 1 commit into
mainfrom
teach-mailbox-delivery

Conversation

@Disdjj

@Disdjj Disdjj commented Aug 31, 2026

Copy link
Copy Markdown
Member

What

Bring the skill in line with the current tool-bridge implementation, which added durable device Mailbox delivery as part of the unified command invoke.

SKILL.md

  • New Device delivery section: distinguish command delivery capability metadata (realtime|mailbox|both) from the per-call --delivery realtime|mailbox|fallback policy; offline-tolerant calls are a single tb call --delivery fallback — the gateway owns the enqueue decision (only a proven non-dispatch enqueues; completed results including device business errors, and outcome-unknown sends, never enqueue). Agents never send a second enqueue request of their own.
  • 200 + x-tb-delivery: realtime vs 202 + x-tb-delivery: mailbox semantics; after receiving an operation identity the sync flow ends — no fixed-interval polling, at most one tb device op get when the task actually needs current state. claim/renew/complete stay device-side.
  • Safety boundaries: result_unknown and expired + executionMayHaveOccurred: true are execution ambiguity — no auto retry/re-enqueue without independently proven idempotency and user authorization; delivery mode never relaxes effect/confirm boundaries.
  • New Store references section: store:// URIs are object identities (tb store stat/get); tb store share only on explicit user request, output handled as a secret, revocable via revoke-share.

references/cli-reference.md

  • delivery added to the help field list.
  • New Device delivery and durable operations section: --delivery/--ttl/--idempotency-key syntax and constraints, fallback semantics, operation states, tb device ls / op ls|get|cancel, cooperative cancel and ambiguity rules.
  • New Store objects section covering the tb store surface.

Validation

npx --yes skills add . --list discovers exactly one skill (tool-bridge) with the updated description.

All command syntax verified against the CLI source (packages/cli/src/commands/call.ts, device.ts, store.ts) in the main tool-bridge repo.

Device commands now surface a delivery capability (realtime|mailbox|both)
and tb call takes a per-call --delivery realtime|mailbox|fallback policy.
The skill teaches the unified single-call form: fallback enqueues only on
a proven non-dispatch, completed and unknown outcomes never enqueue, and
agents never send a second enqueue or fixed-interval polling. Adds the
tb device op ls/get/cancel surface, execution-ambiguity safety rules
(result_unknown, expired+executionMayHaveOccurred), and store:// result
handling with tb store commands.
@Disdjj
Disdjj merged commit 3a20170 into main Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant