This commit is contained in:
eddiesoehnel committed 2026-05-05 15:24:09 -06:00
1 parent 6cfb5eb27b
commit d80739ede5
2 files changed
+2334 -7

No files matched your search

+2203 -2
View File
File diff suppressed because it is too large. Load diff
+131 -5
View File
@@ -1,3 +1,6 @@
# Static AI-Native Site — Directory Structure (v1)
```
/public/ /public/
index.html index.html
robots.txt robots.txt
@@ -7,11 +10,134 @@
skills.md skills.md
ai-index.json ai-index.json
/protected-data/ /data/
pages/ /open/
home/ /pages/
/home/
chunks.json # resolved (content + policy)
qa.json qa.json
/about/
chunks.json chunks.json
paid-report/
qa.json qa.json
chunks.json
/previews/
home.json # optional preview of paid content
paid-report.json
/internal-data/ # NOT publicly accessible (base truth)
/pages/
/home/
chunks.base.json # immutable content + CIS
qa.base.json
/paid-report/
chunks.base.json
qa.base.json
/protected-data/ # NOT publicly accessible (full paid content)
/pages/
/paid-report/
chunks.json # full resolved CIS after payment
qa.json
/api/ # application layer (can be separate service)
/chunks/
[dynamic endpoint] # handles:
# - 402 payment
# - verification
# - serving protected content
/content/ # authoring layer (source of truth)
home.md
about.md
paid-report.md
/scripts/ # build + processing
parse_chunks.py
build_chunks.py
generate_qa.py
build_ai_index.py
apply_policy_overlay.py
/control-plane/ # optional (can be DB instead)
chunks.db OR control.json
```
---
## Key Clarifications
### 1. `/public/data/open/`
* Fully accessible
* Contains **resolved JSON**
* Used for:
* free content
* previews
* agent discovery
---
### 2. `/internal-data/`
* **true source of structured content**
* Contains:
* base chunks (immutable)
* raw QA
* NEVER exposed publicly
---
### 3. `/protected-data/`
* Full paid content
* Only accessed via API after payment
* Never directly reachable
---
### 4. `/api/`
Handles:
```
GET /api/chunks/{slug}
→ 402 Payment Required
→ payment
→ verified
→ return chunks.json
```
---
### 5. `/content/`
* Markdown source of truth
* Where chunk IDs live
* Human editable
---
### 6. `/public/ai-index.json`
* Machine-readable catalog
* Contains:
* access rules
* pricing
* trust summaries
* endpoints
---
## Final Mental Model
```
/content → human truth
/internal-data → structured truth (base)
/public → what agents see
/protected-data → what paying agents get
/api → enforcement layer
```