forgedock 1.54.1 → 1.55.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 (110) hide show
  1. package/bin/engine/events.mjs +1 -0
  2. package/bin/engine/events.test.mjs +5 -1
  3. package/bin/engine/outcome-codes.mjs +3 -0
  4. package/bin/engine-cli.mjs +126 -34
  5. package/bin/forgedock.mjs +54 -2
  6. package/bin/gc-schedule.mjs +83 -0
  7. package/bin/gc.mjs +56 -8
  8. package/bin/help-text.mjs +1 -1
  9. package/bin/hooks/pre-tool-use.mjs +1 -0
  10. package/bin/init-detect.mjs +73 -2
  11. package/bin/labels.json +5 -0
  12. package/bin/lean/admission.mjs +21 -1
  13. package/bin/lean/baselines.mjs +43 -0
  14. package/bin/lean/baselines.test.mjs +33 -0
  15. package/bin/lean/batch-health.mjs +43 -6
  16. package/bin/lean/batch-health.test.mjs +41 -1
  17. package/bin/lean/batch.mjs +41 -4
  18. package/bin/lean/batch.test.mjs +106 -3
  19. package/bin/lean/conformance.mjs +131 -12
  20. package/bin/lean/conformance.test.mjs +172 -3
  21. package/bin/lean/depcache.mjs +23 -2
  22. package/bin/lean/depcache.test.mjs +22 -0
  23. package/bin/lean/docsgate.mjs +137 -0
  24. package/bin/lean/docsgate.test.mjs +78 -0
  25. package/bin/lean/effects.mjs +31 -2
  26. package/bin/lean/enumerating.mjs +39 -13
  27. package/bin/lean/enumerating.test.mjs +20 -0
  28. package/bin/lean/execution.test.mjs +3 -3
  29. package/bin/lean/fastforward.mjs +93 -0
  30. package/bin/lean/fastforward.test.mjs +73 -0
  31. package/bin/lean/guardgate.mjs +38 -7
  32. package/bin/lean/guardgate.test.mjs +39 -0
  33. package/bin/lean/issuewatch-install.mjs +92 -0
  34. package/bin/lean/issuewatch-install.test.mjs +31 -0
  35. package/bin/lean/issuewatch-parity.mjs +33 -3
  36. package/bin/lean/issuewatch-parity.test.mjs +30 -5
  37. package/bin/lean/issuewatch-reconcile.mjs +123 -0
  38. package/bin/lean/issuewatch-reconcile.test.mjs +30 -0
  39. package/bin/lean/issuewatch-verify.mjs +51 -9
  40. package/bin/lean/issuewatch.mjs +153 -33
  41. package/bin/lean/issuewatch.test.mjs +243 -22
  42. package/bin/lean/lean.mjs +381 -75
  43. package/bin/lean/lean.test.mjs +437 -20
  44. package/bin/lean/light.mjs +11 -3
  45. package/bin/lean/light.test.mjs +27 -0
  46. package/bin/lean/lightlane.mjs +8 -3
  47. package/bin/lean/lightlane.test.mjs +20 -0
  48. package/bin/lean/mechfix.mjs +21 -2
  49. package/bin/lean/mechfix.test.mjs +28 -1
  50. package/bin/lean/orchestrate-children.test.mjs +10 -0
  51. package/bin/lean/orchestrate-owned.test.mjs +73 -0
  52. package/bin/lean/orchestrate.mjs +28 -4
  53. package/bin/lean/overlap.mjs +20 -0
  54. package/bin/lean/overlap.test.mjs +49 -0
  55. package/bin/lean/pagegate.mjs +152 -0
  56. package/bin/lean/pagegate.test.mjs +77 -0
  57. package/bin/lean/parked-relabel.mjs +32 -0
  58. package/bin/lean/parked-relabel.test.mjs +45 -0
  59. package/bin/lean/phaseledger.mjs +17 -2
  60. package/bin/lean/postdeploy-check.mjs +27 -0
  61. package/bin/lean/postdeploy-check.test.mjs +13 -1
  62. package/bin/lean/postrun.mjs +32 -0
  63. package/bin/lean/postrun.test.mjs +41 -0
  64. package/bin/lean/preflight.mjs +46 -0
  65. package/bin/lean/preflight.test.mjs +30 -1
  66. package/bin/lean/prompts.mjs +36 -6
  67. package/bin/lean/recovery.test.mjs +16 -0
  68. package/bin/lean/release.mjs +23 -2
  69. package/bin/lean/release.test.mjs +28 -1
  70. package/bin/lean/render.mjs +17 -6
  71. package/bin/lean/reproquality.mjs +116 -0
  72. package/bin/lean/reproquality.test.mjs +85 -0
  73. package/bin/lean/review-trigger.mjs +8 -3
  74. package/bin/lean/sandbox-budget.test.mjs +27 -0
  75. package/bin/lean/schedd.mjs +40 -11
  76. package/bin/lean/schedd.test.mjs +12 -1
  77. package/bin/lean/testadequacy.mjs +97 -0
  78. package/bin/lean/testadequacy.test.mjs +92 -0
  79. package/bin/lean/testsandbox.mjs +202 -0
  80. package/bin/lean/testsandbox.test.mjs +157 -0
  81. package/bin/lean/toolplace.mjs +5 -2
  82. package/bin/lean/toolplace.test.mjs +6 -0
  83. package/bin/lean/verify.mjs +6 -1
  84. package/bin/lean/verify.test.mjs +18 -2
  85. package/bin/lean/warmtree.mjs +77 -0
  86. package/bin/lean/warmtree.test.mjs +81 -0
  87. package/bin/stats/conformance-outcomes.mjs +12 -2
  88. package/bin/stats/depth.mjs +24 -1
  89. package/bin/stats/depth.test.mjs +21 -1
  90. package/bin/stats/index.mjs +5 -2
  91. package/bin/stats/query.mjs +2 -1
  92. package/commands/cleanup.md +18 -0
  93. package/commands/fd-introspect.md +19 -0
  94. package/commands/milestone.md +5 -1
  95. package/commands/pipeline-health/phase-2-metrics.md +4 -0
  96. package/commands/recover-orphans.md +31 -1
  97. package/commands/review-pr-staging.md +9 -0
  98. package/commands/review-pr.md +2 -0
  99. package/docs/CONFIG.md +26 -1
  100. package/docs/EVENTS.md +1 -0
  101. package/docs/ISSUE-WATCH.md +12 -3
  102. package/docs/eval/adversarial-bench.md +1 -1
  103. package/docs/eval/published/adversarial-2026-11-11.md +58 -0
  104. package/package.json +1 -1
  105. package/scripts/bench-lightlane.mjs +3 -2
  106. package/scripts/hotspots.sh +7 -4
  107. package/scripts/hotspots.test.sh +12 -0
  108. package/scripts/recover-orphans-stateless.test.sh +79 -0
  109. package/scripts/transition-label.sh +2 -0
  110. package/templates/workflows/forgedock-reopen-clean.yml +33 -0
@@ -182,6 +182,7 @@ VALID_STATES=(
182
182
  "building"
183
183
  "in-review"
184
184
  "merged"
185
+ "merged-unverified"
185
186
  "invalid"
186
187
  "decomposed"
187
188
  "awaiting-merge"
@@ -294,6 +295,7 @@ ensure_label() {
294
295
  "workflow:remediating") LBL_COLOR="C5DEF5"; LBL_DESC="Pipeline: autonomous remediation pending (no human action needed). Managed by ForgeDock." ;;
295
296
  "workflow:awaiting-merge") LBL_COLOR="FF8C00"; LBL_DESC="Pipeline: remediated + re-reviewed, awaiting a human merge decision. Managed by ForgeDock." ;;
296
297
  "workflow:merged") LBL_COLOR="0E8A16"; LBL_DESC="Pipeline: PR merged, issue closed. Managed by ForgeDock." ;;
298
+ "workflow:merged-unverified") LBL_COLOR="FBCA04"; LBL_DESC="Pipeline: PR merged but verification failed, needs a human decision. Managed by ForgeDock." ;;
297
299
  "workflow:decomposed") LBL_COLOR="BFD4F2"; LBL_DESC="Pipeline: decomposed into sub-issues. Managed by ForgeDock." ;;
298
300
  "workflow:invalid") LBL_COLOR="CCCCCC"; LBL_DESC="Pipeline: issue closed as invalid after investigation. Managed by ForgeDock." ;;
299
301
  "needs-human") LBL_COLOR="E4E669"; LBL_DESC="Pipeline stalled — requires human intervention. Managed by ForgeDock." ;;
@@ -0,0 +1,33 @@
1
+ # ForgeDock reopen cleanup — Workflow Template
2
+ #
3
+ # Copy this file to .github/workflows/forgedock-reopen-clean.yml in your repository.
4
+ # When an issue is reopened, remove the terminal labels workflow:merged and
5
+ # workflow:merged-unverified so the open issue does not look merged and the next
6
+ # lane starts from a clean state.
7
+
8
+ name: ForgeDock Reopen Cleanup
9
+
10
+ on:
11
+ issues:
12
+ types: [reopened]
13
+
14
+ # Minimum permissions: edit labels on issues.
15
+ permissions:
16
+ issues: write
17
+
18
+ jobs:
19
+ clean-labels:
20
+ name: Remove terminal labels
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Remove workflow:merged labels
24
+ env:
25
+ GH_TOKEN: ${{ github.token }}
26
+ GH_REPO: ${{ github.repository }}
27
+ ISSUE: ${{ github.event.issue.number }}
28
+ run: |
29
+ for L in "workflow:merged" "workflow:merged-unverified"; do
30
+ if gh issue view "$ISSUE" --json labels --jq '.labels[].name' | grep -qx "$L"; then
31
+ gh issue edit "$ISSUE" --remove-label "$L"
32
+ fi
33
+ done