Skip to content

Run the phase1 planner suites' tool steps in auto mode - #14

Closed
Parad0x-Labs wants to merge 2 commits into
mainfrom
mission/phase1-mode-context
Closed

Parad0x-Labs wants to merge 2 commits into
mainfrom
mission/phase1-mode-context

Conversation

@Parad0x-Labs

Copy link
Copy Markdown
Owner

Root cause

24 CI+local failures (16 test_runtime_execution_operator_phase1, 8 test_orchestration_execution_phase1) all reduce to one shape: the suites drive the planner state machine with REAL tool executions, but their source contexts carry no operating mode. Under the execution gate's tightened hands-off law (core/execution_gate.py: only proven read-only commands run unprompted outside Auto), a modeless context is MANUAL — every workspace.run_tests / patch step refused with user_action_required before the planner ever saw a failed validation, and the planner honestly fell back to workspace_stop_after_read where the tests expected planned_* continuations.

Repair

The suites now pass operating_mode: auto at every source-context and envelope-execution site — the same contract the green sibling (test_code_task_reviewed_base.py:74) already uses. The approval law itself is untouched and stays policed by the permission-authority suites; these tests exercise planning behavior, not approval behavior.

Evidence

  • tests/test_runtime_execution_operator_phase1.py: 16 failed → 25 passed; tests/test_orchestration_execution_phase1.py: 8 failed → 17 passed; both together 42 passed; ruff clean.
  • The failing assertions match the refusal chain end to end (validation observation status=user_action_required_latest_failed_validation_observation → None → stop_after_read).

Contributed by sls_0x.

sls_0x added 2 commits September 21, 2026 09:51
The execution gate's tightened hands-off law (only proven read-only
commands run unprompted outside Auto) means a modeless context is MANUAL,
so every workspace.run_tests / apply step in these suites refused with
user_action_required before the planner ever saw a failed validation --
16 operator-phase1 and 8 orchestration-phase1 failures locally and in CI,
with the planner honestly falling back to workspace_stop_after_read. The
green sibling (test_code_task_reviewed_base) already passes
operating_mode auto; these suites now do the same at every envelope and
source_context site. The approval law itself stays policed by the
permission-authority suites.
… gated write

The two manual-mode sabotage tests set manual BEFORE the journey, so the
tightened hands-off law refused the repro step itself (user_action_required)
and the drive never reached the assertion under test -- that manual mode
blocks the WRITE. The journey now runs in auto and the mode switches at
the mutate step, which is the behavior both tests actually pin.
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