Add repeatable operator readiness dashboard

This commit is contained in:
Affaan Mustafa
2026-05-15 17:55:43 -04:00
committed by Affaan Mustafa
parent bfffc33869
commit 50f375bc2c
5 changed files with 930 additions and 4 deletions

View File

@@ -268,6 +268,10 @@ function readText(rootDir, relativePath) {
}
}
function fileExists(rootDir, relativePath) {
return fs.existsSync(path.join(rootDir, relativePath));
}
function safeParseJson(text) {
if (!text || !text.trim()) {
return null;
@@ -431,10 +435,20 @@ function buildLocalEvidenceChecks(rootDir) {
'platform-audit-cli-surface',
packageScripts['platform:audit'] === 'node scripts/platform-audit.js'
&& packageScripts['discussion:audit'] === 'node scripts/discussion-audit.js'
&& packageScripts['operator:dashboard'] === 'node scripts/operator-readiness-dashboard.js'
? 'pass'
: 'fail',
'package.json exposes the platform and discussion audit commands',
{ fix: 'Add platform:audit and discussion:audit commands to package.json.' }
'package.json exposes platform, discussion, and operator dashboard audit commands',
{ fix: 'Add platform:audit, discussion:audit, and operator:dashboard commands to package.json.' }
),
buildCheck(
'operator-dashboard-command',
fileExists(rootDir, 'scripts/operator-readiness-dashboard.js')
&& packageScripts['operator:dashboard'] === 'node scripts/operator-readiness-dashboard.js'
? 'pass'
: 'fail',
'operator dashboard is generated by the repeatable ITO-44 command',
{ path: 'scripts/operator-readiness-dashboard.js' }
),
buildCheck(
'roadmap-linear-mirror',