Documentation
¶
Overview ¶
Command askfix is the ask-log browser spec's fixture (e2e/tests/asks-log.spec.ts): an owner's asks, written through the real store (internal/asklog: redaction, normalisation and row-level security as in production), so the Asks page's Log tab has a summary, a repeated question and a row whose text expired.
DATABASE_URL=…_e2e go run ./e2e/askfix seed <owner> prints the expired row's id DATABASE_URL=…_e2e go run ./e2e/askfix wraps <owner> long lines (seedWraps); prints its newest row's id DATABASE_URL=…_e2e go run ./e2e/askfix clear <owner>
The rows (all synthetic), latencies pairwise distinct:
- "Shall I continue with the next step?" three times, plain text: answered "yes" by the owner after 10 s and 20 s, "go on" by the chief after 40 s;
- a picker "Which database should the cache use?" answered "postgres" by the owner after 80 s;
- an attention ask "Ship the migration tonight?" declined after 160 s;
- an opencode permission "Allow a write to config.yaml?" still open;
- a plain-text question asked 40 days ago, answered after 5 s, whose text the retention sweep then clears (seed runs the sweep with a 30-day TTL; only rows older than that, in this e2e database, are touched).
🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check).