@bastani/atomic 0.9.20-alpha.6 → 0.9.20-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/builtin/intercom/package.json +2 -2
  3. package/dist/builtin/mcp/package.json +2 -2
  4. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  5. package/dist/builtin/subagents/package.json +3 -3
  6. package/dist/builtin/subagents/src/extension/index.bundle.mjs +18 -8
  7. package/dist/builtin/web-access/package.json +2 -2
  8. package/dist/builtin/workflows/CHANGELOG.md +27 -0
  9. package/dist/builtin/workflows/README.md +5 -19
  10. package/dist/builtin/workflows/builtin/{chunk-deq63d9p.js → chunk-7bzcersz.js} +30 -19
  11. package/dist/builtin/workflows/builtin/goal.js +1 -1
  12. package/dist/builtin/workflows/builtin/index.js +1 -1
  13. package/dist/builtin/workflows/package.json +2 -2
  14. package/dist/builtin/workflows/skills/prompt-engineer/SKILL.md +10 -9
  15. package/dist/builtin/workflows/skills/prompt-engineer/references/advanced_patterns.md +4 -4
  16. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5.md +96 -23
  17. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_1.md +75 -27
  18. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_4_8.md +72 -26
  19. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5.md +58 -22
  20. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +118 -0
  21. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_sonnet_5.md +70 -29
  22. package/dist/builtin/workflows/skills/prompt-engineer/references/core_prompting.md +1 -1
  23. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_5.md +95 -32
  24. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_6.md +79 -30
  25. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +139 -0
  26. package/dist/builtin/workflows/skills/prompt-engineer/references/quality_improvement.md +4 -4
  27. package/dist/builtin/workflows/src/extension/index.bundle.mjs +389 -719
  28. package/dist/builtin/workflows/src/index.js +17 -7
  29. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  30. package/dist/core/agent-session-message-queue.js +3 -1
  31. package/dist/core/agent-session-message-queue.js.map +1 -1
  32. package/dist/core/agent-session-methods.d.ts +3 -0
  33. package/dist/core/agent-session-methods.d.ts.map +1 -1
  34. package/dist/core/agent-session-methods.js.map +1 -1
  35. package/dist/core/agent-session-runtime.d.ts +4 -0
  36. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  37. package/dist/core/agent-session-runtime.js +6 -0
  38. package/dist/core/agent-session-runtime.js.map +1 -1
  39. package/dist/core/agent-session-tasks.d.ts +9 -0
  40. package/dist/core/agent-session-tasks.d.ts.map +1 -1
  41. package/dist/core/agent-session-tasks.js +68 -16
  42. package/dist/core/agent-session-tasks.js.map +1 -1
  43. package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
  44. package/dist/core/agent-session-tool-registry.js +9 -21
  45. package/dist/core/agent-session-tool-registry.js.map +1 -1
  46. package/dist/core/agent-session-types.d.ts +2 -0
  47. package/dist/core/agent-session-types.d.ts.map +1 -1
  48. package/dist/core/agent-session-types.js.map +1 -1
  49. package/dist/core/agent-session.d.ts +3 -0
  50. package/dist/core/agent-session.d.ts.map +1 -1
  51. package/dist/core/agent-session.js +5 -2
  52. package/dist/core/agent-session.js.map +1 -1
  53. package/dist/core/execution-model-router.d.ts +14 -0
  54. package/dist/core/execution-model-router.d.ts.map +1 -1
  55. package/dist/core/execution-model-router.js +67 -21
  56. package/dist/core/execution-model-router.js.map +1 -1
  57. package/dist/core/fast-model-variants.d.ts +26 -0
  58. package/dist/core/fast-model-variants.d.ts.map +1 -1
  59. package/dist/core/fast-model-variants.js +40 -1
  60. package/dist/core/fast-model-variants.js.map +1 -1
  61. package/dist/core/model-runtime.d.ts +13 -1
  62. package/dist/core/model-runtime.d.ts.map +1 -1
  63. package/dist/core/model-runtime.js +16 -1
  64. package/dist/core/model-runtime.js.map +1 -1
  65. package/dist/core/sdk-types.d.ts +5 -0
  66. package/dist/core/sdk-types.d.ts.map +1 -1
  67. package/dist/core/sdk-types.js.map +1 -1
  68. package/dist/core/sdk.d.ts.map +1 -1
  69. package/dist/core/sdk.js +4 -0
  70. package/dist/core/sdk.js.map +1 -1
  71. package/dist/core/settings-types.js.map +1 -1
  72. package/dist/core/skill-catalog.d.ts.map +1 -1
  73. package/dist/core/skill-catalog.js +18 -6
  74. package/dist/core/skill-catalog.js.map +1 -1
  75. package/dist/core/structured-output/index.d.ts +1 -0
  76. package/dist/core/structured-output/index.d.ts.map +1 -1
  77. package/dist/core/structured-output/index.js +34 -26
  78. package/dist/core/structured-output/index.js.map +1 -1
  79. package/dist/core/structured-output/jev-client.d.ts +9 -0
  80. package/dist/core/structured-output/jev-client.d.ts.map +1 -1
  81. package/dist/core/structured-output/jev-client.js +57 -3
  82. package/dist/core/structured-output/jev-client.js.map +1 -1
  83. package/dist/core/structured-output/jev.d.ts.map +1 -1
  84. package/dist/core/structured-output/jev.js +35 -53
  85. package/dist/core/structured-output/jev.js.map +1 -1
  86. package/dist/core/structured-output/resolver.d.ts +32 -24
  87. package/dist/core/structured-output/resolver.d.ts.map +1 -1
  88. package/dist/core/structured-output/resolver.js +57 -9
  89. package/dist/core/structured-output/resolver.js.map +1 -1
  90. package/dist/core/structured-output/types.d.ts +8 -4
  91. package/dist/core/structured-output/types.d.ts.map +1 -1
  92. package/dist/core/structured-output/types.js.map +1 -1
  93. package/dist/core/tasks/child-command-owner.d.ts +34 -0
  94. package/dist/core/tasks/child-command-owner.d.ts.map +1 -0
  95. package/dist/core/tasks/child-command-owner.js +70 -0
  96. package/dist/core/tasks/child-command-owner.js.map +1 -0
  97. package/dist/core/tools/bash-pty-native.d.ts +5 -1
  98. package/dist/core/tools/bash-pty-native.d.ts.map +1 -1
  99. package/dist/core/tools/bash-pty-native.js +15 -7
  100. package/dist/core/tools/bash-pty-native.js.map +1 -1
  101. package/dist/core/tools/bash.d.ts.map +1 -1
  102. package/dist/core/tools/bash.js +15 -13
  103. package/dist/core/tools/bash.js.map +1 -1
  104. package/dist/core/tools/kill.d.ts +2 -2
  105. package/dist/core/tools/kill.d.ts.map +1 -1
  106. package/dist/core/tools/kill.js +3 -4
  107. package/dist/core/tools/kill.js.map +1 -1
  108. package/dist/index.d.ts +3 -3
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +2 -2
  111. package/dist/index.js.map +1 -1
  112. package/dist/modes/interactive/components/atomic-banner.d.ts.map +1 -1
  113. package/dist/modes/interactive/components/atomic-banner.js +3 -2
  114. package/dist/modes/interactive/components/atomic-banner.js.map +1 -1
  115. package/dist/modes/interactive/components/startup-identity.d.ts +3 -0
  116. package/dist/modes/interactive/components/startup-identity.d.ts.map +1 -1
  117. package/dist/modes/interactive/components/startup-identity.js +11 -2
  118. package/dist/modes/interactive/components/startup-identity.js.map +1 -1
  119. package/dist/modes/interactive/interactive-auth-login.js +2 -4
  120. package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
  121. package/dist/modes/interactive/interactive-tui.d.ts.map +1 -1
  122. package/dist/modes/interactive/interactive-tui.js +2 -0
  123. package/dist/modes/interactive/interactive-tui.js.map +1 -1
  124. package/dist/modes/interactive/overlay-line-composite.d.ts +7 -0
  125. package/dist/modes/interactive/overlay-line-composite.d.ts.map +1 -0
  126. package/dist/modes/interactive/overlay-line-composite.js +24 -0
  127. package/dist/modes/interactive/overlay-line-composite.js.map +1 -0
  128. package/dist/modes/interactive-engine/isolated-auth.d.ts +16 -0
  129. package/dist/modes/interactive-engine/isolated-auth.d.ts.map +1 -1
  130. package/dist/modes/interactive-engine/isolated-auth.js +27 -0
  131. package/dist/modes/interactive-engine/isolated-auth.js.map +1 -1
  132. package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -0
  133. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  134. package/dist/modes/interactive-engine/isolated-runtime.js +4 -1
  135. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  136. package/dist/modes/rpc/rpc-client-api.d.ts +2 -1
  137. package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
  138. package/dist/modes/rpc/rpc-client-api.js +7 -2
  139. package/dist/modes/rpc/rpc-client-api.js.map +1 -1
  140. package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
  141. package/dist/modes/rpc/rpc-command-handler.js +3 -1
  142. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  143. package/dist/modes/rpc/rpc-provider-auth.d.ts +2 -1
  144. package/dist/modes/rpc/rpc-provider-auth.d.ts.map +1 -1
  145. package/dist/modes/rpc/rpc-provider-auth.js +2 -2
  146. package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
  147. package/dist/modes/rpc/rpc-types.d.ts +2 -0
  148. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  149. package/dist/modes/rpc/rpc-types.js.map +1 -1
  150. package/dist/utils/child-process.d.ts +1 -0
  151. package/dist/utils/child-process.d.ts.map +1 -1
  152. package/dist/utils/child-process.js +7 -8
  153. package/dist/utils/child-process.js.map +1 -1
  154. package/dist/utils/shell.d.ts.map +1 -1
  155. package/dist/utils/shell.js +18 -1
  156. package/dist/utils/shell.js.map +1 -1
  157. package/docs/background-tasks.md +11 -2
  158. package/docs/environment-variables.md +1 -1
  159. package/docs/getting-started/first-session.md +2 -2
  160. package/docs/llama-cpp.md +2 -2
  161. package/docs/models/evals.md +47 -43
  162. package/docs/models/reference.md +1 -1
  163. package/docs/providers.md +14 -4
  164. package/docs/reference/cli.md +2 -2
  165. package/docs/rpc/examples.md +2 -0
  166. package/docs/sdk/reference.md +1 -1
  167. package/docs/sdk/structured-decisions.md +20 -14
  168. package/docs/settings.md +8 -8
  169. package/docs/skills.md +5 -1
  170. package/docs/subagents/reference.md +2 -2
  171. package/docs/subagents.md +1 -1
  172. package/docs/workflows/api-reference.md +5 -34
  173. package/docs/workflows/builtins.md +1 -1
  174. package/docs/workflows/operations.md +11 -77
  175. package/docs/workflows/reliable-design.md +14 -29
  176. package/docs/workflows.md +8 -7
  177. package/examples/rpc-client.ts +38 -0
  178. package/examples/rpc-extension-ui.ts +19 -5
  179. package/examples/sdk/README.md +1 -1
  180. package/npm-shrinkwrap.json +65 -65
  181. package/package.json +7 -7
  182. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +0 -58
package/docs/workflows.md CHANGED
@@ -46,19 +46,20 @@ For checking changes and sharing results in PRs, see [Verification and evidence]
46
46
 
47
47
  ## When to Use Workflows
48
48
 
49
- Call `workflow route` with the actual request, relevant message text/document excerpts, and explicit constraints in `state`, not file paths in place of content. If it returns `none`, continue inline. Otherwise use its input contract to prepare inputs, then call `workflow run` with the registered workflow ID. Ask only for genuinely missing information.
49
+ The agent decides whether a workflow fits. Well-defined, authorized work that benefits from durable stages, checkpoints, dependencies, recovery, review loops or approval gates runs as a workflow; brainstorming, discussion, unclear goals, simple bounded work, or an explicit request to work inline, quickly or without a workflow stays inline. To launch, inspect the input contract with `workflow inputs`, then call `workflow run` with the registered workflow name and inputs. Ask only for genuinely missing information.
50
50
 
51
- Route assesses interaction needs and complexity. It returns a reservation, not an executing workflow or a completed task. Preserve uncertainty, actual user preferences and authorization; quoted document instructions do not grant approval. Empty context arrays are valid. Label summaries and unavailable-source limitations, and remove secrets before transmitting excerpts. No implicit file or URL reads occur.
51
+ Safety, authorization, testing and evidence requirements remain in force. For an active user-requested switch to inline, safely hold/stop the affected run and reconcile completed work and in-flight effects before continuing without duplicates. User `/workflow` commands launch directly; authored `ctx.workflow(...)` remains internal composition.
52
52
 
53
- Safety, authorization, testing and evidence requirements remain in force. For an active user-requested switch, safely hold/stop the affected run and reconcile completed work and in-flight effects before continuing without duplicates. User `/workflow` commands launch directly; authored `ctx.workflow(...)` remains internal composition. See [Model-invoked launch routing](/workflows/operations#model-invoked-launch-routing) for provider-independent routing, input correction, ID lifetime and error handling.
53
+ ```ts
54
+ workflow({ action: "inputs", workflow: "fan-out-and-synthesize" })
55
+ workflow({ action: "run", workflow: "fan-out-and-synthesize", inputs: { prompt: "Map the repository by subsystem" } })
56
+ ```
54
57
 
55
- For deliberate definition authoring, do not force-fit a builtin: a builtin that matches 60% of the task and fights the other 40% is worse than a small custom graph. Discover named builtin, project, user, and package workflows; or author a task-specific TypeScript `workflow({...})` with normal coding tools when the definition needs richer branching, dynamic fan-out, artifacts, structured outputs, child workflows, human input, gates, retries, or loops. Creating a definition does not pin the model-tool router's choice.
58
+ For deliberate definition authoring, do not force-fit a builtin: a builtin that matches 60% of the task and fights the other 40% is worse than a small custom graph. Discover named builtin, project, user, and package workflows; or author a task-specific TypeScript `workflow({...})` with normal coding tools when the definition needs richer branching, dynamic fan-out, artifacts, structured outputs, child workflows, human input, gates, retries, or loops.
56
59
 
57
60
  Rich custom workflows can compose the [common workflow patterns](/workflows/reliable-design#common-workflow-patterns): classify and branch at runtime, fan out and synthesize artifacts, run worker/verifier/reducer repair cycles, generate and filter or tournament-rank candidates, and loop until explicit evidence says the work is done. Workflow definitions are composable TypeScript modules — see [Workflow Composition](/workflows/authoring#workflow-composition). Atomic can write the definition, reload workflow resources, and run it for the current task; the workflow tool has no create action.
58
61
 
59
- For authored graphs, design elapsed time using [runtime-aware scheduling and estimates](/workflows/reliable-design#runtime-aware-scheduling-and-estimates). Use available CI/test history to place focused checks at slice boundaries, defer redundant full-suite runs to the final candidate, and overlap independent work with CI without bypassing required gates. For model-tool launches, report the selected workflow and `estimatedDuration` only after the router returns; do not pre-announce a caller estimate. Inherit existing budget limits without asking for a budget choice before each launch, and override only limits the user explicitly requests. Preserve existing approval gates. An estimate is not a budget or guarantee. At completion, compare the returned estimate with actual elapsed time.
60
-
61
- If exploration drifts without progress, save findings as factual context for the next routing request. Do not turn them into caller-selected graph advocacy or automatically reroute a `none` result; continue conversation, clarify, or work inline as appropriate.
62
+ For authored graphs, design elapsed time using [runtime-aware scheduling and estimates](/workflows/reliable-design#runtime-aware-scheduling-and-estimates). Use available CI/test history to place focused checks at slice boundaries, defer redundant full-suite runs to the final candidate, and overlap independent work with CI without bypassing required gates. Before launching, share a brief duration estimate without confidence labels. Inherit existing budget limits without asking for a budget choice before each launch, and override only limits the user explicitly requests. Preserve existing approval gates. An estimate is not a budget or guarantee. At completion, compare the estimate with actual elapsed time.
62
63
 
63
64
  | User need | Use |
64
65
  |-----------|-----|
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Run one prompt through an Atomic RPC child process.
3
+ *
4
+ * Build the coding-agent package first, then run:
5
+ * npx tsx examples/rpc-client.ts "Explain this repository"
6
+ *
7
+ * RpcClient launches the CLI under Bun by default; pass
8
+ * `runtimeExecutable: process.execPath` to run it under Node instead.
9
+ */
10
+
11
+ import { dirname, join } from "node:path";
12
+ import { fileURLToPath } from "node:url";
13
+ import { RpcClient } from "@bastani/atomic";
14
+
15
+ const exampleDirectory = dirname(fileURLToPath(import.meta.url));
16
+ const prompt = process.argv.slice(2).join(" ") || "Explain this repository in one paragraph.";
17
+
18
+ const client = new RpcClient({
19
+ cliPath: join(exampleDirectory, "../dist/cli.js"),
20
+ args: ["--no-session"],
21
+ });
22
+
23
+ const unsubscribe = client.onEvent((event) => {
24
+ if (event.type === "message_update" && event.assistantMessageEvent.type === "text_delta") {
25
+ process.stdout.write(event.assistantMessageEvent.delta);
26
+ } else if (event.type === "tool_execution_start") {
27
+ process.stderr.write(`\n[tool: ${event.toolName}]\n`);
28
+ }
29
+ });
30
+
31
+ try {
32
+ await client.start();
33
+ await client.promptAndWait(prompt);
34
+ process.stdout.write("\n");
35
+ } finally {
36
+ unsubscribe();
37
+ await client.stop();
38
+ }
@@ -16,7 +16,7 @@
16
16
 
17
17
  import { spawn } from "node:child_process";
18
18
  import { dirname, join } from "node:path";
19
- import * as readline from "node:readline";
19
+ import { StringDecoder } from "node:string_decoder";
20
20
  import { fileURLToPath } from "node:url";
21
21
  import { type Component, Container, ProcessTerminal, TUI } from "@earendil-works/pi-tui";
22
22
 
@@ -72,7 +72,7 @@ async function main() {
72
72
 
73
73
  const agent = spawn(
74
74
  "node",
75
- [cliPath, "--mode", "rpc", "--no-session", "--no-extension", "--extension", extensionPath],
75
+ [cliPath, "--mode", "rpc", "--no-session", "--no-extensions", "--extension", extensionPath],
76
76
  { stdio: ["pipe", "pipe", "pipe"] },
77
77
  );
78
78
 
@@ -332,9 +332,10 @@ async function main() {
332
332
 
333
333
  // -- Process agent stdout --
334
334
 
335
- const stdoutRl = readline.createInterface({ input: agent.stdout!, terminal: false });
335
+ const decoder = new StringDecoder("utf8");
336
+ let stdoutBuffer = "";
336
337
 
337
- stdoutRl.on("line", (line) => {
338
+ const processLine = (line: string): void => {
338
339
  let data: Record<string, unknown>;
339
340
  try {
340
341
  data = JSON.parse(line);
@@ -397,7 +398,7 @@ async function main() {
397
398
  tui.requestRender();
398
399
  return;
399
400
  }
400
- });
401
+ };
401
402
 
402
403
  // -- User input --
403
404
 
@@ -430,6 +431,19 @@ async function main() {
430
431
  }
431
432
  };
432
433
 
434
+ const processStdout = (chunk: Buffer): void => {
435
+ stdoutBuffer += decoder.write(chunk);
436
+ const lines = stdoutBuffer.split(/\r?\n/);
437
+ stdoutBuffer = lines.pop() ?? "";
438
+ for (const line of lines) processLine(line);
439
+ };
440
+
441
+ agent.stdout!.on("data", processStdout);
442
+ agent.stdout!.on("end", () => {
443
+ stdoutBuffer += decoder.end();
444
+ if (stdoutBuffer) processLine(stdoutBuffer);
445
+ });
446
+
433
447
  // -- Agent exit --
434
448
 
435
449
  agent.on("exit", (code) => {
@@ -15,7 +15,7 @@ The runtime example shows how to build a recreate function that closes over proc
15
15
  | `05-tools.ts` | Tool allowlists and exclusions |
16
16
  | `06-extensions.ts` | Logging, blocking, result modification |
17
17
  | `07-context-files.ts` | AGENTS.md context files |
18
- | `08-slash-commands.ts` | File-based slash commands |
18
+ | `08-prompt-templates.ts` | File-based prompt templates |
19
19
  | `09-api-keys-and-oauth.ts` | API key resolution, OAuth config |
20
20
  | `10-settings.ts` | Override compaction, retry, terminal settings |
21
21
  | `11-sessions.ts` | In-memory, persistent, continue, list sessions |
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.20-alpha.6",
3
+ "version": "0.9.20-alpha.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.9.20-alpha.6",
9
+ "version": "0.9.20-alpha.8",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.9.20-alpha.6",
13
- "@bastani/pi-ai": "0.9.20-alpha.6",
12
+ "@bastani/atomic-natives": "0.9.20-alpha.8",
13
+ "@bastani/pi-ai": "0.9.20-alpha.8",
14
14
  "@dbos-inc/dbos-sdk": "4.25.14",
15
- "@earendil-works/pi-agent-core": "0.87.0",
16
- "@earendil-works/pi-client": "0.87.0",
17
- "@earendil-works/pi-protocol": "0.87.0",
18
- "@earendil-works/pi-tui": "0.87.0",
15
+ "@earendil-works/pi-agent-core": "0.87.1",
16
+ "@earendil-works/pi-client": "0.87.1",
17
+ "@earendil-works/pi-protocol": "0.87.1",
18
+ "@earendil-works/pi-tui": "0.87.1",
19
19
  "@modelcontextprotocol/ext-apps": "^1.7.5",
20
20
  "@modelcontextprotocol/sdk": "1.30.0",
21
21
  "@mozilla/readability": "^0.6.0",
@@ -429,18 +429,18 @@
429
429
  }
430
430
  },
431
431
  "node_modules/@bastani/atomic-natives": {
432
- "version": "0.9.20-alpha.6",
433
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.20-alpha.6.tgz",
432
+ "version": "0.9.20-alpha.8",
433
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.20-alpha.8.tgz",
434
434
  "license": "MIT",
435
435
  "optionalDependencies": {
436
- "@bastani/atomic-natives-darwin-arm64": "0.9.20-alpha.6",
437
- "@bastani/atomic-natives-darwin-x64": "0.9.20-alpha.6",
438
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.20-alpha.6",
439
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.20-alpha.6",
440
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.20-alpha.6",
441
- "@bastani/atomic-natives-linux-x64-musl": "0.9.20-alpha.6",
442
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.20-alpha.6",
443
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.20-alpha.6"
436
+ "@bastani/atomic-natives-darwin-arm64": "0.9.20-alpha.8",
437
+ "@bastani/atomic-natives-darwin-x64": "0.9.20-alpha.8",
438
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.20-alpha.8",
439
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.20-alpha.8",
440
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.20-alpha.8",
441
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.20-alpha.8",
442
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.20-alpha.8",
443
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.20-alpha.8"
444
444
  },
445
445
  "engines": {
446
446
  "bun": ">=1.4.2",
@@ -448,8 +448,8 @@
448
448
  }
449
449
  },
450
450
  "node_modules/@bastani/atomic-natives-darwin-arm64": {
451
- "version": "0.9.20-alpha.6",
452
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.20-alpha.6.tgz",
451
+ "version": "0.9.20-alpha.8",
452
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.20-alpha.8.tgz",
453
453
  "license": "MIT",
454
454
  "os": [
455
455
  "darwin"
@@ -460,8 +460,8 @@
460
460
  "optional": true
461
461
  },
462
462
  "node_modules/@bastani/atomic-natives-darwin-x64": {
463
- "version": "0.9.20-alpha.6",
464
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.20-alpha.6.tgz",
463
+ "version": "0.9.20-alpha.8",
464
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.20-alpha.8.tgz",
465
465
  "license": "MIT",
466
466
  "os": [
467
467
  "darwin"
@@ -472,8 +472,8 @@
472
472
  "optional": true
473
473
  },
474
474
  "node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
475
- "version": "0.9.20-alpha.6",
476
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.20-alpha.6.tgz",
475
+ "version": "0.9.20-alpha.8",
476
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.20-alpha.8.tgz",
477
477
  "license": "MIT",
478
478
  "os": [
479
479
  "linux"
@@ -487,8 +487,8 @@
487
487
  "optional": true
488
488
  },
489
489
  "node_modules/@bastani/atomic-natives-linux-arm64-musl": {
490
- "version": "0.9.20-alpha.6",
491
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.20-alpha.6.tgz",
490
+ "version": "0.9.20-alpha.8",
491
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.20-alpha.8.tgz",
492
492
  "license": "MIT",
493
493
  "os": [
494
494
  "linux"
@@ -502,8 +502,8 @@
502
502
  "optional": true
503
503
  },
504
504
  "node_modules/@bastani/atomic-natives-linux-x64-gnu": {
505
- "version": "0.9.20-alpha.6",
506
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.20-alpha.6.tgz",
505
+ "version": "0.9.20-alpha.8",
506
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.20-alpha.8.tgz",
507
507
  "license": "MIT",
508
508
  "os": [
509
509
  "linux"
@@ -517,8 +517,8 @@
517
517
  "optional": true
518
518
  },
519
519
  "node_modules/@bastani/atomic-natives-linux-x64-musl": {
520
- "version": "0.9.20-alpha.6",
521
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.20-alpha.6.tgz",
520
+ "version": "0.9.20-alpha.8",
521
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.20-alpha.8.tgz",
522
522
  "license": "MIT",
523
523
  "os": [
524
524
  "linux"
@@ -532,8 +532,8 @@
532
532
  "optional": true
533
533
  },
534
534
  "node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
535
- "version": "0.9.20-alpha.6",
536
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.20-alpha.6.tgz",
535
+ "version": "0.9.20-alpha.8",
536
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.20-alpha.8.tgz",
537
537
  "license": "MIT",
538
538
  "os": [
539
539
  "win32"
@@ -544,8 +544,8 @@
544
544
  "optional": true
545
545
  },
546
546
  "node_modules/@bastani/atomic-natives-win32-x64-msvc": {
547
- "version": "0.9.20-alpha.6",
548
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.20-alpha.6.tgz",
547
+ "version": "0.9.20-alpha.8",
548
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.20-alpha.8.tgz",
549
549
  "license": "MIT",
550
550
  "os": [
551
551
  "win32"
@@ -556,13 +556,13 @@
556
556
  "optional": true
557
557
  },
558
558
  "node_modules/@bastani/pi-ai": {
559
- "version": "0.9.20-alpha.6",
560
- "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.20-alpha.6.tgz",
559
+ "version": "0.9.20-alpha.8",
560
+ "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.20-alpha.8.tgz",
561
561
  "license": "MIT",
562
562
  "dependencies": {
563
563
  "@anthropic-ai/sdk": "0.124.0",
564
564
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
565
- "@earendil-works/pi-telemetry": "0.87.0",
565
+ "@earendil-works/pi-telemetry": "0.87.1",
566
566
  "@google/genai": "2.21.0",
567
567
  "@smithy/node-http-handler": "4.12.1",
568
568
  "http-proxy-agent": "9.1.0",
@@ -663,9 +663,9 @@
663
663
  }
664
664
  },
665
665
  "node_modules/@earendil-works/chord": {
666
- "version": "0.87.0",
667
- "resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.87.0.tgz",
668
- "integrity": "sha512-t8QOTf0GTHrsDSfcdtXuA9RCkh6mnR4l25N0SM/sgH7Ih25jH4tGXNbkGs9MWpV5xTu9MRPj4A7Zn1UEwQm9+g==",
666
+ "version": "0.87.1",
667
+ "resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.87.1.tgz",
668
+ "integrity": "sha512-bg7IkJGFcEaMqqYgOGUiq5Ky9RghpRfrlZ8I/v/1b4bBZ02A7t3E+6uhPRbadwWb/kWsnVFbZsqOKRN4a3LLCg==",
669
669
  "license": "MIT",
670
670
  "dependencies": {
671
671
  "esbuild": "0.28.2"
@@ -675,14 +675,14 @@
675
675
  }
676
676
  },
677
677
  "node_modules/@earendil-works/pi-agent-core": {
678
- "version": "0.87.0",
679
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.87.0.tgz",
680
- "integrity": "sha512-c5b2FMdJ7C++HBa6AyBmusdf96gdgRqpF7J+UCq2yVGB28UETJvJ190HkgDWUaLPnOQQPbanjKMAm/TgRmFE2w==",
678
+ "version": "0.87.1",
679
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.87.1.tgz",
680
+ "integrity": "sha512-Zev3B0HK7YS5A4EZQ2XnEqiJuirx6QBiltJ+LpmjV5a/+2IU0cfKtIfnkNkORK707XOvKBY2WRtk7cAwHpbh2Q==",
681
681
  "license": "MIT",
682
682
  "dependencies": {
683
- "@earendil-works/chord": "^0.87.0",
684
- "@earendil-works/pi-ai": "^0.87.0",
685
- "@earendil-works/pi-telemetry": "^0.87.0",
683
+ "@earendil-works/chord": "^0.87.1",
684
+ "@earendil-works/pi-ai": "^0.87.1",
685
+ "@earendil-works/pi-telemetry": "^0.87.1",
686
686
  "diff": "8.0.4",
687
687
  "ignore": "7.0.8",
688
688
  "typebox": "1.3.27",
@@ -693,14 +693,14 @@
693
693
  }
694
694
  },
695
695
  "node_modules/@earendil-works/pi-ai": {
696
- "version": "0.87.0",
697
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.87.0.tgz",
698
- "integrity": "sha512-lbRm+EMY6Jx3l+HLpbqbm9Yrhkc5u7EffLk2id+zJQEoBuR5I+tijGiZU8zlnuuCclmQOgH0PVjL9PLbeqJ9MQ==",
696
+ "version": "0.87.1",
697
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.87.1.tgz",
698
+ "integrity": "sha512-X/3PfQBnnoeVdO9Cv8zHghUMglzlgNZYGNzoPnbRoGnHl3Rw3TlA2UKSUB7BRHUOxMryHXYa8dnjWZlbRheDZA==",
699
699
  "license": "MIT",
700
700
  "dependencies": {
701
701
  "@anthropic-ai/sdk": "0.124.0",
702
702
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
703
- "@earendil-works/pi-telemetry": "^0.87.0",
703
+ "@earendil-works/pi-telemetry": "^0.87.1",
704
704
  "@google/genai": "2.21.0",
705
705
  "@smithy/node-http-handler": "4.12.1",
706
706
  "http-proxy-agent": "9.1.0",
@@ -740,25 +740,25 @@
740
740
  }
741
741
  },
742
742
  "node_modules/@earendil-works/pi-client": {
743
- "version": "0.87.0",
744
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.87.0.tgz",
745
- "integrity": "sha512-SzlKFULcz3VchpfVizd9fTxaFHxhIe/Dpn9CDHthqRzUx6Sym2tWwlveqdjD4V81yid+r7VEziZuHYYqNt4+kA==",
743
+ "version": "0.87.1",
744
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.87.1.tgz",
745
+ "integrity": "sha512-x8dfZ7ppAao9SDnZvD5/DErVdq2fI7hg4lFj7qEhtgo6wimrRafGSLsqLklFVjb6kxU2W3j9F4RZz0rRcb0cwA==",
746
746
  "license": "MIT",
747
747
  "dependencies": {
748
- "@earendil-works/chord": "^0.87.0",
749
- "@earendil-works/pi-protocol": "^0.87.0"
748
+ "@earendil-works/chord": "^0.87.1",
749
+ "@earendil-works/pi-protocol": "^0.87.1"
750
750
  },
751
751
  "engines": {
752
752
  "node": ">=22.19.0"
753
753
  }
754
754
  },
755
755
  "node_modules/@earendil-works/pi-protocol": {
756
- "version": "0.87.0",
757
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.87.0.tgz",
758
- "integrity": "sha512-H6tL0BGj5RbvwPQq7YnaGSudASvmPbHBP3FVqeIIJa91hURB6DdKCmITQkJwQz8nR/bc4B/r2tZXgzlVTBYOrQ==",
756
+ "version": "0.87.1",
757
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.87.1.tgz",
758
+ "integrity": "sha512-48WVjryAIiKOJXnKgO15h2MT/oeH5uf0S4DykcVj3ZrxMTDSGxcUaS5VtvHtFQ1rZSSIjkVcblE13k0GksBuoQ==",
759
759
  "license": "MIT",
760
760
  "dependencies": {
761
- "@earendil-works/chord": "^0.87.0",
761
+ "@earendil-works/chord": "^0.87.1",
762
762
  "typebox": "1.3.27"
763
763
  },
764
764
  "engines": {
@@ -766,18 +766,18 @@
766
766
  }
767
767
  },
768
768
  "node_modules/@earendil-works/pi-telemetry": {
769
- "version": "0.87.0",
770
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.87.0.tgz",
771
- "integrity": "sha512-IEUMnV6mgHyOMfAxa4CKXoBKKfHM8KxNjbXWM4Bps/iLJcFMf8hQsEZ+95VnVTc7C0cU77Rmdxt773C35jb5AA==",
769
+ "version": "0.87.1",
770
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.87.1.tgz",
771
+ "integrity": "sha512-MC6TRQH5lgMXpcN+Vku2WMI2T8BsiUPzMQHGo81uqFZD3/9O79WWJAysEDGuzduP6R4tvtgwMLwmqIxynM10JQ==",
772
772
  "license": "MIT",
773
773
  "engines": {
774
774
  "node": ">=22.19.0"
775
775
  }
776
776
  },
777
777
  "node_modules/@earendil-works/pi-tui": {
778
- "version": "0.87.0",
779
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.87.0.tgz",
780
- "integrity": "sha512-7gTC0XOgQfVWg4yGxwHINBpCnGl9p4KEC7PXIc8gAwc/cyxSW4VuFQrp+r1YD3oM+rBkoepKwAt6w6+VJ7BCaw==",
778
+ "version": "0.87.1",
779
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.87.1.tgz",
780
+ "integrity": "sha512-YEH2vRyOeiO7hhN6j6AE6YwKSq2Kz2f3XR8bj1TbR+aGE/JsnY1hLPMI2pvaZfRM1n9Y00tejxFQ4zbzvF7nkQ==",
781
781
  "license": "MIT",
782
782
  "dependencies": {
783
783
  "get-east-asian-width": "1.6.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.20-alpha.6",
3
+ "version": "0.9.20-alpha.8",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -79,13 +79,13 @@
79
79
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
80
80
  },
81
81
  "dependencies": {
82
- "@bastani/atomic-natives": "0.9.20-alpha.6",
83
- "@bastani/pi-ai": "0.9.20-alpha.6",
82
+ "@bastani/atomic-natives": "0.9.20-alpha.8",
83
+ "@bastani/pi-ai": "0.9.20-alpha.8",
84
84
  "@dbos-inc/dbos-sdk": "4.25.14",
85
- "@earendil-works/pi-agent-core": "0.87.0",
86
- "@earendil-works/pi-client": "0.87.0",
87
- "@earendil-works/pi-protocol": "0.87.0",
88
- "@earendil-works/pi-tui": "0.87.0",
85
+ "@earendil-works/pi-agent-core": "0.87.1",
86
+ "@earendil-works/pi-client": "0.87.1",
87
+ "@earendil-works/pi-protocol": "0.87.1",
88
+ "@earendil-works/pi-tui": "0.87.1",
89
89
  "@modelcontextprotocol/ext-apps": "^1.7.5",
90
90
  "@modelcontextprotocol/sdk": "1.30.0",
91
91
  "@mozilla/readability": "^0.6.0",
@@ -1,58 +0,0 @@
1
- # GPT-6 Astra prompting and migration
2
-
3
- Use this reference when targeting `gpt-6-astra`, migrating a prompt to Astra, or diagnosing early stops, excessive verification, or conflicting skills. Keep other model variants separate. Guidance checked on September 5, 2026 against [OpenAI's model guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6-astra).
4
-
5
- ## Define completion and permission once
6
-
7
- Astra follows detailed instructions closely and may ask questions where earlier models made assumptions. Define the intended finished result, including implementation, inspection, repairs, and any authorized final action. Treat action requests such as "can you fix this" as requests to do the work. Continue through work already authorized by the conversation; ask when a missing decision would materially change the result or permission is actually absent.
8
-
9
- Before asking for final approval, prepare the authorized, reversible work so the user can review a concrete result. Do not turn this into blanket permission for destructive actions, publication, deployment, or external mutations. Preserve higher-priority policy, repository requirements, and explicit user boundaries.
10
-
11
- Adapt this example to the real environment:
12
-
13
- ```text
14
- Implement the requested fix and verify the affected behavior. The local tests use disposable fixtures and have no production access. Run them, repair failures caused by this change, and rerun affected checks without asking again. Complete the repository's required checks. Stop when the requested behavior and required checks pass, or when a specific missing decision or permission blocks progress. Prepare a reviewable diff; deployment is not authorized.
15
- ```
16
-
17
- If exploration beyond the first implementation is intended, name the questions to explore and the stopping condition. Avoid an automatic "pause after first implementation" rule unless that review gate is needed.
18
-
19
- ## Audit instructions that change behavior
20
-
21
- Astra is sensitive to skills and repository instruction files. Check the relevant loaded instructions for conflicting completion rules, stale model workarounds, mandatory broad research, or approval language that blocks already-authorized work. Use the instruction audit in [quality_improvement.md](quality_improvement.md) when these symptoms appear.
22
-
23
- Explicit user preferences override advisory skill defaults, subject to system/developer instructions and real authorization requirements. A skill cannot grant permission or override higher-priority policy. When a skill causes an unexpected pause or scope change, identify its exact `SKILL.md` path, quote the instruction, and distinguish its requirement from your interpretation. Do not silently remove binding constraints in the name of brevity.
24
-
25
- ## Calibrate testing and delegation
26
-
27
- Run checks appropriate to the change and all required repository checks. Broaden or repeat them only after a new change, a failure, or an unresolved concern. Avoid tests that merely repeat implementation text for reversible, low-impact edits. Keep regression tests that exercise behavior and failure modes.
28
-
29
- Astra may delegate less than desired. When the application supports collaboration, explicitly allow independent tasks to run in parallel if that saves time or improves quality. Give each delegate a bounded objective, ownership, and expected evidence; respect the harness's concurrency limits. Keep dependent work sequential and synthesize results before acting. Claude-specific delegation damping is not an Astra default. Inter-agent messages should be legible to humans, with proper spacing and clear identifiers.
30
-
31
- ## Control writing directly
32
-
33
- Astra tends toward detailed, formatted responses. Specify the audience, necessary detail, and output shape instead of assuming the concise defaults of GPT-5.6. Prefer a clear first sentence and short paragraphs. Use lists or tables when they help comparison or sequence. Use familiar words and concrete verbs; remove stock conclusions, repeated slogans, unnecessary contrasts, and technical jargon that does not help the reader. Preserve consequential caveats and validation evidence.
34
-
35
- ```text
36
- Lead with the result. Use short, plain paragraphs and include only the evidence, caveats, and next action needed by this reader. Use a list only for parallel items. Avoid canned headings such as "Bottom line" and unnecessary contrasts such as "This isn't X, it's Y."
37
- ```
38
-
39
- ## API migration checks
40
-
41
- These are API capabilities, not promises that every agent harness exposes them. Verify the SDK, provider, and request path before adding parameters.
42
-
43
- | Area | Astra migration rule |
44
- | --- | --- |
45
- | Model and effort | Set `model: "gpt-6-astra"`. Preserve existing effective reasoning effort; when migrating from `none` or `minimal`, start with `low` and evaluate. Astra does not support `none`. Use `reasoning.effort` in Responses or `reasoning_effort` in Chat Completions. |
46
- | Tools | Use Responses for tool calling. Astra supports Chat Completions, but tool calling requires Responses. |
47
- | Sampling and log probabilities | Remove `temperature`, `top_p`, and `top_logprobs`. Remove Chat Completions `logprobs`; remove `message.output_text.logprobs` from Responses `include`. |
48
- | Cache migration | From GPT-5.5 or earlier, replace `prompt_cache_retention` with `prompt_cache_options.ttl: "30m"`. Review cache boundaries and cache-write billing in the [caching guide](https://developers.openai.com/api/docs/guides/prompt-caching#summary-of-model-differences). |
49
- | Changing effort | In supported standard single-agent requests, use a `configuration_update` input item to change effort without changing request-level `reasoning.effort` and the cached prompt prefix. The update persists until replaced. Check the [compatibility limits](https://developers.openai.com/api/docs/guides/reasoning#change-reasoning-mid-conversation) first. |
50
- | EU data residency | Use Standard processing. Astra does not support `service_tier: "fast"` or `"priority"` with EU data residency. Fast mode has no latency SLA. |
51
-
52
- Async tools can free the model to handle independent work while a tool runs. Mark a supported function or custom tool `async: true`; the application still executes the tool, manages pending work, and returns its result with the original `call_id`. Do not assume dependency ordering or cancellation happens automatically. See [async tool calling](https://developers.openai.com/api/docs/guides/async-tool-calling).
53
-
54
- Mid-turn steering over Responses WebSockets can carry revised instructions into a continuation while preserving completed work. Reconcile completed actions, pending tool results, and the new scope rather than repeating side effects. Consult the [steering event flow](https://developers.openai.com/api/docs/guides/steering) before implementing it. Prompt text alone does not enable async execution or steering in Atomic or another harness.
55
-
56
- ## Check the change on representative cases
57
-
58
- Compare a normal task, an early-stop case, and a permission boundary case. Check whether the agent completes authorized work, asks only blocking questions, runs the required checks without repetitive expansion, and respects forbidden actions. For API migrations, also validate the request payload and tool-result flow. Keep prompt edits, model changes, and effort experiments separate so failures have an identifiable cause. Do not claim a measured improvement without running the comparison.