Repository navigation
Exec JSONL driver: foreground subagent ownership, held-call interruption, bounds, correlation and secret-safe errors - #139
Merged
Conversation
…subtree stop A foreground agent call now lends its dispatched call's complete recorded input cohort to its child while it waits for it in this server process, so the child's requests carry root_session_id/root_input_message_ids like a background Job's. Running Jobs and the live call must agree on one link; a restart drops the link. A subtree stop now withdraws waiting requests before cancelling actors, and permission/question waits prefer an already delivered refusal over a later cancellation, so a call held at its request settles as refused instead of outcome_unknown and the stop can be acknowledged. An approval meeting a cancellation still aborts.
…ets in exec errors - At most 64 owned requests are tracked; a further one is declined at once with a non-fatal capacity error line. At most 16 parsed stdin lines wait. - Lines a driven step writes carry that step's input_message_ids. - Error fields use the configured tool_output.redact patterns and allow list plus known env/config secrets and the attach password, with built-in detectors always on; also for the json result and text-mode error lines. Real-binary coverage for foreground subagent ownership, EOF settlement, second-driver isolation and interruption, and for interrupting a subagent whose call awaits permission (regression: it reported unknown).
…tion in exec-mode spec and docs Tick 5.4 and 6.2-6.4 locally; platform acceptance stays under 7.2.
…rship # Conflicts: # crates/cyber-cli/src/commands/exec/driver.rs # docs/features.md
leonardoaraujosantos
changed the base branch from
feat/managed-recovery-owner
to
main
November 17, 2026 20:20
Merged
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.
Advances #93. Stacked on #123 (
feat/managed-recovery-owner); retarget tomainonce #123 merges.Closes the remaining local gaps in
complete-daily-coding-surfacestasks 5.4 and 6.2–6.4 (structured I/O / JSONL driver).Changes
Foreground subagent ownership (6.2/6.4)
agentcall lends its dispatched call's complete recorded input cohort to its child while it waits, in this server process (runtime/foreground_children.rs,JobAdmission::lend_foreground).descendant_inputs::recordedaccepts that live link beside running background Jobs; when both prove a link they must agree. A restart drops the link, so nothing is stamped afterwards.root_session_id/root_input_message_ids, so they are claimed, answered over stdin, invisible to and unanswerable by a second driver, and settled on EOF.Acknowledged interruption with a held call (6.2)
interrupt_stops_an_owned_subagent_awaiting_permission. Before this change it ended with "Input interruption could not be reconciled".agentcall settles asoutcome_unknown, because a call cancelled while its child ran cannot prove the child's effects. The spec now says this.Resource bounds and correlation (6.2)
errorline with codecapacity. At most 16 parsed stdin lines are buffered, down from 64.assistant_text,reasoning,tool_use,tool_result,permission_denied,retry,text_delta,reasoning_delta,usage_limit, and the error of a failed step) now carryinput_message_ids.Secret-safe errors (6.3)
tool_output.redactpatterns and allow list, plus the exact values of known secrets: secret-named environment variables, secret config entries and--password. Built-in detectors stay on even withenabled: false. The same policy covers the--format jsonresulterrorand theerror:lines printed in text mode.session.step.failed.Spec/docs: exec-mode delta scenarios,
docs/local-core-guide.md,docs/features.mdand task notes are updated. Theroot_session_iddoc comment changed, so OpenAPI and the SDK were regenerated. Tasks 5.4 and 6.2–6.4 are ticked on local evidence; native platform acceptance remains under 7.2.Tests
error_redactor.exec_stream_input(41), the exec delegation, lifecycle-hook, owned-job, output-schema and untrusted suites (88 in total), exec unit tests (43),cyber-serverlib plus the subtree/interrupt/input-client/structured/HTTP suites (645), and thecyber-toolsagent suites (46).cargo fmt --check, workspaceclippy -D warnings,openspec validate --all --strict,spec_lint(0 errors),spec_inventory --check, OpenAPI current,cyber help-markdownequal todocs/cli.md. The SDK typecheck was not run; only a generated doc comment changed.Decisions
agentcall settle as a known outcome on interruption would need the tool to prove its child's effects. That is not done here; if wanted, it needs an owner decision.