Skip to content

test: 9 control-plane tests fail on main (--required-read-id drift in evidence-log fixtures) #3143

Description

@NIU-123370

Summary

9 control-plane tests fail on current main (verified at 943b4976, and also at 0e1aa649). They are unrelated to any open PR I'm aware of — surfacing separately so they don't get mistaken for regressions in other work.

Failing tests (9)

tests/control_plane/test_replan_evidence_tool_behavior.py (8):

  • test_real_tool_loop_observes_production_evidence_log_intent
  • test_tool_loop_accepts_a_bounded_evidence_read_plan
  • test_tool_loop_accepts_supplemental_replan_observation_intent
  • test_tool_loop_rejects_state_change_bundled_with_evidence
  • test_tool_loop_rejects_unsafe_command_bundled_with_evidence
  • test_tool_loop_accepts_the_real_host_utc_clock_shape
  • test_tool_loop_allows_distinct_normal_workspace_preflight_reads
  • test_tool_loop_rejects_generic_or_wrong_evidence_read

tests/control_plane/test_actual_default_model_behavior_portfolio.py (1):

  • test_portfolio_real_tool_scenarios_choose_from_latest_quota_result

Repro

pytest tests/control_plane/test_replan_evidence_tool_behavior.py \
       tests/control_plane/test_actual_default_model_behavior_portfolio.py -q
# -> 9 failed, 18 passed

Root cause (diagnosis)

loopx/control_plane/runtime/agent_scoped_evidence_log.py:272 appends --required-read-id <id> to the evidence-log required-read command when a required_read_id is present:

if safe_required_read_id:
    parts.extend(["--required-read-id", safe_required_read_id])

The replan/portfolio scenarios build/expect the evidence-log required-read command without --required-read-id, so the parity/drift check raises and the turn resolves as quota_execution_failed, preempting the classification each test asserts (e.g. qualification_passed is True, or wrong_evidence_log / unexpected_command).

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions