feat(control-plane): make evidence-log read enforcement hard-only with failure receipt escape - #3135
Merged
Merged
Conversation
…h failure receipt escape
huangruiteng
added a commit
that referenced
this pull request
Aug 12, 2026
#3147) Mark the fresh-project onboarding fixture done (GH-C87, #3093/#3103), bump release docs slices to v0.4.5, and add security-boundary (GH-C90) plus obligation-bound replan/evidence-read (GH-C91) fixtures. Reflect merged security fixes #3137-#3140, PR-review lenses #3123/#3134, replan evidence-log hardening #3100-#3106/#3112/#3135/#3144, and the landed React homepage #3098.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the replan required-read enforcement for the agent-scoped evidence log hard by default and hard-only. The previous release introduced a
softmode that only surfaced a warning; this PR deletes the soft path entirely, so an ACK that closes an autonomous-replan obligation must be backed by a fresh evidence-log read receipt.It also adds the agreed failure escape hatch: when
loopx evidence-logitself fails, the CLI best-effort records astatus="failed"rollout event, which projects as anevidence_log_read_failedwarning receipt. The receipt satisfies the hard gate (the agent attempted the required read) while keeping the failure visible in replan ACK feedback instead of silently passing.Changes
loopx/control_plane/work_items/autonomous_replan_ack.py: hard-only receipt validation; failed-read receipts accepted withevidence_log_read_failedwarning; removed the soft branch and the pre-trigger ACK early-return that let stale ACKs bypass fresh-read validation.loopx/control_plane/runtime/agent_scoped_evidence_log.py: receipts acceptstatuscompleted/failed; failed receipts carry anerrorfield.loopx/cli_commands/evidence_log.py: on read failure, append a best-effortevidence_log_read/status=failedrollout event before returning the error; escape-hatch append failure never masks the original error.loopx/control_plane/goals/goal_frontier/__init__.py,loopx/control_plane/quota/should_run_prepare.py,loopx/control_plane/__init__.py: removedrequired_read_enforcementplumbing and the soft policy summary; feedback now surfacesrequired_read_not_executedorevidence_log_read_failedfrom the validation warnings.docs/reference/protocols/agent-scoped-evidence-ledger-v0.md,docs/status-data-contract.md: document hard-only enforcement and the failure-receipt escape.tests/control_plane/test_replan_required_read_receipts.pyandtests/control_plane/test_goal_vision_blocked_successor.py; the replan decision-plane smoke now models read receipts for ACK scenarios.Validation
loopx canary premerge --from-git-diff --goal-id loopx-meta --tier standard: passed (diff hygiene, py_compile, 9 catalog canaries, 8 risk-profile smokes, public/private boundary scan, valid change-quality receipt).mypy(strict, repo-declared files): passed.ruff check --select Fon changed Python files: passed.Product / Architecture
Manual holds
None. Self-merge after canary + receipt.