Skip to content

feat(dashboard): CPS manager cockpit with live spec watching (supersedes #204) - #238

Merged
danielvm-git merged 2 commits into
mainfrom
feat/cps-cockpit-salvage
Nov 8, 2026
Merged

danielvm-git merged 2 commits into
mainfrom
feat/cps-cockpit-salvage

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Summary

Delivers the CPS Manager Cockpit from #204 without the epic renumbering that made #204 unmergeable. Supersedes #204.

Why not merge #204 as-is

#204 is 67 commits behind main and conflicts on 28 paths. The conflicts are not incidental — they are:

Commit in #204 Size Status
f3941bd2 refactor(specs): renumber open epics into retired gaps 166 files, +5341/−4954 Superseded — main did its own renumbering in 732bd4f7
56cf0af2 fix(specs): reconcile stale bug and integration-epic status 11 files Superseded — planning SoT has moved on (e83–e93, e83 archived)
4e4e0f98 fix(gates): G-12 self-test drift across normalised states 3 lines Already on main (line 296, from PR #202)
6b2a07f0 feat(dashboard): CPS manager cockpit 2 new files, +856 Clean
9ace4ab5 feat(dashboard): epic scope map 2 files, +30/−13 Clean

A literal merge would rewrite epic IDs across 166 files and drop every epic added since (e83–e93, the archived e83 capsule). The two dashboard commits apply cleanly and touch only new files, so those are what this PR carries.

What lands

  • dashboard/cps-cockpit/server.js — snapshot builder over specs/ + git, SSE live updates on /events, /api/model.
  • dashboard/cps-cockpit/index.html — phase, health RAG, KPIs, velocity, WSJF backlog, epic scope map.
  • 9ace4ab5 retained with an amended message: it reads a renumbered: map from release-plan.yaml that does not exist on main. The access is defensive — (rp.renumbered || {}).map || [] — so the renumber-specific rendering is inert rather than broken, and lights up if such a map is ever added.

Security review of the new server

This repo has already fixed two dashboard defects (BUG-2026-10-29-dashboard-loopback, BUG-2026-10-29-dashboard-html-escaping), so the new process was checked against both:

  • Bind: .listen(PORT, '127.0.0.1') — loopback only. ✓
  • Escaping: an esc() helper over &<>" is applied on the interpolated render paths (alerts, next, epic titles, handoff). ✓
  • No shell: execFileSync('git', [...] , {cwd}) with an argv array, no shell: true. ✓
  • No path traversal: routes are compared (/, /events, /api/model), never joined into a filesystem path; all file reads use fixed relative paths under ROOT. ✓

Residual, accepted: alert area/practice and health d.area are interpolated without esc(); all are server-generated enum values, not spec text.

Verify

  • npm run compliance — exit 0
  • bash scripts/run-verification-gates.sh — 64/64 deterministic, PASS
  • bash scripts/trace-stories.sh --strict — exit 0
  • Generated-artifact drift step — exit 0
  • Merge vs origin/main — clean, zero conflicts
  • 2 commits, conventional, no Co-authored-by

Files

  • dashboard/cps-cockpit/server.js (new)
  • dashboard/cps-cockpit/index.html (new)

Local server (npm run cockpit) that renders RAG health, KPIs, burn-up,
velocity, WSJF backlog and a full epic scope map from specs/ and git,
pushing updates over SSE when status files change.

(cherry picked from commit 6b2a07f)
Shows each open epic in the cockpit scope map with its WSJF, BCP and story
coverage, read from release-plan.yaml, execution-status.yaml and the capsule
epic.yaml files rather than from a hardcoded list.

(cherry picked from commit 9ace4ab5eda4bb1f9be1a5b7b64b3f1b2a8b0a8f)
@danielvm-git
danielvm-git merged commit 792ac3c into main Nov 8, 2026
5 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 8, 2026
# [2.96.0](v2.95.2...v2.96.0) (2026-11-08)

### Features

* **dashboard:** CPS manager cockpit with live spec watching (supersedes [#204](#204)) ([#238](#238)) ([792ac3c](792ac3c))
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.96.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant