Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

The #339 budget tests and the HQDM budget block read #340's bound fields

FABIOTESS742a5a41b7e3
diff --git a/docs/assets/hqdm/owl-dl.json b/docs/assets/hqdm/owl-dl.json
index 5c5a35c1..b49ecba1 100644
--- a/docs/assets/hqdm/owl-dl.json
+++ b/docs/assets/hqdm/owl-dl.json
@@ -18,9 +18,10 @@
},
"algorithm": "tableaux",
"budget": {
- "binding_bound": "phase",
+ "binding_bound": "none",
"classify_timeout_ms": 900000,
- "note": "classify_timeout_ms (900000 ms) cannot be the bound that stops this run: 5 phases at 120000 ms each cap it at 600000 ms. It is enforced as a ceiling over every phase and will not fire at this setting. The bound in force is the phase budget; lower classify_timeout_ms below 600000 to make it the binding one.",
+ "configured_bound": "phase",
+ "note": "No bound stopped this run: every phase finished inside its budget. At these settings classify_timeout_ms (900000 ms) is not expected to be the bound: 5 phases at 120000 ms each bound the tableau work at 600000 ms. It is enforced as a ceiling over every phase and fires only if the work between tableaux (building pair lists and the hierarchy) takes the rest; lower it below 600000 ms to make it the expected bound.",
"phase_timeout_ms": 120000,
"phase_worst_case_ms": 600000,
"phases": [
diff --git a/tests/cli_reasoner_config_test.rs b/tests/cli_reasoner_config_test.rs
index 4503a7ec..d6e0c419 100644
--- a/tests/cli_reasoner_config_test.rs
+++ b/tests/cli_reasoner_config_test.rs
@@ -87,7 +87,10 @@ fn reason_reports_the_budgets_set_in_config_toml() {
assert_eq!(b["classify_timeout_ms"], 60000, "config ceiling ignored: {b}");
// 5 phases x 200 ms = 1000 ms, under the 60 000 ms ceiling.
assert_eq!(b["phase_worst_case_ms"], 1000, "{b}");
- assert_eq!(b["binding_bound"], "phase", "{b}");
+ // The settings predict the phase budget binds; this tiny run hits neither
+ // clock, and `binding_bound` reports what actually stopped it (#340).
+ assert_eq!(b["configured_bound"], "phase", "{b}");
+ assert_eq!(b["binding_bound"], "none", "{b}");
}
#[test]
@@ -100,8 +103,8 @@ fn reason_flags_override_config_toml() {
);
assert_eq!(b["phase_timeout_ms"], 300, "flag must beat config: {b}");
assert_eq!(b["classify_timeout_ms"], 700, "flag must beat config: {b}");
- // 5 x 300 = 1500 > 700, so the ceiling is now the bound that fires.
- assert_eq!(b["binding_bound"], "global", "{b}");
+ // 5 x 300 = 1500 > 700, so the ceiling is now the bound expected to fire.
+ assert_eq!(b["configured_bound"], "global", "{b}");
// One flag alone leaves the other at its configured value, not the default.
let b = budget(d.path(), &["--phase-timeout-ms", "400"]);