Skip to main content

qualia_core_db/net/qdnf/harness/
limitations.rs

1//! Honest unsupported / unqualified claims (E21.5). Test counts are not certification.
2
3/// Physical two-host Ethernet is not qualified in this environment.
4pub const PHYSICAL_TWO_HOST: &str = "physical_two_host_qualified=false";
5/// Observational snapshot of the Native Independent default-daemon claim.
6/// Another agent may change crate default features; this string is not a live
7/// measurement of `native_independent_daemon_proven()`.
8pub const NATIVE_INDEPENDENT_DAEMON: &str = "native_independent_daemon_proven=true (LIG isolated)";
9/// Operational FAR/FRR is not measured; remote matching stays unselectable.
10pub const OPERATIONAL_BIOMETRIC: &str = "remote_matching_selectable=false";
11/// Live settlement rails are Unsupported.
12pub const LIVE_PAYMENT_RAIL: &str = "live_payment_rail=Unsupported";
13/// Independent cryptographic composition review is not claimed.
14pub const INDEPENDENT_CRYPTO_REVIEW: &str = "e02.6/e21.3 independent review not executed";
15/// Bounded in-tree fuzz / model-check / seconds-churn exist; libFuzzer, TLA+,
16/// days-long churn, and commissioned independent review do not.
17pub const FUZZ_AND_CHURN: &str = "e21.2 bounded in-tree codec fuzz + ownership model-check (not libFuzzer, not TLA+); e21.4 bounded-seconds churn (not days); e21.3 review packet prepared, independent review not executed";
18/// MSVC runner is not present on this Linux host.
19pub const MSVC_RUNNER: &str = "MSVC_RUNNER=None";
20
21/// Count of documented known limitations. Not a completeness score.
22pub const KNOWN_LIMITATION_COUNT: usize = 7;
23
24#[cfg(test)]
25mod tests {
26    use super::*;
27    use crate::net::qdnf::bearer::raw_ethernet::physical_two_host_qualified;
28    use crate::net::qdnf::biometrics::remote_matching_selectable;
29    use crate::net::qdnf::economics::live_payment_rail;
30    use crate::net::qdnf::errors::QdnfError;
31    use crate::net::qdnf::harness::qualification::MSVC_RUNNER as Q_MSVC;
32    use crate::net::qdnf::harness::scenarios::qualified_count;
33
34    #[test]
35    fn limitations_are_not_inferred_from_fixtures() {
36        assert!(!physical_two_host_qualified());
37        assert!(!remote_matching_selectable());
38        assert_eq!(live_payment_rail(), Err(QdnfError::Unsupported));
39        assert!(Q_MSVC.is_none());
40        assert_eq!(qualified_count(), 0);
41        assert_eq!(KNOWN_LIMITATION_COUNT, 7);
42        assert!(PHYSICAL_TWO_HOST.contains("false"));
43        assert!(LIVE_PAYMENT_RAIL.contains("Unsupported"));
44        assert!(OPERATIONAL_BIOMETRIC.contains("false"));
45        assert!(MSVC_RUNNER.contains("None"));
46        assert!(INDEPENDENT_CRYPTO_REVIEW.contains("not executed"));
47        assert!(FUZZ_AND_CHURN.contains("bounded"));
48        assert!(FUZZ_AND_CHURN.contains("not libFuzzer"));
49        assert!(FUZZ_AND_CHURN.contains("not TLA+"));
50        assert!(FUZZ_AND_CHURN.contains("not days"));
51        assert!(FUZZ_AND_CHURN.contains("independent review not executed"));
52        // NATIVE_INDEPENDENT_DAEMON is observational of another crate's
53        // default features; do not hard-assert `!native_independent_daemon_proven()`.
54        let _ = NATIVE_INDEPENDENT_DAEMON;
55    }
56}