CI: contract + canary + live e2e suites (channels, voice)#21
Merged
Conversation
Three-tier stack: offline unit lane (Python 3.10/3.12 matrix), contract tests against the latest published claude-agent-sdk + Claude Code CLI (per-PR gate + 2x/day canary that pages Chat on unattended failure), and live suites that boot the real bridge in CI and drive it from a remote Inkbox identity — email/SMS/cross-channel with a mock-model and a real-model leg, plus two real phone-call scenarios (inbound Inkbox STT/TTS, outbound realtime). Live runs are gated to ready same-repo PRs, dispatches, and passing canaries, and serialized on the AUT tunnel lock. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The 13:13/01:13 slots collided with another plugin's canary; the fleet runs hour-staggered waves and this one leads them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the proven plugin-CI stack (hermes-agent-plugin, openclaw-plugin) to this bridge. Same three tiers, adapted to a Python bridge whose host is the Claude Code CLI + claude-agent-sdk:
Tiers
tests.yml— offline unit suite on every push/PR (Python 3.10/3.12 matrix; absorbs the oldci.yml), plus acontract-prjob that runstests/contractagainst the latest publishedclaude-agent-sdkand@anthropic-ai/claude-codeso upstream interface drift fails the PR, not a live gateway.canary.yml— the same contract suite 2×/day (06:13 / 18:13 PT — deliberately an hour ahead of the rest of the fleet's canaries), paging Google Chat only on unattended (scheduled) failure.live-channels.yml: email reachability, email intelligence (identity / sender / tools / contact CRUD), SMS, and cross-channel (email→SMS, SMS→email, email→call, SMS→call). Two serialized legs: mock (deterministic local Anthropic-API mock viaANTHROPIC_BASE_URL— free, proves the whole pipe with a nonce echo) and real (real Claude model — proves reasoning + tool use). Chained off a passing canary viaworkflow_run.live-voice.yml: two real phone-call scenarios —inbound_inkbox(driver calls the agent; Inkbox STT/TTS) andoutbound_realtime(driver texts "call me"; the agent dials back on the realtime voice path). Transcript-verified two-way speech + speech-mode assertions on the AUT's call records.External-events live tests are intentionally out of scope, matching the fleet decision in inkbox-ai/openclaw-plugin#24.
Gating & safety
inkbox-live-aut-tunnelconcurrency group (no cancel) — only one holder of the AUT identity's Inkbox tunnel at a time, across both live workflows.INKBOX_PERMISSION_TIMEOUT_S=30in CI so a stray permission escalation fails fast instead of parking a session for 10 minutes.Secrets
Uses the existing
CLAUDE_CODE_INKBOX_API_KEY/CLAUDE_CODE_INKBOX_SIGNING_KEY(AUT),REMOTE_INKBOX_API_KEY(driver),OPENAI_API_KEY(realtime voice), andGOOGLE_CHAT_WEBHOOK_URL. One new secret is required before the live real-model legs can run:ANTHROPIC_API_KEY— the bridged sessions are real Claude Code, so everything except the mock-channels leg needs it.No plugin logic changes — test + workflow files only (
.github/workflows/ci.ymlis folded intotests.yml).