Repository navigation
feat(dashboard): CPS manager cockpit with live spec watching (supersedes #204) - #238
Merged
Merged
Conversation
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)
|
🎉 This PR is included in version 2.96.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Delivers the CPS Manager Cockpit from #204 without the epic renumbering that made #204 unmergeable. Supersedes #204.
Why not merge #204 as-is
#204is 67 commits behindmainand conflicts on 28 paths. The conflicts are not incidental — they are:f3941bd2refactor(specs): renumber open epics into retired gapsmaindid its own renumbering in732bd4f756cf0af2fix(specs): reconcile stale bug and integration-epic status4e4e0f98fix(gates): G-12 self-test drift across normalised statesmain(line 296, from PR #202)6b2a07f0feat(dashboard): CPS manager cockpit9ace4ab5feat(dashboard): epic scope mapA 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 overspecs/+ git, SSE live updates on/events,/api/model.dashboard/cps-cockpit/index.html— phase, health RAG, KPIs, velocity, WSJF backlog, epic scope map.9ace4ab5retained with an amended message: it reads arenumbered:map fromrelease-plan.yamlthat does not exist onmain. 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:.listen(PORT, '127.0.0.1')— loopback only. ✓esc()helper over&<>"is applied on the interpolated render paths (alerts,next, epic titles, handoff). ✓execFileSync('git', [...] , {cwd})with an argv array, noshell: true. ✓/,/events,/api/model), never joined into a filesystem path; all file reads use fixed relative paths underROOT. ✓Residual, accepted: alert
area/practiceand healthd.areaare interpolated withoutesc(); all are server-generated enum values, not spec text.Verify
npm run compliance— exit 0bash scripts/run-verification-gates.sh— 64/64 deterministic, PASSbash scripts/trace-stories.sh --strict— exit 0origin/main— clean, zero conflictsCo-authored-byFiles
dashboard/cps-cockpit/server.js(new)dashboard/cps-cockpit/index.html(new)