docs(security): gate strict-mode availability behind a security test lane (H3-B)

Add ADR-0019 freezing the strict availability contract: strict remains
unavailable with an actionable reason on every platform until runtime probes
and filesystem/network/process/resource escape tests pass in a dedicated
security lane. Add a CLI test asserting inspect --platform reports unavailable
and worker processes are not presented as isolation. No G-C claim is made.
This commit is contained in:
cflmy committed 2026-11-20 13:13:42 +08:00
1 parent 1099ed6160
commit e966b7661f
3 files changed
+113 -1

No files matched your search

+25
View File
@@ -739,3 +739,28 @@ fn runtime_error_in_imported_module_reports_that_module() {
.unwrap_or_default();
assert!(primary.contains("physics.mq.md"), "{primary}");
}
#[test]
fn platform_reports_strict_unavailable_until_security_gate_passes() {
let root = repo_root();
let hello = root.join("examples").join("hello.mq.md");
let output = cli(
&root,
&["inspect", hello.to_str().unwrap(), "--platform", "--json"],
);
assert_exit(&output, 0, "inspect --platform");
let value = json_stdout(&output);
let strict = &value["platform"]["strict"];
assert_eq!(
strict["state"], "unavailable",
"strict must stay unavailable until the ADR-0019 security gate passes: {strict}"
);
assert!(
strict["reason"]
.as_str()
.map(|reason| !reason.trim().is_empty())
.unwrap_or(false),
"unavailable strict needs an actionable reason: {strict}"
);
assert_eq!(value["platform"]["worker_processes"], true);
}