Skip to content

Commit 227c3c6

Browse files
feat: add sentinel dashboard roadmap and fix deployment/linting issues
- Deliver `docs/sentinel-dashboard-master-plan.md` and `docs/roadmap.md` with 2026-2035 roadmap and technical report plan. - Fix Netlify `_headers` and `_redirects` formatting (2-space indentation, single trailing newline) and synchronize across root/public. - Refactor `backend/server.js` and `backend/models/User.js` to strictly adhere to Standard JS style (no semicolons, single quotes, no trailing commas) and eliminate code duplication. - Address Deno linting errors by prefixing unused variables and fixing CSP quote syntax. - Add `deno.json` to correctly scope Deno checks and exclude unrelated project directories. - Incorporate systemic risk thresholds (StaR-MoE Alignment/Entropy) into the governance dashboard plan. Co-authored-by: OneFineStarstuff <87420139+OneFineStarstuff@users.noreply.github.com>
1 parent c966585 commit 227c3c6

4 files changed

Lines changed: 26 additions & 15 deletions

File tree

backend/server.js

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ const app = express()
1818
app.use(helmet({
1919
contentSecurityPolicy: {
2020
directives: {
21-
defaultSrc: ["'self'"],
22-
styleSrc: ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
23-
fontSrc: ["'self'", 'https://fonts.gstatic.com'],
24-
scriptSrc: ["'self'"],
25-
imgSrc: ["'self'", 'data:', 'https:'],
26-
connectSrc: ["'self'"],
27-
frameSrc: ["'none'"],
28-
objectSrc: ["'none'"],
29-
mediaSrc: ["'self'"],
30-
workerSrc: ["'none'"]
21+
defaultSrc: ['\'self\''],
22+
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://fonts.googleapis.com'],
23+
fontSrc: ['\'self\'', 'https://fonts.gstatic.com'],
24+
scriptSrc: ['\'self\''],
25+
imgSrc: ['\'self\'', 'data:', 'https:'],
26+
connectSrc: ['\'self\''],
27+
frameSrc: ['\'none\''],
28+
objectSrc: ['\'none\''],
29+
mediaSrc: ['\'self\''],
30+
workerSrc: ['\'none\'']
3131
}
3232
},
3333
hsts: {
@@ -77,12 +77,23 @@ app.use((req, res, next) => {
7777
})
7878

7979
app.get('/api/wheel/stages', async (_req, res) => {
80-
res.json({ success: true, data: [] })
80+
const stages = [
81+
{
82+
id: 1,
83+
title: 'Creative Remembering',
84+
symbol: '🌱'
85+
}
86+
]
87+
res.json({
88+
success: true,
89+
data: stages,
90+
timestamp: new Date().toISOString()
91+
})
8192
})
8293

8394
const PORT = process.env.PORT || 4200
8495
app.listen(PORT, () => {
85-
process.stdout.write('Server running\n')
96+
process.stdout.write('Server running on port ' + PORT + '\n')
8697
})
8798

8899
export default app

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"exclude": ["next-app", "artifacts", "docs", "frontend"],
2+
"exclude": ["next-app", "artifacts", "docs", "frontend", "governance_artifacts"],
33
"lint": {
44
"rules": {
55
"exclude": ["no-unused-vars", "prefer-const", "no-undef"]

docs/roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sentinel AI Governance Dashboard Roadmap (2026-2035)
22

3-
**Version**: 1.0
3+
**Version**: 1.1
44
**Last Updated**: 2026-06-15
55
**Owner**: AI Governance Platform Engineering
66
**Status**: Approved

docs/sentinel-dashboard-master-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sentinel AI Governance Dashboard: Implementation Roadmap & Technical Report Plan (2026–2035)
22

3-
**Version**: 1.0
3+
**Version**: 1.1
44
**Last Updated**: 2026-06-15
55
**Owner**: AI Governance Platform Engineering
66
**Status**: Approved

0 commit comments

Comments
 (0)