Skip to content

Commit 65f205e

Browse files
Qualify Verify 0.6.1 as the exact Harness dependency
Align the package pin, runtime constant and active CI constraint. Retain exact-version refusal and document the existing recovery-profile boundary for saved Verify 0.6.0 reviews without changing frozen records or recovery logic. Co-Authored-By: Codex (GPT-6) <codex@openai.com>
1 parent 212e274 commit 65f205e

7 files changed

Lines changed: 29 additions & 17 deletions

File tree

‎docs/recovery-workflow.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ Resume requires the original request and registry again. Their accepted revision
4444
document/context hashes and the complete bounded Markdown source snapshot must
4545
match. Missing/wrong feature dependencies fail visibly. Native or command profiles
4646
require `--allow-external` on each execution call; a stored switch is not reused as
47-
credential or spending approval. Completed runs are returned without invoking any
47+
credential or spending approval. Resume also requires the saved engine profile to
48+
match the current qualified dependencies, including Verify's exact version. This
49+
check precedes completed-run replay. After a Verify upgrade from 0.6.0 to 0.6.1,
50+
inspect older records with **`inspect-review`**; use their original runtime for
51+
resume. Do not rewrite saved profiles to bypass the check.
52+
53+
Completed runs with a matching engine profile are returned without invoking any
4854
participants. Inspection and completed-run replay are historical evidence, not a
4955
fresh verification of external state.
5056

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
# each missing piece instead of failing.
3333
dependencies = [
3434
"attune-forms==0.17.0",
35-
"attune-verify==0.6.0",
35+
"attune-verify==0.6.1",
3636
"attune-rag==1.2.0",
3737
"mcp==2.2.0",
3838
"tiktoken==0.12.0",

‎requirements-workflow.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pygments==2.21.0
55
attrs==26.1.0
66
attune-forms==0.17.0
77
attune-rag==1.2.0
8-
attune-verify==0.6.0
8+
attune-verify==0.6.1
99
coverage==7.13.5
1010
exceptiongroup==1.3.1
1111
iniconfig==2.3.0

‎src/attune_harness/verification.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from .features import read_text, report, require_feature
99

10-
VERIFY_VERSION = '0.6.0'
10+
VERIFY_VERSION = '0.6.1'
1111

1212

1313
def verify_document(document: Path, context_file: Path) -> dict:

‎tests/fixtures/compat-1.0/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and derives only the values their readers require:
2525
| File family | Exact changed pointers and derivations |
2626
| --- | --- |
2727
| Work draft and accepted records | `/request/project_root`, `/request/config/path`, `/record_path`; accepted also `/acceptance/decision/record_path`. Derive record checkpoint, accepted request bindings and draft decision binding with the production helpers. Decision sidecars update `/work` binding and accepted `/response/record_path`, then the sidecar digest. |
28-
| Completed and paused assessment records | `/record_path` and its whole-record checkpoint digest only. The paths in accepted source, artifacts and historical events remain the original recorded evidence. Completed replay performs no dispatch; paused continuation refuses a changed source snapshot. |
28+
| Completed and paused assessment records | `/record_path` and its whole-record checkpoint digest only. The paths in accepted source, artifacts and historical events remain the original recorded evidence. Both states remain inspectable. These records carry Verify 0.6.0 in their saved engine profile; the Verify 0.6.1 engine refuses resume before participant dispatch or source freshness checks. |
2929
| Test draft | `/request/project_root`, `/request/snapshot/root`, `/record_path` and checkpoint digest. The Git repository metadata is intentionally not copied, so freshness refuses with `Git input unavailable`; reading the durable draft remains supported. |
3030
| Effects manifest | `/root` only. The captured `root_identity` device/inode is retained. A copied checkout must refuse freshness with `Checkout identity changed`; it cannot inherit the original owner's identity. |
3131
| Saved store | The task's `execution/directory` and `scope/project` at the eight exact current, history and operation-replay pointers selected by its captured ID. Only the `save-task` operation digest is derived from the canonical saved request payload. The revised global memory and its operation identities remain unchanged. |

‎tests/test_compat_candidate_fixture.py‎

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,21 @@ def test_relocated_task_and_review_readers_preserve_authority_boundaries(relocat
218218
def no_participant(*_args, **_kwargs):
219219
pytest.fail("Retained review attempted participant dispatch")
220220

221-
completed_path = target / "review-completed/record.json"
222-
before = completed_path.read_bytes()
223-
resumed = resume_review(target / "review-completed", target / "review-request.json",
224-
target / "participants.json", context["completed"]["checkpoint_digest"],
225-
exchange_factory=no_participant)
226-
assert resumed["status"] == "completed" and completed_path.read_bytes() == before
227-
with pytest.raises(ValueError, match="Accepted request, registry or source snapshot changed"):
228-
resume_review(target / "review-paused", target / "review-request.json",
229-
target / "participants.json", context["paused"]["checkpoint_digest"],
230-
exchange_factory=no_participant)
221+
from attune_harness.features import FeatureUnavailable
222+
223+
for status in ("completed", "paused"):
224+
directory = target / f"review-{status}"
225+
record_path = directory / "record.json"
226+
before = record_path.read_bytes()
227+
with pytest.raises(
228+
FeatureUnavailable,
229+
match="^This record has no supported recovery profile; old records remain inspectable$",
230+
):
231+
resume_review(directory, target / "review-request.json",
232+
target / "participants.json", context[status]["checkpoint_digest"],
233+
exchange_factory=no_participant)
234+
assert record_path.read_bytes() == before
235+
assert inspect_run(directory)["status"] == status
231236

232237

233238
@pytest.mark.skipif(os.name != "posix", reason="candidate writer used POSIX saved/effects profile")

‎tests/test_verification.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def absent(_):
7373
assert json.loads(output.read_text()) == result
7474

7575

76-
def test_wrong_dependency_version_never_invokes_library(project, monkeypatch):
77-
monkeypatch.setattr('attune_harness.features.version', lambda _: '0.5.0')
76+
@pytest.mark.parametrize('installed_version', ['0.5.0', '0.6.0', '0.6.2'])
77+
def test_wrong_dependency_version_never_invokes_library(project, monkeypatch, installed_version):
78+
monkeypatch.setattr('attune_harness.features.version', lambda _: installed_version)
7879
with pytest.raises(FeatureUnavailable, match='unsupported'):
7980
verify_document(*project)
8081

0 commit comments

Comments
 (0)