From 3e9eff0346bae947a77bd4bd5abbdff698b2864e Mon Sep 17 00:00:00 2001 From: EurusDevSec Date: Wed, 25 Nov 2026 11:21:08 +0700 Subject: [PATCH] fix(p5): accept P5 RunId in window.sh (DRF-71) window.sh db-init and platform-config only accepted P4-L3-* RunIds, so the P5 L3 window (P5-L3-20261125-01) stopped at db-init. Accept P4 or P5; other prefixes and malformed ids are still refused. Found inside the window; this is the window's one allowed fix and is recorded as a deviation from A16. Co-Authored-By: Claude Opus 5.5 --- infra/p4-window/window.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/p4-window/window.sh b/infra/p4-window/window.sh index 46eb1af..5e4433b 100644 --- a/infra/p4-window/window.sh +++ b/infra/p4-window/window.sh @@ -30,7 +30,8 @@ LAB="${LAB:-0}" die() { echo "FAIL $*"; exit 1; } need_run_vars() { - [[ "${RUN_ID:-}" =~ ^P4-L3-[0-9]{8}-[0-9]{2}$ ]] || die "export RUN_ID=P4-L3-YYYYMMDD-NN (window request)" + # P5 reuses this script inside its own L3 window (SPEC-P5 P5-T4.2), so both phase prefixes are valid. + [[ "${RUN_ID:-}" =~ ^P[45]-L3-[0-9]{8}-[0-9]{2}$ ]] || die "export RUN_ID=P4-L3-YYYYMMDD-NN or P5-L3-YYYYMMDD-NN (window request)" [[ "${EXPIRES_AT:-}" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ ]] || die "export EXPIRES_AT=YYYY-MM-DDTHH:MM:SSZ" } tags() { echo "Project=Zero-D-Rift,Owner=HoangLV,Environment=PoC,ManagedBy=RAGSandbox,RunId=$RUN_ID,ExpiresAt=$EXPIRES_AT"; }