test(collaboration): qualify the Windows peer read lane in CI #6073
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
BigDataDZ
Goal And Delivered Outcome
tests/test_peer_collaboration.pycarries three Win32-marked regressions for the peer inbox read lane — long private store paths, binary CRLF/Ctrl-Z digests (theinput_readinessopen that used to raiseAttributeErroron Windows), and long workspace inputs behind a junction. Thewindows-powershelljob 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).test_peer_exchange_survives_long_private_store_paths,test_peer_binary_artifact_preserves_crlf_and_ctrl_z_digestortest_peer_read_qualifies_long_workspace_input; after, the Windows job executes exactly those three rows on native Windows. Proven by thereal_entrypointrow below.mainat ed79bfd63.Author Declaration
@JasonBuildAI, who reviewed the result.AI disclosure: this change was drafted with AI assistance at my request, under my direction and review.
Implemented against
windows-powershelljob in.github/workflows/python-tests.ymlat ed79bfd63.| 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>.jsonreceipt 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|read_inboxcommitted 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.read_inboxand_input_readiness_for_goalto locate the ordering, and mutation-tested the new contract test. Deliberately not added: the rest oftests/test_peer_collaboration.pyto the Windows job. Those rows already run on the ubuntu shards; only the three Win32 rows execute nowhere, and a recentwindows-powershellrun onmaintook 12m05s of itstimeout-minutes: 30, so the step is limited to the ~1 minute of coverage nothing else provides.Scope And Continuation
Validation
5ba7b26a9finishedsynthetic| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
static|passed|python -m ruff check tests/test_peer_collaboration.py(All checks passed);git diff --checkclean ||
unit|passed|python -m pytest -q tests/test_peer_collaboration.pyon 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 produced5ba7b26a9, the touched test was re-run alone: 1 passed. ||
real_entrypoint|passed| The exact command of the newwindows-powershellstep, 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: movingrecord_readahead of input readiness makes it fail atassert 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 needbashand 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_compileand the public/private boundary scan passed for this diff; the catalog canarycli-output-budget-regression-smoke.pywas killed by its own 120s budget on this Windows host and also fails on a pristineupstream/mainworktree (temp-dir cleanupWinError 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 thatread_inboxcalls the patched_input_readiness_for_goalbeforerecord_read. It did not run the mutation probe or the Windows job itself. |tests/test_python_ci_workflow.pypasses 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 intests/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
nonenoneType of Change
LoopX Area
Technical Direction
Shared-authority RFC fixture impact
scripts/generate_semantic_inventory.py --changed-from HEADreported no supported new vocabulary carriers.Boundary Checklist
none.Signed-off-bytrailer (git commit -s).See validation disclosure guidance.