Files
bare-operating-system/scripts/verify-posix-dashboard.mjs
T
Raven Scott 1faf9715b7 feat: POSIX/P2P roadmap — proc surfaces, syscalls, boot perf, docs, CI
- Align posix-conformance-matrix bareOsSyscallOps with getconf BARE_OS_SYSCALL_OPS
- Add verify-boot-policy-extension-signer-pins.mjs to pretest; document in scripts/README
- Document extensionSignerPinsV2–V5 env wiring in OTA_AND_BUNDLES; vault multisig sketch
- Note telemetry NDJSON redaction limits in environment appendix
- Expand booter CHANGELOG 1.40.0 (boot-perf, shell POSIX mode, subprocess errors, etc.)
- Holepunch sync README: NDJSON summary path

Seeder/kernel parity and pretest already green for bundled changes.
2026-04-05 00:02:23 -04:00

37 lines
1.2 KiB
JavaScript

#!/usr/bin/env node
/**
* CI: posix-dashboard.md is in sync with posix-compliance-matrix.json.
*/
import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
const matrixPath = path.join(root, 'docs/reference/posix-compliance-matrix.json')
const dashPath = path.join(root, 'docs/reference/posix-dashboard.md')
function main() {
const matrix = JSON.parse(fs.readFileSync(matrixPath, 'utf8'))
const dash = fs.readFileSync(dashPath, 'utf8')
if (!dash.includes(String(matrix.profileId || ''))) {
console.error('verify-posix-dashboard: dashboard missing profileId', matrix.profileId)
process.exit(1)
}
const sch = matrix.synthetic_proc?.syscalls_json_schema
if (sch != null && !dash.includes(String(sch))) {
console.error(
'verify-posix-dashboard: dashboard missing syscalls_json_schema',
sch
)
process.exit(1)
}
if (!dash.includes('gen-posix-dashboard.mjs')) {
console.error('verify-posix-dashboard: dashboard missing generator pointer')
process.exit(1)
}
console.log('verify-posix-dashboard: OK')
}
main()