@battlegrid/mcp-server 32.0.99 → 32.0.103

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.
package/README.md CHANGED
@@ -38,6 +38,37 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
38
38
 
39
39
  **What this changes for you:** nothing about how you call anything. Upgrading the package no longer waits on a server deploy, and a server deploy no longer strands you on a package that names the wrong contract — reconnect and the announcement follows. **Contract breaking-change notes are no longer keyed to package versions**, since a contract move is no longer a release here; the v11-and-earlier notes below are kept as history, and the live vocabulary is always discovery.
40
40
 
41
+ ## Contract history — v181 (price is the base of every spread over another reading)
42
+
43
+ **v181 is MAJOR: a spread that takes a reference price as its second side over another reading is refused.** No
44
+ schema moves, and every other column is accepted as v180 accepted it.
45
+
46
+ `spread` computes `base − operand`, so the base decides the sign. Price compared with another reading is now always
47
+ the base, so "price above the level" reads positive in every such column, and one question has one stored form.
48
+
49
+ ### Rejected input — the reason v181 is MAJOR
50
+
51
+ - **A reference price is never the plain operand of a spread whose base is not one.** `EMA20 × spread(CLOSE)`,
52
+ `PRIOR_TPO_VAH × spread(CLOSE)`, `EMA20 × spread(LAST)` and `HL2 × ema(34) × spread(CLOSE)` are refused with
53
+ `VALIDATION_ERROR` / `REPORT_COLUMN_OPERAND_UNSUPPORTED` on every surface that builds a report column.
54
+ - **The refusal names the form to write, where the server admits it at the column's rung:** `CLOSE × spread(EMA20)`,
55
+ `LAST × spread(EMA20)`, or `CLOSE × spread({ metric: HL2, transformId: ema, window: 34 })`. Where no such form is
56
+ admitted (a session-profile level off the anchor rung, or `LAST` off the anchor), it names none.
57
+ - **Still accepted:** `CLOSE × spread(LAST)` and `LAST × spread(CLOSE)` (two reference prices keep both orders), and an
58
+ average of price as an operand (`{ metric: CLOSE, transformId: ema, window: 34 }`).
59
+
60
+ ### Narrowed output
61
+
62
+ - **`get_metric_construction_hints`' plain spread operand lists drop `CLOSE` and `LAST`** for every base that is not
63
+ a reference price: `spreadOperands`, `spreadOperandsOffAnchor`, and each chained `spread` outer's `operands`. The
64
+ averaged lists (`spreadAverageOperands*`) are unchanged.
65
+
66
+ ### Moved stored columns
67
+
68
+ - **The stored `PRIOR_TPO_{VAH,POC,VAL} × spread(CLOSE)` columns are now `CLOSE × spread(PRIOR_TPO_*)`**, headed
69
+ `close_pTpo{VAH,POC,VAL}_spread`. The conditions that read them flipped their operator and mapped their threshold, so
70
+ they pass on the same bars. A condition naming `pTpo{VAH,POC,VAL}_close_spread` is refused as an unknown header.
71
+
41
72
  ## Contract history — v179 (radar tools name a coin by its ticker)
42
73
 
43
74
  **v179 is MAJOR: fifteen radar tools rename the input that names a coin, and two reshape their result.** Nothing else
package/dist/index.d.ts CHANGED
@@ -47,7 +47,7 @@ import { Client, StreamableHTTPClientTransport } from '@modelcontextprotocol/cli
47
47
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
48
48
  * correction. Never move it to track the server.
49
49
  */
50
- export declare const PACKAGE_VERSION = "32.0.99";
50
+ export declare const PACKAGE_VERSION = "32.0.103";
51
51
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
52
52
  export interface EnvConfig {
53
53
  apiKeys: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAElH,OAAO,EAAE,MAAM,EAAgB,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAEnG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,WAAW,qCAAqC,CAAC;AAe9D,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,EAAE,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EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7C,+FAA+F;IAC/F,iBAAiB,EAAE,MAAM,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACrD;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,SAAS,EAAE,cAAc,CAAC;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,CAsO/F"}
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import { Client, SdkHttpError, StreamableHTTPClientTransport } from '@modelconte
49
49
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
50
50
  * correction. Never move it to track the server.
51
51
  */
52
- export const PACKAGE_VERSION = '32.0.99';
52
+ export const PACKAGE_VERSION = '32.0.103';
53
53
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
54
54
  const MAX_RETRIES = 3;
55
55
  const RETRY_DELAYS_MS = [2000, 4000, 8000];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAA8D,MAAM,8BAA8B,CAAC;AAClH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAEnG;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;AACzC,MAAM,CAAC,MAAM,WAAW,GAAG,kCAAkC,CAAC;AAC9D,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE3C,kGAAkG;AAClG,mEAAmE;AACnE,IAAI,eAAe,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;IAC3C,MAAM,IAAI,KAAK,CACb,mDAAmD,WAAW,+BAA+B;QAC7F,GAAG,eAAe,CAAC,MAAM,+CAA+C,CACzE,CAAC;AACJ,CAAC;AAgBD,wDAAwD;AAExD,MAAM,UAAU,WAAW,CAAC,GAAuC;IACjE,MAAM,MAAM,GAAG,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;IAErD,yDAAyD;IACzD,MAAM,OAAO,GAAG,GAAG,CAAC,mBAAmB,CAAC;IACxC,IAAI,OAAiB,CAAC;IAEtB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC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AY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAC9G,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,mBAAmB,OAAO,CAAC,SAAS,WAAW,OAAO,CAAC,WAAW,aAAa,OAAO,CAAC,aAAa,cAAc,CACnH,CAAC;IACJ,CAAC,EACD,CAAC,KAAc,EAAE,EAAE;QACjB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,oCAAoC,OAAO,8CAA8C;YACzF,yCAAyC,CAC1C,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAGD,kEAAkE;AAClE,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEzF,IAAI,iBAAiB,EAAE,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,KAAK,IAAI,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "32.0.99",
3
+ "version": "32.0.103",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "generator": "battlegrid-app/server/scripts/export-mcp-skills.mjs",
3
- "contractVersion": "170.0.0",
3
+ "contractVersion": "180.2.0",
4
4
  "files": {
5
- "battlegrid-agent-management/SKILL.md": "324ef8181bfcfc99b955d9644ed543c6ab91071153d43f77ccf0a4979b896b09",
5
+ "battlegrid-agent-management/SKILL.md": "f0dde6b2f3dfbb340cd9bf785dc514f8f6c36cb1118be75df17016de0980ef56",
6
6
  "battlegrid-agent-management/references/agent-stage-examples.md": "dffcc353d61dfc7b5bb6a2b3077fc6bf8c760a34c287cafb3b59b99306f24195",
7
- "battlegrid-arena-play/SKILL.md": "15fbcbbfd52eeb255a6b82547e7e13f1e33f939d8b41b13ee8dfa802c678e44f",
7
+ "battlegrid-arena-play/SKILL.md": "f5ef9b1ac87f976cb5c5da306bd49c4c725674ee5adb856017b71a6fbbec93fd",
8
8
  "battlegrid-arena-play/references/entry-stage-examples.md": "0223f3743171ff213e943789d27590b2f65648398e85e10cd24938d5eb6af665",
9
9
  "battlegrid-market-analysis/SKILL.md": "889ba8a805585db5bfed0c72722d8b177174e8b145fb054619a5dc792cc92b09",
10
- "battlegrid-officers/SKILL.md": "eabf5f3339fc147e31ba18e9d323b170f5a7f886238d1fcd0d9fd0b1ca414ed8",
10
+ "battlegrid-officers/SKILL.md": "3bffc8f37e517a84e436141b8ee19bc6109573effdd6710a6675cf96fe72dc32",
11
11
  "battlegrid-officers/references/officer-stage-examples.md": "ef46ba26f4b36c9964b5bde95fdf98e5952c3786b77be5f136056cac792f0aec",
12
- "battlegrid-onboarding/SKILL.md": "e6b078cfdf13f6c66d2d964d2c0e6b9635f26adb164a8e0914849ef5671b9e3b",
13
- "battlegrid-radar-deployment/SKILL.md": "bffe54bb209ccaf1f6df3bf86a811e6768db0d11c52ae0c460cbe1494a459e43",
14
- "battlegrid-radar-deployment/references/arena-stage-examples.md": "65af54b67c3248c53fb8911df769ad32824e1f1f1d83ffc007b42a888d5e3076",
15
- "battlegrid-radar-deployment/references/radar-stage-examples.md": "6d898a49c42861d6efb5d1b136996e6fb64beca7cac8b8c5dba7fed17a1c3bf5",
16
- "battlegrid-strategy-authoring/SKILL.md": "f1375d1de10433161291c6c0f1c58f1abfe42bec8ecc6af6967c7086f0e77a79",
12
+ "battlegrid-onboarding/SKILL.md": "dddace95f3aad00191926a20953631a6f880915021b0302a91f2af2e1c2fc156",
13
+ "battlegrid-radar-deployment/SKILL.md": "fc170e09efe674519d8b5d2dbe3b926de6b24c5f1d8d1f90b706b2ea28a26cf0",
14
+ "battlegrid-radar-deployment/references/arena-stage-examples.md": "0987397c848738881e1d5a871b349f29389e98b2746f92491198ff1297408387",
15
+ "battlegrid-radar-deployment/references/radar-stage-examples.md": "08658ccf548bd680633e75813196e52dd19c2c30ffff37883337b017e461efcd",
16
+ "battlegrid-strategy-authoring/SKILL.md": "123acc93c01c16789c2568f8f3050ea58c8a5e693d7df1a811aa87128d0746cb",
17
17
  "battlegrid-strategy-authoring/references/strategy-stage-examples.md": "0eb41edd013f95092f5822a922c7cdd731584892ed90da575dbb65c93a1a00b6",
18
- "battlegrid-strategy-doctor/SKILL.md": "133fe2ff3e8ca634822e02c7e30032c59c8b37b0b685023bfb98d280a678b5ae",
19
- "battlegrid-strategy-examples/SKILL.md": "906a64e881f8bad0fd5fc8ec9bdb5f090c94c9b85cd80933183311ef49cc98d5",
20
- "battlegrid-strategy-examples/references/playbooks.md": "3134fde92a6ce6fecc6d610629d02450f92e47f3a1a1f33d456658267b5ce123",
18
+ "battlegrid-strategy-doctor/SKILL.md": "aa8c7b9b8dde043c1e3d027c2b370979ea18b45e0f7757e77164bd0fffbe8236",
19
+ "battlegrid-strategy-examples/SKILL.md": "6ff6df1e3778619f708575875a1ae2ae3d9f4474ae34b998e2c4b8b207f60961",
20
+ "battlegrid-strategy-examples/references/playbooks.md": "a08e5dd43a2fd3ff7b9eac7833331464edf6a533845824b80953e1e24422c48c",
21
21
  "battlegrid-strategy-examples/references/recipes.md": "e24483ec52cbcedba08ed6fa7f2a28b0fde170b2d4b1876162d180538cd789f2",
22
22
  "battlegrid-strategy-examples/references/tradingview-ports.md": "5d65b5299ddfddd80f413a0301de25861607aeb0840b89416c3f0603a4b7cb37",
23
- "battlegrid-trade-analysis/SKILL.md": "cd6f1887ba7bc756660ec992258d107cff93744e2fd45ee21a338e1ece398060",
24
- "battlegrid-trade-proposal/SKILL.md": "8d833022f753dfc5a765eca2fcd272c4f29d22b8444bc00c14ce63571646ba71"
23
+ "battlegrid-trade-analysis/SKILL.md": "67230a08ecd96aed560ea1730a7782da7f95fa6e38f7fd43d723b50e42d2b5ca",
24
+ "battlegrid-trade-proposal/SKILL.md": "c28436db3ae062081716d9f6e0a7d4ec99273c58423416a0cf3c17d86bd030a7"
25
25
  }
26
26
  }
@@ -9,7 +9,7 @@ You are commissioning and governing **soldiers**. Commander does not trade — t
9
9
  under server policy, with the player's real capital. Everything here either creates that
10
10
  authority, changes it, or takes it away.
11
11
 
12
- ## The four failures this flow exists to prevent
12
+ ## The five failures this flow exists to prevent
13
13
 
14
14
  Each one has a trigger cue. When you see the cue, you are in that failure's territory — go to the
15
15
  step named beside it before doing anything else.
@@ -19,31 +19,36 @@ step named beside it before doing anything else.
19
19
  `strategyId` is required. You never invent one, never reach for "the default", and never
20
20
  describe an agent you have not bound. → step 2.
21
21
  2. **Acting without blast radius.** *Cue: halt, archive, rebind, update, close, override — any
22
- verb that changes what the agent may do.* Every one of these has a reach the player cannot see
23
- from the verb: open positions that keep running, deployments that stop firing, materialized
24
- configuration that is replaced. State the reach from the reads BEFORE the confirm form. And a
22
+ verb that changes what the agent may do.* Each has a reach the player cannot see from the verb:
23
+ open positions that keep running, deployments that stop firing, materialized configuration that
24
+ is replaced — except an archive, which the server admits only once nothing is left to reach
25
+ (failure 5). State the reach from the reads BEFORE the call. And a
25
26
  configuration change is staged into the agent's draft and committed only on the player's
26
- explicit pick. → steps 3 and 4.
27
+ approval. → steps 3 and 4.
27
28
  3. **Mis-lever'd halt recovery.** *Cue: "why is it stopped", "start it again", any halted agent.*
28
29
  The halt reason says why the agent stopped, not what clears it. Offering an exit the server's
29
30
  resume verdict does not offer is offering something that cannot work. → step 5.
30
31
  4. **Driving strategy writes from this arc.** *Cue: the answer to an agent problem turns out to be
31
32
  "change the strategy".* You can SEE strategies here because you must name what you bind. That is
32
33
  not permission to author them. → the cross-skill rule below.
34
+ 5. **Pre-judging an archive.** *Cue: archive, retire or decommission an agent.* What blocks an
35
+ archive is the server's to say: its refusal lists every blocker with its count, paused radars
36
+ included. A blocker list you build from reads is a second copy that misses what those reads do
37
+ not count — the agents hub and the draft impact count only ENABLED radars. Never offer a clean-up
38
+ before the archive; call it and report what it refuses. → step 4.
33
39
 
34
40
  ## Cross-skill rule: strategy changes are not yours
35
41
 
36
42
  `list_strategies` and `get_strategy` are yours — the binding lookup is part of commissioning, and
37
43
  which strategy an agent is bound to is the agent's own STRATEGY_BINDING axis (step 4).
38
- `stage_strategy_draft`, `commit_strategy_draft`, `discard_strategy_draft`, `fork_strategy`,
39
- `archive_strategy`, `restore_strategy`, `save_report_section` and `remove_saved_report_section` are
40
- **not**, even though this skill's tools put them in view in the conversation.
44
+ Creating, editing, forking, archiving or restoring a strategy, and saving or removing a saved report
45
+ section, are **not**: they belong to the `strategy-authoring` skill.
41
46
 
42
47
  When the work is a strategy change, activate `strategy-authoring` and let its arc run — its
43
- evidence, spec-lock, stage-review and confirm rules bind from that point. Do not drive a strategy
44
- write from this arc's own steps. (Visibility is not authority: those tools keep their own server
45
- fences — the draft version, the revision, ownership — and this rule is about which arc's discipline
46
- governs the change, not about what the server would accept.)
48
+ evidence, spec-lock, stage-review and approval rules bind from that point. Do not drive a strategy
49
+ write from this arc's own steps, even where every tool is in view. (Visibility is not authority: a
50
+ strategy write keeps its own server fences — the draft version, the revision, ownership — and this
51
+ rule is about which arc's discipline governs the change, not about what the server would accept.)
47
52
 
48
53
  ## Sequence
49
54
 
@@ -64,7 +69,7 @@ governs the change, not about what the server would accept.)
64
69
  Read each thing once. A roster or agent you already fetched in this conversation is still in front
65
70
  of you; re-fetching costs the player the same payload twice and it rides every later step.
66
71
 
67
- ### 2. Commission: interview, restate, draft, confirm, commit
72
+ ### 2. Commission: interview, restate, draft, state, commit
68
73
 
69
74
  **No strategy, no agent.** If the player has no committed strategy they could bind, say so and
70
75
  offer the `strategy-authoring` arc first. Do not fabricate a binding, do not pick one on their
@@ -87,17 +92,18 @@ the Agents Hub as *not yet created*, and opens on the create screen, where **the
87
92
  Create creates it**. Staging creates nothing and spends no slot. The avatar is minted by the server
88
93
  at creation — there is no avatar to stage.
89
94
 
90
- **Then read it, confirm it, and commit it.** `get_agent_draft` serves the draft, its
95
+ **Then read it, state it, and commit it.** `get_agent_draft` serves the draft, its
91
96
  `draftVersion`, a `committedRevision` of `null` and the diagnostics: a missing or invalid axis is
92
97
  an error there, named, before anything is spent. Its impact is `operation: CREATE` with the
93
98
  create's capital reading: the smallest order its configuration — drafted, or the platform seed —
94
- places, against the order floor, and whether that is `feasible`. Then one confirmation naming **the
99
+ places, against the order floor, and whether that is `feasible`. Then one statement naming **the
95
100
  strategy, the model, and the budget posture** — the capital ceiling and stops the trading
96
101
  configuration will carry, or that it will take the platform seed, with the smallest order against
97
- the floor — and on the player's explicit pick call `commit_agent_draft` with the `agentId`, that
98
- read's `draftVersion`, `expectedRevision: null` and the `teamId` of the team the agent is created on.
102
+ the floor — and, on the player's approval as step 4 describes, call `commit_agent_draft` with the
103
+ `agentId`, that read's `draftVersion`, `expectedRevision: null` and the `teamId` of the team the
104
+ agent is created on.
99
105
  **The team is the commit's, never the draft's**: read `get_account_state`, which lists the player's
100
- `teams`, name the team in the confirmation — the agent trades on that team's wallet and spends its
106
+ `teams`, name the team in the statement — the agent trades on that team's wallet and spends its
101
107
  balance — and default to the Main team unless the player names another. A create commit without a
102
108
  team is refused. A reading with `feasible: false` is a create the
103
109
  commit will refuse: say so, and stage a larger ceiling or a looser configuration first. Where the player has the create screen open, their own Create is the
@@ -121,7 +127,7 @@ and not readiness — the pipeline's own refusal at the fee is the authority.
121
127
  locally in the browser, and no tool provisions it. Without one the agent can be created but cannot
122
128
  place an order — say so with the create, never after the first refused trade.
123
129
 
124
- ### 3. Stage, read, confirm, commit — every change goes through the draft
130
+ ### 3. Stage, read, state, commit — every change goes through the draft
125
131
 
126
132
  Before proposing any change to an existing agent, `get_agent_draft`. **A draft means the player is
127
133
  mid-edit in their form**, and every change you make joins it. Then:
@@ -133,22 +139,22 @@ mid-edit in their form**, and every change you make joins it. Then:
133
139
  omit keep their values. Complete stage payloads — a create, a behavior change, a rebind — are in
134
140
  `references/agent-stage-examples.md`.
135
141
  - **Read the stage's diagnostics.** Its `errors` are the refusals the commit would raise, each
136
- naming its field: fix the axis and stage again before you ask for anything.
142
+ naming its field: fix the axis and stage again before you propose a commit.
137
143
  - A staging call refused **`DRAFT_AXIS_CONTESTED`** names an axis the player changed after the
138
144
  version you named: read again and propose against what they now have — never re-send the same
139
145
  values. One refused **`DRAFT_VERSION_MOVED`** names a version the draft never reached, or a draft
140
146
  that is gone: read again. Never raise the number to get past either refusal.
141
147
  - **Commit** through step 4: read the draft with `get_agent_draft`, state the radius from its diff
142
- and impact, confirm, and on the player's explicit pick call `commit_agent_draft` with the
148
+ and impact, and on the player's approval call `commit_agent_draft` with the
143
149
  `agentId` and exactly the `draftVersion` and, as `expectedRevision`, the `committedRevision` that
144
150
  read returned, and `teamId: null`: a commit never moves an agent to another team, and an edit
145
151
  commit naming a team is refused. Moving an agent between teams is the player's step in the web
146
152
  app, allowed only once the agent is drained. The commit publishes every axis the draft holds — the player's own unsaved edits
147
- included — so the confirmation reads out the whole diff, not only your proposal. Where their form
153
+ included — so the statement reads out the whole diff, not only your proposal. Where their form
148
154
  is open, their own Save is the other way to commit it.
149
- - **Discard** only on the player's word. `get_agent_draft` is the read of what a discard destroys:
150
- tell them what the draft holds, when it was last written and from which surface, ask, and call
151
- `discard_agent_draft` with the `agentId` and the `draftVersion` you read. There is no dry run and
155
+ - **Discard** only when the player asks for it. `get_agent_draft` is the read of what a discard
156
+ destroys: tell them what the draft holds, when it was last written and from which surface, and on
157
+ their approval call `discard_agent_draft` with the `agentId` and the `draftVersion` you read. There is no dry run and
152
158
  no confirmation parameter: a draft written since your read is refused with `DRAFT_VERSION_MOVED`
153
159
  and nothing is removed — read again and show them.
154
160
 
@@ -156,25 +162,31 @@ mid-edit in their form**, and every change you make joins it. Then:
156
162
  id — the player's form is open on that agent whether or not a draft exists yet. Stage every change
157
163
  into that agent's draft, naming that id as `agentId`, create or edit alike: the create recipe's
158
164
  omitted id does not apply there, because the screen already holds the id the agent will be created
159
- at. Their own Create or Save commits it; commit it yourself only when they explicitly confirm
160
- through `ask_user`. On an existing agent a strategy change is staged into the draft's
165
+ at. Their own Create or Save commits it; you may commit it yourself, on their approval as step 4
166
+ describes. On an existing agent a strategy change is staged into the draft's
161
167
  STRATEGY_BINDING like any other axis, and lands in their Strategy step as a proposed binding. An
162
168
  axis their form rewrote after your proposal — typed over or undone — is their answer: propose it
163
169
  again only on their word.
164
170
 
165
- ### 4. Lifecycle verbs: read first, state the radius, then confirm
171
+ ### 4. Lifecycle verbs: read first, state the radius, then call on the player's approval
166
172
 
167
173
  Every one of a draft commit (an edit or a rebind), halt, resume, activate and archive runs this
168
- shape. The reads (`get_agent_budget`, `list_user_active_positions`, `get_agent_automation_status`,
169
- `get_agent_performance`, `list_agent_market_grid_decisions`) need no confirm and
170
- cost nothing but a call — do them first, always.
174
+ shape. For a draft commit, halt, resume and activate, the reads (`get_agent_budget`,
175
+ `list_user_active_positions`, `get_agent_automation_status`, `get_agent_performance`,
176
+ `list_agent_market_grid_decisions`) need no approval and cost nothing but a call — do them first,
177
+ always. An archive does not survey them: its bullet below says why.
171
178
 
172
- State the blast radius **from server fields, as numbers**, before the confirm form:
179
+ State the blast radius **from server fields, as numbers**, before the call:
173
180
 
174
181
  - **Halt** — the open-position count (they keep running; halting opens no exit) and the deployment
175
182
  coverage that stops producing entries.
176
- - **Archive** — the same, plus that the agent stops entering games and signal evaluations, that
177
- `activate_intelligence_agent` reverses it, and that the player's draft of it is kept.
183
+ - **Archive** — the server admits an archive only once the agent is drained, so a successful one
184
+ moves nothing but the agent. Say that the agent stops entering games and signal evaluations, that
185
+ `activate_intelligence_agent` reverses it, and that the player's draft of it is kept; then call
186
+ `archive_intelligence_agent` on the player's approval, as below. **Never assemble, state or offer a list of
187
+ blockers from reads, and never propose a clean-up before the call**: the agents hub and the draft
188
+ impact count only enabled radars, and no read in this arc lists the paused ones. The archive's
189
+ own refusal is the complete list — report it as below.
178
190
  - **Rebind** — a strategy change is the draft's STRATEGY_BINDING axis: stage `{ strategyId }`, read
179
191
  `get_agent_draft`, and take both strategies from its `impact.rebind` — the strategy it replaces
180
192
  (`fromStrategyName`) and the one it binds (`toStrategyName`, at `toStrategyRevision`). Say that
@@ -184,30 +196,37 @@ State the blast radius **from server fields, as numbers**, before the confirm fo
184
196
  a refusal names the coin and the condition — surface it, never retry it unchanged.
185
197
  - **Any other draft commit** — the concrete diff from the read: each field, from what, to what. And
186
198
  the read's `impact`: the presets it is deployed to (`deployedPresetCount`), its open positions,
187
- the coins its radar is armed on (`radarArmedCoinCount`), and the capital reading — its smallest
199
+ the ENABLED radar coins it is armed on (`radarArmedCoinCount` — a paused deployment still holding
200
+ the agent is not counted; the Radar & Deployment playbook's holdings read lists every one), and
201
+ the capital reading — its smallest
188
202
  order (`smallestOrderUsd`) against the order floor (`orderFloorUsd`). `feasible: false` means the
189
- agent could not place an order at those limits; say so before the form.
203
+ agent could not place an order at those limits; say so before the call.
190
204
 
191
- Then one confirmation. Act only on an explicit pick — one of the options you offered. Free text
192
- while a confirmation is open is not consent, whether it arrives in chat or in the form's own
193
- answer-in-your-own-words box — answer what they said and re-present the same confirmation.
205
+ Then make the call, **only on the player's approval**. A client that prompts the player to approve
206
+ tool calls collects it: call right after stating the radius and ask no separate confirming
207
+ question — the client asks the player, or applies the standing setting they chose, and the call runs
208
+ only if approved. A client that does not asks in its reply and waits for the player's word. Words
209
+ typed while an approval prompt is open are not approval: that call does not run, so answer what they
210
+ said and call again only when they ask. **A halt is a stop**: state its radius and call it — never
211
+ hold a stop for a question.
194
212
 
195
213
  **The numbers a write names come from the latest read** — a commit's `draftVersion` and
196
214
  `expectedRevision`, an archive's or activation's `expectedRevision`. A `CONFLICT` means the stored
197
215
  agent moved since you read it, and a commit refused `DRAFT_VERSION_MOVED` means the draft did — the
198
216
  player's form saved an edit, or another surface staged. Both carry `nextAct: get_draft`: re-read,
199
- re-state the radius against the NEW state, and re-confirm. Never retry with a bumped number — that
200
- is voting on a state you have not seen. A commit refused with `nextAct: stage` names the field the
201
- diagnostics named: fix it in a stage, read, and confirm again.
202
-
203
- **A refused archive names its own blockers.** The refusal carries typed `archiveBlockers[]` —
204
- DEPLOYED / OPEN_TRADES / ACTIVE_SESSION / RADAR_DEPLOYED, each with a count. Report each blocker and
205
- its count as the reason, and name what would clear it (un-deploy via the deployment tools, close or
206
- let the positions resolve, wait for the session to settle). RADAR_DEPLOYED counts paused radars too:
207
- a paused radar still holds the slot, so pausing does not clear it. Clearing it is a radar-deployment
208
- write, not this arc's: activate `radar-deployment` and let its arc find the coins whose radar holds
209
- the agent and un-deploy it there — a radar draft committed without the agent, or the coin's
210
- deployment deleted. Never paraphrase the refusal into "it didn't work", and never retry it unchanged.
217
+ re-state the radius against the NEW state, and call again on the player's approval. Never retry
218
+ with a bumped number — that is voting on a state you have not seen. A commit refused with
219
+ `nextAct: stage` names the field the diagnostics named: fix it in a stage, read, and state it again.
220
+
221
+ **A refused archive names its own blockers, and that list is complete.** The refusal carries typed
222
+ `archiveBlockers[]` — DEPLOYED / OPEN_TRADES / ACTIVE_SESSION / RADAR_DEPLOYED, each with a count.
223
+ Report every blocker with its count, exactly as served, as the reason, and name what would clear it
224
+ (un-deploy via the deployment tools, close or let the positions resolve, wait for the session to
225
+ settle). RADAR_DEPLOYED counts paused radars too: a paused radar still holds the slot, so pausing
226
+ does not clear it. Clearing it is the Radar & Deployment playbook's work, not this arc's: tell the
227
+ player you are handing it to the Radar & Deployment playbook, activate `radar-deployment`, and let
228
+ its holdings read and its one withdraw take the agent off every coin — never coin by coin. Never
229
+ paraphrase the refusal into "it didn't work", and never retry it unchanged.
211
230
 
212
231
  ### 5. Halt recovery: offer exactly the served verdict's exits
213
232
 
@@ -246,7 +265,7 @@ stage replaces the drafted one whole, and every agent-owned field is required in
246
265
 
247
266
  So: **read the current configuration — the draft's TRADING_CONFIG when it holds one, otherwise the
248
267
  agent's — and stage the complete object with your change applied**, then name **every changed
249
- value** in the confirm, from what to what, as the draft read's diff serves it. Never assemble a
268
+ value** before the commit, from what to what, as the draft read's diff serves it. Never assemble a
250
269
  partial config and never echo a read config back unchanged: the agent's read shape is wider than
251
270
  the axis (`strategyTimeframe` and `regimeTimeframe` are strategy-derived and refused as unknown
252
271
  keys). The commit holds the configuration to the same risk rules the agent form's Save applies.
@@ -259,7 +278,7 @@ keys). The commit holds the configuration to the same risk rules the agent form'
259
278
  is history, not the live position — and never ask the player for an order id.
260
279
  2. **Close.** `close_agent_position({ decisionId, confirm: true })` is irreversible: it submits a
261
280
  reduce-only market order and realizes the P&L. Present the position, its unrealized P&L and its
262
- protections, and confirm before calling. An exchange rejection comes back as a typed trading
281
+ protections, then call on the player's approval as step 4 describes. An exchange rejection comes back as a typed trading
263
282
  error — report it; a success means the close order was *accepted*.
264
283
  3. **Move the stop, the take-profit, or both.**
265
284
  `override_agent_protection({ decisionId, stopLossPrice?, takeProfitPrice? })` — send only the
@@ -271,11 +290,12 @@ keys). The commit holds the configuration to the same risk rules the agent form'
271
290
  only until an automated candidate beats it, a break-even that already committed never returns,
272
291
  and time decay steps from the new stop. A moved take-profit changes nothing the movers compute —
273
292
  they keep reading the signal's take-profit.
274
- 5. **Confirm before every write, and read the result leg by leg.** For each leg, name the current
293
+ 5. **State every write before the call, and read the result leg by leg.** For each leg, name the current
275
294
  level → the requested level and the direction (closer to or further from price). Say, in words,
276
295
  that the change **moves the stop outside the platform's protective ratchet** — that is exactly
277
296
  what the tool is for — and what automation does afterwards (step 4). Present the current
278
- protection first, then the requested levels, then those sentences. The answer's `success` is
297
+ protection first, then the requested levels, then those sentences, and call on the player's
298
+ approval as step 4 describes. The answer's `success` is
279
299
  true only when every requested leg committed. `level-crossed`, `mark-unavailable` and
280
300
  `rate-limited` refused the whole request and wrote nothing; on `level-crossed` report the mark
281
301
  it names and, when the player's intent is to exit now, offer `close_agent_position` — never
@@ -284,8 +304,8 @@ keys). The commit holds the configuration to the same risk rules the agent form'
284
304
  why that leg did not move — do not assume the write landed.
285
305
 
286
306
  These tools carry no consent gate on either door: they are ownership-gated and behave identically
287
- in chat and through an external MCP client. Your confirm is interaction, never authorization —
288
- never describe it as a permission check, and never add one of your own.
307
+ in chat and through an external MCP client. The player's approval of the call is the client's,
308
+ never authorization — never describe it as a permission check, and never add one of your own.
289
309
 
290
310
  ### 8. Strategy Officers are the officers skill's
291
311
 
@@ -309,8 +329,8 @@ re-create over an unread roster.
309
329
  ## Reporting discipline
310
330
 
311
331
  - Report numbers exactly as the tools return them. Never recompute, re-derive, or round.
312
- - Reads and stages are free of confirms — a stage changes only the draft. Every commit and every
313
- state verb has one, and the radius is stated before the form.
332
+ - Reads and stages need no approval — a stage changes only the draft. Every commit and every
333
+ state verb but a halt runs on the player's approval, and the radius is stated before the call.
314
334
  - A tool that fails is reported as failed, with what could not be checked. Never convert a failed
315
335
  read into "no issue".
316
336
  - Be concise. Every write on this surface points real capital somewhere, or takes it away.