@senpi-ai/runtime 3.0.70 → 3.0.78
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 +76 -2
- package/dist/cli/deploy-render.d.ts +93 -0
- package/dist/cli/deploy-render.d.ts.map +1 -0
- package/dist/cli/deploy-render.js +438 -0
- package/dist/cli/deploy-render.js.map +1 -0
- package/dist/cli/guide-commands.d.ts.map +1 -1
- package/dist/cli/guide-commands.js +94 -9
- package/dist/cli/guide-commands.js.map +1 -1
- package/dist/cli/senpi-commands.d.ts +6 -1
- package/dist/cli/senpi-commands.d.ts.map +1 -1
- package/dist/cli/senpi-commands.js +290 -41
- package/dist/cli/senpi-commands.js.map +1 -1
- package/dist/cli/validate-command.d.ts.map +1 -1
- package/dist/cli/validate-command.js +10 -1
- package/dist/cli/validate-command.js.map +1 -1
- package/dist/deploy/deadlines.d.ts +107 -0
- package/dist/deploy/deadlines.d.ts.map +1 -0
- package/dist/deploy/deadlines.js +139 -0
- package/dist/deploy/deadlines.js.map +1 -0
- package/dist/deploy/error-text.d.ts +25 -0
- package/dist/deploy/error-text.d.ts.map +1 -0
- package/dist/deploy/error-text.js +42 -0
- package/dist/deploy/error-text.js.map +1 -0
- package/dist/deploy/funding.d.ts +125 -0
- package/dist/deploy/funding.d.ts.map +1 -0
- package/dist/deploy/funding.js +268 -0
- package/dist/deploy/funding.js.map +1 -0
- package/dist/deploy/install-gate-runner.d.ts +12 -0
- package/dist/deploy/install-gate-runner.d.ts.map +1 -0
- package/dist/deploy/install-gate-runner.js +17 -0
- package/dist/deploy/install-gate-runner.js.map +1 -0
- package/dist/deploy/job.d.ts +215 -0
- package/dist/deploy/job.d.ts.map +1 -0
- package/dist/deploy/job.js +484 -0
- package/dist/deploy/job.js.map +1 -0
- package/dist/deploy/messages.d.ts +603 -0
- package/dist/deploy/messages.d.ts.map +1 -0
- package/dist/deploy/messages.js +1388 -0
- package/dist/deploy/messages.js.map +1 -0
- package/dist/deploy/min-budget.d.ts +68 -0
- package/dist/deploy/min-budget.d.ts.map +1 -0
- package/dist/deploy/min-budget.js +297 -0
- package/dist/deploy/min-budget.js.map +1 -0
- package/dist/deploy/orchestrator.d.ts +314 -0
- package/dist/deploy/orchestrator.d.ts.map +1 -0
- package/dist/deploy/orchestrator.js +2171 -0
- package/dist/deploy/orchestrator.js.map +1 -0
- package/dist/deploy/package.d.ts +228 -0
- package/dist/deploy/package.d.ts.map +1 -0
- package/dist/deploy/package.js +542 -0
- package/dist/deploy/package.js.map +1 -0
- package/dist/deploy/proof-gate.d.ts +86 -0
- package/dist/deploy/proof-gate.d.ts.map +1 -0
- package/dist/deploy/proof-gate.js +278 -0
- package/dist/deploy/proof-gate.js.map +1 -0
- package/dist/deploy/python-float.d.ts +34 -0
- package/dist/deploy/python-float.d.ts.map +1 -0
- package/dist/deploy/python-float.js +46 -0
- package/dist/deploy/python-float.js.map +1 -0
- package/dist/deploy/recheck-commands.d.ts +50 -0
- package/dist/deploy/recheck-commands.d.ts.map +1 -0
- package/dist/deploy/recheck-commands.js +77 -0
- package/dist/deploy/recheck-commands.js.map +1 -0
- package/dist/deploy/register.d.ts +101 -0
- package/dist/deploy/register.d.ts.map +1 -0
- package/dist/deploy/register.js +714 -0
- package/dist/deploy/register.js.map +1 -0
- package/dist/deploy/taxonomy.d.ts +43 -0
- package/dist/deploy/taxonomy.d.ts.map +1 -0
- package/dist/deploy/taxonomy.js +59 -0
- package/dist/deploy/taxonomy.js.map +1 -0
- package/dist/dsl/events/handlers.d.ts +6 -4
- package/dist/dsl/events/handlers.d.ts.map +1 -1
- package/dist/dsl/events/handlers.js +29 -17
- package/dist/dsl/events/handlers.js.map +1 -1
- package/dist/dsl/events/initial-state.d.ts +21 -11
- package/dist/dsl/events/initial-state.d.ts.map +1 -1
- package/dist/dsl/events/initial-state.js +6 -0
- package/dist/dsl/events/initial-state.js.map +1 -1
- package/dist/dsl/notifications/floor-store.d.ts.map +1 -1
- package/dist/dsl/notifications/floor-store.js +34 -5
- package/dist/dsl/notifications/floor-store.js.map +1 -1
- package/dist/dsl/notifications/formatter.d.ts.map +1 -1
- package/dist/dsl/notifications/formatter.js +13 -5
- package/dist/dsl/notifications/formatter.js.map +1 -1
- package/dist/dsl/notifications/index.d.ts +18 -1
- package/dist/dsl/notifications/index.d.ts.map +1 -1
- package/dist/dsl/notifications/index.js +78 -11
- package/dist/dsl/notifications/index.js.map +1 -1
- package/dist/dsl/notifications/stop-raise-debounce.d.ts +113 -0
- package/dist/dsl/notifications/stop-raise-debounce.d.ts.map +1 -0
- package/dist/dsl/notifications/stop-raise-debounce.js +223 -0
- package/dist/dsl/notifications/stop-raise-debounce.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +467 -222
- package/dist/index.js.map +1 -1
- package/dist/runtime/env-resolve.d.ts +13 -0
- package/dist/runtime/env-resolve.d.ts.map +1 -1
- package/dist/runtime/env-resolve.js +14 -1
- package/dist/runtime/env-resolve.js.map +1 -1
- package/dist/runtime/runtime-descriptor.d.ts +37 -0
- package/dist/runtime/runtime-descriptor.d.ts.map +1 -0
- package/dist/runtime/runtime-descriptor.js +163 -0
- package/dist/runtime/runtime-descriptor.js.map +1 -0
- package/dist/runtime/runtime-schema.d.ts +100 -100
- package/dist/runtime/strategy-registry.d.ts +8 -0
- package/dist/runtime/strategy-registry.d.ts.map +1 -1
- package/dist/runtime/strategy-registry.js +14 -1
- package/dist/runtime/strategy-registry.js.map +1 -1
- package/dist/runtime-api/intake/intake-mount.d.ts.map +1 -1
- package/dist/runtime-api/intake/intake-mount.js +7 -4
- package/dist/runtime-api/intake/intake-mount.js.map +1 -1
- package/dist/scanners/external/scaffold/preflight.py +39 -0
- package/dist/scanners/implementations/market-regime.d.ts +1 -1
- package/dist/senpi/client.d.ts +58 -4
- package/dist/senpi/client.d.ts.map +1 -1
- package/dist/senpi/client.js +262 -18
- package/dist/senpi/client.js.map +1 -1
- package/dist/senpi/strategy-status.d.ts +32 -0
- package/dist/senpi/strategy-status.d.ts.map +1 -0
- package/dist/senpi/strategy-status.js +70 -0
- package/dist/senpi/strategy-status.js.map +1 -0
- package/dist/senpi/types.d.ts +65 -3
- package/dist/senpi/types.d.ts.map +1 -1
- package/dist/skills-manager/manifest.js +3 -3
- package/dist/skills-manager/skills-manifest.json +3 -3
- package/dist/telemetry/metrics.d.ts +30 -0
- package/dist/telemetry/metrics.d.ts.map +1 -1
- package/dist/telemetry/metrics.js +72 -0
- package/dist/telemetry/metrics.js.map +1 -1
- package/dist/types/dsl/index.d.ts +14 -0
- package/dist/types/dsl/index.d.ts.map +1 -1
- package/dist/types/strategy.d.ts +9 -1
- package/dist/types/strategy.d.ts.map +1 -1
- package/dist/universe/package-universe.d.ts +97 -0
- package/dist/universe/package-universe.d.ts.map +1 -0
- package/dist/universe/package-universe.js +304 -0
- package/dist/universe/package-universe.js.map +1 -0
- package/dist/validate/codes.d.ts +30 -0
- package/dist/validate/codes.d.ts.map +1 -1
- package/dist/validate/codes.js +74 -1
- package/dist/validate/codes.js.map +1 -1
- package/dist/validate/index.d.ts +1 -1
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js.map +1 -1
- package/dist/validate/install-gate.d.ts.map +1 -1
- package/dist/validate/install-gate.js +10 -2
- package/dist/validate/install-gate.js.map +1 -1
- package/dist/validate/live-instruments.d.ts +44 -0
- package/dist/validate/live-instruments.d.ts.map +1 -0
- package/dist/validate/live-instruments.js +71 -0
- package/dist/validate/live-instruments.js.map +1 -0
- package/dist/validate/live-stage.d.ts +8 -0
- package/dist/validate/live-stage.d.ts.map +1 -1
- package/dist/validate/live-stage.js +87 -18
- package/dist/validate/live-stage.js.map +1 -1
- package/dist/validate/package-gates-stage.d.ts +61 -0
- package/dist/validate/package-gates-stage.d.ts.map +1 -0
- package/dist/validate/package-gates-stage.js +215 -0
- package/dist/validate/package-gates-stage.js.map +1 -0
- package/dist/validate/proof.d.ts +11 -1
- package/dist/validate/proof.d.ts.map +1 -1
- package/dist/validate/proof.js +10 -6
- package/dist/validate/proof.js.map +1 -1
- package/dist/validate/recipe-checks.d.ts.map +1 -1
- package/dist/validate/recipe-checks.js +6 -4
- package/dist/validate/recipe-checks.js.map +1 -1
- package/dist/validate/run.d.ts +29 -1
- package/dist/validate/run.d.ts.map +1 -1
- package/dist/validate/run.js +65 -6
- package/dist/validate/run.js.map +1 -1
- package/dist/validate/target.d.ts +41 -0
- package/dist/validate/target.d.ts.map +1 -1
- package/dist/validate/target.js +192 -16
- package/dist/validate/target.js.map +1 -1
- package/dist/validate/taxonomy-finding.d.ts +22 -0
- package/dist/validate/taxonomy-finding.d.ts.map +1 -0
- package/dist/validate/taxonomy-finding.js +25 -0
- package/dist/validate/taxonomy-finding.js.map +1 -0
- package/dist/validate/universe-stage.d.ts +71 -0
- package/dist/validate/universe-stage.d.ts.map +1 -0
- package/dist/validate/universe-stage.js +165 -0
- package/dist/validate/universe-stage.js.map +1 -0
- package/dist/validate/wallet-binding-stage.d.ts +44 -0
- package/dist/validate/wallet-binding-stage.d.ts.map +1 -0
- package/dist/validate/wallet-binding-stage.js +92 -0
- package/dist/validate/wallet-binding-stage.js.map +1 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The live-universe instrument check (S-1, user rulings 2026-08-07: real invariants live outside
|
|
3
|
+
* skills). A hardcoded ticker that is not a live Hyperliquid instrument does not error at deploy:
|
|
4
|
+
* `market_get_asset_data` 500s, the scan skips the name, and the strategy silently trades
|
|
5
|
+
* nothing (the `xyz:NASDAQ` incident — the real index is `xyz:XYZ100`).
|
|
6
|
+
*
|
|
7
|
+
* It lives outside `deploy/` because it has TWO call sites and neither owns it: `senpi deploy`
|
|
8
|
+
* calls it pre-money (`runDeploy`), and `senpi validate` calls it at its LIVE depth
|
|
9
|
+
* (`validate/universe-stage.ts`), so an author learns a name is dead before funding rather than at
|
|
10
|
+
* the deploy refusal. Live, not static, because the verdict needs a live read and validate's
|
|
11
|
+
* offline depths do no I/O at all — and nothing is lost by waiting, since a proof requires a live
|
|
12
|
+
* run and deploy refuses a package with no proof. The two calls are not nested: deploy keeps its
|
|
13
|
+
* own because `strategy.yaml` is not in the proof fingerprint, so a `catalog.assets` edit is
|
|
14
|
+
* exactly the change a proof cannot see.
|
|
15
|
+
*
|
|
16
|
+
* TWO LAYERS, deliberately:
|
|
17
|
+
* - `checkPackageUniverse(pkg, deps)` is the REUSABLE contract: pure over an injected universe
|
|
18
|
+
* source, which it never lets throw (a failing source becomes the `unavailable` status), and its
|
|
19
|
+
* result carries every fact a renderer needs. Both consumers render FROM the result — they must
|
|
20
|
+
* not re-derive deadness, and the read-only one must not reuse the deploy builders below.
|
|
21
|
+
* - `buildUniverse*` are DEPLOY-path renderers: the money language ("Nothing was created",
|
|
22
|
+
* re-run commands) lives here, not in the result, so a read-only consumer never inherits it.
|
|
23
|
+
* Validate renders its own findings from the same result instead.
|
|
24
|
+
*
|
|
25
|
+
* The predicates are an exact port of skills' `validate_universe.py` (TICKER, KEY_HINT,
|
|
26
|
+
* NOT_TICKERS, the bare-name `xyz:` equivalence), for the same reason `instanceHasDslExit`
|
|
27
|
+
* mirrors `_pkg.Instance.has_dsl`: author-green must stay deploy-green. Extend either side only
|
|
28
|
+
* in lockstep with the other.
|
|
29
|
+
*
|
|
30
|
+
* SCOPE (deliberate): `strategy.yaml` `catalog.assets` plus each deploy INSTANCE's runtime.yaml
|
|
31
|
+
* `scanners[].inputs` — the set the verb installs. Dynamically-discovered tickers (derived
|
|
32
|
+
* universes) are out of scope by design: they are chosen at scan time from live data and cannot
|
|
33
|
+
* be dead-on-arrival the way a hardcoded name can. Names under an EXCLUSION key are out of scope
|
|
34
|
+
* for the same reason read backwards — the package is naming what it will not trade, and a name it
|
|
35
|
+
* refuses to trade has no obligation to be live (see `EXCLUSION_KEY_RE`).
|
|
36
|
+
*/
|
|
37
|
+
import { join } from "node:path";
|
|
38
|
+
import { parse as parseYaml } from "yaml";
|
|
39
|
+
import { errorText } from "../deploy/error-text.js";
|
|
40
|
+
import { resumeCommand } from "../deploy/funding.js";
|
|
41
|
+
import { PROOF_ROUTE_NOTE, recheckBlock, validateUniversePyCommand, } from "../deploy/recheck-commands.js";
|
|
42
|
+
import { readRuntimeYaml } from "../deploy/package.js";
|
|
43
|
+
/**
|
|
44
|
+
* Mirror of validate_universe.py TICKER: BTC, xyz:AAPL — uppercase, ≤12 chars, optional xyz: prefix.
|
|
45
|
+
* JS `$` never matches before a trailing newline (python's does, which is why the python side now
|
|
46
|
+
* anchors with `\Z`); the one tolerated newline is stripped by `collect` before this runs.
|
|
47
|
+
*/
|
|
48
|
+
const TICKER_RE = /^(xyz:)?[A-Z][A-Z0-9]{0,11}$/;
|
|
49
|
+
/** Mirror of KEY_HINT: only values under keys that suggest an asset list are ticker candidates. */
|
|
50
|
+
const KEY_HINT_RE = /(asset|universe|basket|coin|symbol|market|whitelist|sleeve|defensiv|equit|probe|allowed|watch|class|volume|metal|energ|indice|long|short)/i;
|
|
51
|
+
/**
|
|
52
|
+
* POLARITY (lockstep with validate_universe.py `EXCLUSION_KEY` — change neither side alone): a key
|
|
53
|
+
* that reads as an EXCLUSION names what the strategy will not trade, and `KEY_HINT_RE` cannot tell
|
|
54
|
+
* the two apart because the hint is a substring of both (`excludeAssets` matches on `asset`).
|
|
55
|
+
* Demanding those names be live asks the exact inverse of the question this file exists to ask, and
|
|
56
|
+
* `bloodhound`/`ibis` — derived-universe packages that hardcode no universe at all — were refused on
|
|
57
|
+
* `excludeAssets: ["USDC", "USDT"]`, stablecoins listed there precisely BECAUSE the venue does not
|
|
58
|
+
* carry them as instruments.
|
|
59
|
+
*
|
|
60
|
+
* Matched over the WHOLE key path, not the leaf, so `exclude: { assets: [...] }` is covered too.
|
|
61
|
+
* `KEY_HINT_RE` stays leaf-only: it asks "is this value an instrument name", which the nearest key
|
|
62
|
+
* answers, while polarity is set by any ancestor.
|
|
63
|
+
*
|
|
64
|
+
* THE RULE FOR EDITING THIS PATTERN — the two failure modes are not symmetric. A MISS (an exclusion
|
|
65
|
+
* key whose name carries no stem here, e.g. `notAssets`) produces the loud refusal we already have,
|
|
66
|
+
* and an author can act on it. An OVER-MATCH (a REQUIRED universe key read as an exclusion, e.g. a
|
|
67
|
+
* bare `block` alternation swallowing `blockchainAssets`) lets a dead name through the money gate to
|
|
68
|
+
* fail silently at scan time — the failure this whole check exists to prevent. So keep the stems
|
|
69
|
+
* narrow and specific, and prefer a miss to a reach: `non`/`not` are deliberately absent.
|
|
70
|
+
*/
|
|
71
|
+
const EXCLUSION_KEY_RE = /(exclud|deny|blacklist|blocklist|blocked|banned|forbidden|ignor|skip|omit)/i;
|
|
72
|
+
/** Mirror of NOT_TICKERS: uppercase enum-ish values that are never tickers. */
|
|
73
|
+
const NOT_TICKERS = new Set([
|
|
74
|
+
"WEEK",
|
|
75
|
+
"MONTH",
|
|
76
|
+
"DAY",
|
|
77
|
+
"ALL",
|
|
78
|
+
"ALL_TIME",
|
|
79
|
+
"LONG",
|
|
80
|
+
"SHORT",
|
|
81
|
+
"BUY",
|
|
82
|
+
"SELL",
|
|
83
|
+
"ASC",
|
|
84
|
+
"DESC",
|
|
85
|
+
"AND",
|
|
86
|
+
"OR",
|
|
87
|
+
"TRUE",
|
|
88
|
+
"FALSE",
|
|
89
|
+
"NONE",
|
|
90
|
+
"AUTO",
|
|
91
|
+
]);
|
|
92
|
+
/**
|
|
93
|
+
* Mirror of validate_universe.py `_collect`: walk the value, remembering the key path, and take a
|
|
94
|
+
* string that is ticker-shaped, is not an enum-ish non-ticker, sits under a key whose LEAF name
|
|
95
|
+
* suggests an asset list, and is not under an exclusion key anywhere in its path. A list keeps its
|
|
96
|
+
* parent's key path (its elements are the asset names).
|
|
97
|
+
*
|
|
98
|
+
* TRAILING-NEWLINE RULE (both sides, in lockstep — change neither alone): a YAML block scalar
|
|
99
|
+
* (`- |`) clip-chomps to `"BTC\n"`, so exactly ONE trailing newline is tolerated and the ticker is
|
|
100
|
+
* collected TRIMMED; two or more (`- |+` with a blank line) are not a ticker at all and are ignored.
|
|
101
|
+
* This is a deliberate convergence, not a port of either original: python's `$` matched `"BTC\n"`
|
|
102
|
+
* and then compared the untrimmed string against the live names (a LIVE name reported NOT LIVE),
|
|
103
|
+
* while this side's `$` rejected it outright (a DEAD name written that way slipped past the money
|
|
104
|
+
* gate). `validate_universe.py` now anchors with `\Z` and trims the same single newline here.
|
|
105
|
+
*/
|
|
106
|
+
function collect(node, keyPath, file, out) {
|
|
107
|
+
if (Array.isArray(node)) {
|
|
108
|
+
for (const value of node)
|
|
109
|
+
collect(value, keyPath, file, out);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (node !== null && typeof node === "object") {
|
|
113
|
+
for (const [key, value] of Object.entries(node)) {
|
|
114
|
+
collect(value, `${keyPath}.${key}`, file, out);
|
|
115
|
+
}
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (typeof node !== "string")
|
|
119
|
+
return;
|
|
120
|
+
// Polarity first: nothing under an exclusion key is a name this package intends to trade, so it
|
|
121
|
+
// is not a candidate at all — see EXCLUSION_KEY_RE for why this is path-wide and why the stems
|
|
122
|
+
// stay narrow.
|
|
123
|
+
if (EXCLUSION_KEY_RE.test(keyPath))
|
|
124
|
+
return;
|
|
125
|
+
const leaf = keyPath.split(".").pop() ?? keyPath;
|
|
126
|
+
// Exactly one trailing newline is stripped before every predicate — see the rule above.
|
|
127
|
+
const ticker = node.endsWith("\n") ? node.slice(0, -1) : node;
|
|
128
|
+
if (TICKER_RE.test(ticker) && !NOT_TICKERS.has(ticker) && KEY_HINT_RE.test(leaf)) {
|
|
129
|
+
out.push({ ticker, file, keyPath });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** Every hardcoded ticker-shaped string in catalog.assets + each instance's scanners[].inputs. */
|
|
133
|
+
export function packageHardcodedTickers(pkg) {
|
|
134
|
+
const out = [];
|
|
135
|
+
collect(pkg.catalog["assets"], "catalog.assets", join(pkg.dir, "strategy.yaml"), out);
|
|
136
|
+
for (const inst of pkg.instances) {
|
|
137
|
+
const parsed = parseYaml(readRuntimeYaml(inst));
|
|
138
|
+
const scanners = Array.isArray(parsed?.scanners) ? parsed.scanners : [];
|
|
139
|
+
scanners.forEach((scanner, index) => {
|
|
140
|
+
if (scanner !== null && typeof scanner === "object" && !Array.isArray(scanner)) {
|
|
141
|
+
collect(scanner.inputs, `scanners[${index}].inputs`, inst.runtimeYamlPath, out);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return out;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Mirror of validate_universe.py `unknown_tickers`: scanners on the xyz DEX prefix bare names in
|
|
149
|
+
* code (`f"xyz:{token}"`), so a bare ticker is live if `T` OR `xyz:T` is; a prefixed one only as
|
|
150
|
+
* written. Returns ticker → every occurrence of it, so one refusal can name every place to edit.
|
|
151
|
+
*/
|
|
152
|
+
export function deadTickers(occurrences, live) {
|
|
153
|
+
const dead = new Map();
|
|
154
|
+
for (const occ of occurrences) {
|
|
155
|
+
const t = occ.ticker;
|
|
156
|
+
const isLive = live.has(t) || (!t.includes(":") && live.has(`xyz:${t}`));
|
|
157
|
+
if (isLive)
|
|
158
|
+
continue;
|
|
159
|
+
const rows = dead.get(t) ?? [];
|
|
160
|
+
rows.push(occ);
|
|
161
|
+
dead.set(t, rows);
|
|
162
|
+
}
|
|
163
|
+
return dead;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The composed, reusable check: performs no I/O beyond the package's own YAML and the injected
|
|
167
|
+
* source, and returns a verdict any consumer can render. Deploy consumes it pre-money; validate
|
|
168
|
+
* consumes it read-only at its live depth.
|
|
169
|
+
*
|
|
170
|
+
* What it throws, exactly: **the injected source never throws out of here** — a rejecting or empty
|
|
171
|
+
* `listLiveInstruments` becomes `{ status: "unavailable" }`, which is the whole point of the
|
|
172
|
+
* status. Reading the package's own YAML is NOT wrapped: an instance `runtime.yaml` that has been
|
|
173
|
+
* deleted or made unparseable since the package loaded propagates its error. On the deploy path
|
|
174
|
+
* that cannot happen unobserved — `instancesWithoutDslExit` and `scannersDeclaringEnabled` parse
|
|
175
|
+
* the same files a few lines earlier in `runDeploy`, and `localStartRefusal` parses them at start —
|
|
176
|
+
* so the exposure belongs to the standalone consumer, and validate's call site CATCHES it: a
|
|
177
|
+
* package it could not read is reported as a check that did not run
|
|
178
|
+
* (`W_VALIDATE_UNIVERSE_UNCHECKED`), never as a clean one. That stayed a caller's concern rather
|
|
179
|
+
* than becoming a fifth status because it is NOT `unavailable` — "the live list could not be read"
|
|
180
|
+
* and "this package could not be read" are opposite facts — and deploy, which parses the same files
|
|
181
|
+
* first, has no branch that would ever reach it.
|
|
182
|
+
*/
|
|
183
|
+
export async function checkPackageUniverse(pkg, deps) {
|
|
184
|
+
const hardcoded = packageHardcodedTickers(pkg);
|
|
185
|
+
if (hardcoded.length === 0)
|
|
186
|
+
return { status: "no-hardcoded" };
|
|
187
|
+
let live;
|
|
188
|
+
try {
|
|
189
|
+
live = await deps.listLiveInstruments();
|
|
190
|
+
}
|
|
191
|
+
catch (err) {
|
|
192
|
+
return { status: "unavailable", reason: errorText(err) };
|
|
193
|
+
}
|
|
194
|
+
if (live.length === 0) {
|
|
195
|
+
// A real read always contains at least the majors: empty is an unreadable list wearing a
|
|
196
|
+
// different hat, and unknown is never "not live".
|
|
197
|
+
return { status: "unavailable", reason: "the response carried no instruments" };
|
|
198
|
+
}
|
|
199
|
+
const dead = deadTickers(hardcoded, new Set(live));
|
|
200
|
+
if (dead.size > 0)
|
|
201
|
+
return { status: "dead", dead, liveCount: live.length };
|
|
202
|
+
return {
|
|
203
|
+
status: "clean",
|
|
204
|
+
liveCount: live.length,
|
|
205
|
+
checked: new Set(hardcoded.map((o) => o.ticker)).size,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* The verdict as one journal line — plain words, never the union's tag name (`dead`/`unavailable`
|
|
210
|
+
* are internal labels, and a narration line is read by people and relayed by agents). `null` for a
|
|
211
|
+
* package that hardcodes nothing: there is no forward claim to make about a check that never ran.
|
|
212
|
+
* Carries no money language, so a read-only consumer can render it too.
|
|
213
|
+
*/
|
|
214
|
+
export function describeUniverseVerdict(result) {
|
|
215
|
+
switch (result.status) {
|
|
216
|
+
case "no-hardcoded":
|
|
217
|
+
return null;
|
|
218
|
+
case "clean":
|
|
219
|
+
return (`checked ${result.checked} hardcoded instrument(s) against ${result.liveCount} live ` +
|
|
220
|
+
`Hyperliquid instruments — all live`);
|
|
221
|
+
case "dead":
|
|
222
|
+
return (`checked this package's hardcoded instruments against ${result.liveCount} live Hyperliquid ` +
|
|
223
|
+
`instruments — ${result.dead.size} not live`);
|
|
224
|
+
case "unavailable":
|
|
225
|
+
return `the live Hyperliquid instrument list could not be read (${result.reason})`;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* The live names a hardcoded ticker was compared against — the reader's half of {@link deadTickers}.
|
|
230
|
+
*
|
|
231
|
+
* Exported because both renderers state it and neither may re-derive it: deploy's refusal and
|
|
232
|
+
* validate's finding must name the SAME two forms the comparison actually used, or one of them is
|
|
233
|
+
* telling an author to look for a name that was never checked.
|
|
234
|
+
*/
|
|
235
|
+
export function checkedTickerForms(ticker) {
|
|
236
|
+
return ticker.includes(":") ? [ticker] : [ticker, `xyz:${ticker}`];
|
|
237
|
+
}
|
|
238
|
+
/** One offense as an instruction: the literal value, both checked forms, and every location. */
|
|
239
|
+
function describeDeadTicker(ticker, rows) {
|
|
240
|
+
const checked = checkedTickerForms(ticker).map((form) => `"${form}"`).join(" and ");
|
|
241
|
+
const where = rows.map((row) => `${row.file} (${row.keyPath})`).join("; ");
|
|
242
|
+
return `"${ticker}" — no live instrument matches ${checked}. Appears in: ${where}`;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Every instance directory of a package — the `senpi validate` targets a package-wide refusal has
|
|
246
|
+
* to offer. (`recheckBlock` de-duplicates them; two instances may legally share a directory.)
|
|
247
|
+
*
|
|
248
|
+
* The whole package, not the instances the dead names happen to sit in, and for two reasons that
|
|
249
|
+
* point the same way: a `catalog.assets` offence lives in `strategy.yaml` and belongs to every
|
|
250
|
+
* sleeve, and deploy needs EVERY instance proven before it will proceed. Validate's universe check
|
|
251
|
+
* is package-wide from any one of these, so the list is never wrong — only broader than the
|
|
252
|
+
* narrowest possible answer, which is the safe direction here.
|
|
253
|
+
*/
|
|
254
|
+
function instanceDirs(pkg) {
|
|
255
|
+
return pkg.instances.map((inst) => inst.runtimeYamlDir);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* ONE refusal for the whole package, D-2 shape: every dead name, its literal value, its exact
|
|
259
|
+
* locations, and the mechanical fix — a reader repairs the whole universe in one pass. Both
|
|
260
|
+
* re-check routes are named, the runtime one first: the skills tool is what the author-side skill
|
|
261
|
+
* teaches, and `senpi validate` is what writes the proof deploy refuses a package without — so the
|
|
262
|
+
* loop "fix → re-check → deploy" never moves money until green, AND can actually close.
|
|
263
|
+
*
|
|
264
|
+
* Every "nothing was created" claim here is scoped to THIS RUN, deliberately. The gate fires before
|
|
265
|
+
* the first read of this package's live state, so on an adopt/resume run the package may already have
|
|
266
|
+
* a funded wallet and an installed runtime that this refusal cannot see — an absolute "no wallet was
|
|
267
|
+
* funded" would be false exactly there, and the move it invites (create and fund a second wallet
|
|
268
|
+
* beside the live one) is the expensive one. The gate may claim what it did, never what exists. Note
|
|
269
|
+
* the scoping has to stay precise in the other direction too: the gate DID read one live surface (the
|
|
270
|
+
* instrument list it quotes a count from), so it may not claim it read nothing live.
|
|
271
|
+
*/
|
|
272
|
+
export function buildUniverseNotLiveRefusal(dead, pkg, liveCount, budget) {
|
|
273
|
+
return (`[E_UNIVERSE_NOT_LIVE] ${dead.size} hardcoded instrument(s) in this package are not live on ` +
|
|
274
|
+
`Hyperliquid (checked against ${liveCount} live instruments just now). Nothing was created by ` +
|
|
275
|
+
`this run — reading that instrument list is all it did, and it stopped before touching or even ` +
|
|
276
|
+
`reading this package's own live state, so no wallet was funded and nothing was installed BY ` +
|
|
277
|
+
`IT, and whatever this package already had is untouched (this gate cannot see it). A dead name ` +
|
|
278
|
+
`does not error at runtime: the ` +
|
|
279
|
+
`scan skips it and the strategy silently trades nothing. Fix — replace or remove each name:\n` +
|
|
280
|
+
[...dead.entries()].map(([t, rows]) => ` - ${describeDeadTicker(t, rows)}`).join("\n") +
|
|
281
|
+
`\nEdit the package universe (the senpi-strategy-author edit path), then re-check read-only ` +
|
|
282
|
+
`with either route:\n` +
|
|
283
|
+
`${recheckBlock(instanceDirs(pkg), validateUniversePyCommand(pkg.dir))}\n` +
|
|
284
|
+
`${PROOF_ROUTE_NOTE} Then re-run: ` +
|
|
285
|
+
resumeCommand(pkg.dir, budget));
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The fail-closed unavailability detail — deliberately CODE-LESS: a code marks a refusal, and
|
|
289
|
+
* this is a step that could not run. Unknown is never "not live": no instrument is named dead
|
|
290
|
+
* on a read that did not succeed, so the message must never look like E_UNIVERSE_NOT_LIVE.
|
|
291
|
+
*/
|
|
292
|
+
export function buildUniverseUnavailableDetail(reason, pkg) {
|
|
293
|
+
return (`universe check failed: the live Hyperliquid instrument list could not be read (${reason}). ` +
|
|
294
|
+
`No instrument was declared dead — an unreadable list proves nothing about this package. ` +
|
|
295
|
+
`Nothing was created by this run, and nothing this package already had was touched. ` +
|
|
296
|
+
`Re-run once the MCP server is reachable; to check the package without deploying, take either ` +
|
|
297
|
+
`route:\n` +
|
|
298
|
+
// Both routes read the same instrument list, so both wait on the same server coming back. The
|
|
299
|
+
// runtime one is still worth naming first: it checks everything else about the package too, and
|
|
300
|
+
// it is the only route that records the proof this deploy will ask for next time.
|
|
301
|
+
`${recheckBlock(instanceDirs(pkg), validateUniversePyCommand(pkg.dir))}\n` +
|
|
302
|
+
PROOF_ROUTE_NOTE);
|
|
303
|
+
}
|
|
304
|
+
//# sourceMappingURL=package-universe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-universe.js","sourceRoot":"","sources":["../../src/universe/package-universe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAsB,MAAM,sBAAsB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,SAAS,GAAG,8BAA8B,CAAC;AACjD,mGAAmG;AACnG,MAAM,WAAW,GACf,4IAA4I,CAAC;AAC/I;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,gBAAgB,GACpB,6EAA6E,CAAC;AAChF,+EAA+E;AAC/E,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,MAAM;IACN,OAAO;IACP,KAAK;IACL,KAAK;IACL,UAAU;IACV,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,KAAK;IACL,IAAI;IACJ,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;CACP,CAAC,CAAC;AAWH;;;;;;;;;;;;;GAaG;AACH,SAAS,OAAO,CAAC,IAAa,EAAE,OAAe,EAAE,IAAY,EAAE,GAAuB;IACpF,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,KAAK,MAAM,KAAK,IAAI,IAAI;YAAE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,E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,8 @@ export declare const VALIDATE_CODE: {
|
|
|
34
34
|
readonly noRecipe: "E_VALIDATE_NO_RECIPE";
|
|
35
35
|
/** More than one recipe candidate and no conventional name to break the tie. */
|
|
36
36
|
readonly ambiguousRecipe: "E_VALIDATE_AMBIGUOUS_RECIPE";
|
|
37
|
+
/** A `strategy.yaml` is present and will not load, so which recipe it means is unknown. */
|
|
38
|
+
readonly unreadableManifest: "E_VALIDATE_UNREADABLE_MANIFEST";
|
|
37
39
|
/** A depth that needs a recipe was requested against a target that has none. */
|
|
38
40
|
readonly needsRecipe: "E_VALIDATE_NEEDS_RECIPE";
|
|
39
41
|
/** Inline recipe content with no directory to resolve a relative scanner path against. */
|
|
@@ -66,6 +68,16 @@ export declare const VALIDATE_CODE: {
|
|
|
66
68
|
readonly marginPctFraction: "E_VALIDATE_MARGIN_PCT_FRACTION";
|
|
67
69
|
/** An LLM-mode decision action with no model configured. */
|
|
68
70
|
readonly llmNoModel: "E_VALIDATE_LLM_NO_MODEL";
|
|
71
|
+
/** The recipe does not bind the wallet its package manifest declares for it. */
|
|
72
|
+
readonly walletUnbound: "E_VALIDATE_WALLET_UNBOUND";
|
|
73
|
+
/** The recipe ships no DSL exit block, so every position it opens runs with nothing to close it. */
|
|
74
|
+
readonly noDslExit: "E_VALIDATE_NO_DSL_EXIT";
|
|
75
|
+
/** A scanner entry declares `enabled`, which the engine never reads — it registers and ticks. */
|
|
76
|
+
readonly scannerEnabled: "E_VALIDATE_SCANNER_ENABLED";
|
|
77
|
+
/** The package id carries capitals, so its attribution stamp is written and read under two spellings. */
|
|
78
|
+
readonly packageIdCase: "E_VALIDATE_PACKAGE_ID_CASE";
|
|
79
|
+
/** Two instances resolve to one directory, so one proof file would answer for both recipes. */
|
|
80
|
+
readonly instanceDirCollision: "E_VALIDATE_INSTANCE_DIR_COLLISION";
|
|
69
81
|
/** A syntax error in some file under the scanner root — including files never imported. */
|
|
70
82
|
readonly syntax: "E_VALIDATE_SYNTAX";
|
|
71
83
|
/** The entrypoint's import chain raised. */
|
|
@@ -98,6 +110,24 @@ export declare const VALIDATE_CODE: {
|
|
|
98
110
|
readonly unknownMcpTool: "E_VALIDATE_UNKNOWN_MCP_TOOL";
|
|
99
111
|
/** A hardcoded instrument that is not tradeable. */
|
|
100
112
|
readonly unknownTicker: "E_VALIDATE_UNKNOWN_TICKER";
|
|
113
|
+
/**
|
|
114
|
+
* A hardcoded instrument in the package that is not live on the exchange. Deploy's pre-money
|
|
115
|
+
* check, run here too — it needs one live read, which is why it belongs to this depth.
|
|
116
|
+
*/
|
|
117
|
+
readonly universeNotLive: "E_VALIDATE_UNIVERSE_NOT_LIVE";
|
|
118
|
+
/**
|
|
119
|
+
* That check could not run because the PACKAGE would not read — the manifest, or an instance
|
|
120
|
+
* recipe. Reported rather than passed over: a green verdict covering a check that never ran is
|
|
121
|
+
* the failure this command exists to correct. A warning, not an error, because it is ignorance
|
|
122
|
+
* about the package rather than evidence of a dead name.
|
|
123
|
+
*/
|
|
124
|
+
readonly universeUnchecked: "W_VALIDATE_UNIVERSE_UNCHECKED";
|
|
125
|
+
/**
|
|
126
|
+
* That check could not run because the LIVE INSTRUMENT LIST would not read. A separate code from
|
|
127
|
+
* the one above because the actor differs: an unreadable list is an environment fault, and an
|
|
128
|
+
* agent that answers it by editing the package will loop.
|
|
129
|
+
*/
|
|
130
|
+
readonly universeUnavailable: "W_VALIDATE_UNIVERSE_UNAVAILABLE";
|
|
101
131
|
/** An emitted signal the runtime would reject on arrival. */
|
|
102
132
|
readonly signalRejected: "E_VALIDATE_SIGNAL_REJECTED";
|
|
103
133
|
/** Credentials absent or partially configured. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/validate/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAA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AElG,wDAAwD;;IAExD,qEAAqE;;IAErE,6FAA6F;;IAE7F,oDAAoD;;IAEpD;;;OAGG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,6DAA6D;;IAE7D,kDAAkD;;IAElD,sDAAsD;;IAEtD,kFAAkF;;IAElF,uDAAuD;;IAEvD,4FAA4F;;IAE5F,4FAA4F;;IAE5F,gDAAgD;;IAEhD,sFAAsF;;IAEtF,8FAA8F;;IAE9F,sFAAsF;;IAEtF,0EAA0E;;IAE1E,mFAAmF;;IAEnF,4FAA4F;;IAI5F,kDAAkD;;IAElD,qEAAqE;;IAErE,0FAA0F;;IAE1F,uFAAuF;;CAE/E,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E,8FAA8F;AAC9F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CA8QrE,CAAC;AAEF,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,EAAE,SAAS,YAAY,EAEnC,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,CAEvD;AAED,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,EAAE,CAEpE"}
|
package/dist/validate/codes.js
CHANGED
|
@@ -34,6 +34,8 @@ export const VALIDATE_CODE = {
|
|
|
34
34
|
noRecipe: "E_VALIDATE_NO_RECIPE",
|
|
35
35
|
/** More than one recipe candidate and no conventional name to break the tie. */
|
|
36
36
|
ambiguousRecipe: "E_VALIDATE_AMBIGUOUS_RECIPE",
|
|
37
|
+
/** A `strategy.yaml` is present and will not load, so which recipe it means is unknown. */
|
|
38
|
+
unreadableManifest: "E_VALIDATE_UNREADABLE_MANIFEST",
|
|
37
39
|
/** A depth that needs a recipe was requested against a target that has none. */
|
|
38
40
|
needsRecipe: "E_VALIDATE_NEEDS_RECIPE",
|
|
39
41
|
/** Inline recipe content with no directory to resolve a relative scanner path against. */
|
|
@@ -67,6 +69,16 @@ export const VALIDATE_CODE = {
|
|
|
67
69
|
marginPctFraction: "E_VALIDATE_MARGIN_PCT_FRACTION",
|
|
68
70
|
/** An LLM-mode decision action with no model configured. */
|
|
69
71
|
llmNoModel: "E_VALIDATE_LLM_NO_MODEL",
|
|
72
|
+
/** The recipe does not bind the wallet its package manifest declares for it. */
|
|
73
|
+
walletUnbound: "E_VALIDATE_WALLET_UNBOUND",
|
|
74
|
+
/** The recipe ships no DSL exit block, so every position it opens runs with nothing to close it. */
|
|
75
|
+
noDslExit: "E_VALIDATE_NO_DSL_EXIT",
|
|
76
|
+
/** A scanner entry declares `enabled`, which the engine never reads — it registers and ticks. */
|
|
77
|
+
scannerEnabled: "E_VALIDATE_SCANNER_ENABLED",
|
|
78
|
+
/** The package id carries capitals, so its attribution stamp is written and read under two spellings. */
|
|
79
|
+
packageIdCase: "E_VALIDATE_PACKAGE_ID_CASE",
|
|
80
|
+
/** Two instances resolve to one directory, so one proof file would answer for both recipes. */
|
|
81
|
+
instanceDirCollision: "E_VALIDATE_INSTANCE_DIR_COLLISION",
|
|
70
82
|
// ── import: will the code load ────────────────────────────────────────────
|
|
71
83
|
/** A syntax error in some file under the scanner root — including files never imported. */
|
|
72
84
|
syntax: "E_VALIDATE_SYNTAX",
|
|
@@ -101,6 +113,24 @@ export const VALIDATE_CODE = {
|
|
|
101
113
|
unknownMcpTool: "E_VALIDATE_UNKNOWN_MCP_TOOL",
|
|
102
114
|
/** A hardcoded instrument that is not tradeable. */
|
|
103
115
|
unknownTicker: "E_VALIDATE_UNKNOWN_TICKER",
|
|
116
|
+
/**
|
|
117
|
+
* A hardcoded instrument in the package that is not live on the exchange. Deploy's pre-money
|
|
118
|
+
* check, run here too — it needs one live read, which is why it belongs to this depth.
|
|
119
|
+
*/
|
|
120
|
+
universeNotLive: "E_VALIDATE_UNIVERSE_NOT_LIVE",
|
|
121
|
+
/**
|
|
122
|
+
* That check could not run because the PACKAGE would not read — the manifest, or an instance
|
|
123
|
+
* recipe. Reported rather than passed over: a green verdict covering a check that never ran is
|
|
124
|
+
* the failure this command exists to correct. A warning, not an error, because it is ignorance
|
|
125
|
+
* about the package rather than evidence of a dead name.
|
|
126
|
+
*/
|
|
127
|
+
universeUnchecked: "W_VALIDATE_UNIVERSE_UNCHECKED",
|
|
128
|
+
/**
|
|
129
|
+
* That check could not run because the LIVE INSTRUMENT LIST would not read. A separate code from
|
|
130
|
+
* the one above because the actor differs: an unreadable list is an environment fault, and an
|
|
131
|
+
* agent that answers it by editing the package will loop.
|
|
132
|
+
*/
|
|
133
|
+
universeUnavailable: "W_VALIDATE_UNIVERSE_UNAVAILABLE",
|
|
104
134
|
/** An emitted signal the runtime would reject on arrival. */
|
|
105
135
|
signalRejected: "E_VALIDATE_SIGNAL_REJECTED",
|
|
106
136
|
/** Credentials absent or partially configured. */
|
|
@@ -159,6 +189,10 @@ export const VALIDATE_CODE_META = {
|
|
|
159
189
|
stage: "invocation", actor: "agent", fix_kind: "choice",
|
|
160
190
|
condition: "Several recipe candidates and no conventional name to break the tie.",
|
|
161
191
|
},
|
|
192
|
+
[VALIDATE_CODE.unreadableManifest]: {
|
|
193
|
+
stage: "invocation", actor: "agent", fix_kind: "edit",
|
|
194
|
+
condition: "A strategy.yaml is present but does not load, so which recipe it names is unknown.",
|
|
195
|
+
},
|
|
162
196
|
[VALIDATE_CODE.needsRecipe]: {
|
|
163
197
|
stage: "invocation", actor: "agent", fix_kind: "command",
|
|
164
198
|
condition: "A depth requiring a recipe was requested against a target that has none.",
|
|
@@ -212,6 +246,31 @@ export const VALIDATE_CODE_META = {
|
|
|
212
246
|
stage: "static", actor: "agent", fix_kind: "edit",
|
|
213
247
|
condition: "The declared entrypoint file is not on disk.",
|
|
214
248
|
},
|
|
249
|
+
[VALIDATE_CODE.walletUnbound]: {
|
|
250
|
+
stage: "static", actor: "agent", fix_kind: "edit",
|
|
251
|
+
condition: "The package manifest declares a wallet_env for this instance and the recipe binds " +
|
|
252
|
+
"something else, so deploy would fund one wallet and trade another.",
|
|
253
|
+
},
|
|
254
|
+
[VALIDATE_CODE.noDslExit]: {
|
|
255
|
+
stage: "static", actor: "agent", fix_kind: "edit",
|
|
256
|
+
condition: "The recipe declares no DSL exit block, so positions would open with no stop loss and no " +
|
|
257
|
+
"trailing floor.",
|
|
258
|
+
},
|
|
259
|
+
[VALIDATE_CODE.scannerEnabled]: {
|
|
260
|
+
stage: "static", actor: "agent", fix_kind: "edit",
|
|
261
|
+
condition: "A scanner entry declares an `enabled` key, which the engine never reads — the scanner " +
|
|
262
|
+
"registers enabled and ticks whatever the value says.",
|
|
263
|
+
},
|
|
264
|
+
[VALIDATE_CODE.packageIdCase]: {
|
|
265
|
+
stage: "static", actor: "agent", fix_kind: "edit",
|
|
266
|
+
condition: "The package id is not lowercase, so the wallet attribution stamp is written verbatim and " +
|
|
267
|
+
"read back case-normalized.",
|
|
268
|
+
},
|
|
269
|
+
[VALIDATE_CODE.instanceDirCollision]: {
|
|
270
|
+
stage: "static", actor: "agent", fix_kind: "edit",
|
|
271
|
+
condition: "Two instances' recipes resolve to one directory, so the single proof file there cannot " +
|
|
272
|
+
"speak for either of them.",
|
|
273
|
+
},
|
|
215
274
|
[VALIDATE_CODE.unresolvableScannerPath]: {
|
|
216
275
|
stage: "static", actor: "agent", fix_kind: "edit",
|
|
217
276
|
condition: "A relative scanner path has no directory to resolve against.",
|
|
@@ -288,7 +347,21 @@ export const VALIDATE_CODE_META = {
|
|
|
288
347
|
},
|
|
289
348
|
[VALIDATE_CODE.unknownTicker]: {
|
|
290
349
|
stage: "live", actor: "agent", fix_kind: "lookup",
|
|
291
|
-
|
|
350
|
+
// Deliberately not "a hardcoded instrument": this is observed at the call, so it fires the same
|
|
351
|
+
// way for a name the scanner derived at run time and reshaped, and one read of many is enough.
|
|
352
|
+
condition: "A read named an instrument the venue does not carry.",
|
|
353
|
+
},
|
|
354
|
+
[VALIDATE_CODE.universeNotLive]: {
|
|
355
|
+
stage: "live", actor: "agent", fix_kind: "edit",
|
|
356
|
+
condition: "A hardcoded instrument in the package is not live on the exchange.",
|
|
357
|
+
},
|
|
358
|
+
[VALIDATE_CODE.universeUnchecked]: {
|
|
359
|
+
stage: "live", actor: "agent", fix_kind: "edit",
|
|
360
|
+
condition: "The universe check could not run because the package itself would not read.",
|
|
361
|
+
},
|
|
362
|
+
[VALIDATE_CODE.universeUnavailable]: {
|
|
363
|
+
stage: "live", actor: "ops", fix_kind: "command",
|
|
364
|
+
condition: "The universe check could not run because the live instrument list would not read.",
|
|
292
365
|
},
|
|
293
366
|
[VALIDATE_CODE.signalRejected]: {
|
|
294
367
|
stage: "live", actor: "agent", fix_kind: "edit",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../src/validate/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,6EAA6E;IAC7E,sCAAsC;IACtC,cAAc,EAAE,6BAA6B;IAC7C,4FAA4F;IAC5F,QAAQ,EAAE,sBAAsB;IAChC,gFAAgF;IAChF,eAAe,EAAE,6BAA6B;IAC9C,gFAAgF;IAChF,WAAW,EAAE,yBAAyB;IACtC,0FAA0F;IAC1F,QAAQ,EAAE,sBAAsB;IAChC,+DAA+D;IAC/D,cAAc,EAAE,4BAA4B;IAC5C,+CAA+C;IAC/C,SAAS,EAAE,uBAAuB;IAElC,6EAA6E;IAC7E,mCAAmC;IACnC,UAAU,EAAE,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"}
|
package/dist/validate/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { ALL_VALIDATE_CODES, VALIDATE_CODE, VALIDATE_CODE_META, codesForStage, s
|
|
|
11
11
|
export { findUncoveredCodes, findUnknownCodes, type CoverageOptions } from "./coverage.js";
|
|
12
12
|
export { findLlmActionsWithoutModel, findMarginPctFraction, findMissingEntrypoints, findUngatedStrategy, findUnsizedStrategy, } from "./recipe-checks.js";
|
|
13
13
|
export { collectRecipeFindings, type RecipeSource, type RecipeValidation, } from "./recipe.js";
|
|
14
|
-
export { isImplemented, runValidation, type ExitCode, type ValidateOptions, type ValidateResult, type Verdict, type VerdictBasis, } from "./run.js";
|
|
14
|
+
export { isImplemented, runValidation, type ExitCode, type ValidateDeps, type ValidateOptions, type ValidateResult, type Verdict, type VerdictBasis, } from "./run.js";
|
|
15
15
|
export { renderFinding, renderHuman, renderJson } from "./report.js";
|
|
16
16
|
/**
|
|
17
17
|
* What the runtime refuses to install. Wired into `senpi.installRuntime`; the boot loop
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,eAAe,EACf,OAAO,EACP,QAAQ,EACR,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACL,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,YAAY,GAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAErG;;;;GAIG;AACH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,eAAe,EACf,OAAO,EACP,QAAQ,EACR,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACL,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,YAAY,GAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAErG;;;;GAIG;AACH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACL,aAAa,GAKd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,UAAU,GAGX,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAwB,MAAM,eAAe,CAAC;AAE3F,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,GAGtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EACb,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACL,aAAa,GAKd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,UAAU,GAGX,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAwB,MAAM,eAAe,CAAC;AAE3F,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,GAGtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EACb,aAAa,GAOd,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErE;;;GAGG;AACH,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAA0B,MAAM,mBAAmB,CAAC;AAErG;;;;GAIG;AACH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,UAAU,GAMX,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,UAAU,GAEX,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-gate.d.ts","sourceRoot":"","sources":["../../src/validate/install-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgB1C,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,OAAO,CAAC;IACZ,mEAAmE;IACnE,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"install-gate.d.ts","sourceRoot":"","sources":["../../src/validate/install-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgB1C,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,OAAO,CAAC;IACZ,mEAAmE;IACnE,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAwBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAKvE;AAED,2FAA2F;AAC3F,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAAkB,CAAC"}
|
|
@@ -43,11 +43,19 @@ const BLOCKING = new Set([
|
|
|
43
43
|
*
|
|
44
44
|
* The gateway's error string is often the only thing an operator or agent ever reads, so it
|
|
45
45
|
* carries the same what/why/fix the findings do rather than a count and a pointer to logs.
|
|
46
|
+
*
|
|
47
|
+
* Two things ride in front of and behind that, and both are conventions of this codebase rather
|
|
48
|
+
* than decoration. It LEADS with the first blocking code in brackets, because every other refusal
|
|
49
|
+
* on this boundary does and the taught surfaces tell agents to branch on that prefix
|
|
50
|
+
* (`deploy/taxonomy.ts` is its one reader). And it STATES that nothing was installed: a caller told
|
|
51
|
+
* only that a recipe "cannot be installed" still has to guess whether a partial install is sitting
|
|
52
|
+
* on the box to clean up, and guessing wrong in either direction costs more than the sentence.
|
|
46
53
|
*/
|
|
47
54
|
function render(blocking) {
|
|
48
55
|
const lines = blocking.map((f) => ` • ${f.what}\n why: ${f.why}\n fix: ${f.fix}`);
|
|
49
|
-
return (`This recipe cannot be installed — it would not trade.\n\n
|
|
50
|
-
`
|
|
56
|
+
return (`[${blocking[0].code}] This recipe cannot be installed — it would not trade.\n\n` +
|
|
57
|
+
`${lines.join("\n\n")}\n\n` +
|
|
58
|
+
`Nothing was installed. Run \`openclaw senpi validate\` on the package for the full report.`);
|
|
51
59
|
}
|
|
52
60
|
/**
|
|
53
61
|
* Decide whether a parsed recipe may be installed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-gate.js","sourceRoot":"","sources":["../../src/validate/install-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAS;IAC/B,aAAa,CAAC,OAAO;IACrB,aAAa,CAAC,OAAO;IACrB,aAAa,CAAC,iBAAiB;IAC/B,aAAa,CAAC,uBAAuB;CACtC,CAAC,CAAC;AAUH
|
|
1
|
+
{"version":3,"file":"install-gate.js","sourceRoot":"","sources":["../../src/validate/install-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAS;IAC/B,aAAa,CAAC,OAAO;IACrB,a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