Skip to content
Back to skills

Deploy Check

ASecurity

Audit a bot's deployment wiring without starting or stopping anything — news/vote paths in settings.yaml, Discord notification settings, regime leg strategies in session.json — plus the workbench redeploy recipe for semi_auto bots. Use after a deploy, when a deploy looks misconfigured, when Discord trade messages never arrive, or when votes exist but the bot never reads them. Starting, restarting or stopping a bot → deploy. Votes not being produced → bridge-health.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
devopspythongobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add ericwu13/tai-robot --skill deploy-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deploy Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deploy Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ericwu13-deploy-check/badge)](https://www.skillsdirectory.com/skills/ericwu13-deploy-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deploy-check
description: Audit a bot's deployment wiring without starting or stopping anything — news/vote paths in settings.yaml, Discord notification settings, regime leg strategies in session.json — plus the workbench redeploy recipe for semi_auto bots. Use after a deploy, when a deploy looks misconfigured, when Discord trade messages never arrive, or when votes exist but the bot never reads them. Starting, restarting or stopping a bot → deploy. Votes not being produced → bridge-health.
---

# Deploy Check

> **Where the data is (since 2026-10-24/25):** the live fleet (12 headless
> `tai_backtest.exe` bots), the bot dashboard and the W1–W4 bridge tasks
> run on **Steven**, not this PC. This PC's `data\live` holds only
> retired/test bots and its n8n is stopped. Read live state from the
> dashboard API (`http://<Steven tailnet IP>:8765/api/fleet`,
> `/api/bot?id=<SYMBOL>_<bot>`; address in `hosts.local.yaml`) or run the
> checker on Steven via `tailscale-ssh`. A run of a checker on this PC
> describes this PC only — never publish it as fleet health. Host map →
> `start-here`. Run checkers from an up-to-date checkout
> (`git rev-list --count HEAD..origin/master` = 0); the main tree may be
> weeks behind.

```bash
C:/Python313/python.exe -s scripts/monitor/check_deploy.py [--settings PATH]
```

Reports whether the wiring exists and where it points — **never the
secret values**. Secrets live only in `settings.yaml` (gitignored) and
must never be echoed, committed, or posted.

## What it verifies

| Setting | Missing means |
|---|---|
| `news.signal_path` | the circuit-breaker signal can never be read |
| `news.regime_vote_path` | **W2/W3/W4 votes expire UNREAD** — the historical "votes never consumed" bug |
| `news.events_path` | the macro-event gate fails open |
| `news.rss_state_file` | W3 liveness cannot be checked |
| `notifications.discord_bot_token` + `discord_channel_id` | bot Discord disabled — no trade or daily-report messages |
| `news.discord_webhook` | monitor notifications unavailable (P3) |

Per bot it also checks `session.json`: for `regime_mode: true` both
`long_strategy` and `short_strategy` must be non-empty and `active_leg`
must be one of `long` / `short` / `idle`.

## Redeploy

**Headless (paper / auto):** the `deploy` skill. Resume is automatic;
`stop --wait 120` stops it.

- Packaged install (no Python): from the EXE folder,
  `tai_backtest.exe deploy --symbol S --bot B [--strategy …] --mode paper --detach --wait-ready 240`.
  The child process is `tai_backtest.exe`, not `python.exe`.
- Source checkout (oreopie), main tree:
  `python run_bot_cli.py deploy --symbol S --bot B [--strategy …] --detach --wait-ready 240`.
  The child process is `python.exe` running `run_bot_cli.py`.

**Workbench (required for `semi_auto`, which needs the order-confirm dialog):**

1. start `dist\tai_backtest\tai_backtest.exe`
2. log in (Capital API credentials)
3. open the 部署 (deploy) tab
4. pick the saved session row for the bot — the dialog pre-fills
   strategy / trading mode / legs from that bot's `session.json`
5. deploy; the runner re-acquires `.lock` and resumes from `session.json`

## Gotchas

- **`mode_override.json` can only flip `trading_mode` on an ALREADY
  RUNNING bot.** It cannot start one, and it is not a deploy mechanism.
  A headless bot refuses `auto`, `real`, and any other live/real-money
  mode from that file (`allow_live_override` does not bypass it); `paper`
  still applies. `deploy --mode auto` is unchanged.
- **A `settings.yaml` news value can silently miswire the bridge; check it first.**
  Empty `news.regime_vote_path` (also the `settings.example.yaml` default):
  every W2/W3/W4 vote expires unread (looks like "no votes produced").
  A non-empty `news.rss_feeds` replaces the shipped defaults, so an old
  copied list survives upgrades (`check_bridge` P3); after an upgrade,
  diff that list against `settings.example.yaml`.
- Relative news paths resolve against the project root, not the EXE's
  cwd. Absolute paths are what the Steven bridge tasks write (`C:\Users\Traderbot\n8n-bridge\`).
- `session.json` is the deploy dialog's pre-fill source; if it is corrupt
  the dialog cannot restore the bot and a resume would start flat.
- Never hardcode channel IDs, role IDs, tokens, or webhook URLs in source
  or in a report. Read them from `settings.yaml` at runtime only.
- Verify a packaged EXE with `dist/tai_backtest/BUILD_INFO.json` — a
  release EXE has silently diverged from its tag before.

## Next steps

- needs (re)starting headlessly → `deploy`
- after redeploying → `bot-status` to confirm the lock and a fresh log line
- votes still not consumed → `bridge-health`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.