Problem
The same CLI-over-API-key precedence flip as MAT-1 is applied to forgedock init AI enrichment. Previously enrichment was gated purely on ANTHROPIC_API_KEY presence; now a locally-installed claude CLI takes precedence, silently switching backend and behavior for existing init users.
Source: PR #2018 (staging → main deploy review) — finding MAT-2
Location: bin/init-enrich.mjs:resolveEnrichBackend
Confidence: CONFIRMED
Severity: MEDIUM
Source Branch Context
Code branch: staging
Worktree base: origin/staging
When fixing: git worktree add ../fix-{slug} -b fix/{slug} origin/staging
Acceptance Criteria
Problem
The same CLI-over-API-key precedence flip as MAT-1 is applied to
forgedock initAI enrichment. Previously enrichment was gated purely onANTHROPIC_API_KEYpresence; now a locally-installed claude CLI takes precedence, silently switching backend and behavior for existinginitusers.Source: PR #2018 (staging → main deploy review) — finding
MAT-2Location:
bin/init-enrich.mjs:resolveEnrichBackendConfidence: CONFIRMED
Severity: MEDIUM
Source Branch Context
Code branch:
stagingWorktree base:
origin/stagingAcceptance Criteria
origin/staging