[v0.8 replacement 5/5] lock terminal correlation contract - #2328
Open
sethkarten wants to merge 3 commits into
Open
[v0.8 replacement 5/5] lock terminal correlation contract#2328sethkarten wants to merge 3 commits into
sethkarten wants to merge 3 commits into
Conversation
sethkarten
marked this pull request as ready for review
August 12, 2026 06:18
ApprovabilityVerdict: Approved 1060800 This PR adds a new test file for ACP correlation contract conformance testing. No production code is modified - only tests are added. Test-only changes don't impact runtime behavior. No code changes detected at You can customize Macroscope's approvability policy. Learn more. |
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.
Replacement stack
Node 5/5 in a fresh append-only v0.8 replacement chain rooted at authoritative
maincommitc2820d3679e6318f9c3d0155c823d6908b4e1faa.v080/main-replacement-canonical-transcriptsv080/main-replacement-correlation-contract10608006dd5f996c884249ee4fe5f4399401c8b9Scope
Exact coherent #2322 terminal-correlation conformance delta: one test path.
The old contributor PR branches remain untouched. This branch was published non-force from a fresh owned repository. Independent Luna semantic review APPROVED the full N1→N5 chain and found no structural scope leakage; authoritative-main renderer provenance is retained and
pyproject.toml/uv.lockare unchanged across replacement nodes.Warning
TEST BLOCKED — do not merge or mark ready. Authoritative
c2820dhas a staleuv.lockrelative topyproject.toml. A disposableuv sync --lockedcorrectly refused before tests, without changing repository files. The only previously approved interpreter also cannot import current main becausepydantic_configis absent. Testing/remediation continues on GitHub; this draft does not claim green.No live, hosted, Docker, sandbox, model, or paid evaluation was run.
Note
Add ACP 0.11 correlation conformance contract tests for the v1 runner
Introduces test_acp_correlation_contract.py, a new pytest suite that codifies the observable-vs-trusted correlation semantics for the ACP 0.11 runner.
acpdependency, keeping tests self-contained.has_verified_producer_correlationandscoreable_terminalas pure validation helpers encoding the producer evidence and scoreability rules (required fields, allowed phase/outcome pairs, strict ID/sequence constraints, cancellation cut semantics).Macroscope summarized 990b823.
Note
Low Risk
Test-only addition with no production code changes; it documents and guards correlation semantics for reviewers and future refactors.
Overview
Adds
tests/v1/test_acp_correlation_contract.py, a conformance suite for ACP 0.11 terminal correlation: what the v1 runner records inacp_meta/turn_acp_metais observable evidence, not trusted verification.The file loads
verifiers/v1/acp/runner.pyvia monkeypatchedacpdoubles and exercises adapter behavior: tool-onlyend_turnleaves metadata empty; opaque or string turn IDs are stored but failhas_verified_producer_correlation; arrival order and late updates are history only; providerRequestErrorstill wins over stored error-shaped metadata.Pure helpers
has_verified_producer_correlationandscoreable_terminalencode the scoped producer ABI (integerpromptTurnId/eventSequence, allowed phase/outcome pairs, matching response + zero-quiescence terminal pair) and P2-style completion-cut rules—pre-cut cancel is unscoreable; post-seal cancel stays durable—without treatingend_turnas proof.Reviewed by Cursor Bugbot for commit 990b823. Bugbot is set up for automated code reviews on this repo. Configure here.