pandora-cli-skills 1.1.68 → 1.1.70

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 (82) hide show
  1. package/README.md +119 -0
  2. package/README_FOR_SHARING.md +105 -11
  3. package/SKILL.md +53 -1
  4. package/benchmarks/latest/core-report.json +1704 -0
  5. package/cli/lib/agent_contract_registry.cjs +329 -7
  6. package/cli/lib/capabilities_command_service.cjs +528 -27
  7. package/cli/lib/command_executor_service.cjs +6 -2
  8. package/cli/lib/command_router.cjs +57 -0
  9. package/cli/lib/error_recovery_service.cjs +6 -0
  10. package/cli/lib/lifecycle_command_service.cjs +72 -10
  11. package/cli/lib/mcp_http_gateway_service.cjs +105 -18
  12. package/cli/lib/mcp_protocol_service.cjs +42 -4
  13. package/cli/lib/mcp_tool_registry.cjs +16 -0
  14. package/cli/lib/operation_service.cjs +40 -50
  15. package/cli/lib/operation_state_store.cjs +140 -18
  16. package/cli/lib/parsers/policy_flags.cjs +56 -0
  17. package/cli/lib/parsers/profile_flags.cjs +125 -0
  18. package/cli/lib/parsers/recipe_flags.cjs +136 -0
  19. package/cli/lib/policy_command_service.cjs +112 -0
  20. package/cli/lib/policy_evaluator_service.cjs +410 -0
  21. package/cli/lib/policy_registry_service.cjs +353 -0
  22. package/cli/lib/policy_store.cjs +161 -0
  23. package/cli/lib/profile_command_service.cjs +206 -0
  24. package/cli/lib/profile_registry_service.cjs +518 -0
  25. package/cli/lib/profile_resolver_service.cjs +606 -0
  26. package/cli/lib/profile_store.cjs +246 -0
  27. package/cli/lib/recipe_command_service.cjs +182 -0
  28. package/cli/lib/recipe_registry_service.cjs +100 -0
  29. package/cli/lib/recipe_runtime_service.cjs +337 -0
  30. package/cli/lib/schema_command_service.cjs +648 -24
  31. package/cli/lib/sdk_contract_service.cjs +321 -0
  32. package/cli/lib/shared/operation_hash.cjs +37 -0
  33. package/cli/lib/shared/policy_builtin_packs.cjs +428 -0
  34. package/cli/lib/shared/policy_constants.cjs +96 -0
  35. package/cli/lib/shared/policy_schema.cjs +632 -0
  36. package/cli/lib/shared/profile_constants.cjs +235 -0
  37. package/cli/lib/shared/profile_errors.cjs +14 -0
  38. package/cli/lib/shared/recipe_builtin_packs.cjs +104 -0
  39. package/cli/lib/shared/recipe_schema.cjs +162 -0
  40. package/cli/lib/skill_doc_registry.cjs +310 -0
  41. package/cli/pandora.cjs +63 -0
  42. package/docs/benchmarks/README.md +65 -0
  43. package/docs/benchmarks/scenario-catalog.md +41 -0
  44. package/docs/benchmarks/scorecard.md +92 -0
  45. package/docs/skills/agent-interfaces.md +121 -1
  46. package/docs/skills/agent-quickstart.md +134 -0
  47. package/docs/skills/capabilities.md +102 -1
  48. package/docs/skills/command-reference.md +27 -4
  49. package/docs/skills/mirror-operations.md +4 -0
  50. package/docs/skills/policy-profiles.md +118 -0
  51. package/docs/skills/portfolio-closeout.md +97 -0
  52. package/docs/skills/recipes.md +81 -0
  53. package/docs/skills/trading-workflows.md +147 -0
  54. package/docs/trust/release-verification.md +288 -0
  55. package/docs/trust/security-model.md +103 -0
  56. package/docs/trust/support-matrix.md +87 -0
  57. package/package.json +37 -17
  58. package/scripts/release/install_release.sh +386 -0
  59. package/sdk/generated/command-descriptors.json +18144 -0
  60. package/sdk/generated/contract-registry.json +108678 -0
  61. package/sdk/generated/index.d.ts +21 -0
  62. package/sdk/generated/index.js +42 -0
  63. package/sdk/generated/manifest.json +173 -0
  64. package/sdk/generated/mcp-tool-definitions.json +35940 -0
  65. package/sdk/generated/package.json +5 -0
  66. package/sdk/python/README.md +21 -0
  67. package/sdk/python/pandora_agent/__init__.py +41 -0
  68. package/sdk/python/pandora_agent/backends.py +463 -0
  69. package/sdk/python/pandora_agent/catalog.py +148 -0
  70. package/sdk/python/pandora_agent/client.py +108 -0
  71. package/sdk/python/pandora_agent/errors.py +5 -0
  72. package/sdk/python/pandora_agent/generated/manifest.json +178 -0
  73. package/sdk/python/pandora_agent/policies.py +251 -0
  74. package/sdk/python/pandora_agent/py.typed +0 -0
  75. package/sdk/python/pyproject.toml +23 -0
  76. package/sdk/typescript/README.md +75 -0
  77. package/sdk/typescript/generated/index.d.ts +21 -0
  78. package/sdk/typescript/generated/index.js +53 -0
  79. package/sdk/typescript/generated/manifest.json +174 -0
  80. package/sdk/typescript/index.d.ts +269 -0
  81. package/sdk/typescript/index.js +695 -0
  82. package/sdk/typescript/package.json +28 -0
package/README.md CHANGED
@@ -22,14 +22,36 @@ Node.js `>=18` required.
22
22
  - root overview and routing index
23
23
  - [`docs/skills/capabilities.md`](./docs/skills/capabilities.md)
24
24
  - capability map, canonical paths, and PollCategory mapping
25
+ - [`docs/skills/agent-quickstart.md`](./docs/skills/agent-quickstart.md)
26
+ - fastest safe bootstrap path for agents using local CLI, stdio MCP, remote MCP HTTP, and SDKs
25
27
  - [`docs/skills/command-reference.md`](./docs/skills/command-reference.md)
26
28
  - human-oriented command and flag reference; use capabilities/schema for machine authority
29
+ - [`docs/skills/trading-workflows.md`](./docs/skills/trading-workflows.md)
30
+ - discover -> quote -> trade/sell -> claim workflows
31
+ - [`docs/skills/portfolio-closeout.md`](./docs/skills/portfolio-closeout.md)
32
+ - portfolio inspection, history/export, LP exits, claim-all, and mirror closeout
27
33
  - [`docs/skills/mirror-operations.md`](./docs/skills/mirror-operations.md)
28
34
  - mirror deploy/go safety, timing, validation, sync, and closeout guidance
29
35
  - [`docs/skills/agent-interfaces.md`](./docs/skills/agent-interfaces.md)
30
36
  - schema, MCP, JSON envelopes, recovery hints, fork runtime, and error codes
37
+ - [`docs/skills/policy-profiles.md`](./docs/skills/policy-profiles.md)
38
+ - policy packs, signer profiles, gateway scopes, and preferred secret handling
39
+ - [`docs/skills/recipes.md`](./docs/skills/recipes.md)
40
+ - reusable safe workflows that compile to ordinary Pandora commands
41
+ - [`docs/benchmarks/README.md`](./docs/benchmarks/README.md)
42
+ - public benchmark harness, release-gate role, and agent-readiness interpretation
43
+ - [`docs/benchmarks/scenario-catalog.md`](./docs/benchmarks/scenario-catalog.md)
44
+ - scenario-by-scenario benchmark coverage and parity groups
45
+ - [`docs/benchmarks/scorecard.md`](./docs/benchmarks/scorecard.md)
46
+ - weighted scoring, parity failures, and benchmark output interpretation
31
47
  - [`docs/skills/legacy-launchers.md`](./docs/skills/legacy-launchers.md)
32
48
  - `launch` / `clone-bet` legacy script wrappers
49
+ - [`docs/trust/release-verification.md`](./docs/trust/release-verification.md)
50
+ - verify tarballs, checksums, attestations, SBOM, and cosign signatures before install
51
+ - [`docs/trust/security-model.md`](./docs/trust/security-model.md)
52
+ - trust boundaries, mutation controls, and secret-handling posture across CLI, MCP, gateway, and SDKs
53
+ - [`docs/trust/support-matrix.md`](./docs/trust/support-matrix.md)
54
+ - support status and guarantees for local CLI, MCP transports, SDKs, benchmarks, and packaged docs
33
55
 
34
56
  ## Quickstart
35
57
 
@@ -40,6 +62,11 @@ pandora --output json capabilities
40
62
  # schema for typed consumers
41
63
  pandora --output json schema
42
64
 
65
+ # inspect shipped policy packs and named profiles
66
+ pandora --output json policy list
67
+ pandora --output json profile list
68
+ pandora --output json recipe list
69
+
43
70
  # MCP server mode
44
71
  pandora mcp
45
72
 
@@ -58,6 +85,98 @@ pandora --output json sell --dry-run \
58
85
  pandora --output json operations list --status planned,queued,running --limit 20
59
86
  ```
60
87
 
88
+ ## Agent-first onboarding
89
+
90
+ Use this path when the consumer is an agent, not a human operator:
91
+
92
+ ```bash
93
+ # 1) discover the live contract
94
+ pandora --output json capabilities
95
+ pandora --output json schema
96
+ pandora --output json policy list
97
+ pandora --output json profile list
98
+
99
+ # 2) start local stdio MCP, or intentionally host remote MCP
100
+ pandora mcp
101
+ # or
102
+ pandora mcp http [--auth-scopes <csv>]
103
+ ```
104
+
105
+ If you are embedding the shipped SDKs instead of only consuming raw JSON:
106
+ - local SDK execution maps to `pandora mcp` over stdio
107
+ - remote SDK execution maps to intentionally hosted `pandora mcp http ...` plus a bearer token
108
+ - the shared JS contract export remains under `sdk/generated`
109
+ - the embedded TypeScript SDK keeps a local loader and manifest under `sdk/typescript/generated`, but the heavy generated JSON artifacts are shared from `sdk/generated` in the published root package
110
+ - the embedded Python SDK keeps a local manifest under `sdk/python/pandora_agent/generated` and falls back to `sdk/generated` for heavy generated JSON artifacts in the published root package
111
+
112
+ For live signing:
113
+ - current builds ship policy packs and named profiles in alpha
114
+ - current builds also ship first-party recipes in alpha via `recipe list|get|validate|run`
115
+ - inspect them with `policy list|get|lint` and `profile list|get|validate` before exposing tools to an agent
116
+ - do not assume every built-in signer profile is runtime-ready:
117
+ - implemented backends today: `read-only`, `local-env`
118
+ - planning/placeholder sample backends: `external-signer`, `local-keystore`
119
+ - current built-in ready profile: `market_observer_ro`
120
+ - current built-in pending profiles: `prod_trader_a`, `dev_keystore_operator`, `desk_signer_service`
121
+ - there is not yet a universal `--profile` selector across mutating commands, so live execution still commonly resolves signing material from env / `.env` / explicit flags
122
+ - the preferred agent pattern is a scoped MCP gateway plus signer material only on the runtime that actually executes live tools
123
+
124
+ ## Live execution setup
125
+
126
+ Only do this when the runtime will execute signing commands:
127
+
128
+ ```bash
129
+ npm run init-env
130
+ npm run doctor
131
+ ```
132
+
133
+ Populate `.env` or process env with only the fields your live workflow actually needs:
134
+ - `CHAIN_ID`
135
+ - `RPC_URL`
136
+ - `PRIVATE_KEY`
137
+ - `ORACLE`
138
+ - `FACTORY`
139
+ - `USDC`
140
+
141
+ ## SDK And Contract Export
142
+
143
+ ```bash
144
+ npm run generate:sdk-contracts
145
+ ```
146
+
147
+ Run that only from a repository checkout. The published npm package ships the generated SDK artifacts already and does not include the repo-only generator script.
148
+
149
+ - This package ships SDK alpha source/artifact surfaces:
150
+ - JavaScript/TypeScript SDK entrypoints under `sdk/typescript`
151
+ - TypeScript embedded loader/manifest under `sdk/typescript/generated`
152
+ - Python SDK source/package under `sdk/python`
153
+ - Python embedded manifest under `sdk/python/pandora_agent/generated`
154
+ - shared JS contract export under `sdk/generated`
155
+ - `capabilities.data.transports.sdk` reports `supported=true` and `status="alpha"` in current builds.
156
+ - Use `capabilities` for compact discovery, canonical tool routing, transport status, and registry digests.
157
+ - Use `schema` for the authoritative contract export: JSON envelope definitions, per-command input schemas, and `commandDescriptors`.
158
+ - In a repository checkout, `npm run generate:sdk-contracts` regenerates the shared export in `sdk/generated` and the standalone SDK-local generated copies in `sdk/typescript/generated` and `sdk/python/pandora_agent/generated`.
159
+ - In the published root package, the shared JSON contract bundle is stored once under `sdk/generated`; embedded SDK loaders/manifests route to that shared bundle instead of duplicating it.
160
+ - For embedded SDK consumers, prefer each SDK's own generated manifest/artifact entrypoints instead of hard-coding `sdk/generated`:
161
+ - TypeScript: `sdk/typescript/generated/manifest.json`
162
+ - Python: `sdk/python/pandora_agent/generated/manifest.json`
163
+ - Custom generators can still export raw `capabilities` / `schema` snapshots if they need bespoke codegen.
164
+ - Regenerate cached clients or derived types when `commandDescriptorVersion` or `registryDigest.descriptorHash` changes.
165
+ - For most agent bootstrap flows, start with `capabilities`, `schema`, `policy`, `profile`, or MCP before embedding the alpha SDK sources into your own code.
166
+ - For direct execution instead of local codegen, connect an SDK or MCP client to `pandora mcp` for local stdio, or intentionally host `pandora mcp http ...` for remote streamable HTTP execution.
167
+
168
+ ## Policy And Signer Guidance
169
+
170
+ - Prefer scoped MCP access over broad live credentials when an agent can work through `pandora mcp http`. The gateway enforces bearer-token scopes from `--auth-scopes` against each tool's declared `policyScopes`.
171
+ - Current builds ship policy packs in alpha. `capabilities.data.policyProfiles.policyPacks` reports `supported=true` and `status="alpha"`, and `pandora --output json policy list|get|lint` exposes the available built-in/user-defined packs.
172
+ - Current builds also ship named signer profiles in alpha. `capabilities.data.policyProfiles.signerProfiles` reports `supported=true` and `status="alpha"`, and `pandora --output json profile list|get|validate` exposes sample/user profiles plus readiness metadata.
173
+ - `capabilities.data.policyProfiles.signerProfiles` also exposes `implementedBackends`, `placeholderBackends`, `readyBuiltinIds`, and `pendingBuiltinIds`.
174
+ - In current builds, treat only `market_observer_ro` as built-in runtime-ready by default unless `profile get` reports otherwise in your runtime.
175
+ - There is not yet a universal `--profile` selector across mutating commands. Live execution still commonly resolves secrets from process env, `.env`, or explicit flags while profile-directed execution rolls out.
176
+ - The built-in read-only pair is `research-only` plus `market_observer_ro`. Use that pattern for discovery, schema inspection, validation, and other non-signing agent workflows before granting write access.
177
+ - If you host `pandora mcp http` without `--auth-token` or `--auth-token-file`, Pandora generates a bearer token at `~/.pandora/mcp-http/auth-token`. If the runtime cannot resolve a home directory, pass one of those flags explicitly.
178
+ - `--private-key <hex>` remains supported because the live parser surface still accepts it, but use it as a manual fallback rather than the default operator pattern.
179
+
61
180
  ## Mirror safety summary
62
181
  - `mirror plan|deploy|go` use a sports-aware suggested `targetTimestamp`; they do not assume a generic `+1h` buffer.
63
182
  - Use `--target-timestamp <unix|iso>` only when you intentionally need to override the suggested close time.
@@ -1,18 +1,25 @@
1
1
  # Pandora CLI & Skills — Shareable Package
2
2
 
3
- Sanitized, shareable copy of the Pandora CLI docs and package metadata.
3
+ Sanitized, shareable copy of the Pandora CLI docs, SDK surfaces, and package metadata.
4
4
 
5
5
  ## Included
6
6
  - `SKILL.md`
7
7
  - `README.md`
8
8
  - `README_FOR_SHARING.md`
9
9
  - `docs/skills/*.md`
10
+ - `docs/trust/*.md`
11
+ - `docs/benchmarks/**`
12
+ - `benchmarks/latest/core-report.json`
13
+ - `sdk/generated/*`
14
+ - `sdk/typescript/**`
15
+ - `sdk/python/**`
10
16
  - `package.json`
11
17
  - `package-lock.json`
12
18
  - `.gitignore`
13
19
  - `scripts/.env.example`
14
20
  - `scripts/create_market_launcher.ts`
15
21
  - `scripts/create_polymarket_clone_and_bet.ts`
22
+ - `scripts/release/install_release.sh`
16
23
  - `references/creation-script.md`
17
24
  - `references/contracts.md`
18
25
  - `references/checklist.md`
@@ -23,27 +30,49 @@ Sanitized, shareable copy of the Pandora CLI docs and package metadata.
23
30
  - local runtime secrets
24
31
  - `node_modules`
25
32
 
33
+ Packaging note:
34
+ - The published npm package ships the latest benchmark report and trust/reference docs.
35
+ - The full benchmark harness, CI workflows, and release-maintainer scripts remain repository surfaces rather than installed runtime baggage.
36
+
26
37
  ## Setup
27
38
  Prerequisite: Node.js `>=18`.
28
39
 
29
40
  ```bash
30
41
  npm install
31
- npm run init-env
32
- npm run doctor
33
- npm run build
42
+ node cli/pandora.cjs --output json capabilities
43
+ node cli/pandora.cjs --output json schema
44
+ node cli/pandora.cjs --output json policy list
45
+ node cli/pandora.cjs --output json profile list
46
+ node cli/pandora.cjs --output json recipe list
34
47
  node cli/pandora.cjs help
35
48
  ```
36
49
 
37
50
  Operation tracking:
38
51
  - use `pandora --output json operations list --status planned,queued,running --limit 20` to inspect persisted mutable-operation records
39
52
 
40
- Fill `scripts/.env` with:
41
- - `CHAIN_ID`
42
- - `PRIVATE_KEY`
43
- - `RPC_URL`
44
- - `ORACLE`
45
- - `FACTORY`
46
- - `USDC`
53
+ Preferred agent path:
54
+ - start with `capabilities`, `schema`, `policy list`, `profile list`, and `recipe list`; none of those require signer material
55
+ - use `pandora mcp` for local stdio tool execution
56
+ - use `pandora mcp http --auth-scopes ...` when you intentionally want a remote MCP gateway
57
+ - for a remote read-only planning token that covers `scan`, `quote`, `portfolio`, `mirror plan`, `sports create plan`, and `operations list|get`, use `capabilities:read,contracts:read,documentation:read,policy:read,profile:read,operations:read,scan:read,quote:read,portfolio:read,mirror:read,sports:read,network:indexer,network:rpc,network:polymarket,network:sports`
58
+ - add `operations:write` only when the remote runtime needs `operations cancel|close`; over MCP those mutating calls also require `intent.execute=true`
59
+ - give the agent the minimum bearer-token scopes it needs
60
+ - only provision signing secrets on the runtime that will actually execute live mutating tools
61
+ - if you are embedding the shipped SDKs, use each package's own generated artifacts:
62
+ - `sdk/typescript/generated` for the embedded TypeScript loader/manifest
63
+ - `sdk/python/pandora_agent/generated` for the embedded Python manifest
64
+ - `sdk/generated` for the shared JS contract export
65
+
66
+ Live execution setup:
67
+ - run `npm run init-env`
68
+ - run `npm run doctor`
69
+ - then, only if this local process will sign live transactions, populate `.env` or process env with only the fields your live workflow needs:
70
+ - `CHAIN_ID`
71
+ - `PRIVATE_KEY`
72
+ - `RPC_URL`
73
+ - `ORACLE`
74
+ - `FACTORY`
75
+ - `USDC`
47
76
 
48
77
  Optional live Polymarket hedge env:
49
78
  - `POLYMARKET_PRIVATE_KEY`
@@ -53,19 +82,84 @@ Optional live Polymarket hedge env:
53
82
  - `POLYMARKET_API_PASSPHRASE`
54
83
  - `POLYMARKET_HOST`
55
84
 
85
+ Credential handling note:
86
+ - Current builds ship policy packs and named profiles in alpha via `policy list|get|lint` and `profile list|get|validate`.
87
+ - Current builds also ship first-party recipes in alpha via `recipe list|get|validate|run`.
88
+ - Current live command execution still commonly resolves signer secrets from flags/env during rollout.
89
+ - Do not assume every built-in signer profile is runtime-ready:
90
+ - implemented backends today: `read-only`, `local-env`
91
+ - planning/placeholder sample backends: `external-signer`, `local-keystore`
92
+ - current built-in ready profile: `market_observer_ro`
93
+ - current built-in pending profiles: `prod_trader_a`, `dev_keystore_operator`, `desk_signer_service`
94
+ - Prefer process env, `.env`, or your own secret-manager wrapper that materializes those env vars before launching Pandora.
95
+ - Avoid putting raw `--private-key` values on the command line unless you explicitly need a one-off manual override.
96
+ - There is not yet a universal `--profile` selector across mutating commands.
97
+
56
98
  ## Documentation map
57
99
  - [`SKILL.md`](./SKILL.md)
58
100
  - root overview and doc router
59
101
  - [`docs/skills/capabilities.md`](./docs/skills/capabilities.md)
60
102
  - capability map and PollCategory guidance
103
+ - [`docs/skills/agent-quickstart.md`](./docs/skills/agent-quickstart.md)
104
+ - fastest safe bootstrap path for external agents
61
105
  - [`docs/skills/command-reference.md`](./docs/skills/command-reference.md)
62
106
  - human-oriented command and flag reference; use capabilities/schema for machine authority
107
+ - [`docs/skills/trading-workflows.md`](./docs/skills/trading-workflows.md)
108
+ - discover -> quote -> trade/sell -> claim workflows
109
+ - [`docs/skills/portfolio-closeout.md`](./docs/skills/portfolio-closeout.md)
110
+ - portfolio inspection, LP exits, claim-all, mirror closeout, and operation tracking
63
111
  - [`docs/skills/mirror-operations.md`](./docs/skills/mirror-operations.md)
64
112
  - mirror safety, validation, sync, and closeout workflow
65
113
  - [`docs/skills/agent-interfaces.md`](./docs/skills/agent-interfaces.md)
66
114
  - schema, MCP, JSON envelopes, recovery hints, and runtime contracts
115
+ - [`docs/skills/policy-profiles.md`](./docs/skills/policy-profiles.md)
116
+ - policy packs, signer profiles, gateway scopes, and secret-handling guidance
117
+ - [`docs/skills/recipes.md`](./docs/skills/recipes.md)
118
+ - reusable safe workflows that compile to ordinary Pandora commands
67
119
  - [`docs/skills/legacy-launchers.md`](./docs/skills/legacy-launchers.md)
68
120
  - legacy `launch` / `clone-bet` notes
121
+ - [`docs/trust/release-verification.md`](./docs/trust/release-verification.md)
122
+ - verify tarballs, checksums, attestations, SBOM, and cosign signatures before install
123
+ - [`docs/trust/security-model.md`](./docs/trust/security-model.md)
124
+ - trust boundaries, mutation controls, and secret-handling posture across CLI, MCP, gateway, and SDKs
125
+ - [`docs/trust/support-matrix.md`](./docs/trust/support-matrix.md)
126
+ - support status and guarantees for local CLI, MCP transports, SDKs, benchmarks, and packaged docs
127
+
128
+ ## SDK And Contract Export
129
+
130
+ ```bash
131
+ npm run generate:sdk-contracts
132
+ ```
133
+
134
+ Run that only from a repository checkout. The published npm package already includes the generated SDK artifacts and does not ship the repo-only generator script.
135
+
136
+ - This package ships SDK alpha source/artifact surfaces:
137
+ - JavaScript/TypeScript SDK entrypoints under `sdk/typescript`
138
+ - TypeScript embedded loader/manifest under `sdk/typescript/generated`
139
+ - Python SDK source/package under `sdk/python`
140
+ - Python embedded manifest under `sdk/python/pandora_agent/generated`
141
+ - shared JS contract export under `sdk/generated`
142
+ - `capabilities.data.transports.sdk` reports `supported=true` and `status="alpha"` in current builds.
143
+ - Export `capabilities` for compact routing, transport, and digest metadata.
144
+ - Export `schema` for authoritative JSON Schema definitions and per-command descriptors.
145
+ - In a repository checkout, `npm run generate:sdk-contracts` regenerates the shared export in `sdk/generated` plus the standalone SDK-local generated copies in `sdk/typescript/generated` and `sdk/python/pandora_agent/generated`.
146
+ - In the published root package, the shared JSON contract bundle is stored once under `sdk/generated`; embedded SDK loaders/manifests route to that shared bundle instead of duplicating it.
147
+ - SDK consumers should prefer the package-local manifests/artifacts they ship with:
148
+ - TypeScript: `sdk/typescript/generated/manifest.json`
149
+ - Python: `sdk/python/pandora_agent/generated/manifest.json`
150
+ - Raw `capabilities` / `schema` exports remain available for custom generators.
151
+ - Rebuild any generated client layer when `commandDescriptorVersion` or `registryDigest.descriptorHash` changes.
152
+ - Use `pandora mcp` for local stdio SDK/MCP execution, or intentionally hosted `pandora mcp http ...` for remote streamable HTTP execution instead of local code generation.
153
+
154
+ ## Policy And Profile Status
155
+
156
+ - `pandora mcp http` enforces bearer-token scopes from `--auth-scopes` against each tool's declared `policyScopes`.
157
+ - `capabilities.data.policyProfiles.policyPacks` reports `supported=true` and `status="alpha"` in current builds. Use `policy list|get|lint` to inspect the shipped packs.
158
+ - `capabilities.data.policyProfiles.signerProfiles` reports `supported=true` and `status="alpha"` in current builds. Use `profile list|get|validate` to inspect the shipped/sample profiles and readiness metadata.
159
+ - The signer-profile payload also exposes `implementedBackends`, `placeholderBackends`, `readyBuiltinIds`, and `pendingBuiltinIds`.
160
+ - The built-in read-only bootstrap pair is `research-only` plus `market_observer_ro`.
161
+ - Do not assume a global `--policy` or `--profile` selector exists across mutating commands yet.
162
+ - For current live automation, prefer scoped gateway tokens plus env-based signer injection over raw command-line private keys.
69
163
 
70
164
  ## Mirror operator guidance
71
165
  - `mirror plan|deploy|go` use a sports-aware suggested `targetTimestamp`; they do not rely on a generic `+1h` rule.
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pandora-cli-skills
3
3
  summary: Index and operator guide for Pandora CLI capabilities, mirror operations, and agent-native interfaces.
4
- version: 1.1.68
4
+ version: 1.1.70
5
5
  ---
6
6
 
7
7
  # Pandora CLI & Skills
@@ -13,14 +13,36 @@ Start here, then open the smallest scoped doc that matches the task:
13
13
 
14
14
  - [`docs/skills/capabilities.md`](./docs/skills/capabilities.md)
15
15
  - command families, canonical paths, use-case routing, and PollCategory mapping
16
+ - [`docs/skills/agent-quickstart.md`](./docs/skills/agent-quickstart.md)
17
+ - smallest safe bootstrap for agents using local CLI, stdio MCP, remote MCP HTTP, or SDK consumers
16
18
  - [`docs/skills/command-reference.md`](./docs/skills/command-reference.md)
17
19
  - human-oriented command and flag reference, sports matrix, mirror subcommands, and quant/model detail; use capabilities/schema for machine authority
20
+ - [`docs/skills/trading-workflows.md`](./docs/skills/trading-workflows.md)
21
+ - canonical discover -> quote -> buy/sell -> claim flows, plus arbitrage routing
22
+ - [`docs/skills/portfolio-closeout.md`](./docs/skills/portfolio-closeout.md)
23
+ - portfolio inspection, history/export, LP exits, claim-all, operations, and mirror closeout
18
24
  - [`docs/skills/mirror-operations.md`](./docs/skills/mirror-operations.md)
19
25
  - mirror timing, validation, independent-source rules, deploy/go workflow, sync, and closeout guidance
20
26
  - [`docs/skills/agent-interfaces.md`](./docs/skills/agent-interfaces.md)
21
27
  - schema, MCP, JSON envelopes, recovery hints, fork runtime, streams, and error codes
28
+ - [`docs/skills/policy-profiles.md`](./docs/skills/policy-profiles.md)
29
+ - policy packs, signer profiles, gateway scopes, and preferred secret-handling guidance
30
+ - [`docs/skills/recipes.md`](./docs/skills/recipes.md)
31
+ - reusable safe workflows that compile to ordinary Pandora commands with policy/profile validation
32
+ - [`docs/benchmarks/README.md`](./docs/benchmarks/README.md)
33
+ - benchmark harness overview, release-gate role, and agent-readiness framing
34
+ - [`docs/benchmarks/scenario-catalog.md`](./docs/benchmarks/scenario-catalog.md)
35
+ - scenario-by-scenario benchmark coverage and parity groups
36
+ - [`docs/benchmarks/scorecard.md`](./docs/benchmarks/scorecard.md)
37
+ - weighted scoring, parity failures, and interpretation of benchmark output
22
38
  - [`docs/skills/legacy-launchers.md`](./docs/skills/legacy-launchers.md)
23
39
  - `launch` / `clone-bet` legacy script wrappers and how they differ from mirror flows
40
+ - [`docs/trust/release-verification.md`](./docs/trust/release-verification.md)
41
+ - release verification flow for checksums, provenance attestations, SBOM, and cosign signatures
42
+ - [`docs/trust/security-model.md`](./docs/trust/security-model.md)
43
+ - trust boundaries, mutation controls, secret handling, and release posture
44
+ - [`docs/trust/support-matrix.md`](./docs/trust/support-matrix.md)
45
+ - support guarantees and limits for local CLI, MCP transports, SDKs, benchmarks, and packaged docs
24
46
 
25
47
  ## Critical safety rules
26
48
  - `mirror plan|deploy|go` do **not** assume a generic `+1h` close buffer. They use a sports-aware suggested `targetTimestamp`; use `--target-timestamp <unix|iso>` only when intentionally overriding that suggestion.
@@ -30,20 +52,45 @@ Start here, then open the smallest scoped doc that matches the task:
30
52
  - CLI mirror execute reruns use `--validation-ticket <ticket>`. MCP execute/live reruns use `agentPreflight = { validationTicket, validationDecision: "PASS", validationSummary }`.
31
53
  - `sports create run` does not expose a CLI `--validation-ticket`; agent-controlled execute uses `agentPreflight` / `PANDORA_AGENT_PREFLIGHT`.
32
54
  - `launch` / `clone-bet` still expose `--target-timestamp-offset-hours`; that legacy script flag is **not** the mirror timing model.
55
+ - Prefer policy-scoped MCP access and the shipped read-only policy/profile artifacts over raw `--private-key` when operating live flows. Policy packs and named profiles are now shipped in alpha via `policy` / `profile`, but current CLI execution still commonly resolves secrets from flags/env and does not yet expose a universal `--profile` selector across mutating commands.
56
+ - Do not assume every built-in signer profile is execution-ready. Current built-in runtime-ready profile: `market_observer_ro`. Built-in pending profiles: `prod_trader_a`, `dev_keystore_operator`, `desk_signer_service`. Implemented backends today: `read-only`, `local-env`. Placeholder planning backends: `external-signer`, `local-keystore`.
33
57
 
34
58
  ## Capability routing
35
59
  - Machine-first discovery:
36
60
  - run `pandora --output json capabilities` for the compact runtime digest
37
61
  - run `pandora --output json schema` for the full contract surface
62
+ - run `pandora --output json policy list` to inspect shipped policy packs
63
+ - run `pandora --output json profile list` to inspect shipped profiles, `runtimeReady`, `resolutionStatus`, and backend readiness metadata
64
+ - when exposing Pandora to external agents, start with `capabilities/schema`, then intentionally host `pandora mcp http --auth-scopes ...`, then provision signing secrets only on that runtime if a selected tool actually requires them
65
+ - in a repository checkout, use `npm run generate:sdk-contracts` when regenerating the shared JS export in `sdk/generated` plus the standalone SDK-local generated copies in `sdk/typescript/generated` and `sdk/python/pandora_agent/generated`
66
+ - SDK alpha source/artifact surfaces are already shipped in this build under `sdk/typescript`, `sdk/python`, and `sdk/generated`
67
+ - in the published root package, the shared JSON contract bundle lives once under `sdk/generated`; the embedded TypeScript/Python SDK loaders keep their own manifests and route heavy generated artifacts to the shared bundle
38
68
  - run `pandora mcp http ...` only when intentionally hosting the remote HTTP MCP gateway for external agents
39
69
  - Discovery, scanning, and market lookup:
40
70
  - open [`docs/skills/capabilities.md`](./docs/skills/capabilities.md)
71
+ - First-time agent bootstrap:
72
+ - open [`docs/skills/agent-quickstart.md`](./docs/skills/agent-quickstart.md)
41
73
  - Exact flags for a command family:
42
74
  - open [`docs/skills/command-reference.md`](./docs/skills/command-reference.md)
75
+ - Buy/sell/claim/arbitrage workflows:
76
+ - open [`docs/skills/trading-workflows.md`](./docs/skills/trading-workflows.md)
77
+ - Portfolio inspection, LP exits, and closeout:
78
+ - open [`docs/skills/portfolio-closeout.md`](./docs/skills/portfolio-closeout.md)
43
79
  - Mirror deployment, verification, sync, or closeout:
44
80
  - open [`docs/skills/mirror-operations.md`](./docs/skills/mirror-operations.md)
45
81
  - Agent, MCP, schema, JSON output, or recovery contracts:
46
82
  - open [`docs/skills/agent-interfaces.md`](./docs/skills/agent-interfaces.md)
83
+ - use it for policy scope behavior, gateway auth guidance, and signer-profile status
84
+ - Policy packs, signer profiles, or gateway scope design:
85
+ - open [`docs/skills/policy-profiles.md`](./docs/skills/policy-profiles.md)
86
+ - Reusable workflows and safe recipe execution:
87
+ - open [`docs/skills/recipes.md`](./docs/skills/recipes.md)
88
+ - Benchmark methodology, scenarios, or scorecards:
89
+ - open [`docs/benchmarks/README.md`](./docs/benchmarks/README.md)
90
+ - then [`docs/benchmarks/scenario-catalog.md`](./docs/benchmarks/scenario-catalog.md) or [`docs/benchmarks/scorecard.md`](./docs/benchmarks/scorecard.md) as needed
91
+ - Release verification, support matrix, or security posture:
92
+ - open [`docs/trust/release-verification.md`](./docs/trust/release-verification.md)
93
+ - then [`docs/trust/support-matrix.md`](./docs/trust/support-matrix.md) or [`docs/trust/security-model.md`](./docs/trust/security-model.md) as needed
47
94
  - Manual market launcher scripts:
48
95
  - open [`docs/skills/legacy-launchers.md`](./docs/skills/legacy-launchers.md)
49
96
 
@@ -65,6 +112,11 @@ Start here, then open the smallest scoped doc that matches the task:
65
112
  - Agent-native:
66
113
  - `pandora --output json capabilities`
67
114
  - `pandora --output json schema`
115
+ - `pandora --output json policy list|get|lint`
116
+ - `pandora --output json profile list|get|validate`
117
+ - `pandora --output json recipe list|get|validate|run`
118
+ - use `capabilities` for compact discovery/routing and `schema` for authoritative contract export when generating client types
119
+ - for embedded SDK consumers, load the SDK-local manifest entrypoints first rather than assuming every language reads directly from `sdk/generated`
68
120
  - `pandora mcp`
69
121
  - `pandora mcp http ...` only for remote gateway hosting, not routine discovery
70
122
  - `pandora operations get|list|cancel|close`