Files
mopac-pmo/scripts/order-overnight-queue.sh
T

28 lines
2.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# order-overnight-queue.sh — bump tickets freshest-last so the loop's
# updated_on-desc scan takes them in this exact priority order overnight.
# Dispatcher first (makes the rest smart), heavy/low-value last.
set -eu
cd /home/reachableceo/projects/meta/MOPAC/redmine-go
set -a; . ~/.creds/redmine.env; set +a
export MRED_URL=https://projects.knownelement.com MRED_KEY="$REDMINE_API_KEY"
bump() { bin/mred issue update "$1" --note "$2" >/dev/null; echo "bumped $1"; }
# --- bump LOW priority FIRST (scan takes freshest first) ---
bump 514 "Overnight: k8s client, fake-tested (no cluster needed). Slice: typed client + fake server tests + CLI + docs."
bump 513 "Overnight: HomeAssistant client (REST API), fake-tested. Small slice: states/services calls + tests."
bump 510 "Overnight: SSH/MCP fleet groundwork — golang.org/x/crypto/ssh client wrapper (existing dep ok), host inventory struct, exec runner, fake shell tests. Live Kali/OpenVAS wiring comes after Charles."
bump 509 "Overnight: browser automation client skeleton — CDP (Chrome DevTools Protocol) minimal client: connect, navigate, eval, screenshot. Fake websocket tests. No browser launch yet."
bump 500 "Overnight: Google suite client skeleton, fake-tested (oauth flows stubbed, API shapes typed): gmail list/send, tasks, keep-notes placeholder, docs export."
bump 505 "Overnight: Discord client skeleton (REST + webhook), fake-tested: channel post, thread create, webhook send. Bot token wiring after Charles."
bump 504 "Overnight: Signal client skeleton — signal-cli REST (JSON-RPC) wrapper: send, receive, linking status. Fake-tested; QR linking after Charles."
bump 503 "Overnight: Google Chat client (REST), fake-tested: space/message list+create, webhook."
bump 512 "Overnight: Cloudron API client, fake-tested per staged TASK scope (app list/status/restart, backups, events)."
bump 502 "Overnight: Linkwarden client per staged TASK scope (bookmarks, tags, intake polling), fake-tested."
bump 497 "Overnight: keyproxy BW/Vault backends + CLI per staged TASK scope — fake-tested; live creds land with Charles 0900+."
# --- HIGH priority LAST (freshest = taken first) ---
bump 493 "Overnight P1: phase-aware model selection (heavy plan/light chunks) — class routing by task shape, quota-aware tier fallback."
bump 492 "Overnight P0: queue selection v1 — priority desc, due asc, id asc; In Progress = claimed; feeds the 9-account fleet at 0900."
echo "queue ordered $(date -Is)"