Personal Telegram developer console for GitHub

docs: add 2026-10-05-cp5-cicd-control-plane implementation plan

davoodmehraban89 committed Oct 5, 2026 at 05:29 UTC c222af34809bb54b052654a2c7a15adc0c625d50
1 file changed +49
docs/superpowers/plans/2026-10-05-cp5-cicd-control-plane.md new
+49
@@ -0,0 +1,49 @@
1 +# CP5 CI/CD Control Plane Implementation Plan
2 +
3 +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
4 +
5 +**Goal:** Correlate exact-commit GitHub CI/deploy evidence with active Cloudflare runtime state in one owner-only control plane.
6 +
7 +**Architecture:** Add a pure correlation layer that consumes existing GitHub and Cloudflare adapters and emits explicit pending/failed/success/mismatch states. UI actions delegate to CP3/CP4 routes; the correlator never mutates providers.
8 +
9 +**Tech Stack:** Node.js ESM, GitHub Actions API, Cloudflare service, Telegram, node:test.
10 +
11 +**Spec:** docs/superpowers/specs/2026-10-05-control-plane-completion-design.md
12 +
13 +## Global Constraints
14 +- Exact SHA correlation is mandatory.
15 +- A green CI run alone is not deployment success.
16 +- No invented timing/SLA.
17 +- Correlator is READ-only.
18 +
19 +## Review Focus
20 +- CI success + wrong active version => mismatch.
21 +- Deploy pending => pending, not success.
22 +- Multiple deployments/traffic splits are represented.
23 +- Missing provider evidence is unknown, not failure/success.
24 +- Stale workflow runs are not mistaken for current SHA.
25 +
26 +---
27 +
28 +### Task 1: Correlation model
29 +**Files:** create `src/core/cicd-control-plane.js`, create `test/cicd-control-plane.test.js`
30 +
31 +- [ ] RED table tests for pending/failed/success/mismatch/unknown.
32 +- [ ] Implement pure `correlateDeliveryState(input)`.
33 +- [ ] GREEN and commit.
34 +
35 +### Task 2: Provider aggregation
36 +**Files:** `src/ops-menu.js`, GitHub/Cloudflare plugins as needed, new integration test.
37 +
38 +- [ ] RED tests for exact-SHA reads and no mutation.
39 +- [ ] Implement owner-only aggregate loader.
40 +- [ ] GREEN and commit.
41 +
42 +### Task 3: Telegram view
43 +- [ ] RED tests for drill-down, recovery and callback limits.
44 +- [ ] Implement state view with links/actions delegating to CP3/CP4.
45 +- [ ] GREEN and commit.
46 +
47 +### Task 4: CP5 release gate
48 +- [ ] Full test, diff review, docs/memory.
49 +- [ ] PR/CI/merge/deploy and production evidence showing exact SHA correlation.