Files
upstream-atomic-crm/.claude/rules/ask-state-cartouche.md
upstream-mirror 93ecc1a6f8
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
snapshot of https://github.com/marmelab/atomic-crm.git (main, 2026-09-18; blobs > 131072B omitted)
2026-09-18 01:48:50 +05:00

1.0 KiB

ask-state cartouche

The chat-service shows a yes/no cartouche when the orchestrator writes this file. Only the orchestrator writes it never (simple-)developer (worktree scope).

<session_dir> is TICKETS_DIR (e.g. /chat-service/logs/<uuid>). Write valid JSON (quoted, escaped values), in the same turn as the question, all values in the user's language except kind:

Write("<session_dir>/ask-state.json",
  '{"kind":"satisfaction","header":"Preview ready","body":"Everything is visible in the demo but hasn'\''t been saved to your data yet. Happy with the result?","yes":"Yes, save the changes","no":"No, I want to adjust something"}')

header ≤ 30 chars; body one plain sentence (no "database"/"migration"/"Supabase").

kind picks the question (not interchangeable):

kind When Asks
satisfaction DB-impacting change, before migration (S-DONE non-empty, PD-ASK) save the preview to your data?
live-switch demo mode, after migration (PD-LIVE-ASK) switch the app to your real data?