← Back to Pull requests

test(collaboration): qualify the Windows peer read lane in CI #6073

Closed
unknown closed this pull request without merging on Oct 10, 2026 07:06 UTC
View on GitHub
unknown unknown commented on Oct 10, 2026 05:03 UTC
Author

Goal And Delivered Outcome

  • Outcome basis / optional anchor: issue #5511 (Windows peer inbox read path); the maintainer reply there keeps the remaining Windows peer-brief qualification as a platform gap.
  • Goal/source and gap: tests/test_peer_collaboration.py carries three Win32-marked regressions for the peer inbox read lane — long private store paths, binary CRLF/Ctrl-Z digests (the input_readiness open that used to raise AttributeError on Windows), and long workspace inputs behind a junction. The windows-powershell job runs explicit pytest lists that never included this file, and the ubuntu shards skip those rows by platform marker, so those three rows have executed on no runner since they landed (#5456, 05e596dd8).

  • Observable before → after, with the validation row that proves it: before, no CI runner executed test_peer_exchange_survives_long_private_store_paths, test_peer_binary_artifact_preserves_crlf_and_ctrl_z_digest or test_peer_read_qualifies_long_workspace_input; after, the Windows job executes exactly those three rows on native Windows. Proven by the real_entrypoint row below.

  • Issue/task and intended base: Related to #5511 — its shipped code fix is not reopened, and only the platform-coverage gap it named is closed. Base: upstream main at ed79bfd63.
  • Author Declaration

  • Written by: model_agent — an OpenAI Codex agent, working under the direction and constraints of the repository contributor @JasonBuildAI, who reviewed the result.
  • AI disclosure: this change was drafted with AI assistance at my request, under my direction and review.

    Implemented against

  • Specification and revision: issue #5511 body (repro and "The fix already exists in this repo — twice" sections) as accepted on 2026-10-05, plus the repository contract for the windows-powershell job in .github/workflows/python-tests.yml at ed79bfd63.

  • Criteria:
  • | Criterion (spec clause) | Disposition | Symbol / path | Test or command |
    | --- | --- | --- | --- |
    | The Windows peer read lane is exercised on a Windows host (#5511 "Repro") | implemented | .github/workflows/python-tests.yml → windows-powershell | python -m pytest -q tests/test_peer_collaboration.py::test_peer_read_qualifies_long_workspace_input |
    | Input readiness keeps the guarded flag form that #5456 landed | implemented | loopx/control_plane/collaboration/peers.py::_input_readiness_for_goal (unchanged) | the three Win32 rows above |
    | The reads/<request_id>.json receipt is evidence of a completed read only (#5511 "Impact notes") | implemented | loopx/control_plane/collaboration/peers.py::read_inbox (ordering set by 025be07e3) | tests/test_peer_collaboration.py::test_a_failed_input_readiness_leaves_no_read_receipt |

  • Receipt-ordering history: the "receipt persisted before the crash" half of the report was real for 1.2.4 — read_inbox committed the read before response enrichment, and 025be07e3 ("fix(collaboration): commit inbox reads after response validation", merged 2026-10-04, before this base) moved it after. This PR changes no runtime code; it holds that ordering with a test so it cannot drift back.

  • Self-check before submission: ran the added workflow command and the full affected test file on native Windows, read read_inbox and _input_readiness_for_goal to locate the ordering, and mutation-tested the new contract test. Deliberately not added: the rest of tests/test_peer_collaboration.py to the Windows job. Those rows already run on the ubuntu shards; only the three Win32 rows execute nowhere, and a recent windows-powershell run on main took 12m05s of its timeout-minutes: 30, so the step is limited to the ~1 minute of coverage nothing else provides.
  • Scope And Continuation

  • Completed scope and remaining work: complete within this scope — the Windows-only rows of the peer read lane now execute on Windows, and the receipt ordering has coverage.

  • Slice boundary / successor: N/A. The broader Windows peer/desktop platform qualification tracked from #5511 remains with its existing owner; this does not claim it.
  • Validation

  • Tested revision: 5ba7b26a9

  • Run state: finished

  • Input classes: synthetic
  • | Check kind | Result | Public-safe evidence / limitation |
    | --- | --- | --- |
    | static | passed | python -m ruff check tests/test_peer_collaboration.py (All checks passed); git diff --check clean |
    | unit | passed | python -m pytest -q tests/test_peer_collaboration.py on native Windows at d90371248: 34 passed, 2 skipped. The two skips are pre-existing (POSIX FIFO fixture; a symlink fixture that requires privileges). After the docstring edit that produced 5ba7b26a9, the touched test was re-run alone: 1 passed. |
    | real_entrypoint | passed | The exact command of the new windows-powershell step, run on native Windows: 3 passed in 60.70s — the three rows that previously executed on no runner |
    | regression_parity | passed | Mutation check on the new test: moving record_read ahead of input readiness makes it fail at assert not receipt.exists(); the probe was reverted and the test passes again |
    | unit | failed | python -m pytest -q tests/test_python_ci_workflow.py: 4 failed, 543 passed on this host, with the same 4 failures reproduced with this diff reverted (they need bash and a UTF-8 console). Environment limitation, not a diff effect. |
    | manual | failed | loopx canary premerge --from-git-diff --git-diff-base upstream/main: diff hygiene, py_compile and the public/private boundary scan passed for this diff; the catalog canary cli-output-budget-regression-smoke.py was killed by its own 120s budget on this Windows host and also fails on a pristine upstream/main worktree (temp-dir cleanup WinError 32). Reported as a host limitation, not a diff effect. |
    | manual | not_run | Independent review by a separate agent reviewer at d90371248: re-ran the focused checks (ruff clean; full file 34 passed, 2 skipped; the three step node ids 3 passed in 66.68s) and confirmed in source that read_inbox calls the patched _input_readiness_for_goal before record_read. It did not run the mutation probe or the Windows job itself. |

  • Coverage and gaps: the changed workflow step is validated by parsing the workflow and running its exact folded command; tests/test_python_ci_workflow.py passes for the Windows job. Residual risks: (1) these three rows are written by their authors and this is their first execution on a CI Windows host — they passed on a developer Windows host and CI will confirm; (2) the added step is not covered by the existing node-id/file-existence guard in tests/test_python_ci_workflow.py, which only parses the "Run native Windows lifecycle tests" step. That guard was left untouched to keep this change reviewable, and the failure mode of a stale node id is a loud pytest collection error rather than silent loss of coverage; the pre-existing "Validate local-state routing" step has the same shape.
  • Frontend / Visual Evidence

  • UI impact: none

  • Before: N/A

  • After: N/A

  • States and viewports shown: N/A

  • Source data: none

  • Attention review: N/A — no user-visible surface changed.
  • Type of Change

  • Test update

  • Bug fix
  • LoopX Area

  • Build, packaging, installer, or CI
  • Technical Direction

  • Direction / acceptance reference, when applicable: N/A for this bounded slice; the linked #5511 platform gap remains with its existing owner.
  • Shared-authority RFC fixture impact

  • Production-scale fixture schema: N/A

  • Semantic dimensions changed, or reviewed no-impact rationale: N/A — no control-plane vocabulary changed; scripts/generate_semantic_inventory.py --changed-from HEAD reported no supported new vocabulary carriers.

  • Provider conformance arms run: N/A

  • Read-only legacy/file/PostgreSQL three-arm rehearsal (required for promotion, runtime-routing, or compatibility-projection changes): N/A
  • Boundary Checklist

  • Neither the diff nor this PR body/comments/attachments disclose private state, credentials, raw traces or verifier output, internal links, or local machine paths.

  • I did not duplicate maintainer-owned benchmark work unless a maintainer split out a public issue for it.

  • I kept the change scoped to the linked issue/task.

  • I completed the visual evidence section for UI changes, or marked UI impact none.

  • Every commit includes a DCO Signed-off-by trailer (git commit -s).
  • See validation disclosure guidance.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: BigDataDZ Review duration: 123m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6073"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%