Repository navigation
test: catalog-wide statistical fidelity; REP-018 entry login joins hop 1 - #119
Merged
Merged
Conversation
Roadmap 2026-09 item 6 shipped in v0.10.0 as four checks on three techniques. tests/test_catalog_fidelity.py measures at least one distributions claim for every catalog entry at every preset over five seeds, with a completeness guard that fails when an entry has none. The five newest entries are covered by their dedicated files. Its first run found REP-018's entry VPN login named no inside address, so the chain began at hop 2. The tunnel-up now carries tunnelip = hop 1. No random draw changed. Positive controls: REP-001 jitter x3, REP-004 qtype to A, REP-023 wide bytes and REP-018 without the join each failed 15 of 15 cases; dropping REP-030 from the registry failed the completeness guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs
4 tasks done
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
Roadmap 2026-09 item 6, "assert each technique's emitted stream satisfies the quantitative property it claims". v0.10.0 recorded it as shipped, but
tests/test_statistical_fidelity.pymeasured four claims on REP-001, REP-004 and REP-016. This PR closes the gap between the title and the guard.tests/test_catalog_fidelity.pymeasures at least onedistributionsclaim for each of the 26 catalog entries that predate the dedicated per-technique files. It runs on the attack stream at every preset over five seeds (390 cases), and each check quotes the catalog text it measures. The claims covered:The five newest entries (REP-028, REP-046, REP-052, REP-053, REP-054) already measure every claim in their own files, and the suite asserts those files exist. A completeness guard fails when an entry is added with neither.
One claim is listed as not measurable rather than dropped. REP-011's "> 900 km/h" can't be checked because the GeoIP tags are fictional countries with no coordinates.
One engine defect found and fixed. REP-018's entry VPN login named no inside address, so the path a rule follows began at hop 2, and "a login into hop 1" was not observable in the records. The tunnel-up now carries
tunnelipset to hop 1, which is thesrcof the next login. It is the same join REP-011 gained on 2026-10-07. No random draw changed, so every other field of every plan is identical.Four of the first five failures were the check, not the engine. That is recorded in
CLAUDE.mdso the next author reads the claim and the builder before calling a failure a defect.ipaddress.is_privateis true for the documentation ranges every synthetic external pool uses.A stacked follow-up PR fixes a REP-018 foil defect found while making this change.
Verification
main);mainwith fix: inbound traffic direction on PAN-OS and Check Point #118;ruff,black --check,mypy replicantclean. The new file runs in about two minutes.Documentation impact
docs/roadmap-2026-09.md: dated implementation note. It replaces the stale "Nothing here is implemented yet" with the measured status, and says plainly that items 6, 8 and 14 shipped narrower than their titles.CHANGELOG.mdUnreleased: the suite, and the REP-018 fix.CLAUDE.md: phase-plan note with the new rule (a new technique needs a measured fidelity claim).README.md: the v0.10.0 line now says the fidelity suite was narrow at first.replicant/data/technique-catalog.yaml: REP-018'spathtext names the join.tests/test_statistical_fidelity.py: docstring points at the new file.Unaffected: vendor references (no new key;
tunneliprenders through the existing optional keys on all three vendors),docs/run-manifest.md, the web UI.Maintained documentation changed alongside the behavior, or unaffected surfaces are explained above.
CHANGELOG.mdrecords the operator-visible change.Historical decision records were preserved or received a dated addendum.
Documentation claims were checked against the implemented behavior.
Scope boundary
CLAUDE.mdis unchanged.Generated by Claude Code