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
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,33 @@ Atlas is a chat-first brain-dump scheduler MVP. A user sends freeform text, the
32
32
-`pnpm db:test:reset`: reset the local `atlas_test` database schema for integration reruns
33
33
-`pnpm db:test:stop`: stop the local Homebrew Postgres test service
34
34
35
+
## Prompt Improvement Loop
36
+
37
+
Atlas treats prompt changes as product behavior changes. Use the live eval harness to iterate on prompts deliberately instead of editing blind.
38
+
39
+
Recommended loop:
40
+
41
+
1. Edit the owning prompt, schema, or parser in `packages/integrations` and `packages/core` together when the contract changes.
42
+
2. Run the narrowest relevant live eval first:
43
+
-`pnpm eval:planner`
44
+
-`pnpm eval:turn-router`
45
+
-`pnpm eval:router-confirmation`
46
+
-`pnpm eval:conversation-context`
47
+
-`pnpm eval:confirmed-mutation-recovery`
48
+
3. Inspect the suite-specific report written under `packages/integrations/*.manual-eval-report.json`.
49
+
4. If the suite fails, inspect the generated prompt-improvement brief under `packages/integrations/*.prompt-improvement.md` and use it as the starting point for the next prompt revision.
50
+
5. Tighten the prompt or contract based on the actual failing model output.
51
+
6. Run `pnpm eval:all` before merging to confirm the full prompt surface still passes together.
52
+
53
+
Notes:
54
+
55
+
-`pnpm eval:all` writes the canonical consolidated report to `packages/integrations/manual-eval-report.json`.
56
+
- Single-suite evals write suite-specific reports such as `packages/integrations/conversation-context.manual-eval-report.json`.
57
+
- Failing suites also write suite-specific prompt-improvement briefs such as `packages/integrations/conversation-context.prompt-improvement.md`.
58
+
- Generated eval reports are ignored by git and should not be committed.
59
+
- Generated prompt-improvement briefs are also ignored by git and should not be committed.
60
+
- Live evals help judge prompt quality, but they do not replace deterministic tests and schema validation.
61
+
35
62
## Local Integration DB
36
63
37
64
Atlas supports an explicit local Postgres workflow for integration tests on macOS with Homebrew `postgresql@16`.
0 commit comments