Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 0 additions & 29 deletions tests/test_wot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Loading