Skip to content

docs: autonomous orchestrators p3b — worker-mode and sandbox brief keys - #525

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/autonomous-orchestrators-p3b
Nov 3, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/autonomous-orchestrators-p3b

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Phase 3b of the autonomous-orchestrators epic, tracked on PyAutoLabs/PyAutoBrain#557. Read with PyAutoLabs/PyAutoBrain#558; merge this one first.

What changes

  • batches/AGENTS.md — the brief's optional worker-mode: (auto default, the human's 2026-11-03 decision; dontAsk / acceptEdits allowed; bypassPermissions refused) and sandbox: (yes marks a test shift; real workers need it until phase 3c's one-Mind-writer path lands).

Tier: judge — merge mode: human /prm. Heart YELLOW reason set acknowledged by the human at ship.

Witness

$ pytest tests/test_orchestrator_dispatch.py -v   (fake claude + fake agents view)
test_session_command_is_never_bare  PASSED
test_bypass_permissions_is_never_a_worker_mode  PASSED
test_default_worker_mode_is_auto_and_overridable  PASSED
test_real_spawn_records_the_session_in_the_lease  PASSED
test_a_failed_spawn_leaves_no_lease  PASSED
test_real_dispatch_outside_a_sandbox_brief_is_refused  PASSED
test_a_running_worker_keeps_its_lease  PASSED
test_a_blocked_worker_is_parked_after_the_grace_and_never_redispatched  PASSED
test_a_worker_that_unblocks_clears_its_stall  PASSED
test_done_with_its_marker_is_released_and_its_tokens_counted  PASSED
test_done_without_its_marker_is_a_crash  PASSED
test_a_vanished_worker_waits_out_the_lease_grace  PASSED
test_a_spent_token_budget_refuses_the_next_spawn  PASSED
test_transcript_tokens_sums_input_output_and_cache_creation  PASSED
test_agents_view_reads_the_cli_once  PASSED
test_brief_validates_sandbox_and_worker_mode  PASSED
test_an_untrusted_folder_fails_the_spawn_fast  PASSED
test_live_sandbox_worker  SKIPPED

$ PYAUTO_ORCHESTRATOR_LIVE=1 PYAUTO_ORCHESTRATOR_LIVE_CWD=<workspace root> pytest -k live -s   (one real claude --bg worker, run on the laptop 2026-11-03)
live states: ['working', 'done']
live tokens: 26510
1 passed — worker removed afterwards (claude agents --json shows no shift:* sessions)

$ pytest tests/test_orchestrator_watcher.py   → 16 passed in 1.63s
$ repos_sync.py --check --only 'tenant firewall (organ code)' --root <task worktree>   → OK
full suites (PYAUTO_* unset): PyAutoBrain 1473 passed, 1 skipped in 132.60s (0:02:12)  ·  PyAutoMind 712 passed in 60.53s (0:01:00)
lifecycle.py check: DRIFT only the pre-existing active/chapter2-explanations.md

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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