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:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user