|
| 1 | +# Research Guide (Start Here) |
| 2 | + |
| 3 | +This folder documents a case study about security and architectural integrity in **AI-assisted software development**, using `CMS Nova` as the main research artifact. |
| 4 | + |
| 5 | +## TL;DR (1 minute) |
| 6 | + |
| 7 | +- AI coding can produce changes that look correct **inside one file**, but violate **system-wide security rules** (auth boundaries, publication rules, route visibility, secret handling). |
| 8 | +- The case study identifies recurring reasoning failures (e.g. `Naming Bias`, `Lack of Global Context`) and frames the human role as `MVU` (Minimum Viable Understanding). |
| 9 | +- The proposed mitigation is `Vibe-Guard`: treat security as **policy verification** (central rules + automated checks), not as “remember everything everywhere”. |
| 10 | +- This repo includes a small concrete example of that idea: a default-private policy for `/api/*` routes plus a static checker (`npm run security:check-api`). |
| 11 | + |
| 12 | +## Plain-language (ELI5) |
| 13 | + |
| 14 | +Imagine a helper who is very good at building **one LEGO house at a time**. |
| 15 | +Each house looks fine. But a city is not just houses — it also has **city rules**: |
| 16 | + |
| 17 | +- “Only teachers can enter the teacher room.” (authorization) |
| 18 | +- “Only finished posters go on the public wall.” (published-only content) |
| 19 | +- “Don’t put secret keys on the street.” (secret handling) |
| 20 | + |
| 21 | +AI tools often follow the “house logic” but forget the “city rules” unless those rules are written down and checked. |
| 22 | +`Vibe-Guard` is the idea of writing the city rules once, centrally, and having an automated guard verify that every new house still follows them. |
| 23 | + |
| 24 | +## What’s in This Repo (Research Artifacts) |
| 25 | + |
| 26 | +- Concepts and framing: |
| 27 | + - [Core Concepts](./core-concepts.md) |
| 28 | +- Evidence and narrative: |
| 29 | + - [Case Study: CMS Nova](./case-study-cms-nova.md) |
| 30 | + - [Findings Matrix](./findings-matrix.md) |
| 31 | +- Method and reproducibility: |
| 32 | + - [Methodology](./methodology.md) |
| 33 | + - [API Visibility Policy](../../src/server/policy/api-visibility.js) |
| 34 | + - [API Policy Checker](../../scripts/security/check-api-policy.js) |
| 35 | +- Architecture intervention record: |
| 36 | + - [Architecture Evolution](./architecture-evolution.md) |
| 37 | + |
| 38 | +## Suggested Reading Order |
| 39 | + |
| 40 | +1. [Executive Summary](./executive-summary.md) |
| 41 | +2. [Core Concepts](./core-concepts.md) |
| 42 | +3. [Case Study: CMS Nova](./case-study-cms-nova.md) |
| 43 | +4. [Methodology](./methodology.md) |
| 44 | +5. [Findings Matrix](./findings-matrix.md) |
| 45 | +6. [Architecture Evolution](./architecture-evolution.md) |
0 commit comments