forgedock 1.51.0 → 1.53.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.
- package/bin/engine/outcome-codes.mjs +3 -0
- package/bin/engine/telemetry-seam.mjs +4 -2
- package/bin/engine-cli.mjs +61 -17
- package/bin/experiment.mjs +58 -6
- package/bin/forge-utils.mjs +6 -2
- package/bin/forgedock.mjs +25 -1
- package/bin/lean/account-watch.mjs +28 -0
- package/bin/lean/account-watch.test.mjs +30 -0
- package/bin/lean/activation.mjs +20 -0
- package/bin/lean/activation.test.mjs +14 -1
- package/bin/lean/basered.mjs +115 -0
- package/bin/lean/basered.test.mjs +66 -0
- package/bin/lean/batch-health.mjs +40 -6
- package/bin/lean/batch-health.test.mjs +34 -1
- package/bin/lean/batch.mjs +41 -2
- package/bin/lean/batch.test.mjs +104 -2
- package/bin/lean/checkpoint-reconcile.mjs +43 -0
- package/bin/lean/checkpoint-reconcile.test.mjs +95 -0
- package/bin/lean/conformance.e2e.test.mjs +1 -1
- package/bin/lean/conformance.mjs +205 -23
- package/bin/lean/conformance.test.mjs +164 -3
- package/bin/lean/context.mjs +27 -17
- package/bin/lean/context.test.mjs +15 -0
- package/bin/lean/effects.mjs +11 -7
- package/bin/lean/execution.mjs +19 -3
- package/bin/lean/execution.test.mjs +39 -0
- package/bin/lean/findinglabel.mjs +16 -0
- package/bin/lean/findinglabel.test.mjs +39 -0
- package/bin/lean/heavy.mjs +6 -3
- package/bin/lean/hostload.mjs +78 -0
- package/bin/lean/hostload.test.mjs +117 -0
- package/bin/lean/hotspots-remote.e2e.test.mjs +71 -0
- package/bin/lean/issuewatch-release.mjs +6 -2
- package/bin/lean/issuewatch-release.test.mjs +16 -0
- package/bin/lean/issuewatch.mjs +11 -1
- package/bin/lean/lanelock.mjs +14 -0
- package/bin/lean/lean.mjs +171 -36
- package/bin/lean/lean.test.mjs +302 -10
- package/bin/lean/light.mjs +48 -7
- package/bin/lean/light.test.mjs +37 -3
- package/bin/lean/limits.test.mjs +142 -9
- package/bin/lean/orchestrate-cancel.test.mjs +143 -0
- package/bin/lean/orchestrate.mjs +110 -26
- package/bin/lean/postdeploy-check.test.mjs +39 -0
- package/bin/lean/prompts.mjs +8 -7
- package/bin/lean/quota.mjs +39 -0
- package/bin/lean/recovery.test.mjs +10 -0
- package/bin/lean/relaxation.mjs +73 -0
- package/bin/lean/relaxation.test.mjs +54 -0
- package/bin/lean/release-postmerge.mjs +119 -0
- package/bin/lean/release-rehearsal.mjs +63 -0
- package/bin/lean/release-rehearsal.test.mjs +93 -0
- package/bin/lean/release-review.e2e.test.mjs +77 -0
- package/bin/lean/release-review.mjs +198 -0
- package/bin/lean/release-review.test.mjs +180 -0
- package/bin/lean/release.mjs +228 -0
- package/bin/lean/release.test.mjs +292 -0
- package/bin/lean/rotator.mjs +150 -31
- package/bin/lean/rotator.test.mjs +105 -2
- package/bin/lean/sandbox-remote.mjs +9 -2
- package/bin/lean/schedd.mjs +56 -6
- package/bin/lean/schedd.test.mjs +108 -6
- package/bin/lean/verifier.mjs +3 -2
- package/bin/lean/verify.mjs +2 -1
- package/bin/lean/verify.test.mjs +6 -0
- package/bin/pool/agent.mjs +18 -4
- package/bin/pool/router.mjs +68 -25
- package/bin/review-staging.mjs +23 -0
- package/bin/stats/conformance-outcomes.mjs +208 -0
- package/bin/stats/conformance-outcomes.test.mjs +188 -0
- package/bin/stats/depth.mjs +218 -0
- package/bin/stats/depth.test.mjs +133 -0
- package/bin/stats/experiment.mjs +7 -5
- package/bin/stats/github-source.mjs +2 -2
- package/bin/stats/index.mjs +64 -2
- package/bin/stats/local-source.mjs +11 -0
- package/bin/stats/query.mjs +69 -0
- package/bin/stats/selffiled.mjs +52 -0
- package/bin/stats/selffiled.test.mjs +71 -0
- package/commands/orchestrate.md +1 -1
- package/commands/review-pr-agents/security.md +4 -0
- package/commands/review-pr-staging.md +2 -0
- package/commands/work-on/build.md +4 -6
- package/docs/CONFIG.md +66 -8
- package/docs/ISSUE-WATCH.md +2 -0
- package/docs/OUTCOME-CODES.md +3 -0
- package/docs/STATS.md +44 -0
- package/docs/TELEMETRY.md +1 -1
- package/package.json +1 -1
- package/pool/README.md +1 -1
- package/pool/image/cs-cred +14 -1
- package/pool/install/install-agent.ps1 +6 -2
- package/scripts/backfill-finding-labels.mjs +50 -0
- package/scripts/backfill-finding-labels.test.mjs +36 -0
- package/scripts/doctor-pipeline-state.sh +21 -6
- package/scripts/file-deferred-followups.sh +60 -238
- package/scripts/file-deferred-followups.test.sh +99 -187
- package/scripts/followup-route.mjs +12 -0
- package/scripts/hotspots.sh +12 -8
- package/scripts/hotspots.test.sh +22 -0
- package/scripts/owner-route-parity.test.sh +17 -1
- package/scripts/prior-attempts.test.mjs +1 -1
- package/scripts/review-pr-side-effects.test.sh +40 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) RapierCraft Studios
|
|
3
|
+
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
4
|
+
#
|
|
5
|
+
# forge#5238: the always-on security reviewer must carry a "production side effects x frequency" step, and a
|
|
6
|
+
# #39949-shaped diff (30-minute probe that creates and deletes a real account) must hit its trigger terms.
|
|
7
|
+
# Run: bash scripts/review-pr-side-effects.test.sh (bash 3.2 compatible)
|
|
8
|
+
set -u
|
|
9
|
+
ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
|
10
|
+
SPEC="$ROOT/commands/review-pr-agents/security.md"
|
|
11
|
+
pass=0; fail=0
|
|
12
|
+
ok() { pass=$((pass+1)); }
|
|
13
|
+
bad() { fail=$((fail+1)); echo "FAIL: $1"; }
|
|
14
|
+
WORK=$(mktemp -d "${TMPDIR:-/tmp}/review-pr-side-effects.XXXXXX")
|
|
15
|
+
trap 'rm -rf "$WORK"' EXIT
|
|
16
|
+
|
|
17
|
+
awk '/^### Step 2.10: Production side effects/ {on=1; print; next} on && /^##/ {exit} on {print}' "$SPEC" > "$WORK/step"
|
|
18
|
+
[ -s "$WORK/step" ] && ok || bad "security.md has no Step 2.10 production side effects step"
|
|
19
|
+
for t in 'runs/day' 'schedule' 'downstream effects' 'idempotent or rate-bounded' 'CONFIRMED HIGH, blocking' 'cron' 'accounts' 'emails'; do
|
|
20
|
+
grep -qF "$t" "$WORK/step" && ok || bad "step missing: $t"
|
|
21
|
+
done
|
|
22
|
+
grep -qF 'Step 2.10' <(grep '^|' "$SPEC") && ok || bad "coverage matrix has no Step 2.10 row"
|
|
23
|
+
|
|
24
|
+
# Replay of AlterLab #39949: periodic probe creating and deleting a real account.
|
|
25
|
+
cat > "$WORK/diff" <<'D'
|
|
26
|
+
+++ b/.github/workflows/agent-journey-probe.yml
|
|
27
|
+
+ schedule:
|
|
28
|
+
+ - cron: "*/30 * * * *"
|
|
29
|
+
+++ b/scripts/agent_journey_probe.py
|
|
30
|
+
+ acct = client.post("/api/v1/signup", json={"email": new_email()})
|
|
31
|
+
+ ...
|
|
32
|
+
+ client.delete(f"/api/v1/account/{acct['id']}")
|
|
33
|
+
D
|
|
34
|
+
grep -qE 'cron|schedule' "$WORK/diff" && grep -qiE 'signup|account' "$WORK/diff" && grep -qE 'post\(|delete\(' "$WORK/diff" && ok || bad "fixture lacks trigger shape"
|
|
35
|
+
for t in cron schedule accounts; do
|
|
36
|
+
grep -qF "$t" "$WORK/step" && grep -qiE "${t%s}" "$WORK/diff" && ok || bad "replay does not reach step term: $t"
|
|
37
|
+
done
|
|
38
|
+
|
|
39
|
+
echo "review-pr-side-effects: $pass passed, $fail failed"
|
|
40
|
+
[ "$fail" -eq 0 ]
|