Why
The wizard currently carries an agent commandment in src/lib/agent/commandments.ts telling the agent not to disable PostHog data-capture defaults (autocapture, session_recording, opt_out_capturing in init config). That's product-specific guidance baked into wizard infrastructure — the wizard's design rule says product knowledge lives in skills.
This is distinct from #173 (which tracks the L2 scanner rules). This issue is about the L0 agent guidance — the textual rule the agent reads before it writes anything.
What needs to happen
- Add a shared doc (working name:
libraries/js/defaults.md or similar) covering:
autocapture: false — only legitimate with explicit user opt-in
disable_session_recording: true / disableSessionRecording: true — same
opt_out_capturing: true / opted_out: true in init config — disallowed
- Legitimate runtime form
posthog.opt_out_capturing() for GDPR consent — clearly OK
- Have the skills that touch init config (
posthog-integration, pii-bouncer, possibly others) pull it via shared_docs
- Once the skill-side guidance is live, remove the commandment from the wizard's
commandments.ts
Related
🤖 Generated with Claude Code
Why
The wizard currently carries an agent commandment in
src/lib/agent/commandments.tstelling the agent not to disable PostHog data-capture defaults (autocapture,session_recording,opt_out_capturingin init config). That's product-specific guidance baked into wizard infrastructure — the wizard's design rule says product knowledge lives in skills.This is distinct from #173 (which tracks the L2 scanner rules). This issue is about the L0 agent guidance — the textual rule the agent reads before it writes anything.
What needs to happen
libraries/js/defaults.mdor similar) covering:autocapture: false— only legitimate with explicit user opt-indisable_session_recording: true/disableSessionRecording: true— sameopt_out_capturing: true/opted_out: truein init config — disallowedposthog.opt_out_capturing()for GDPR consent — clearly OKposthog-integration,pii-bouncer, possibly others) pull it viashared_docscommandments.tsRelated
🤖 Generated with Claude Code