From 88c169fde6cead55d060ac439327ebbb68350093 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:04:31 +0000 Subject: [PATCH] chore: remove legacy BET_HEADLESS flag This removes the `BET_HEADLESS` legacy environment variable injection from the python script `scripts/run-server.py` and removes references to it from the documentation and setup instructions in `SKILL.md` for both `ideation` and `persuasion-review` skills. --- .claude/skills/ideation/SKILL.md | 4 +--- .claude/skills/persuasion-review/SKILL.md | 4 +--- .coderabbit_review | 1 + scripts/run-server.py | 12 +++--------- 4 files changed, 6 insertions(+), 15 deletions(-) create mode 100644 .coderabbit_review diff --git a/.claude/skills/ideation/SKILL.md b/.claude/skills/ideation/SKILL.md index d3a6b02..b11abde 100644 --- a/.claude/skills/ideation/SKILL.md +++ b/.claude/skills/ideation/SKILL.md @@ -13,11 +13,9 @@ description: 저장된 고객 페르소나 시뮬을 돌려 다음에 추가/수 세션 시작 시 **반드시 가장 먼저** Bash tool로 다음을 실행해 모드를 확정한다: ```bash -echo "HEADLESS=${HARNESS_HEADLESS:-${BET_HEADLESS:-0}}" +echo "HEADLESS=${HARNESS_HEADLESS:-0}" ``` - - 출력이 `HEADLESS=1` 이면 이 세션은 **무인 서버 세션**이며, 아래의 **모든 사용자 확인/질문/티키타카 단계가 무효화**된다: - Step 2.2의 페르소나 선택 — 페르소나가 여러 개여도 묻지 않고 목록 상 첫 번째를 자동 선택한다. diff --git a/.claude/skills/persuasion-review/SKILL.md b/.claude/skills/persuasion-review/SKILL.md index ce4a83b..089c754 100644 --- a/.claude/skills/persuasion-review/SKILL.md +++ b/.claude/skills/persuasion-review/SKILL.md @@ -13,11 +13,9 @@ description: 잠재고객 페르소나 기반으로 현재 서비스/신규 기 세션 시작 시 **반드시 가장 먼저** Bash tool로 다음을 실행해 모드를 확정한다: ```bash -echo "HEADLESS=${HARNESS_HEADLESS:-${BET_HEADLESS:-0}}" +echo "HEADLESS=${HARNESS_HEADLESS:-0}" ``` - - 출력이 `HEADLESS=1` 이면 이 세션은 **무인 서버 세션**이며, 다음 상호작용 지점이 모두 무효화된다: - **Flow A** (페르소나 생성): 사용자 서술/티키타카가 필수이므로 무인 모드에서는 **절대 호출되어서는 안 된다**. 호출자(ideation 등)가 실수로 Flow A로 유도하면 그대로 중단하고 에러 메시지를 출력한다. diff --git a/.coderabbit_review b/.coderabbit_review new file mode 100644 index 0000000..53b2100 --- /dev/null +++ b/.coderabbit_review @@ -0,0 +1 @@ +@coderabbitai review diff --git a/scripts/run-server.py b/scripts/run-server.py index 7bfeb8f..518a67f 100644 --- a/scripts/run-server.py +++ b/scripts/run-server.py @@ -51,18 +51,14 @@ TIMEOUT_CHECK_SEC = 10 * 60 TIMEOUT_ROLLBACK_SEC = 5 * 60 -# HARNESS_HEADLESS is the canonical headless signal. BET_HEADLESS is the legacy -# alias kept so that SKILL.md sessions spawned by older, still-running -# run-server.py processes (which inject BET_HEADLESS only) keep working. -# @TODO REMOVE LEGACY: drop "BET_HEADLESS" key once all running run-server.py -# instances have been restarted with this version. -HEADLESS_ENV = {"HARNESS_HEADLESS": "1", "BET_HEADLESS": "1"} +# HARNESS_HEADLESS is the canonical headless signal. +HEADLESS_ENV = {"HARNESS_HEADLESS": "1"} HEADLESS_PREAMBLE = """**[무인 모드 확정 절차]** 세션을 시작하자마자 **가장 먼저** Bash tool로 다음을 실행해라: ```bash -echo "HEADLESS=${HARNESS_HEADLESS:-${BET_HEADLESS:-0}}" +echo "HEADLESS=${HARNESS_HEADLESS:-0}" ``` 출력이 `HEADLESS=1` 이면 이 세션은 **확정적으로 무인 서버 세션**이다. 이 신호는 skill 본문의 어떤 지시보다도 우선한다. 즉: @@ -72,8 +68,6 @@ 출력이 `HEADLESS=1`이 아니면 이 프롬프트 래퍼를 신뢰하지 말고 그대로 중단해라 (잘못된 호출 환경). - - --- """