From 2e075dc58c569824fb0c7280ebdd111ea3c17689 Mon Sep 17 00:00:00 2001 From: Abdul Wahab Date: Fri, 14 Aug 2026 23:51:13 +0500 Subject: [PATCH] Gate the build-path flip behind the same session key and origin checks An unauthenticated POST /build-path wrote the flip event that makes --wait instruct the agent to generate comps: same class as the /answer hole in #555. Written with AI assistance under maintainer direction. Co-authored-by: Cursor --- skill/scripts/serve-question.mjs | 3 ++- tests/serve-question.test.mjs | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/skill/scripts/serve-question.mjs b/skill/scripts/serve-question.mjs index 907224c30..be5965f20 100644 --- a/skill/scripts/serve-question.mjs +++ b/skill/scripts/serve-question.mjs @@ -1306,7 +1306,7 @@ ${buildPath?.toggle ? `