create-legate-pilot
v0.1.0
Published
Stand up a self-contained, offline Legate mandate-gate pilot in seconds. `npm create legate-pilot` and watch the gate block out-of-mandate trades with signed restraint receipts.
Maintainers
Readme
create-legate-pilot
Stand up a self-contained, offline Legate mandate-gate pilot in seconds.
npm create legate-pilot
# or: npx create-legate-pilot my-pilot
cd legate-pilot
node run-pilot.cjsYou will see the gate block the orders that breach the committed mandate (commodity concentration, book DV01) with a position-blind restraint receipt, and allow the ones that stay inside it. That block, with no position disclosed, is the product: an agent cannot be argued or prompt-injected past a committed numeric limit.
What it creates
| File | What it is |
|------|------------|
| mandate.json | The committed structured mandate (the same artifact the web author page designs and the desktop runtime enforces). |
| book.json | A sample signed book (positions + NAV) to project orders against. |
| orders.json | Proposed orders; two breach the mandate. |
| legate-mandate.cjs | The real offline evaluator, dependency-free (Node built-ins only). |
| run-pilot.cjs | The runner. |
No install, no network, no account. Everything runs locally against Node built-ins.
Next
Edit mandate.json (tighten a cap) or orders.json (propose your own trade) and
re-run. Then talk to us about pointing the gate at your real book and order path in
shadow mode: [email protected] · https://scopeblind.com
MIT licensed. The evaluator (legate-mandate.cjs) is the same one the Legate runtime
enforces with, kept in sync from the runtime on publish.
