You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The audit prompt resolution is handled across multiple locations with unclear priority:
CLI --audit-prompt flag
Config willie.audit-prompt (file path)
Project file audit/prompt.md
Global file ~/.config/sfk/audit-prompt.md
Built-in default
The confusion is that there are two different mechanisms that overlap:
willie.audit-prompt in config (explicit path setting)
Hardcoded check for ~/.config/sfk/audit-prompt.md (implicit global location)
This creates ambiguity. If someone sets willie.audit-prompt = /my/path.md but also has ~/.config/sfk/audit-prompt.md, the config wins - but the relationship isn't documented clearly.
Current Code
// audit.ts:119-143functionresolveAuditPrompt(auditPromptPath: string|undefined): ResolvedPrompt{// 1. CLI flag (passed via config.willieAuditPrompt merged with CLI)if(auditPromptPath&&existsSync(auditPromptPath)){ ... }// 2. Project file (hardcoded location)constprojectPrompt=join(AUDIT_DIR,"prompt.md");if(existsSync(projectPrompt)){ ... }// 3. Global file (hardcoded location)constglobalPrompt=join(homedir(),".config","sfk","audit-prompt.md");if(existsSync(globalPrompt)){ ... }// 4. Built-in defaultreturn{text: DEFAULT_AUDIT_PROMPT,source: "built-in default"};}
Proposed Solution
Remove the hardcoded global file path (~/.config/sfk/audit-prompt.md) and rely solely on:
CLI --audit-prompt
Config willie.audit-prompt
Project audit/prompt.md
Built-in default
This keeps the resolution to 4 clear sources, all configurable via documented settings. The global config already supports willie.audit-prompt, so users can point to any file they want.
Alternative
Keep all 5 but document the priority clearly in config.example and README.
Closed as duplicate of #24 - Phase 4 (Audit Pipeline) addresses this with consolidated audit prompt resolution: CLI flag → config → project file → built-in default, with documented priority.
Activity
dominicnunez commentedon Feb 21, 2026
Closed as duplicate of #24 - Phase 4 (Audit Pipeline) addresses this with consolidated audit prompt resolution: CLI flag → config → project file → built-in default, with documented priority.