Repository navigation
Fleet spawn --task and relay messages injected into a PTY agent arrive truncated to their tail (silent), and spawn reports failure on success - #1893
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Devin Review found 4 potential issues.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
Address the three P1 findings on PR #1893. Endpoint anchors and a collapsed-paste marker were treated as positive delivery confirmation, and the verified fleet spawn branch reported spawned:true, ready:true without inspecting the verification label at all. An agent that swallowed its whole task, received only its head and tail, or echoed nothing produced the same successful spawn result as one that received every byte. Only whole-payload evidence confirms a delivery now: `echo` (verbatim) or `echo_normalized` (verbatim once the TUI's wrapping whitespace is removed from both sides, which replaces the head/tail `echo_anchors` rung). Matching endpoints around an unobserved middle become `echo_incomplete` and a collapsed paste stays `paste_summary`; both ack the delivery without claiming receipt. A tail without its head still fails with `echo_head_missing`, and an absent echo still reports `timeout_fallback`. `verification_label_confirms_receipt` is the single source of truth for which wire labels count as receipt, kept in lockstep with `EchoVerdict::confirmed` by test. A verified spawn whose initial task is acked without it resolves as `spawn_task_unconfirmed`, which names the live agent and warns against retrying (a retry duplicates the agent) rather than reporting success or a retryable failure; the pending entry is still retired so the readiness deadline cannot release a live worker. Wrap keeps its failed-throttle policy on absent echoes and on evidence of loss, but records a collapsed paste as unverified: that verdict indicates nothing about loss, so it must not back the injection delay off on every delivery to a paste-collapsing TUI. Regressions: missing, changed and reversed anchors; a partial paste and a redrawn earlier paste marker; label/verdict agreement; timeout dispositions; runtime arms feeding timeout_fallback, paste_summary, echo_incomplete and a missing label through the spawn-completion handler. The PTY integration suite gains the reviewer's `middle_lost` and `paste_tail` fixture modes as negative-confirmation assertions. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ChecksThe latest revision breaks checks that passed before it. It was pushed so the work is not lost, and the pull request is now a draft; it is not ready to merge. What ran (.relayflow/check.sh)#!/bin/sh
# Fresh-machine equivalent of this repo's CI gate.
#
# Mirrors the jobs that gate a pull request on Linux:
# .github/workflows/test.yml -> test, lint
# .github/workflows/codegen-models.yml -> codegen (generated files in sync)
# .github/workflows/rust-ci.yml -> rust-test, rust-clippy, rust-fmt
#
# Requires Node >= 22 (see .nvmrc / package.json engines).
set -e
cd "$(dirname "$0")/.."
# CI sets this on every workflow; keep local runs from emitting telemetry.
export AGENT_RELAY_TELEMETRY_DISABLED=1
# rust-ci.yml provisions cargo with dtolnay/rust-toolchain, which puts it on
# PATH. A toolchain is installed here but not exported by the login shell, so
# put it on PATH explicitly instead of silently skipping the Rust jobs below.
if [ -d "$HOME/.cargo/bin" ]; then
PATH="$HOME/.cargo/bin:$PATH"
export PATH
fi
# No CI workflow sets RELAY_BASE_URL. This sandbox exports it, and the CLI
# suites that assert "no ambient gateway is inherited" read the real
# environment (packages/cli/src/cli/lib/sdk-client.test.ts,
# commands/fleet-lifecycle-integration.test.ts), so leaving it set fails them.
unset RELAY_BASE_URL
# This sandbox has a 10 GB disk. A full-debug `cargo test` build of the
# workspace needs ~6 GB of debug info on top of the node_modules and dist
# trees, and runs the disk out mid-link. Dropping debug info keeps the same
# tests running; CI has the headroom and does not need this.
export CARGO_PROFILE_DEV_DEBUG=0
export CARGO_PROFILE_TEST_DEBUG=0
export CARGO_INCREMENTAL=0
# --- Dependencies -----------------------------------------------------------
npm ci
# test.yml installs rollup's platform-specific optional dependency explicitly,
# because npm sometimes skips it; failure here is non-fatal in CI too.
npm install --no-save rollup || true
# --- Code generation --------------------------------------------------------
# codegen-models.yml regenerates these from packages/utils/cli-registry.yaml and
# fails the PR if the committed output drifts.
npm run codegen:models
git diff --quiet packages/config/src/cli-registry.generated.ts packages/sdk-py/src/agent_relay/models.py || {
echo "::error::Generated models are out of sync with cli-registry.yaml. Run 'npm run codegen:models' and commit the changes."
exit 1
}
# --- Build ------------------------------------------------------------------
# Builds the Rust broker (skipped automatically when cargo is absent) and every
# workspace package. This is the same build `npm test` runs via its pretest
# hook, so the test step below invokes vitest directly instead of `npm test` to
# avoid building twice.
npm run build
# --- Lint / formatting ------------------------------------------------------
npm run lint
npm run format:check
# --- Tests ------------------------------------------------------------------
# Guard suites that test.yml runs ahead of the main suite.
node --test scripts/pr-proof/broker-transfer.test.mjs scripts/pr-proof/run-cloud.test.mjs scripts/flows/deploy-listeners.test.mjs scripts/pr-proof/event-from-input.test.mjs
npm run test:subscriptions:proof
# Main vitest suite (equivalent to `npm test`, whose pretest build already ran).
npx vitest run
# --- Rust (crates/broker, crates/relay-pty) ---------------------------------
# rust-ci.yml provisions a toolchain with dtolnay/rust-toolchain. Run these only
# when cargo is already present; this script does not install a toolchain.
if command -v cargo >/dev/null 2>&1; then
cargo fmt -- --check
cargo clippy -- -D warnings
# This sandbox injects `core.hooksPath=/dev/null` through GIT_CONFIG_COUNT,
# which defeats the spawner hook-chain tests that build their own temporary
# repositories. CI has no GIT_CONFIG_* overrides; drop them for the tests.
env -u GIT_CONFIG_COUNT cargo test
else
echo "cargo not found - skipping Rust tests, clippy and fmt (rust-ci.yml equivalents)"
fi
# --- Deliberately omitted ---------------------------------------------------
# e2e-tests.yml, fleet-e2e.yml, relay-evals.yml, stress-tests.yml: need
# ANTHROPIC_API_KEY and real agent CLIs driving live PTY sessions.
# test.yml coverage job: `npm run test:coverage` duplicates the suite above and
# its only extra step is the Codecov upload, which needs a Codecov token.
# test.yml windows-credential-acl and swift-test jobs: need Windows and a Swift
# toolchain on macOS respectively.
# prod-smoke.yml, publish.yml, verify-publish*.yml, deploy-relayflows.yml,
# relay-*-qualification*.yml: deployment, npm/GitHub publishing and
# cleanroom/Daytona cloud runs, all gated on registry and cloud credentials.
# test-build.yml / test-install.yml: build and install the released binaries
# with Bun and a network install of agent-relay; not part of the source gate.Output on this branch (last 80 lines)What the repair agent foundRepair notes — PTY injection integrity branchGate failures and what caused them
1.
|
…are-garden-746c5f53 Session-Id: f9b2ae4e-847e-47c7-9996-b6545ca4353c
…n task failure, never drop oversized wrap messages Review on #1893: - Cursor (high): a task verdict that arrives before proven readiness (startup-fallback worker_ready releases the task first) is now recorded on the pending spawn, and the later proven worker_ready resolves the action from it, as success (whole-payload echo) or spawn_task_unconfirmed. Previously the verdict was ignored and the spawn timed out and was released after a successful delivery. - Cursor (medium): a worker already ready when the launch returns had its PTY task queued unbound to the action; it now resolves as spawn_task_unconfirmed instead of plain success. - Devin: a failed initial task (delivery_failed, or an immediate queue error) now expires the pending spawn with spawn_task_failed, so maintenance releases the worker and its fleet identity before reporting. A corrected retry can reuse the name. - Devin: an oversized wrap message is delivered as a bounded notice naming the sender, size, limit and message ID instead of being silently dropped after it left the queue. - Devin: `message post|reply|dm send` no longer apply the PTY injection cap. The limit stays at the PTY boundary (and on fleet task input). Also merges origin/main, completing the PendingVerifiedSpawn literals both sides extended, and fixes the two red checks this head caused: - Fleet E2E resume: a verified spawn with a task now completes after task verification, and node-a's stub delays readiness 27 s, so the 30 s settle waits become 60 s. - RelayFlow 1615: the fake Claude now redraws its prompt after Enter, as the real composer does, so the pre-write composer check can prove readiness for the second message. Each new test fails with its fix reverted (mutation-checked) and passes with it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: f9b2ae4e-847e-47c7-9996-b6545ca4353c
|
bugbot run |
|
@coderabbitai review |
|
…ed tasks before launch; keep the reminder on rejection Cursor review on #1893 (6ffef38): - Body caps ignored the envelope. The PTY worker caps the formatted envelope at 16 KiB, but readTaskInput and queue_and_try_delivery_raw accepted a 16 KiB raw body, so a brief at the advertised limit launched a worker that then failed injection_too_large and was released. Bodies are now capped at MAX_BODY_BYTES (16 KiB less a 2 KiB ENVELOPE_RESERVE_BYTES) in the CLI and in raw delivery, and the fleet spawn action rejects an oversized task with spawn_task_too_large before registering or launching anything. - The MCP reminder throttle was marked sent before the size gate, so a rejected envelope stole the reminder from the next delivery. It is now noted only after the envelope passes every pre-write gate. Regressions (each fails with its fix reverted): the worst-case envelope for a body at the cap fits 16 KiB (128-char names, workspace label, full reminder); an oversized spawn task is rejected before registration; a rejected injection leaves the next delivery its full reminder (real broker integration test); the CLI rejects a 16 KiB task naming the envelope. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: f9b2ae4e-847e-47c7-9996-b6545ca4353c
|
bugbot run |
…before launch Cursor review on #1893 (9dc1a75): the pre-launch check measured the raw task, but spawn paths then append the exit-after-task contract, the relay skill prefix and continuity context, so an accepted brief could still fail at worker_ready, after launch. validate_pty_initial_task_size measures the final task as it will be injected and rejects it with spawn_task_too_large. It runs in spawn_worker_from_request right after decoration (before any Relaycast registration) and in WorkerRegistry::spawn_with_generation, the gate every spawn path (HTTP, WS, fleet) funnels through, before anything is launched. Muse takes its task in argv and non-PTY runtimes are not injected, so neither is measured. One message builder (injection_wire::task_too_large_error) backs every rejection. Regressions: a fleet spawn whose raw task fits but whose exit-after-task decoration overflows fails before RegisterAgent (fails with the new call removed); the validator measures only injected PTY tasks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: f9b2ae4e-847e-47c7-9996-b6545ca4353c
|
bugbot run |
…itial task completes The resume scenario's `pool` harness runs the stub as `codex`, which sends the initial task through the broker's chunked Codex path. That path confirms delivery by watching the composer: each chunk rendered after the prompt, then the composer cleared once Enter submits the turn. The stub only had the kernel's cooked-mode echo and never cleared its composer, so after Enter the task still looked parked; the broker retried the submit, exhausted its retries and dead-lettered `initial_injection_incomplete`. On main that dead letter was invisible because a verified spawn resolved at readiness. This PR fails a spawn whose task was not delivered, so the scenario failed. As `codex`, the stub now takes raw input, renders typed text after `›`, and redraws an empty composer on Enter. Pre-ready input is still discarded and, with raw mode, no longer echoed by the kernel either. Other stub uses are unchanged. Verified locally against the CI-pinned engine: the resume scenario now completes and resumes on its origin node. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: f9b2ae4e-847e-47c7-9996-b6545ca4353c
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b8b6394. Configure here.
Move four #1893 entries that auto-merged under the released 13.1.1 into [Unreleased - Minor] (released sections now match main) and split combined bullets. Fix the Devin trust recovery advice, the local --task/--task-file wording, pending-spawn README fields and the evidence doc's plan reference. Decode stub-agent stdin as a UTF-8 stream and give the resumable-spawn e2e a timeout that covers its own waits. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: 36e2deb9-531e-419c-ab12-946ffb5d2dd5
Brings in #1945 (harness-acceptance PTY delivery, submit-key resubmits, file attachments) and resolves its overlap with the bundle. Delivery verification: #1945's acceptance model replaces #1893's echo verdict ladder for message delivery in pty_worker and wrap. A body echoed in the composer can still be a parked draft, so echo content no longer confirms anything; EchoVerdict, verification_timeout, the head-missing check and wrap's echo-timeout re-injection are dropped with their tests, and the integrity test fixture modes that only exercised echo verdicts (tail, middle_lost, paste_tail, silent) go with them. Bracketed paste, the 16 KiB cap, the wrap pointer for oversized messages, --task-file and the Devin trust gate are kept. Verified fleet spawn confirmation (#1893) keeps its frame-order handling and spawn_task_unconfirmed result, re-pointed at #1945's labels: - verification_label_confirms_receipt accepts only "harness_acceptance". Legacy "echo"/"timeout_fallback", "completed_replay" and an unlabelled frame resolve the spawn as spawn_task_unconfirmed. The spawn verdict is recorded before the PTY gate that turns non-acceptance labels into delivery_unconfirmed, so the action still resolves. - A delivery_failed with "harness acceptance could not be proven" (window closed, body neither accepted nor parked) is not evidence of loss, so the spawn resolves as spawn_task_unconfirmed and keeps the live worker, instead of releasing it as spawn_task_failed. Every other failure reason, including "body remained parked after bounded submit-key recovery", still releases the worker and fails with spawn_task_failed. - The label and reason are shared constants (HARNESS_ACCEPTANCE, HARNESS_ACCEPTANCE_UNPROVEN) used by pty_worker and the runtime. MCP: send_dm uses the shared idempotencyKeyInput and replayScopeOf with #1945's upload_file attachment wording. AGENTS.md follows main (trunk gating removed). CHANGELOG unions both Unreleased sections. Protocol docs and docs/harnesses/injection.md describe the acceptance labels and reasons. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…entWorkforce#1893's PendingVerifiedSpawn fields AgentWorkforce#1893 added readiness_proven, task_event_id and task_verification to PendingVerifiedSpawn; AgentWorkforce#1913's new test predates them, so the bundled broker lib tests did not compile. The trust prompt blocks before readiness, so the fixture is an unready spawn with no task. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Session-Id: 36e2deb9-531e-419c-ab12-946ffb5d2dd5
PTY injection integrity and fleet task confirmation
Long fleet tasks and relay messages were typed into Claude one character every
5 ms. A 6.7 KB brief occupied the PTY write drainer for roughly 33 seconds, delaying
terminal-query replies and startup auto-responses while the composer could change.
The existing verification timeout acknowledged even a tail-only echo.
This change sends one bracketed paste to harnesses that have advertised DECSET
2004, followed by the existing delayed Enter. The capability is latched across
mode resets; composer readiness is checked independently before writing. A missing
composer, oversized body, or tail-only echo produces an explicit non-retryable
failure. Failed deliveries retain their identity and are never replayed or
subsequently acknowledged as successful duplicates. CRLF becomes LF; bare CR and
ESC cannot submit or terminate the body early.
The verification ladder is shared with wrap: exact echo, normalized head/tail
anchors, then paste summary. Missing heads only count as loss when the observation
window is retained. Absent echoes preserve
timeout_fallback, now with a warningand process-local counter. Wrap retains its existing failed-throttle timeout policy.
Verified fleet PTY spawns with a task remain pending after readiness until the
matching task verdict arrives; explicit task failures fail the spawn action.
Native and argv-task startup paths retain their existing readiness contract.
fleet spawn,agent spawn, andnode agent spawnaccept--task-file, read onthe requester and forwarded through existing task transport. Fleet requires
exactly one task source. Message commands and task input validate UTF-8 byte size.
Limits are 16 KiB globally, including the formatted envelope at the PTY boundary,
and 1,536 bytes for the default paced fallback. A slower explicit pace lowers that
cap. Codex retains its chunked initial-task path and uses the smaller derived cap.
The ordinary typed-path budget closes inside 90 seconds:
60 s startup + 15 s prompt recheck + 7.68 s typing + 0.25 s submit + 5 s verification
= 87.93 s. Steer acknowledgements include the injection budget.
Validation
Twenty cold starts each receive a >10 KB task and a >10 KB follow-up message,
verified byte-for-byte in the fake harness's input transcript with one paste
pair and one submit. Other arms cover tail loss/no replay, explicit size
rejection, disappearing composer, and absent-echo compatibility.
cargo fmt --all --checkandcargo clippy --all-targetspassed. Clippy reportsfive pre-existing sliced-string warnings in Codex tests.
six-second observation. Parser regression covers enable and disable in one read.
Commands (debug symbols disabled to fit the workspace disk):
This workspace injects
core.hooksPath=/dev/nullthroughGIT_CONFIG_COUNT.Removing that setting only for the Rust test process lets the existing hook-chain
regressions exercise their own temporary repositories; all four then pass.
Compatibility and remaining work
Per
reviewed-plan.md, absent-echo fallback still counts as spawn success. It isnot cryptographic or byte-for-byte receipt confirmation; the stronger ticket
acceptance needs a harness receipt protocol. The 20-run proof uses a raw-mode fake
Claude TUI through the real broker, not 20 authenticated Claude transcripts.
Wrap already bulk-wrote Claude input before this change. Fleet gains that behavior
plus explicit paste framing and readiness checks, rather than simply reverting
the 10.4.0 pacing fix. Large Claude inputs can now appear as pasted-content blocks;
the attribution envelope is unchanged.
Duplicate desktop/broker registrations remain a separate investigation requiring
the reporter's ambient MCP configuration. A node-side brief-file writer and
integration-command
--task-filesupport are follow-ups. No workflow files werechanged, and no release or merge was performed.
Checks
Relayflow ran this repository's checks (.relayflow/check.sh) and they passed.
What ran (.relayflow/check.sh)
What the repair agent found
Repair notes — PTY injection integrity branch
Gate failures and what caused them
.relayflow/check.shinitially stopped atnpm run format:check. Everythingafter it (the guard suites, the vitest suite and the whole Rust section) never
ran. Findings, in the order the gate hits them:
1.
format:check— untracked relayflow working files (fixed in place)prettier --check .flaggedplan.mdandreviewed-plan.md. Both arerelayflow scratch documents listed in
.git/info/exclude, so they are not partof the repository and do not exist in CI; prettier reads
.prettierignore, not.git/info/exclude, so it checked them anyway. Formatted them in place(
npx prettier --write plan.md reviewed-plan.md). No repository file changed.2. Rust jobs were silently skipped — toolchain not on PATH (fixed in check.sh)
check.shguards therust-ci.ymlequivalents withcommand -v cargo. Atoolchain is installed at
~/.cargo/bin(cargo 1.99.0) but the login shell doesnot export it, so
cargo fmt,cargo clippyandcargo testwere all skipped —which hides the bulk of this branch, since the fix is in Rust.
check.shnowputs
$HOME/.cargo/binon PATH when it exists, the waydtolnay/rust-toolchaindoes in CI.3. Two CLI suites fail on an ambient
RELAY_BASE_URL(fixed in check.sh)packages/cli/src/cli/lib/sdk-client.test.ts› does not inherit a persistedgateway when an explicit agent token is supplied
packages/cli/src/cli/commands/fleet-lifecycle-integration.test.ts› reusesthe persisted Cloud target across spawn, attach, message, list, and release
without
--base-urlBoth assert that no ambient gateway is inherited, and both reach
createAgentRelaywithout anenvoverride, so they read the real processenvironment. This sandbox exports
RELAY_BASE_URL=https://cast.agentrelay.com;no workflow in
.github/workflows/sets it.env -u RELAY_BASE_URL npx vitest run <both files>passes 36/36, socheck.shnow unsets it. The tests arecorrect as written and were not touched.
4. Four Rust hook-chain tests fail on the sandbox git config (fixed in check.sh)
spawner::tests::broker_hook_chain_*(4 tests) build their own temporaryrepositories and assert the repository's own hooks still run while the broker's
core.hooksPathis active. This sandbox injectscore.hooksPath=/dev/nullthrough
GIT_CONFIG_COUNT=4, which defeats them. CI sets noGIT_CONFIG_*overrides, so
check.shnow runsenv -u GIT_CONFIG_COUNT cargo test. Withthat,
cargo testis 1347 + 254 + 25 passing, 0 failing.5.
cargo testruns the 10 GB disk out with full debug info (fixed in check.sh)Once item 2 let the Rust section actually run,
cargo testbuilt the workspacewith the default
debug = trueand filled the disk mid-link (5.9 GB of debuginfo in
target/on top ofnode_modulesand thedisttrees, leaving under30 MB free).
check.shnow exportsCARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0andCARGO_INCREMENTAL=0. The same tests run; onlythe debug info is dropped. CI has the headroom and needs none of this.
None of these five are regressions from this branch; items 2–5 are environment
differences and are fixed only in
.relayflow/check.sh, which is not committed.Outside the gate, left alone
cargo clippy --all-targets -- -D warningsreports fivesliced_string_as_byteserrors incrates/broker/src/pty_worker.rstest code(lines 2722/2733/2801/2851/3040 region). All five are present in the branch
point (
238b522) and are test-only.rust-ci.ymlandcheck.shruncargo clippy -- -D warningswithout--all-targets, which passes, so this ispre-existing and out of scope here.
Branch fixes committed in this pass
crates/relay-pty/src/pty.rs— the bracketed-paste capability latch parsedevery PTY output byte with its own
processor.advance()call until DECSET2004 was observed. For a harness that never enables 2004 that is permanent,
and it sits in the single reader thread that has to keep up with the child.
Per-byte stepping is now reserved for chunks containing the literal
2004(a complete enable sequence must contain it, so enable+disable inside one
read is still caught); every other chunk is bulk-parsed with one mode check
afterwards, which still latches a DECSET split across reads. Covered by a new
paste_capability_latches_when_decset_spans_two_readstest, verified to failwithout the post-chunk check.
bracketed_paste_enabled()had taken overconsumed_offset()'sdoc block, including its intra-doc link definition. Each has its own docs
again.
crates/broker/src/protocol.rsandpackages/harness-driver/src/protocol.ts— the
delivery_verified.verificationanddelivery_failed.reasondoccomments still listed only
echo/timeout_fallback. They now enumerateecho_anchors,paste_summary,prompt_unproven,echo_head_missingandinjection_too_large, keeping the Rust and TypeScript protocol definitions insync as
.claude/rules/rust.mdrequires.CHANGELOG.md— added the missingChangedentry for the new 16 KiB bodycap. It is user-visible (
message send|reply|dmand the broker now rejectlarger bodies, including to native-runtime workers) and was only documented
in
docs/harnesses/injection.md.summary.mdwas committed into the repository in924171feven though.git/info/excludelists it as a relayflow working file. Untracked withgit rm --cachedso it stays on disk but out of the repository.Fixes #1890
Note
High Risk
Changes core PTY injection, delivery verification, and verified fleet spawn success criteria—incorrect behavior could silently lose tasks or block legitimate spawns.
Overview
Hardens PTY task and message delivery so large briefs use bracketed paste when DECSET 2004 is latched (with typed fallback and size gates), and echo verification only counts whole-payload receipt—not head/tail anchors or collapsed-paste markers.
Verified fleet spawns with a task no longer report
spawned:true, ready:trueunless delivery is confirmed (echo/echo_normalized); unconfirmed acks becomespawn_task_unconfirmed(live agent, do not retry), terminal failures usespawn_task_failed/echo_head_missing, and oversized tasks are rejected before launch. Sharedinjection_wireenforces 16 KiB envelope / 14 KiB body caps; wrap delivers a pointer when over limit.CLI adds
--task-file(fleet requires exactly one of--task/--task-file); generic message commands stay uncapped at the Relaycast layer. relay-pty latches paste capability with efficient DECSET 2004 scanning. New integration tests and expanded runtime tests cover adversarial echo modes.Reviewed by Cursor Bugbot for commit b8b6394. Bugbot is set up for automated code reviews on this repo. Configure here.