Skip to content

Allow parent worker instruction bridge#88

Merged
pmbstyle merged 1 commit into
mainfrom
fix-parent-worker-instruction-bridge
May 14, 2026
Merged

Allow parent worker instruction bridge#88
pmbstyle merged 1 commit into
mainfrom
fix-parent-worker-instruction-bridge

Conversation

@pmbstyle
Copy link
Copy Markdown
Owner

Summary

  • Allow the runtime bridge to accept the answer_worker_instruction tool injected for parent-capable workers.
  • Keep answer_worker_instruction blocked for workers that cannot spawn children.
  • Add a regression test covering the bridge validation boundary.

Why

Parent workers with start_child_worker / start_workers_parallel already receive an injected answer_worker_instruction tool in the agent loop, but the Octo-side bridge still validated calls against the original template available_tools. In production this made a research_coordinator unable to answer a child instruction, after which it burned steps polling child results.

Validation

  • uv run pytest -q tests/test_agent_loop_improvements.py tests/test_worker_suspend_resume.py tests/test_worker_child_spawning.py
  • uv run ruff check src/octopal/runtime/workers/runtime.py tests/test_agent_loop_improvements.py
  • uv run pytest -q

@pmbstyle pmbstyle self-assigned this May 14, 2026
@pmbstyle pmbstyle marked this pull request as ready for review May 14, 2026 11:05
@pmbstyle pmbstyle merged commit 6fa5978 into main May 14, 2026
4 checks passed
@pmbstyle pmbstyle deleted the fix-parent-worker-instruction-bridge branch May 14, 2026 11:08
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