Repository navigation
Conversation
The regression models a POSIX privacy failure by loosening directory mode bits, which Windows cannot enforce, so the composed settlement correctly returns its unsupported-capture result and the test's nonzero-exit premise cannot hold. Skip the case where private capture is unavailable; the cross-platform unsupported contract remains covered by test_composed_settlement_keeps_commit_when_private_capture_is_unsupported. Refs loopx-project#9398. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
|
补一条独立验证记录,供后续评审参考。 9559 的 CI 状态:最新 head 本地结果:POSIX 上 关于双退出码:#9490 的取舍是有意的——capture 不支持时 |
Goal And Delivered Outcome
Windows composed settlement exits 1 with ok=false after the spend commits).test_receipt_capture_failure_keeps_committed_receipts_and_exact_retrycannot hold on a host without POSIX private capture. The test models a privacy failure by loosening directory mode bits withchmod; Windows does not enforce those bits, and the composed settlement now correctly returnsquota_decision_capture_unsupportedwith exit 0.assert rc != 0for both the file and sqlite provider (before the merge it failed earlier at the replay assertion). After this change it reports a skip with a reason naming the cross-platform unsupported-capture case. On hosts with POSIX private capture it still runs the original path unchanged.main.Author Declaration
Written by: model_agent (GPT family, OpenAI) working from the post-merge native Windows evidence on #9490.
Implemented against
docs/reference/required-work-context.mdsection "Bounded settlement results": a host without private capture keeps the evaluated result inline, addsresult_delivery_error(quota_decision_capture_unsupported), and lets the evaluated outcome decide the exit code. The Chinese half states the same contract.chmodcan revoke capturetests/control_plane/test_refresh_settle_turn.pytest_receipt_capture_failure_keeps_committed_receipts_and_exact_retrytest_composed_settlement_keeps_commit_when_private_capture_is_unsupportedValidation
python3 -m pytest tests/control_plane/test_refresh_settle_turn.py -q -k "receipt_capture_failure and file or composed_settlement and file"-> 2 passed on this POSIX host.mainfails the same way. The file provider covers the changed test body.Risks
result_delivery_error.error_codedistinguishesquota_decision_capture_unsupported(exit 0) from a transport failure (nonzero), as the required-work context documents.Checklist
CONTRIBUTING.mdand the relevant protocol documents.