desk-autonomy-policy

Enforces user-written trading limits through a deterministic policy gate before any Hyperliquid order is signed.

Updated Sep 7, 2026
One-click install
npx skills add https://github.com/swcstudiospace/hypergrok-autonomous-desk --skill desk-autonomy-policy-swcstudiospace
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: desk-autonomy-policy
Source: https://github.com/swcstudiospace/hypergrok-autonomous-desk/tree/main/skills/desk-autonomy-policy
Command: npx skills add https://github.com/swcstudiospace/hypergrok-autonomous-desk --skill desk-autonomy-policy-swcstudiospace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? On an autonomous trading desk no human approves each order, so this Skill replaces per-trade approval with a written autonomy.json policy, a deterministic gate script that checks every ticket against the user's limits and live account state, and a signed approval that the single sending script demands before signing anything. ## Core Features & Use Cases - Policy schema and ceilings: Defines the autonomy.json fields (mode, account, limits, risk ladder, depth multiple) and hard autonomy ceilings that invalidate any policy set looser than them. - Deterministic gating: Documents every check policy_gate.py runs (network, account, expiry, leverage, slippage, risk arithmetic, daily loss, rate limits, cooldown, origin) and the HMAC-signed approval it issues on PASS. - Controlled sending and halting: Restricts sending to desk_send.py with a valid approval, and defines the kill switch workflow where any role may halt but only the user may resume. - Use Case: When a gate fails or someone asks why the desk did or did not send a trade, use this Skill to trace exactly which gate check failed and what the policy permits. ## Quick Start Ask the assistant to explain why the policy gate rejected ticket proposals/HG-20260907-01.ticket.json under the current autonomy.json limits.

Frequently Asked Questions about desk-autonomy-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up autonomous trading approval with a policy file?▼

Copy template/autonomy.json to your desk root and edit mode, account, and limits yourself; no agent may write it. Every ticket is then checked by policy_gate.py against those limits and live account state before desk_send.py may sign anything.

What does the Hyperliquid policy gate check before sending an order?▼

The gate verifies mode, network, account, halt status, ticket expiry and age, market, leverage, slippage, risk arithmetic, equity freshness, per-trade and total open risk, position count, daily loss, rate limits, cooldown, and origin. A PASS writes a signed approval JSON valid for ten minutes.

Why did the policy gate reject my trade ticket?▼

A failed gate exits with code 1 and prints the failed check names on the last line, such as risk-per-trade, daily-loss, or cooldown. An unavailable account read exits with code 2 and is never treated as a pass.

Can the desk still close positions while halted?▼

Yes. While halted, entry tickets fail the halt gate, but close, protect, and cancel tickets still pass so the desk can always get flat. Only the user may resume, from their own terminal; agents are denied the resume command.

What are the autonomy ceiling limits for unattended trading?▼

Ceilings are 1% risk per trade, 4% total open risk, 10x leverage, 6 positions, a -5% daily loss stop, 10 sends per hour and 60 per day, 50 bps slippage, and 30-minute ticket age. A policy set looser than any ceiling is invalid as a whole.

Does the policy gate guarantee profitable or safe trading?▼

No. The gate is arithmetic, not a judge of ideas; it only guarantees nothing is sent outside the written limits, on the wrong network, past the loss stop, or twice for one ticket. It cannot make a bad strategy good or stop an agent acting outside the scripts.