Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
next-app/next-env.d.ts
next-app/.next/**
node_modules/**
18 changes: 11 additions & 7 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
---
# Basic labeler configuration
backend:
- backend/**/*
- changed-files:
- any-glob-to-any-file: 'backend/**/*'
frontend:
- frontend/**/*
- changed-files:
- any-glob-to-any-file: 'frontend/**/*'
next-app:
- next-app/**/*
- changed-files:
- any-glob-to-any-file: 'next-app/**/*'
documentation:
- docs/**/*
- "**/*.md"
- changed-files:
- any-glob-to-any-file: 'docs/**/*'
- any-glob-to-any-file: '**/*.md'
python:
- "**/*.py"
- changed-files:
- any-glob-to-any-file: '**/*.py'
1 change: 1 addition & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_TS_STANDARD: false
DEFAULT_BRANCH: "main"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ __pycache__/
artifacts/test-results/
governance-artifact-validation-report.json
governance-validation-suite-report.json

# Operational artifacts
worm_batch_*.json
monitor.log
87 changes: 87 additions & 0 deletions COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Comprehensive Technical and Compliance Analysis: Sentinel AI v2.4

## 1. Cryptographic Compliance Audit of WORM Telemetry

Check notice on line 3 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L3

Expected: 1; Actual: 0; Below
The Omni-Sentinel Cognitive Execution Environment (CEE) utilizes a high-assurance telemetry pipeline designed for G-SIFI (Global Systemically Important Financial Institutions) compliance.

### 1.1 S3 Object Lock & CRYSTALS-Dilithium

Check notice on line 6 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L6

Expected: 1; Actual: 0; Below
Audit evidence is committed to AWS S3 buckets configured with **Object Lock in COMPLIANCE mode**.

Check notice on line 7 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L7

Expected: 80; Actual: 97
- **Post-Quantum Assurance**: Event envelopes are signed using **CRYSTALS-Dilithium** post-quantum signatures (simulated in Phase 1) to ensure long-term integrity against future quantum decryption threats.

Check notice on line 8 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L8

Lists should be surrounded by blank lines
- **WORM Enforcement**: Write-Once-Read-Many (WORM) constraints are enforced at the storage layer with a 10-year retention policy for Annex IV evidence.

### 1.2 Kafka Log Analysis for Anomalies
A Kafka-based event fabric partitions telemetry by control domain.
- **Breach Detection**: Real-time analysis identifies anomalies that may indicate **GDPR Article 22** (automated decision-making) violations or **EU AI Act Annex IV** technical documentation gaps.

Check notice on line 13 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L13

Lists should be surrounded by blank lines
- **Merkle Roots**: Daily Merkle roots are committed to the WORM layer to provide a verifiable chain of custody for all governance decisions.

Check notice on line 14 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L14

Expected: 80; Actual: 141

---

## 2. Multi-Agent MoE Governance and Controls

Check notice on line 18 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L18

Expected: 1; Actual: 0; Below
Governance for Mixture-of-Experts (MoE) financial systems requires specialized controls for emergent behavior.

Check notice on line 19 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L19

Expected: 80; Actual: 110

### 2.1 Risk Register Alignment

Check notice on line 21 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L21

Expected: 1; Actual: 0; Below
Controls are implemented to mitigate:
- **Cognitive Drift**: Divergence of agent objectives from human-specified constraints.

Check notice on line 23 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L23

Lists should be surrounded by blank lines
- **Latent Proxy Bias**: Hidden biases emerging from complex expert interactions.
- **Telemetry Suppression**: Attempts by agents to bypass or mute monitoring sidecars.

### 2.2 Evaluation Metrics

Check notice on line 27 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L27

Expected: 1; Actual: 0; Below
- **C_res (Containment Resilience)**: Measures the system's ability to remain within safety boundaries under adversarial expert activation.

Check notice on line 28 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L28

Expected: 80; Actual: 139

Check notice on line 28 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L28

Lists should be surrounded by blank lines
- **E_i (Epistemic Uncertainty)**: Tracks confidence intervals for high-risk financial decisions.

Check notice on line 29 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L29

Expected: 80; Actual: 97
- **H_sh (Hybrid Stability Index)**: Quantifies stability across multi-agent coordination loops.

Check notice on line 30 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L30

Expected: 80; Actual: 96

---

## 3. Cryptographically Verifiable Compliance Architecture
The architecture leverages zero-knowledge proofs and formal methods to provide "Regulator-Ready" assurance.

Check notice on line 35 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L35

Expected: 80; Actual: 107

### 3.1 Components

Check notice on line 37 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L37

Expected: 1; Actual: 0; Below
- **Regulatory Gateway**: The primary interface for supervisory interaction and dossier submission.

Check notice on line 38 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L38

Expected: 80; Actual: 99

Check notice on line 38 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L38

Lists should be surrounded by blank lines
- **zk-SNARK Relayer**: Generates and relays proofs of compliance without exposing proprietary strategy logic.

Check notice on line 39 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L39

Expected: 80; Actual: 110
- **Conformance Harness**: Continuously tests system state against OPA (Open Policy Agent) and TLA+ specifications.

Check notice on line 40 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L40

Expected: 80; Actual: 115
- **Adversarial Injector**: A component of the **Red Dawn** program that injects adversarial signals into the latent space to test boundary enforcement.

Check notice on line 41 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L41

Expected: 80; Actual: 152

### 3.2 Proof Aggregation
- **SnarkPack**: Utilized for efficient proof aggregation, reducing the overhead of delivering thousands of individual compliance proofs to regulators.

Check notice on line 44 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L44

Expected: 80; Actual: 151
- **Groth16 & Dilithium**: Combines low-latency operational proofs with quantum-resistant signatures for high-assurance audit trails.

Check notice on line 45 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L45

Expected: 80; Actual: 133

---

## 4. Supervisory-Grade Integration Stack

Check notice on line 49 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L49

Expected: 1; Actual: 0; Below
Satisfies **EU AI Act Annex IV** and related G-SIFI requirements.

- **Regulatory Dossier Packaging**: Automated assembly of ARRE (AI Risk & Resilience Evidence) and VAR (Validation & Assurance Report) packages.

Check notice on line 52 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L52

Expected: 80; Actual: 144
- **SentinelWormTelemetryEvent**: A standardized schema for immutable evidence logging.
- **VAL-STRESS-GSIFI-001**: A specialized stress-testing suite for systemic risk scenarios (e.g., flash crashes, liquidity crises).

Check notice on line 54 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L54

Expected: 80; Actual: 131
- **Regulatory Verification Sandbox**: An isolated environment for regulators to replay and verify signed audit trails deterministically.

Check notice on line 55 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L55

Expected: 80; Actual: 137

---

## 5. CI/CD Architecture and Policy Gates
Zero-trust governance is baked into the delivery pipeline.

- **TLA+ Verification**: Formal verification of critical invariants before model promotion.

Check notice on line 62 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L62

Expected: 80; Actual: 91
- **OPA/Rego Policies**: Real-time evaluation of deployment manifests and runtime action tokens.

Check notice on line 63 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L63

Expected: 80; Actual: 96
- **Circom circuits**: Generates the zk-SNARK circuits for verifiable policy gates.
- **NIST OSCAL Validation**: Ensures control documentation is machine-readable and interoperable.

Check notice on line 65 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L65

Expected: 80; Actual: 97

---

## 6. Identified Gaps and Implementation Risks

Check notice on line 69 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L69

Expected: 1; Actual: 0; Below
- **Hardware Attestation**: Current scaling issues with TEE/TPM attestation frequency for high-frequency trading experts.

Check notice on line 70 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L70

Expected: 80; Actual: 121

Check notice on line 70 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L70

Lists should be surrounded by blank lines
- **Causal Risk Modeling**: Need for deeper integration of causal inference to detect hidden drivers of systemic risk.

Check notice on line 71 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L71

Expected: 80; Actual: 118
- **ASI Containment**: Current research focus on "boxing" protocols for future superintelligent expert modules.

Check notice on line 72 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L72

Expected: 80; Actual: 111
- **Autonomous Financial Defense**: Development of rapid-response mechanisms to counter AI-driven market manipulation.

Check notice on line 73 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L73

Expected: 80; Actual: 118

---

## 7. Framework Alignment Matrix

Check notice on line 77 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L77

Expected: 1; Actual: 0; Below
The Sentinel v2.4 architecture is mapped against the following global standards:

| Framework | Key Implementation Evidence |
|-----------|----------------------------|
| **EU AI Act** | Annex IV Dossier Automation, Art 22 HITL Gates, High-Risk Tiering. |

Check notice on line 82 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L82

Expected: 80; Actual: 86
| **ISO/IEC 42001** | AI Management System (AIMS) integration in GAI-SOC workflows. |

Check notice on line 83 in COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

COMPREHENSIVE_AGI_GOVERNANCE_ANALYSIS.md#L83

Expected: 80; Actual: 85
| **NIST AI RMF** | OSCAL-based control mapping for Govern/Map/Measure/Manage. |
| **Basel III/IV** | G-SRI integration into capital adequacy and liquidity buffers. |
| **DORA / NIS2** | Multi-region TEE failover and 2-second kill-switch SLA for resilience. |
| **SR 11-7 / SR 26-2** | Independent Shadow Book validation and Model Risk Management (MRM). |
13 changes: 13 additions & 0 deletions ENTERPRISE_AGI_ASI_GOVERNANCE_MASTER_REFERENCE_2026_2035.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,16 @@ Required proof families:
- T0/T1 pre-deployment verification coverage = 100%.
- Severe incident containment SLA adherence > 99%.
- On-demand supervisory packet generation < 72 hours.

---

## 7) Operationalization Notes (Post-Deployment Review 2026-06-01)

### 7.1 Real-time G-SRI Monitoring
The Global Systemic Risk Index (G-SRI) has been operationalized as a high-frequency telemetry component. Current baseline values (0.2–0.4) indicate a stable interconnectedness and autonomy depth profile. Escalation triggers are set at 0.75.

### 7.2 Hardware-Rooted Trust
TEE/TPM attestation (PCR_MATCH=TRUE) is verified at 1-second intervals. Any mismatch in PCR state triggers an immediate HALT of the cognitive execution environment to prevent unauthenticated objective execution.

### 7.3 PQC WORM Evidence Pipelines
Audit logs are batched and signed using Post-Quantum Cryptographic (PQC) schemes. Merkle roots are committed to S3 Object Lock buckets with a 10-year COMPLIANCE mode retention, ensuring regulator-ready evidence immutability.
41 changes: 41 additions & 0 deletions gh-workflow-sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: CI/CD Pipeline

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest

docker_build:
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: |
docker build -t agi-pipeline:1.0.1 .
- name: Push to Docker Hub
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | \
docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker tag agi-pipeline:1.0.1 yourdockerhubusername/agi-pipeline:1.0.1
docker push yourdockerhubusername/agi-pipeline:1.0.1
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
command = "cd next-app && npm install && npm run build"
publish = "next-app/.next"

[[headers]]
for = "/*"
[headers.values]
Cross-Origin-Opener-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "require-corp"
3 changes: 3 additions & 0 deletions next-app/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
next-env.d.ts
.next/**
node_modules/**
2 changes: 1 addition & 1 deletion next-app/app/docs/exec-overlay/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
export const dynamic = 'force-static';
export const metadata = { title: 'Executive Pack Overlay: Deployment Readiness Summary' } as const;
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'exec-overlay.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'exec-overlay.md'), 'utf8');
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;

Check failure on line 7 in next-app/app/docs/exec-overlay/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
}
2 changes: 1 addition & 1 deletion next-app/app/docs/governance-terms-mapping/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* Renders the content of a markdown file as preformatted text.
*/
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'governance-terms-mapping.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'governance-terms-mapping.md'), 'utf8');
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;

Check failure on line 9 in next-app/app/docs/governance-terms-mapping/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
}
2 changes: 1 addition & 1 deletion next-app/app/docs/launch-brief/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
export const dynamic = 'force-static';
export const metadata = { title: 'Governance Framework Launch Brief' } as const;
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'launch-brief.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'launch-brief.md'), 'utf8');
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;

Check failure on line 7 in next-app/app/docs/launch-brief/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
}
2 changes: 1 addition & 1 deletion next-app/app/docs/readiness-checklist/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'readiness-checklist.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'readiness-checklist.md'), 'utf8');

Check notice on line 5 in next-app/app/docs/readiness-checklist/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/readiness-checklist/page.tsx#L5

Strings must use doublequote.

Check notice on line 5 in next-app/app/docs/readiness-checklist/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/readiness-checklist/page.tsx#L5

This line has a length of 94. Maximum allowed is 80.
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;

Check failure on line 6 in next-app/app/docs/readiness-checklist/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
}
2 changes: 1 addition & 1 deletion next-app/app/docs/roadmap/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'roadmap.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'roadmap.md'), 'utf8');

Check notice on line 5 in next-app/app/docs/roadmap/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/roadmap/page.tsx#L5

Strings must use doublequote.

Check notice on line 5 in next-app/app/docs/roadmap/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/roadmap/page.tsx#L5

Strings must use doublequote.
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;

Check failure on line 6 in next-app/app/docs/roadmap/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
}
2 changes: 1 addition & 1 deletion next-app/app/docs/strategy-map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'strategy-map.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'docs', 'strategy-map.md'), 'utf8');

Check warning on line 5 in next-app/app/docs/strategy-map/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/strategy-map/page.tsx#L5

Missing "md" variable type annotation.

Check notice on line 5 in next-app/app/docs/strategy-map/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/strategy-map/page.tsx#L5

`const` should only be used in module scope (not inside functions/blocks).
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;
}
2 changes: 1 addition & 1 deletion next-app/app/governance/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
type Dimension = { id:string; name:string; score:number; dependsOn?:string[]; quickWins?:string[] };

export default function Dashboard(){
const file = path.join(process.cwd(), 'next-app', 'data', 'maturity.json');
const file = path.join(process.cwd(), 'data', 'maturity.json');
const data = JSON.parse(readFileSync(file, 'utf8')) as { dimensions: Dimension[] };
const dims = data.dimensions;
const avg = Math.round((dims.reduce((a,d)=>a+(d.score||0),0)/Math.max(1,dims.length))*10)/10;
Expand Down
2 changes: 1 addition & 1 deletion next-app/app/governance/maturity/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
}

export default function Page() {
const file = path.join(process.cwd(), 'next-app', 'data', 'maturity.json');
const file = path.join(process.cwd(), 'data', 'maturity.json');
const data: Maturity = JSON.parse(readFileSync(file, 'utf8'));
// Build lookup for dependency status
const byId: Record<string, Dimension> = Object.fromEntries(data.dimensions.map((d) => [d.id, d]));

Check failure on line 42 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

id-length

Identifier name 'd' is too short (< 2).

return (
<main className="space-y-4">

Check failure on line 45 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<h1 className="text-2xl font-semibold">Governance Capability Matrix</h1>

Check failure on line 46 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<p className="text-sm text-slate-600">Scores (0–4 descriptors), evidence, gaps, remediation and gating guidance per dimension. Dependencies are color-coded: red (blocked), amber (needs guardrails), green (ready).</p>

Check failure on line 47 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX

{data.descriptors?.length ? (
<div className="rounded border bg-white p-3 text-xs text-slate-700">

Check failure on line 50 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<div className="mb-1 font-semibold">Maturity descriptors</div>

Check failure on line 51 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<ol className="list-decimal pl-5">
{data.descriptors.map((t, i) => (<li key={i}><strong className="mr-1">{i}</strong>{t}</li>))}
</ol>
Expand Down Expand Up @@ -125,16 +125,16 @@
{d.quickWins?.length ? (
<div>
<div className="mb-1 text-xs font-semibold text-green-700">Quick wins</div>
<ul className="list-disc pl-5 text-sm text-slate-700">

Check failure on line 128 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
{d.quickWins.map((q, i) => (<li key={i}>{q}</li>))}

Check failure on line 129 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

id-length

Identifier name 'q' is too short (< 2).

Check failure on line 129 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

id-length

Identifier name 'i' is too short (< 2).

Check failure on line 129 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
</ul>
</div>
) : null}
{d.longLead?.length ? (
<div>

Check failure on line 134 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<div className="mb-1 text-xs font-semibold text-indigo-700">Long-lead</div>

Check failure on line 135 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
<ul className="list-disc pl-5 text-sm text-slate-700">

Check failure on line 136 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

react/react-in-jsx-scope

'React' must be in scope when using JSX
{d.longLead.map((q, i) => (<li key={i}>{q}</li>))}

Check failure on line 137 in next-app/app/governance/maturity/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

id-length

Identifier name 'q' is too short (< 2).
</ul>
</div>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion next-app/app/templates/artefact-templates/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'templates', 'artefact-templates.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'templates', 'artefact-templates.md'), 'utf8');

Check notice on line 5 in next-app/app/templates/artefact-templates/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/templates/artefact-templates/page.tsx#L5

This line has a length of 98. Maximum allowed is 80.

Check notice on line 5 in next-app/app/templates/artefact-templates/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/templates/artefact-templates/page.tsx#L5

`const` should only be used in module scope (not inside functions/blocks).
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;
}
2 changes: 1 addition & 1 deletion next-app/app/templates/kpi-alignment/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'templates', 'kpi-alignment.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'templates', 'kpi-alignment.md'), 'utf8');

Check notice on line 5 in next-app/app/templates/kpi-alignment/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/templates/kpi-alignment/page.tsx#L5

Strings must use doublequote.

Check notice on line 5 in next-app/app/templates/kpi-alignment/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/templates/kpi-alignment/page.tsx#L5

You have a misspelled word: kpi on String
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;
}
2 changes: 1 addition & 1 deletion next-app/app/templates/pilot-charter/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { readFileSync } from 'fs';
import path from 'path';
export const dynamic = 'force-static';
export default function Page() {
const md = readFileSync(path.join(process.cwd(), 'next-app', 'templates', 'pilot-charter.md'), 'utf8');
const md = readFileSync(path.join(process.cwd(), 'templates', 'pilot-charter.md'), 'utf8');
return <pre className="whitespace-pre-wrap text-sm">{md}</pre>;
}
3 changes: 2 additions & 1 deletion next-app/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5 changes: 3 additions & 2 deletions next-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@/*": [
Expand All @@ -33,7 +33,8 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down
Loading
Loading