test_build_dirty_source_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_dirty_source_refuses_before_docker_or_receipts) ... FAIL
test_build_mismatched_commit_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_mismatched_commit_refuses_before_docker_or_receipts) ... FAIL
test_build_untracked_source_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_untracked_source_refuses_before_docker_or_receipts) ... FAIL
test_invalid_action_does_not_initialize_environment (test_ops_guards.OpsGuardsTest.test_invalid_action_does_not_initialize_environment) ... FAIL
test_linked_worktree_writes_refuse_and_queries_remain_read_only (test_ops_guards.OpsGuardsTest.test_linked_worktree_writes_refuse_and_queries_remain_read_only) ... FAIL
test_queries_never_initialize_environment (test_ops_guards.OpsGuardsTest.test_queries_never_initialize_environment) ... 
  test_queries_never_initialize_environment (test_ops_guards.OpsGuardsTest.test_queries_never_initialize_environment) (action='logs') ... FAIL
test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) ... 
  test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='start') ... FAIL
  test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='stop') ... FAIL
  test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='restart') ... FAIL
  test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='rebuild') ... FAIL
  test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='down') ... FAIL

======================================================================
FAIL: test_build_dirty_source_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_dirty_source_refuses_before_docker_or_receipts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 109, in test_build_dirty_source_refuses_before_docker_or_receipts
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_build_mismatched_commit_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_mismatched_commit_refuses_before_docker_or_receipts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 102, in test_build_mismatched_commit_refuses_before_docker_or_receipts
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_build_untracked_source_refuses_before_docker_or_receipts (test_ops_guards.OpsGuardsTest.test_build_untracked_source_refuses_before_docker_or_receipts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 116, in test_build_untracked_source_refuses_before_docker_or_receipts
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_invalid_action_does_not_initialize_environment (test_ops_guards.OpsGuardsTest.test_invalid_action_does_not_initialize_environment)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 96, in test_invalid_action_does_not_initialize_environment
    self.assert_no_write_effects()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 61, in assert_no_write_effects
    self.assertFalse((root / "data").exists())
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True is not false

======================================================================
FAIL: test_linked_worktree_writes_refuse_and_queries_remain_read_only (test_ops_guards.OpsGuardsTest.test_linked_worktree_writes_refuse_and_queries_remain_read_only)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 87, in test_linked_worktree_writes_refuse_and_queries_remain_read_only
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_queries_never_initialize_environment (test_ops_guards.OpsGuardsTest.test_queries_never_initialize_environment) (action='logs')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 70, in test_queries_never_initialize_environment
    self.assert_no_write_effects()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 61, in assert_no_write_effects
    self.assertFalse((root / "data").exists())
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True is not false

======================================================================
FAIL: test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='start')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 78, in test_service_writes_without_lease_refuse_before_any_side_effect
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='stop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 78, in test_service_writes_without_lease_refuse_before_any_side_effect
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='restart')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 78, in test_service_writes_without_lease_refuse_before_any_side_effect
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='rebuild')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 78, in test_service_writes_without_lease_refuse_before_any_side_effect
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

======================================================================
FAIL: test_service_writes_without_lease_refuse_before_any_side_effect (test_ops_guards.OpsGuardsTest.test_service_writes_without_lease_refuse_before_any_side_effect) (action='down')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/weichen/projects/Agent-System/.worktrees/agent-governance-implementation/scripts/tests/test_ops_guards.py", line 78, in test_service_writes_without_lease_refuse_before_any_side_effect
    self.assertNotEqual(result.returncode, 0)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 == 0

----------------------------------------------------------------------
Ran 7 tests in 0.235s

FAILED (failures=11)
