From 094e2e57c2d42b0b41e37061eecc029aa600ccda Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Tue, 10 Nov 2026 22:14:35 +0800 Subject: [PATCH] test: drop the audit model test and audit docs (WOT-03) modpoll-wot removed derive_audit_tm in 0.3.0a1 and the modpoll:audit plan in 0.3.0a3, so the test always skipped. Describe known-value checks with a full read instead. Co-Authored-By: Claude Opus 5.5 --- docs/release-process.md | 11 +++++------ tests/test_wot.py | 29 ----------------------------- 2 files changed, 5 insertions(+), 35 deletions(-) diff --git a/docs/release-process.md b/docs/release-process.md index f4f7849..7e260c5 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -32,13 +32,12 @@ publishing jobs, installs the existing PyPI wheel, uses fixtures from that exact tag and runs the current acceptance tooling. It does not replace packages or images. Record the separate validation run and tooling SHA. -### Audit model compatibility +### Known-value checks -Use the approved full TM or its public audit TM as the configuration for a -local TCP simulator. Seed known values for the selected properties with -`--initial PROPERTY=JSON` or `--initial-file`. Public audit TMs expose only the -selected read spans. Use identical initial values for the shared properties -when comparing full and public models. +Use the approved TM as the configuration for a local TCP simulator. Seed known +values with `--initial PROPERTY=JSON` or `--initial-file`, then read them with +a full modpoll read. Thing Models no longer carry a `modpoll:audit` plan; a +full read covers every property in `modpoll:acquisition`. Stop a foreground simulator with Ctrl-C. Restart with the same TM and initial values to restore the original vector. A managed deployment can use diff --git a/tests/test_wot.py b/tests/test_wot.py index 16a70db..cce54b0 100644 --- a/tests/test_wot.py +++ b/tests/test_wot.py @@ -196,32 +196,3 @@ def test_defaults_and_constraints_are_respected(tmp_path): args.model_initialization["origins"]["AI0_RAW"] == "synthetic type/constraint fallback" ) - - -@pytest.mark.integration -def test_full_and_public_audit_models_share_selected_vectors(server): - import modpoll_wot - - derive = getattr(modpoll_wot, "derive_audit_tm", None) - if derive is None: - pytest.skip("requires the independently built audit producer candidate") - source = model("HoldingRegister", 10, ["identity", "private_point", "status"]) - source["modpoll:audit"] = {"identity": ["identity"], "status": ["status"]} - artifact = derive(json.dumps(source).encode(), title="Audit vector") - full = server(source, "--initial", "identity=4660", "--initial", "status=43981") - public = server( - json.loads(artifact.payload), - "--initial", - "identity=4660", - "--initial", - "status=43981", - ) - for client in (full, public): - assert client.read_holding_registers(10, count=1, device_id=1).registers == [ - 4660 - ] - assert client.read_holding_registers(12, count=1, device_id=1).registers == [ - 43981 - ] - assert public.read_holding_registers(11, count=1, device_id=1).isError() - assert public.write_register(12, 7, device_id=1).isError()