Engineering problem
Apply explainable DNS and browser filtering rules consistently, including URLs whose spelling differs but identifies the same DNS host.
Requirements & constraints
Policy precedence, identity requirements, domain and URL path matching, deterministic decisions, and safe reserved-domain tests without modifying host networking.
Architecture & technologies
Rust policy evaluator, endpoint/control crates, and a browser extension. Source includes management and transport components; this replay only verifies the pure evaluator.
Security & trust boundaries
Identity and organization policy are inputs to decision logic. Browser host canonicalization must happen before all domain/category/path rules. A browser replay is not proof of privileged endpoint enforcement.
Original engineering
Four baseline commits are attributed to charlesderek. The reviewed contribution scope is the custom Rust evaluator and its tests. An exhaustive independent authorship audit remains outside this cycle.
Working implementation
DNS feed matching and explicit exceptions, browser URL domain/category/path rules, policy explanations, and required-user checks are exercised by the deterministic Rust example.
Experiments & missing capabilities
Signed device policies, TLS pairing, encrypted DNS upstream behavior, and production authentication were not exercised in this replay. Platform enforcement remains outside these results.
Failure modes & concurrency
Malformed URLs fail validation. A double root dot is rejected. Domain boundary and IPv4/IPv6 behavior are regression-tested. The replay runs serially and establishes no throughput claim.
Testing & evidence
37 Rust workspace tests and 3 extension JavaScript tests passed. Formatting and strict Clippy passed. Two added root-dot regressions failed against the original implementation.
Observable improvement
Before: https://restricted.example./ bypassed a domain block. After: one root dot is canonicalized before rule matching and multiple terminal dots are rejected. Local commit 711b1b1.
Deployment model
Independent endpoint and management code. The website loads a JSON replay exported from actual Rust logic; no host DNS or firewall settings are changed.
Decisions & alternatives
Canonicalize at the URL parser boundary so all rule types agree. Repeating suffix stripping independently in every matcher would invite inconsistent behavior.
Demonstration & limitations
The Browser policy replay exposes ten named fixtures with exact verdicts and reasons. Run cargo run --locked --offline --example policy_replay. This browser presents captured results rather than a live backend.