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
38 changes: 37 additions & 1 deletion docs/hardening/PMOVES-hardening-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Comprehensive hardening posture, CI/CD build infrastructure, and service runtime status for the PMOVES.AI platform.

Last updated: 2026-03-05
Last updated: 2026-03-26

Live snapshot (2026-03-04): `PMOVES.AI` open PRs `0`, CodeQL open alerts `0`, Dependabot open alerts `1` (`medium`). Use `pmoves/docs/PRODUCTION_AUDIT_DASHBOARD.md` as the source-of-truth for live counters.

Expand Down Expand Up @@ -145,6 +145,42 @@ Exception: `deepresearch` is amd64-only.

---

## Release Notes / CVE Funnel

Use two documentation sinks on purpose:
- `pmoves/docs/PRODUCTION_AUDIT_DASHBOARD.md`
- live counters, open-alert snapshots, release evidence, and current blockers
- `docs/hardening/PMOVES-hardening-tracker.md`
- recurring cadence, unresolved issue classes, and the operator policy for how signals are reviewed

### Cadence

| Cadence | Signal source | Operator action | Documentation sink |
|----------|---------------|-----------------|--------------------|
| Daily / active merge lane | Production Audit Dashboard, open PR checks, current CodeQL / Dependabot counts | Re-triage blockers, keep release lane clean, update ownership if a service group drifts | Audit dashboard first; `pmoves/docs/NEXT_STEPS.md` if priorities change |
| Weekly | `.github/workflows/codeql.yml`, `.github/workflows/yt-dlp-bump.yml`, `.github/workflows/python-images-toolchain-canary.yml`, Dependabot queue | Review new alerts/PRs, confirm image/toolchain bumps still pass the intended gates, merge or re-scope follow-ups | Hardening tracker + audit dashboard |
| Pre-release / infra touch | `make -C pmoves smoke-prod`, `make -C pmoves ghcr-prepublish-inrepo`, `make -C pmoves audit-layers-static` / `audit-layers-runtime`, `make -C pmoves ci-runners-check-strict` | Capture evidence, confirm runner capacity, close Trivy/hardening drift before promotion | Audit dashboard, plus `pmoves/docs/operations/FIRST_RUN.md` / `pmoves/docs/operations/MAKE_TARGETS.md` / `pmoves/docs/services/supabase/README.md` when command paths change |

### Current funnel components

- Code scanning:
- `codeql.yml` provides recurring code-level CVE/security signal.
- Dependency freshness:
- `yt-dlp-bump.yml` keeps the extractor lane current on a weekly cadence.
- `python-images-toolchain-canary.yml` tests pinned Python image candidates weekly with a Trivy gate before opening a PR.
- Image / runtime release gates:
- `make -C pmoves ghcr-prepublish-inrepo`
- `make -C pmoves ghcr-prepublish-all`
- `make -C pmoves smoke-prod`
- Data-plane operator checks:
- `make -C pmoves supa-status`
- `make -C pmoves bootstrap-data`
- `make -C pmoves monitoring-smoke-prod`

The goal is to keep release-note and CVE awareness on a predictable interval instead of waiting for a feature PR to stumble into stale dependencies or hidden infra drift.

---

## Service Runtime Status

### Total Services: 66 defined in docker-compose.yml
Expand Down
19 changes: 18 additions & 1 deletion pmoves/docs/NEXT_STEPS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@

# PMOVES v5 • NEXT_STEPS
Note: Consolidated plan index at pmoves/docs/PMOVES.AI PLANS/README_DOCS_INDEX.md.
_Last updated: 2026-03-12_
_Last updated: 2026-03-26_

## Current Status

### Latest changes (Mar 26, 2026) — Data Services Provisioning + Release Cadence Alignment
- Operator docs are being tightened around one modular data-plane story instead of multiple overlapping setup paths:
- Supabase remains the system of record and runtime control plane.
- Qdrant + Meilisearch are the retrieval indexes seeded after Supabase.
- Neo4j is the graph/mind-map layer seeded alongside geometry aliases.
- n8n stays optional for base bring-up but is the preferred automation/control-plane add-on once the base data services are healthy.
- Release-note/CVE intake is being funneled through the existing signals instead of ad-hoc checks:
- scheduled `codeql.yml`, `yt-dlp-bump.yml`, and `python-images-toolchain-canary.yml`
- local GHCR/Trivy gates via `make -C pmoves ghcr-prepublish-inrepo`
- runtime/release evidence via `pmoves/docs/PRODUCTION_AUDIT_DASHBOARD.md` and `docs/hardening/PMOVES-hardening-tracker.md`
- Next focus: finish Supabase runtime alignment, validate the modular bring-up against the live node stack, and keep the docs in sync whenever the data-plane command path changes.

### Latest changes (Mar 12, 2026) — PMOVES.YT Authoritative Runtime Refresh
- `PMOVES.YT` is now the authoritative runtime/docs lane for `pmoves-yt`; the root repo now builds the service from the submodule Dockerfile instead of treating `pmoves/services/pmoves-yt` as the source of truth.
- Added a structured yt-dlp catalog inside the submodule (`/yt/docs/catalog`) so live runtime metadata exposes extractor counts, option inventory, and the active yt-dlp version.
Expand Down Expand Up @@ -43,6 +55,11 @@ _Last updated: 2026-03-12_
- decide which BotZ/MCP workflows become canonical shared automation flows
- keep Supabase workflow registry sync green as creator automation expands

4. Button up modular data services provisioning and release/CVE cadence.
- keep one explicit provisioning contract for Supabase, Neo4j, Qdrant, Meilisearch, and optional n8n instead of letting setup drift across docs
- funnel release-note/CVE signals into the existing dashboard + hardening tracker at weekly and pre-release intervals
- update the canonical operator docs whenever runtime defaults, service ownership, or bootstrap order changes

### Latest changes (Mar 8, 2026) — CI Runner Migration + RG-3 Automation
- **AB-9 mitigation:** Migrated 10 lightweight CI jobs from `[self-hosted, Linux, X64]` to `ubuntu-latest`:
- `sql-policy-lint`, `python-tests`, `webhook-smoke`, `yt-dlp-bump`, `deploy-gateway-agent` (validate only)
Expand Down
21 changes: 20 additions & 1 deletion pmoves/docs/PMOVES.AI PLANS/README_DOCS_INDEX.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PMOVES v5 • Documentation Index
_Last updated: 2026-03-12 — add PMOVES.YT authoritative runtime path_
_Last updated: 2026-03-26 — data services provisioning + release cadence refresh_

## Directory Map

Expand Down Expand Up @@ -47,8 +47,11 @@ After the 2026-02-18 reorganization, `pmoves/docs/` is organized as:
- **Submodule Production Release Checklist (deterministic gates + merge order)** — `../integrations/SUBMODULE_PRODUCTION_RELEASE_CHECKLIST.md`
- **Docker Build Operator Guide** — `../operations/DOCKER_BUILD_GUIDE.md`
- **First-Run Bootstrap** — `../operations/FIRST_RUN.md`
- **Data Services Provisioning** — `../operations/FIRST_RUN.md` + `../services/supabase/README.md`
- **Data Services Commands** — `../operations/MAKE_TARGETS.md`
- **Archon Updates + Supabase wiring** — `archonupdateforpmoves.md`
- **Supabase Service Guide** — `../services/supabase/README.md`
- **Hardening Tracker** — `../../../docs/hardening/PMOVES-hardening-tracker.md`
- **Archon Service README** — `../services/archon/README.md`
- **Monitoring Stack (Prometheus, Grafana, Loki)** — `../services/monitoring/README.md`
- **n8n Setup (Supabase→Agent Zero→Discord)** — `N8N_SETUP.md`
Expand All @@ -64,6 +67,22 @@ After the 2026-02-18 reorganization, `pmoves/docs/` is organized as:
- Supabase CLI prerequisites: run `make supa-start` then `make supa-status` to refresh Supabase keys. `npm run dev` now layers `env.shared` + `.env.local` automatically, so keep those root files current.
- Notebook Workbench: [`UI_NOTEBOOK_WORKBENCH.md`](../infrastructure/UI_NOTEBOOK_WORKBENCH.md) — Supabase prerequisites, smoketest target, and troubleshooting tips for the `/notebook-workbench` page.

## Data Plane & Release Ops

- Bootstrap / repair path:
- `../operations/FIRST_RUN.md`
- `../operations/MAKE_TARGETS.md`
- `../services/supabase/README.md`
- Core data-store service docs:
- `../services/qdrant/README.md`
- `../services/meilisearch/README.md`
- `../services/neo4j/README.md`
- `../services/n8n/README.md`
- Release-note / CVE cadence and evidence:
- `../PRODUCTION_AUDIT_DASHBOARD.md`
- `../../../docs/hardening/PMOVES-hardening-tracker.md`
- `../../../docs/hardening/PYTHON_IMAGES_TOOLCHAIN_CANARY.md`

## Creative Tutorials (Automation Inputs)
- Qwen Image Edit Plus — `pmoves/creator/tutorials/qwen_image_edit_plus_tutorial.md`
- WAN Animate 2.2 — `pmoves/creator/tutorials/wan_animate_2.2_tutorial.md`
Expand Down
6 changes: 5 additions & 1 deletion pmoves/docs/PMOVES.AI PLANS/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PMOVES v5 • ROADMAP
Last updated: 2026-03-12
Last updated: 2026-03-26

## Vision
A production-ready, self-hostable orchestration mesh for creative + agent workloads across GPU boxes and Jetsons: **hybrid Hi‑RAG**, **Supabase Studio**, **n8n orchestration**, **Jellyfin publishing**, and **graph-aware retrieval**.
Expand All @@ -23,6 +23,10 @@ A production-ready, self-hostable orchestration mesh for creative + agent worklo
- workflow activation now targets the n8n 2.1 Public API (`/api/v1/workflows/{id}/activate|deactivate`) instead of the brittle CLI publish fallback.
- Supabase tracking contract added: `pmoves_core.n8n_workflow_registry` stores live workflow state synced from n8n.
- creator-control traversal now explicitly routes through `PMOVES-Creator`, `PMOVES-Open-Notebook`, and `CATACLYSM_STUDIOS_INC` so strategy, drafting, and platform-governance context are part of the operator path instead of living outside the service runbooks.
- March 26 data-plane ops cleanup is active:
- operator docs are being normalized around one modular provisioning contract: Supabase system-of-record first, then Neo4j/Qdrant/Meilisearch, then optional n8n automation/control-plane overlays.
- the runtime choice is now treated as explicit operator intent instead of an implicit default: `SUPABASE_RUNTIME=cli` for bootstrap/data repair, `SUPABASE_RUNTIME=compose` for release-mode parity and guard rails.
- release-note/CVE intake is being funneled through the existing weekly/scheduled lanes (`codeql.yml`, `yt-dlp-bump.yml`, `python-images-toolchain-canary.yml`) plus local GHCR/Trivy gates, with outcomes tracked in the production audit dashboard and hardening tracker.
- March 7 merge wave completed on `main`: `#814`, `#815`, `#816`, `#817`, `#818`, `#819`, `#820`, `#821` (8 PRs, 3 batches).
- Chrome extension security hardening landed in `#821`: 9 CodeRabbit review items addressed (auth storage isolation, XSS remediation, mock server hardening, timeout guards, state management fixes, CSP).
- Distributed topology documentation + examples landed in `#820`.
Expand Down
51 changes: 44 additions & 7 deletions pmoves/docs/operations/FIRST_RUN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# First-Run Bootstrap Overview
_Last updated: 2025-01-17_
_Last updated: 2026-03-26_

`make first-run` is the guided path for bringing a fresh PMOVES checkout online. It chains the critical environment, database, and container steps so operators land on a fully functional stack (Supabase CLI, mesh agents, external integrations, and seeded demo data) without manual orchestration.
`make first-run` is the guided path for bringing a fresh PMOVES checkout online. It chains the critical environment, database, and container steps so operators land on a fully functional stack without hand-wiring each layer. Use it as the umbrella command, but keep the underlying data-service layers explicit so Supabase, retrieval stores, optional automation, and release gates stay modular instead of drifting together.

## Quick Start

Expand All @@ -19,6 +19,18 @@ This single command will:
6. ✓ Start agents (Agent Zero, Archon)
7. ✓ Seed Agent Zero MCP servers

## Provisioning Layers

| Layer | Required | Canonical path | What it owns |
|---------|---------|----------------|--------------|
| Supabase control plane | Yes | `make supa-start` + `make supabase-bootstrap` for CLI-backed bootstrap, or `SUPABASE_RUNTIME=compose make up` when intentionally certifying the compose/Kong lane | Postgres, PostgREST, GoTrue, Realtime, Storage, operator auth |
| Retrieval stores | Yes for Hi-RAG and creator indexing | `make bootstrap-data` or the subset `make neo4j-bootstrap` + `make seed-data` | Neo4j graph aliases, Qdrant vectors, Meilisearch lexical index |
| Core consumers | Yes | `make up` | Hi-RAG gateways, retrieval-eval, presign, render-webhook, extract workers, PMOVES.YT, Jellyfin bridge |
| Automation/control plane | Optional for base bring-up, recommended for creator/publishing work | `make up-n8n` + `make n8n-api-bootstrap` | n8n workflows, Supabase workflow registry sync, approval/publish orchestration |
| Observability + release gates | Required before release or promotion | `make up-monitoring`, `make monitoring-smoke-prod`, `make ghcr-prepublish-inrepo` | Prometheus/Grafana/Loki health, Trivy-backed image validation, release evidence |

Supabase Storage is the default S3-compatible backend for the current single-env path. Treat standalone MinIO as a compatibility lane, not the primary object-store story.

## Tool Requirements

The bootstrap process checks for these required tools:
Expand All @@ -41,22 +53,28 @@ If tools are missing or outdated, the bootstrap will provide installation/update
- If not, runs `make supa-start` (CLI mode)
- **New:** Handles port conflicts automatically with cleanup steps
- **New:** Provides troubleshooting hints for common issues
- When you bypass `make first-run`, choose `SUPABASE_RUNTIME` explicitly instead of assuming the same runtime fits bootstrap, daily development, and release certification.

### 3. Schema + Demo Data
### 3. Schema + Modular Data Bootstrap
- `make bootstrap-data` triggers:
- `make supabase-bootstrap` → replays migrations via `supabase db reset`
- `make supabase-bootstrap` → replays pending SQL in Supabase first
- `make neo4j-bootstrap` → applies persona aliases and CHIT geometry fixtures
- `make seed-data` → feeds the hi-rag demo corpus into Qdrant/Meili
- `make seed-data` → feeds the Hi-RAG demo corpus into Qdrant/Meili
- This keeps the system-of-record layer (Supabase) ahead of graph/vector/lexical stores instead of treating all data services as one opaque bundle.

### 4. Core Services
- `make up` starts the default compose profiles (Qdrant, Neo4j, MinIO, Meilisearch, presign, hi-rag gateways, langextract, extract-worker, render-webhook, pmoves-yt, Jellyfin bridge)
- `make up` starts the default compose profiles (Qdrant, Neo4j, Meilisearch, MinIO compatibility service, presign, hi-rag gateways, langextract, extract-worker, render-webhook, pmoves-yt, Jellyfin bridge)

### 5. Agent Mesh
- `make up-agents-ui` launches NATS, Agent Zero, Archon, Archon UI, mesh-agent, publisher-discord

### 6. MCP Server Seeding
- `make a0-mcp-seed` writes MCP server configurations to Agent Zero runtime

### 7. Optional Automation + Release Ops
- `make up-n8n` adds the workflow layer after the base data plane is healthy.
- `make monitoring-smoke-prod`, `make ghcr-prepublish-inrepo`, and the hardening tracker close the loop from provisioning into release readiness and CVE intake.

## Enhanced Error Handling

The bootstrap process now provides helpful guidance for common issues:
Expand Down Expand Up @@ -96,6 +114,17 @@ Troubleshooting:
| PMOVES UI | http://localhost:4482 | Main dashboard |
| Grafana | http://localhost:3002 | Metrics (admin/admin) |
| Prometheus | http://localhost:9090 | Metrics scraping |
| n8n | http://localhost:5678 | Optional workflow control plane |

## Integration Checkpoints

| Checkpoint | Command | Why it matters |
|---------|---------|----------------|
| Runtime export | `make supa-status` | Regenerates `pmoves/env.supa.runtime` so services consume the active Supabase endpoints/keys |
| Cross-store bootstrap | `make bootstrap-data` | Reconciles Supabase schema, Neo4j aliases, and Qdrant/Meili indexes in the intended order |
| Retrieval integration | `make smoke` | Verifies PostgREST, graph warmup, and vector/lexical retrieval paths together |
| Automation layer | `make up-n8n` then `make n8n-api-bootstrap` | Adds workflow orchestration without changing the base data-plane contract |
| Release/CVE posture | `make monitoring-smoke-prod` and `make ghcr-prepublish-inrepo` | Confirms runtime health and image-scan posture before promotion |

## Re-running Portions

Expand All @@ -105,20 +134,28 @@ Troubleshooting:
| `make supa-start` | Start Supabase CLI |
| `make supa-stop` | Stop Supabase CLI |
| `make supa-status` | Check Supabase status |
| `make supa-runtime-guard SUPABASE_RUNTIME=<cli\|compose>` | Fail fast on mixed-runtime drift |
| `make supabase-bootstrap` | Replay migrations/seeds |
| `make neo4j-bootstrap` | Seed Neo4j |
| `make seed-data` | Seed Qdrant/Meili |
| `make bootstrap-data` | Full data bootstrap |
| `make up` | Start core services |
| `make up-agents-ui` | Start agents + UIs |
| `make up-n8n` | Start optional workflow control plane |
| `make status-all` | Check all service health |
| `make smoke` | Run smoke tests |
| `make monitoring-smoke-prod` | Production-profile observability verification |
| `make ghcr-prepublish-inrepo` | Local-first image + Trivy release gate |

The first-run command is safe to repeat; it will only restart services or reapply seeds where necessary and provides clear output when manual follow-up is required.

## Additional Docs

- [Local Development & Networking](LOCAL_DEV.md) — service ports, Supabase runtime modes, and Cloudflare tunnel guidance
- [Make Targets](MAKE_TARGETS.md) — canonical command map for bring-up, smokes, GHCR gates, and runner checks
- [Supabase Service Guide](../services/supabase/README.md) — runtime choices, data-service contract, and maintenance notes
- [Local Tooling Reference](LOCAL_TOOLING_REFERENCE.md) — make/CLI helpers, mini CLI commands, env scripts
- [External Integrations Bring-Up](../EXTERNAL_INTEGRATIONS_BRINGUP.md) — deeper dives on Wger, Firefly, Jellyfin, Open Notebook runbooks
- [PMOVES Docs Index](PMOVES.AI%20PLANS/README_DOCS_INDEX.md) — curated links by integration or roadmap item
- [Production Audit Dashboard](../PRODUCTION_AUDIT_DASHBOARD.md) — live counters and release evidence surface
- [Hardening Tracker](../../../docs/hardening/PMOVES-hardening-tracker.md) — recurring release-note / CVE cadence and unresolved posture items
- [PMOVES Docs Index](../PMOVES.AI%20PLANS/README_DOCS_INDEX.md) — curated links by integration or roadmap item
Loading
Loading