Files
master-findability-framewor…/specs/website-directory-structure.md
T
2026-05-05 15:24:09 -06:00

2.4 KiB

Static AI-Native Site — Directory Structure (v1)

/public/
  index.html
  robots.txt
  sitemap.xml
  llms.txt
  agents.md
  skills.md
  ai-index.json

  /data/
    /open/
      /pages/
        /home/
          chunks.json        # resolved (content + policy)
          qa.json

        /about/
          chunks.json
          qa.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