forgedock 1.67.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/bin/config-schema.mjs +1 -0
  2. package/bin/engine/outcome-codes.mjs +1 -0
  3. package/bin/engine-cli.mjs +99 -12
  4. package/bin/engine.mjs +10 -0
  5. package/bin/forgedock.mjs +17 -1
  6. package/bin/help-text.mjs +1 -0
  7. package/bin/lean/admission.mjs +21 -0
  8. package/bin/lean/admission.test.mjs +30 -0
  9. package/bin/lean/advisory.test.mjs +25 -10
  10. package/bin/lean/amendment-schema.mjs +3 -4
  11. package/bin/lean/attempts.mjs +34 -31
  12. package/bin/lean/attempts.test.mjs +33 -19
  13. package/bin/lean/basered.mjs +26 -0
  14. package/bin/lean/batch-health.mjs +17 -12
  15. package/bin/lean/batch-health.test.mjs +39 -11
  16. package/bin/lean/batch.test.mjs +51 -2
  17. package/bin/lean/ci-gate.mjs +2 -90
  18. package/bin/lean/ci-gate.test.mjs +1 -127
  19. package/bin/lean/ci-precheck.mjs +25 -8
  20. package/bin/lean/ci-precheck.test.mjs +24 -0
  21. package/bin/lean/clear-breaker.test.mjs +4 -3
  22. package/bin/lean/commentstate.mjs +10 -5
  23. package/bin/lean/commentstate.test.mjs +12 -1
  24. package/bin/lean/conformance.e2e.test.mjs +9 -6
  25. package/bin/lean/conformance.mjs +56 -196
  26. package/bin/lean/conformance.test.mjs +40 -376
  27. package/bin/lean/depcache.mjs +100 -10
  28. package/bin/lean/depcache.test.mjs +105 -0
  29. package/bin/lean/docsgate.mjs +0 -32
  30. package/bin/lean/docsgate.test.mjs +2 -23
  31. package/bin/lean/effects-cap.test.mjs +9 -1
  32. package/bin/lean/effects-killtree.test.mjs +35 -0
  33. package/bin/lean/effects.mjs +42 -24
  34. package/bin/lean/engine-readmit.test.mjs +35 -0
  35. package/bin/lean/envgap.mjs +93 -0
  36. package/bin/lean/envgap.test.mjs +53 -0
  37. package/bin/lean/execution.mjs +10 -4
  38. package/bin/lean/execution.test.mjs +12 -0
  39. package/bin/lean/failure-census.mjs +170 -0
  40. package/bin/lean/failure-census.test.mjs +59 -0
  41. package/bin/lean/guardgate.test.mjs +2 -3
  42. package/bin/lean/heavy.mjs +33 -4
  43. package/bin/lean/heavy.test.mjs +38 -6
  44. package/bin/lean/hotarea.mjs +0 -36
  45. package/bin/lean/hotarea.test.mjs +1 -22
  46. package/bin/lean/issuewatch-verify.mjs +19 -4
  47. package/bin/lean/issuewatch.mjs +21 -4
  48. package/bin/lean/issuewatch.test.mjs +48 -1
  49. package/bin/lean/lane-audit-gap.mjs +66 -0
  50. package/bin/lean/lane-audit-gap.test.mjs +59 -0
  51. package/bin/lean/lane-audit-llm.mjs +5 -0
  52. package/bin/lean/lane-audit-query.mjs +47 -0
  53. package/bin/lean/lane-audit-query.test.mjs +44 -0
  54. package/bin/lean/lane-audit-signatures.mjs +33 -0
  55. package/bin/lean/lane-audit.mjs +110 -0
  56. package/bin/lean/lane-audit.test.mjs +97 -0
  57. package/bin/lean/lane-recovery.test.mjs +33 -0
  58. package/bin/lean/lanecheck.mjs +5 -3
  59. package/bin/lean/lanecheck.test.mjs +6 -0
  60. package/bin/lean/lean.mjs +206 -148
  61. package/bin/lean/lean.test.mjs +406 -190
  62. package/bin/lean/limits.mjs +17 -0
  63. package/bin/lean/limits.test.mjs +15 -1
  64. package/bin/lean/live-execution.mjs +21 -2
  65. package/bin/lean/live-execution.test.mjs +39 -0
  66. package/bin/lean/orchestrate-attempts.test.mjs +17 -9
  67. package/bin/lean/orchestrate-envhold.test.mjs +47 -0
  68. package/bin/lean/orchestrate-heldroot.test.mjs +72 -0
  69. package/bin/lean/orchestrate-hostfallback.test.mjs +59 -1
  70. package/bin/lean/orchestrate-overload-recovery.test.mjs +37 -0
  71. package/bin/lean/orchestrate-pause.test.mjs +53 -1
  72. package/bin/lean/orchestrate-reconcile.test.mjs +17 -0
  73. package/bin/lean/orchestrate-relaunch-gates.test.mjs +57 -0
  74. package/bin/lean/orchestrate-stacking.test.mjs +10 -0
  75. package/bin/lean/orchestrate.mjs +188 -33
  76. package/bin/lean/postdeploy-check.test.mjs +1 -3
  77. package/bin/lean/precheck.mjs +20 -0
  78. package/bin/lean/preflight.mjs +100 -11
  79. package/bin/lean/preflight.test.mjs +44 -4
  80. package/bin/lean/prompts.mjs +10 -21
  81. package/bin/lean/recurrence.mjs +6 -148
  82. package/bin/lean/recurrence.test.mjs +11 -147
  83. package/bin/lean/release-flakes.mjs +14 -2
  84. package/bin/lean/release-flakes.test.mjs +17 -1
  85. package/bin/lean/release-ledger.mjs +19 -1
  86. package/bin/lean/release-ledger.test.mjs +23 -0
  87. package/bin/lean/release-preflight.mjs +28 -0
  88. package/bin/lean/release-preflight.test.mjs +42 -1
  89. package/bin/lean/release-review.mjs +40 -5
  90. package/bin/lean/release-review.test.mjs +43 -2
  91. package/bin/lean/release.mjs +43 -14
  92. package/bin/lean/release.test.mjs +32 -0
  93. package/bin/lean/retry.mjs +1 -1
  94. package/bin/lean/retry.test.mjs +6 -1
  95. package/bin/lean/rotator.mjs +9 -0
  96. package/bin/lean/rotator.test.mjs +11 -1
  97. package/bin/lean/sandbox-remote.mjs +16 -9
  98. package/bin/lean/schedd.mjs +11 -6
  99. package/bin/lean/schedd.test.mjs +65 -5
  100. package/bin/lean/selfreview.mjs +1 -1
  101. package/bin/lean/statuscomment.mjs +4 -1
  102. package/bin/lean/validate-catalog.mjs +108 -0
  103. package/bin/lean/validate-catalog.test.mjs +46 -1
  104. package/bin/lean/verify.mjs +1 -1
  105. package/bin/pool/affinity.test.mjs +91 -0
  106. package/bin/pool/agent.mjs +143 -9
  107. package/bin/pool/cache-sweep.mjs +31 -10
  108. package/bin/pool/ci-autoscale.mjs +160 -0
  109. package/bin/pool/cli.mjs +37 -8
  110. package/bin/pool/docker.mjs +3 -0
  111. package/bin/pool/engine-placement.test.mjs +94 -0
  112. package/bin/pool/lane-target.mjs +41 -0
  113. package/bin/pool/lane-tools.mjs +7 -2
  114. package/bin/pool/lane-tools.test.mjs +9 -0
  115. package/bin/pool/mirror-seed.mjs +15 -11
  116. package/bin/pool/router.mjs +88 -32
  117. package/bin/pool/version.mjs +29 -2
  118. package/bin/review-staging.mjs +11 -3
  119. package/bin/runner.mjs +59 -11
  120. package/bin/stats/release.mjs +7 -0
  121. package/bin/stats/release.test.mjs +20 -0
  122. package/bin/stats/scorecard.mjs +187 -0
  123. package/bin/stats/scorecard.test.mjs +89 -0
  124. package/docs/CONFIG.md +41 -0
  125. package/docs/OUTCOME-CODES.md +1 -0
  126. package/docs/STATS.md +17 -0
  127. package/package.json +1 -1
  128. package/pool/image/Dockerfile +14 -2
  129. package/pool/image/manifest.json +25 -0
  130. package/pool/image/mirror.sh +11 -2
  131. package/pool/install/install-agent.ps1 +11 -4
  132. package/scripts/ci-local/adapters/github-actions.mjs +8 -0
  133. package/scripts/ci-local/cli.mjs +1 -1
  134. package/scripts/ci-local/plan.mjs +3 -2
  135. package/scripts/ci-local.test.sh +11 -0
  136. package/scripts/failure-census.mjs +67 -0
  137. package/scripts/review-finalize.sh +5 -5
  138. package/scripts/review-finalize.test.sh +8 -1
  139. package/scripts/verify-phase-trail.sh +11 -0
  140. package/scripts/verify-phase-trail.test.sh +9 -0
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env node
2
+ // SPDX-FileCopyrightText: Copyright (c) RapierCraft Studios
3
+ // SPDX-License-Identifier: AGPL-3.0-or-later
4
+ /**
5
+ * failure-census: why lanes left the happy path, measured from the register (read-only).
6
+ *
7
+ * node scripts/failure-census.mjs --repo owner/repo [--since YYYY-MM-DD] [--state open|all] [--limit N]
8
+ * [--batches ~/.forge/batches] [--no-batches] [--json]
9
+ *
10
+ * Reads issue comments with `gh` (issues updated since --since that have comments) and the local batch logs of that repo,
11
+ * then prints the census (bin/lean/failure-census.mjs): parks by class and day, normalised failure rows, amendment
12
+ * classes, base-sync conflict hotspots, most-parked issues, batch outcome/deferral codes and phase timing.
13
+ * Use it before changing a gate, the engine or the pool: solve the measured classes, not a guess.
14
+ */
15
+ import { execFileSync } from "node:child_process";
16
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
17
+ import { homedir } from "node:os";
18
+ import { join } from "node:path";
19
+ import { censusIssues, censusBatchRows, renderCensus } from "../bin/lean/failure-census.mjs";
20
+
21
+ const args = process.argv.slice(2);
22
+ const opt = (k, d = null) => { const i = args.indexOf(k); return i >= 0 && args[i + 1] && !args[i + 1].startsWith("--") ? args[i + 1] : d; };
23
+ const has = (k) => args.includes(k);
24
+ const repo = opt("--repo");
25
+ if (!repo || !/^[\w.-]+\/[\w.-]+$/.test(repo)) { console.error("usage: failure-census.mjs --repo owner/repo [--since YYYY-MM-DD] [--state open|all] [--limit N] [--batches DIR] [--no-batches] [--json]"); process.exit(2); }
26
+ const since = opt("--since");
27
+ const state = opt("--state", "all");
28
+ const limit = Number(opt("--limit", "300"));
29
+ const gh = (a) => execFileSync("gh", a, { encoding: "utf8", maxBuffer: 256 * 1024 * 1024 });
30
+
31
+ // Issues: comments >= 1, optionally updated since; comments fetched per issue (paginated) with small parallelism.
32
+ const search = ["comments:>=1", since ? `updated:>=${since}` : ""].filter(Boolean).join(" ");
33
+ const list = JSON.parse(gh(["issue", "list", "-R", repo, "--state", state, "--limit", String(limit), "--search", search, "--json", "number,title"]));
34
+ const issues = [];
35
+ const queue = [...list];
36
+ async function worker() {
37
+ for (let it = queue.shift(); it; it = queue.shift()) {
38
+ try {
39
+ const raw = gh(["api", `repos/${repo}/issues/${it.number}/comments?per_page=100`, "--paginate", "--jq", ".[] | {body, createdAt: .created_at, author: .user.login}"]);
40
+ const comments = raw.split("\n").filter(Boolean).map((l) => JSON.parse(l));
41
+ issues.push({ number: it.number, title: it.title, comments });
42
+ } catch (e) { process.stderr.write(`#${it.number}: ${String(e?.message ?? e).split("\n")[0]}\n`); }
43
+ }
44
+ }
45
+ await Promise.all(Array.from({ length: 4 }, worker));
46
+ const ic = censusIssues(issues.sort((a, b) => a.number - b.number));
47
+
48
+ // Batch logs of this repo (local caches of the register; absent on a fresh host).
49
+ let bc = null;
50
+ if (!has("--no-batches")) {
51
+ const dir = opt("--batches", join(homedir(), ".forge", "batches"));
52
+ const rows = [];
53
+ if (existsSync(dir)) for (const b of readdirSync(dir)) {
54
+ try {
55
+ const plan = JSON.parse(readFileSync(join(dir, b, "plan.json"), "utf8"));
56
+ if (plan?.repo !== repo) continue;
57
+ for (const l of readFileSync(join(dir, b, "log.jsonl"), "utf8").split("\n")) {
58
+ if (!l) continue;
59
+ try { const r = JSON.parse(l); if (!since || String(r.at ?? "") >= since) rows.push(r); } catch { /* partial line */ }
60
+ }
61
+ } catch { /* not a batch dir */ }
62
+ }
63
+ bc = rows.length ? censusBatchRows(rows) : null;
64
+ }
65
+
66
+ if (has("--json")) console.log(JSON.stringify({ repo, since, issues: ic, batches: bc }, null, 2));
67
+ else process.stdout.write(renderCensus({ repo, since, issues: ic, batches: bc }));
@@ -53,7 +53,7 @@
53
53
  # [--intensity-tier T] [--table-cell-key K] [--trust-shadow-mode B] [--other-blocking true|false] [--out-dir D] [--dry-run]
54
54
  # (--other-blocking: the reviewer's criterion 1/2/3/5 result; resolved and persisted to OUT_DIR/other-blocking.txt, which merge-gate ORs in)
55
55
  # calibrate: [--intensity-tier T] [--table-cell-key K] [--trust-shadow-mode B] [--trust-needs-human B] [--dry-run]; the issue is context contract.issue or --issue N
56
- # merge-gate: [--manual-pr [--owner-requested]] (hand-built PR: skips ONLY the phase-trail preflight, recorded as FORGE:PHASE_TRAIL_SKIPPED; refused for a pipeline issue, see manual_pr_eligibility)
56
+ # merge-gate: [--manual-pr [--owner-requested]] (hand-built PR: skips ONLY the phase-trail preflight, recorded as FORGE:PHASE_TRAIL_SKIPPED; a pipeline issue is refused unless --owner-requested, see manual_pr_eligibility)
57
57
  # --verdict "APPROVED|CHANGES REQUESTED" --has-purpose-regression B --calibration-needs-human B --trust-needs-human B
58
58
  # --base-conflict B --other-blocking B [--calibration-note-file F | --calibration-note T] [--table-cell-key K] [--base B] [--issue N]
59
59
  # (every B is true|false; an empty or other value aborts the merge: the guard state must be bound)
@@ -1307,13 +1307,13 @@ is_pipeline_issue() {
1307
1307
  --jq '([.labels[].name | startswith("workflow:")] + [.body | contains("<!-- FORGE:STATE")] + [.comments[].body | contains("FORGE:STARTED") or contains("<!-- FORGE:STATE")]) | any' 2>/dev/null) || return 0
1308
1308
  [ "$v" != "false" ]
1309
1309
  }
1310
- # manual_pr_eligibility: --manual-pr never applies to a pipeline lane. An explicit --issue that is a pipeline issue is always refused;
1311
- # a closing reference to one is refused unless the caller passed --owner-requested. Any unreadable lookup refuses.
1310
+ # manual_pr_eligibility: --manual-pr never applies to a pipeline lane unless the owner asked for it. An explicit --issue that is a pipeline
1311
+ # issue and a closing reference to one are both refused unless the caller passed --owner-requested (#5913); every other gate still runs. Any unreadable lookup refuses.
1312
1312
  manual_pr_eligibility() {
1313
1313
  local refs n
1314
- if [ -n "${MERGE_ISSUE:-}" ] && is_pipeline_issue "$MERGE_ISSUE"; then
1314
+ if [ -n "${MERGE_ISSUE:-}" ] && [ "$OWNER_REQUESTED" != "true" ] && is_pipeline_issue "$MERGE_ISSUE"; then
1315
1315
  echo "MANUAL PR: #${MERGE_ISSUE} is a pipeline issue — --manual-pr never applies to a /work-on or /orchestrate lane" >&2
1316
- blocked "manual-pr refused: #${MERGE_ISSUE} is a pipeline issue"
1316
+ blocked "manual-pr refused: #${MERGE_ISSUE} is a pipeline issue (pass --owner-requested only when the owner explicitly asked for this merge)"
1317
1317
  fi
1318
1318
  refs=$(gh pr view "$PR_NUMBER" -R "$REPO" --json closingIssuesReferences --jq '.closingIssuesReferences[].number' 2>/dev/null) || blocked "manual-pr refused: closing references unreadable"
1319
1319
  for n in $refs; do
@@ -883,7 +883,14 @@ rc_is "manual: CHANGES REQUESTED blocks" "$RC" 3; not_merged "manual: CHANGES RE
883
883
  gate_reset; mkctx 1 FULL "" ""; echo true > "$FIX/pipeline-42"; mgm "$GATE" --issue 42
884
884
  rc_is "manual: pipeline --issue refused" "$RC" 3; has "manual: pipeline --issue" "manual-pr refused"; not_merged "manual: pipeline --issue"
885
885
  gate_reset; mkctx 1 FULL "" ""; echo true > "$FIX/pipeline-42"; mgm "$GATE" --issue 42 --owner-requested
886
- rc_is "manual: owner flag does not override a pipeline --issue" "$RC" 3; not_merged "manual: owner vs pipeline issue"
886
+ rc_is "manual: owner-requested explicit --issue on a pipeline issue runs the remaining gates" "$RC" 0; merged "manual: owner vs pipeline issue"
887
+ [ ! -f "$FIX/trail-args" ] && ok || bad "manual: owner pipeline issue ran the verifier"
888
+ gate_reset; mkctx 1 FULL "" ""; echo true > "$FIX/pipeline-42"; echo 1 > "$FIX/ci-rc"; printf 'CI_GATE: FAIL\n' > "$FIX/ci-out"; mgm "$GATE" --issue 42 --owner-requested
889
+ rc_is "manual: owner-requested pipeline issue still blocked by red CI" "$RC" 3; has "manual: owner pipeline CI red" "ci gate not green"; not_merged "manual: owner pipeline CI red"
890
+ # lean-lane issue (#5913): merge-gate on a lean-lane issue with a valid contract and an APPROVED review passes the phase-trail preflight
891
+ gate_reset; mkctx 1 FULL "" ""; printf 'PHASE_TRAIL: PASS\nBAND: LEAN\nNOTE: lean-lane trail\n' > "$FIX/trail-out"; mg "$GATE" --issue 42
892
+ rc_is "merge-gate lean issue passes phase-trail preflight" "$RC" 0; has "lean issue" "MERGE_OUTCOME=merged"; merged "lean issue"
893
+ [ -f "$FIX/trail-args" ] && ok || bad "lean issue: the phase-trail verifier did not run"
887
894
  gate_reset; mkctx 1 FULL "" ""; echo 55 > "$FIX/closing"; echo true > "$FIX/pipeline-55"; mgm "$GATE"
888
895
  rc_is "manual: closing a pipeline issue refused" "$RC" 3; has "manual: closing ref" "manual-pr refused"; not_merged "manual: closing ref"
889
896
  gate_reset; mkctx 1 FULL "" ""; echo 55 > "$FIX/closing"; echo true > "$FIX/pipeline-55"; mgm "$GATE" --owner-requested
@@ -34,6 +34,7 @@
34
34
  # STANDARD/COMPLEX (or unknown band)
35
35
  # INVESTIGATOR, CONTRACT, FAST_PATH, CONTEXT, ARCHITECT, QUALITY_GATE*
36
36
  # (* waived with --docs-only)
37
+ # LEAN LANE CONTRACT + the lean run record (trusted FORGE:STATE comment, run core_*); nothing else (#5913)
37
38
  # A missing FAST_PATH is itself a failure; the remaining checks then use the
38
39
  # conservative STANDARD requirement set.
39
40
  #
@@ -262,6 +263,16 @@ if has '<!-- FORGE:FAST_PATH -->'; then
262
263
  | sed -n 's/.*\*\*COMPLEXITY_BAND\*\*: *\([A-Za-z_]*\).*/\1/p' | tr '[:lower:]' '[:upper:]')
263
264
  fi
264
265
 
266
+ # Lean-lane trail (#5913): a lean lane (forgedock run-issue) posts no INVESTIGATOR/FAST_PATH/CONTEXT/ARCHITECT/QUALITY_GATE. Its
267
+ # trail is a trusted FORGE:CONTRACT comment plus the trusted lean run record (a FORGE:STATE comment whose run is `core_*`; the
268
+ # classic engine's STARTED/STATUS markers are shared and never select this mode). Both come from the trusted-author filter above, never the issue body, so an untrusted commenter cannot select this mode.
269
+ if has '<!-- FORGE:CONTRACT -->' && printf '%s\n' "$COMMENTS" | grep -E '^<!-- FORGE:STATE' | grep -E '"run" *: *"core_[A-Za-z0-9_.-]+"' >/dev/null; then
270
+ echo "PHASE_TRAIL: PASS"
271
+ echo "BAND: LEAN"
272
+ echo "NOTE: lean-lane trail (trusted FORGE:CONTRACT + lean run record); classic work-on phases not required"
273
+ exit 0
274
+ fi
275
+
265
276
  MISSING=()
266
277
  add_missing() { MISSING+=("$1 -> $2"); }
267
278
 
@@ -59,6 +59,8 @@ mk() {
59
59
  QUOTED) items+=('{"body":"see `<!-- FORGE:CONTRACT -->` `<!-- FORGE:CONTEXT -->` `<!-- FORGE:ARCHITECT -->` `<!-- FORGE:QUALITY_GATE -->` **Result**: PASS"}') ;;
60
60
  INV_INVALID) items+=('{"body":"<!-- FORGE:INVESTIGATOR -->\nInvalid\n<!-- INVESTIGATION:INVALID -->"}') ;;
61
61
  SR) items+=('{"body":"<!-- FORGE:SELFREVIEW-AGENT:security -->\nTree: abc\n<!-- REVIEW-FINDINGS-START -->\n<!-- REVIEW-FINDINGS-END -->"}' '{"body":"<!-- FORGE:SELFREVIEW -->\n## Self-review\nTree: abc"}') ;;
62
+ LEAN_STATUS) items+=('{"body":"<!-- FORGE:STATE\n{\"v\":1,\"run\":\"core_1\",\"issue\":1}\n-->"}') ;;
63
+ CLASSIC_STATUS) items+=('{"body":"<!-- FORGE:STATUS -->\n<!-- FORGE:STARTED -->\nStarted work on #1"}') ;;
62
64
  PROSE) items+=('{"body":"I ran the architect and context inline; FORGE:CONTEXT FORGE:ARCHITECT FORGE:QUALITY_GATE done"}') ;;
63
65
  esac
64
66
  done
@@ -93,6 +95,13 @@ expect_fail "partial investigation (no COMPLETE) fails" "$(mk b INV_PARTIAL CONT
93
95
  expect_fail "missing CONTRACT" "$(mk c INV FP_COMPLEX CONTEXT ARCH QG_PASS)" CONTRACT
94
96
  expect_fail "missing CONTEXT on STANDARD" "$(mk d INV CONTRACT FP_STANDARD ARCH QG_PASS)" CONTEXT
95
97
  expect_fail "missing ARCHITECT on STANDARD" "$(mk e INV CONTRACT FP_STANDARD CONTEXT QG_PASS)" ARCHITECT
98
+ # lean-lane trail (#5913): trusted CONTRACT + lean run record passes with no classic markers; a lone half or an untrusted author does not
99
+ expect_pass "lean lane: trusted CONTRACT + lean run record passes the trail" "$(mk lean1 CONTRACT LEAN_STATUS)"
100
+ expect_fail "lean lane: CONTRACT without the lean run record is still the classic trail" "$(mk lean2 CONTRACT)" INVESTIGATOR
101
+ expect_fail "lean lane: CONTRACT + classic STATUS/STARTED (no core_ run) does not pass" "$(mk lean5 CONTRACT CLASSIC_STATUS)" INVESTIGATOR
102
+ expect_fail "lean lane: run record without CONTRACT does not pass" "$(mk lean3 LEAN_STATUS)" INVESTIGATOR
103
+ jq -c 'map(.author_association="NONE" | .user.type="User")' "$(mk lean4 CONTRACT LEAN_STATUS)" > "$TMP_FX/lean4u.json"
104
+ expect_fail "lean lane: markers from an untrusted author cannot select lean mode" "$TMP_FX/lean4u.json" INVESTIGATOR
96
105
  expect_fail "missing FAST_PATH" "$(mk f INV CONTRACT CONTEXT ARCH QG_PASS)" FAST_PATH
97
106
  expect_fail "FAST_PATH without band value fails" "$(mk g INV CONTRACT FP_NOBAND CONTEXT ARCH QG_PASS)" FAST_PATH
98
107
  expect_fail "missing QUALITY_GATE" "$(mk h INV CONTRACT FP_COMPLEX CONTEXT ARCH)" QUALITY_GATE