fix(prometheus): enforce path constraints and atomic write protocol (#1414)

* fix(prometheus): enforce path constraints and atomic write protocol

- Add FORBIDDEN PATHS section blocking docs/, plan/, plans/ directories
- Add SINGLE ATOMIC WRITE protocol to prevent content loss from multiple writes
- Simplify PROMETHEUS_AGENTS array to single PROMETHEUS_AGENT string

* fix: reconcile Edit tool signature in interview-mode.ts with identity-constraints.ts

Identified by cubic: Edit tool usage was inconsistent between files.

- interview-mode.ts showed: Edit(path, content)
- identity-constraints.ts showed: Edit(path, oldString="...", newString="...")

Updated interview-mode.ts to use the correct Edit signature with oldString and newString parameters to match the actual tool API and prevent agent hallucination.
This commit is contained in:
YeonGyu-Kim
2026-02-03 12:11:52 +09:00
committed by GitHub
parent 7ebafe2267
commit ec1cb5db05
4 changed files with 57 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { getAgentDisplayName } from "../../shared/agent-display-names"
export const HOOK_NAME = "prometheus-md-only"
export const PROMETHEUS_AGENTS = ["prometheus"]
export const PROMETHEUS_AGENT = "prometheus"
export const ALLOWED_EXTENSIONS = [".md"]