coyote-strategy
COYOTE v1.0.0 โ Regime Classifier / Meta-Router. Watches macro conditions (BTC 7d trend, BTC realized volatility, cross-asset dispersion) and classifies the market into TREND_UP / TREND_DOWN / CHOP. Takes LONG BTC in TREND_UP, SHORT BTC in TREND_DOWN, stays out in CHOP. Publishes the regime classification in every tick output so downstream tooling (and future regime-subscription runtime features) can read Coyote's view. NEW archetype #16: Regime classifier / meta-router.
What this skill does
# ๐บ COYOTE v1.0.0 โ Regime Classifier / Meta-Router
**The agent that asks "what kind of market are we in?" before anything else.** Coyote watches macro conditions and classifies the market into TREND_UP / TREND_DOWN / CHOP. It takes a single positional expression of its regime view โ and publishes that view on every tick.
## Why this strategy exists
Every Senpi agent currently re-implements its own version of "should I be active right now?" Vulture has a HEAVY_FLOW gate. Wolverine has a multi-timeframe alignment check. Tortoise just buys regardless. None of them share a *centralized* view of the macro regime โ they each make local calls.
Coyote is the start of fixing that. Its classification is **emitted in every signal data block** (and in every tick output, including when no trade fires), so:
- **Today**: operators can read Coyote's regime view directly to inform manual decisions about which agents to enable/pause.
- **Soon (runtime work pending)**: other agents will be able to *subscribe* to Coyote's regime channel as a gating input, so e.g. Tortoise auto-pauses in TREND_DOWN and Stag auto-enables in TREND_UP.
The "meta-router" framing is aspirational for v1 โ Coyote also takes its own regime-positional trade so it has skin in its own calls.
## CRITICAL RULES
### RULE 1: Three regimes, two trades
Coyote classifies into exactly three states:
| Regime | Trigger | Action |
|---|---|---|
| **TREND_UP** | BTC 7d move โฅ `trendUpThresholdPct` (default 5%) AND realized vol โค `maxVolForTrendPct` (default 80%) | LONG BTC |
| **TREND_DOWN** | BTC 7d move โค โ`trendDownThresholdPct` (default 5%) AND realized vol โฅ `minVolForCrashPct` (default 60%) | SHORT BTC |
| **CHOP** | otherwise | no trade |
TREND_DOWN explicitly requires *high* volatility โ Coyote distinguishes a "panic crash" (sharp drop + vol spike) from a "slow grind down" (small drop, low vol, which is just CHOP). This avoids shorting orderly pullbacks.
### RULE 2: Always publish the regime
Even when no trade is taken (CHOP / UNKNOWN), the producer outputs the regime classification + all three input metrics (BTC 7d move %, realized vol %, dispersion %) in its tick result. Operators can read `tail /tmp/coyote-producer.log | jq .regime` at any moment.
### RULE 3: Dispersion is informational (for now)
Cross-asset dispersion (stdev of recent returns across the universe) is computed and published but doesn't currently enter the gate logic. Future versions may use it to refine regime detection (e.g. high dispersion + flat BTC = "rotation regime"). For v1 it's there for operator visibility.
### RULE 4: Producer NEVER closes
DSL owns exits. Coyote enters at the regime transition; the DSL trail manages the position through the regime's life.
### RULE 5: Regimes are persistent โ don't churn
`per_asset_cooldown_minutes: 360` (6h) and `max_entries_per_day: 2` so Coyote doesn't flip back and forth on noise. Real regimes last days or weeks; a clean classification doesn't change ticks-over-ticks.
## How Coyote computes regime
Three pure metrics, all from `market_get_asset_data` 4h candles:
- **`btc_7d_pct`** = `% change of latest BTC close vs the close 42 4h-bars ago` (7 days)
- **`realized_vol_pct`** = `stdev of log returns ร sqrt(2190) ร 100` (annualized, 4h bars assume 24/7 trading)
- **`dispersion_pct`** = `stdev of recent returns across {BTC, ETH, SOL, HYPE}` (cross-sectional)
Then a 4-way switch: `classify_regime(btc_move, vol, ...thresholds) โ TREND_UP / TREND_DOWN / CHOP / UNKNOWN`. UNKNOWN fires when input data is missing.
## DSL preset (`balanced`)
Standard balanced. Regimes hold for days; Coyote's positional bet rides them.
## Scanner pattern
NEW archetype #16: **Regime classifier / meta-router** โ see `senpi-trading-runtime/references/producer-patterns.md`. Primary MCP call: `market_get_asset_data` per universe asset (just for close prices). The pure functions (`pct_move`, `realized_vol_pct`, `dispersion_pct`, `classify_regime`, `regime_to_direction`) are unit-tested in `tests/test_signal.py`.
## Operator install
See [README.md](README.md).
## Changelog
### v1.0.0 (2026-05-29) โ initial release
First fleet agent built around **macro-regime classification as a first-class capability**. Introduces archetype #16 (regime classifier / meta-router). Publishes regime on every tick. Takes its own positional bet so it has skin in its own classification. 14/14 unit tests covering all pure functions. Taker-true entry, disown-safe launch.
## License
MIT โ Copyright 2026 Senpi (https://senpi.ai).
## Skill Attribution
When creating a strategy, include `skill_name` and `skill_version`. See `references/skill-attribution.md`.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.