Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/test-suite-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,14 +629,13 @@
"id": "quota-exporters",
"paths": [
"pm-stack/opencode-usage-export/opencode-usage-export.test.mjs",
"pm-stack/cloudflare-export/cloudflare-quota-export.test.mjs",
"pm-stack/supabase-export/supabase-quota-export.test.mjs"
"pm-stack/cloudflare-export/cloudflare-quota-export.test.mjs"
],
"invocation": "Node/Bun tests; exact per-package commands not established",
"venue": null,
"status": "uncovered",
"phase2_issue": 6084,
"reason": "Three exporter suites have no venue."
"reason": "Two exporter suites have no venue."
},
{
"id": "github-backup.worker",
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/pm-stack-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,6 @@ jobs:
- name: Test cloudflare-export suite
run: node --test pm-stack/cloudflare-export/cloudflare-quota-export.test.mjs

# supabase-export: bun test (12 tests)
- name: Test supabase-export suite
working-directory: pm-stack/supabase-export
run: |
if [ ! -f supabase-quota-export.test.mjs ]; then
echo "::error::Missing suite file pm-stack/supabase-export/supabase-quota-export.test.mjs — the supabase suite was not run."
exit 1
fi
bun test

# meta-exporter: node --test (suite for #6344; the explicit file
# path is required — the directory form fails on Node 24). The
# file is asserted to exist first, so a green run cannot be a
Expand Down
2 changes: 1 addition & 1 deletion .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4492,7 +4492,7 @@
// seat is the CLAUDE bucket, same stage, equal weight 10.
// 2026-11-09 (Drew, AA-match rule): the Sonnet seat drops
// #high -> #medium. A pool is matched by its AA score, not
// its effort label. AA v5 (Supabase ainventory via the
// its effort label. AA v5 (ainventory via the
// aggregator collector's aa-last-good, generated
// 2026-11-10T00:40Z, read tonight): this pool sits at Luna
// #xhigh II 23, Gemini 3.8 Flash #high II 31, and Spark
Expand Down
2 changes: 1 addition & 1 deletion home/openclaw/workspace/FLEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Standing repo rules: merge commits only · never force-push main · **never touc
- **mcpx** — Drew's MCP gateway: one daemon fronts the fleet's MCP servers (codedb, fff, chrome-devtools, context7, desktop-commander, …). This gateway also has direct MCP wiring to the most useful of those (see openclaw.json `mcp.servers`).
- **Notes system** — Emanote Zettelkasten: `dezren39/zettel` + `developing-today/zettel`. Drew brain-dumps; agents explode into small interlinked notes and push.
- **Basement lab cluster** (goal, in progress) — Talos + Cozystack + TALM, Postgres (CNPG), RustFS, ~12 Threadripper machines. **Hard rule: no HashiCorp tooling.**
- **Supabase `muse-dev`** — Muse's platform project (backups to R2). Not OpenClaw's concern unless asked.
- **Fleet data** — Turso is the fleet's only database platform (Supabase is retired). Not OpenClaw's concern unless asked.
53 changes: 3 additions & 50 deletions nixos/home/laptop-backups.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# Jobs:
# - pm-dashboard-backup (daily ~04:30): the PM dashboard / orchestration
# state set as a dated tar.zst with a sha256 manifest to the local
# backup dir, Cloudflare R2 (supabase-backups) and Google Drive
# backup dir, Cloudflare R2 (bucket supabase-backups, a legacy R2
# bucket name) and Google Drive
# (Cloud/cold-store/db-backups/pm-aggregator/<date>/), every copy
# sha256-verified, 30-day retention. Runs the code#1514 DB-dump script
# first when it exists at ~/tools/pm-stack-db-backup.sh, and its dumps
Expand Down Expand Up @@ -46,12 +47,6 @@
# The agent state DB is snapshotted with sqlite3 .backup so the
# archived copy is transaction-consistent. Script:
# ./openclaw-backup.sh (vendored here; same credential pattern).
# - supabase-backup (twice daily 04:42 + 16:42): pg_dump of the muse-dev
# Supabase project to R2 (supabase-backups), content-hashed names.
# Migrated from the sandbox 2026-10-28 (developing-today/code#1723);
# the unit is declared here per Drew's all-services-in-nix rule the
# same day. Script: ~/tools/supabase-backup.sh (wrapper; the dump
# program + config live in ~/tools/supabase-backup/).
# - atlas-backup (daily ~04:47): the canonical local atlas.db
# (~/atlas/turso-atlas/data/atlas.db) snapshotted with sqlite3
# .backup, gzipped deterministically, and filed to the local backup
Expand Down Expand Up @@ -141,7 +136,7 @@ let
in
{
options.services.laptop-backups = {
enable = lib.mkEnableOption "the laptop backup jobs (dashboard, repo archive, openclaw, supabase, cold-store, atlas)";
enable = lib.mkEnableOption "the laptop backup jobs (dashboard, repo archive, openclaw, cold-store, atlas)";

dashboard = {
enable = lib.mkOption {
Expand Down Expand Up @@ -187,27 +182,6 @@ in
};
};

supabase = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Twice-daily pg_dump backup of the muse-dev Supabase project to R2 (code#1723).";
};
onCalendar = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [
"04:42"
"16:42"
];
description = "Daily run times (local) for the Supabase backup.";
};
script = lib.mkOption {
type = lib.types.str;
default = "${home}/tools/supabase-backup.sh";
description = "Path of the Supabase backup wrapper script to run.";
};
};

atlas = {
enable = lib.mkOption {
type = lib.types.bool;
Expand Down Expand Up @@ -337,16 +311,6 @@ in
};
};
})
(lib.mkIf cfg.supabase.enable {
supabase-backup = {
Unit.Description = "Twice-daily Supabase muse-dev pg_dump backup to R2 (code#1723)";
Service = {
Type = "oneshot";
ExecStart = cfg.supabase.script;
TimeoutStartSec = "30m";
};
};
})
(lib.mkIf cfg.atlas.enable {
atlas-backup = {
Unit.Description = "Daily atlas.db backup - local + R2 + Drive (code#1515)";
Expand Down Expand Up @@ -458,17 +422,6 @@ in
Install.WantedBy = [ "timers.target" ];
};
})
(lib.mkIf cfg.supabase.enable {
supabase-backup = {
Unit.Description = "Run the Supabase muse-dev backup twice daily";
Timer = {
OnCalendar = cfg.supabase.onCalendar;
Persistent = true;
RandomizedDelaySec = "15m";
};
Install.WantedBy = [ "timers.target" ];
};
})
(lib.mkIf cfg.atlas.enable {
atlas-backup = {
Unit.Description = "Run the atlas backup daily (code#1515)";
Expand Down
2 changes: 1 addition & 1 deletion nixos/home/laptop-state-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ recovery source found.
| `pm-stack/.env` | sops | rendered by `deploy.sh` from `secrets/pm-stack.sops.yaml` |
| `pm-stack/grist/.env` | sops | `secrets/pm-stack.sops.yaml` (`grist` keys); Bitwarden `grist.*` |
| `pm-stack/pad/.env` | sops | `secrets/pm-stack.sops.yaml`; Bitwarden `pad.*` |
| `pm-stack/dispatch/.env` | vault + sops | `DISPATCH_API_TOKEN` from `pm-dispatch.api-token`; `SUPABASE_URL` / `SUPABASE_SERVICE_ROLE_KEY` from `supabase.muse-dev2.project-url` / `supabase.muse-dev2.service-role-key`; GitHub App key from `secrets/pm-stack.sops.yaml` |
| `pm-stack/dispatch/.env` | vault + sops | `DISPATCH_API_TOKEN` from `pm-dispatch.api-token`; GitHub App key from `secrets/pm-stack.sops.yaml` |
| `secrets/dispatch.env` (+ two `.bak-*`) | vault | `pm-dispatch.api-token` (README: restore from vault before `install.sh`) |
| `pm-stack/retired-2026-10-27/aggregator-deployed-copy/.env` | retired | not restored; no recovery needed (retired tree) |
| `pm-stack/dispatch/` source, `compose.yml`, `deploy.sh`, `pad/`, `grist/` scripts | repo | in git (`developing-today/code`) |
Expand Down
Loading