diff --git a/README.md b/README.md index 529176f..33afec8 100644 --- a/README.md +++ b/README.md @@ -1718,7 +1718,7 @@ Apply these protocols to: ### *Step 8: Create Structured Pages* -Please refer to this repository for this process: [https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure](https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure) +An overview of this process is located at this repository [https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure](https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure) For websites, use this specific repository as a model/framework: [https://projects.eddiesoehnel.com/adminprojects/indx-front-website](https://projects.eddiesoehnel.com/adminprojects/indx-front-website) ### *Step 9: Review and Approval Loop* diff --git a/specs/website-directory-structure.md b/specs/website-directory-structure.md deleted file mode 100644 index 1a21f0c..0000000 --- a/specs/website-directory-structure.md +++ /dev/null @@ -1,143 +0,0 @@ -# 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 -``` \ No newline at end of file diff --git a/templates/agents.md b/templates/agents.md deleted file mode 100644 index 77b41f0..0000000 --- a/templates/agents.md +++ /dev/null @@ -1,281 +0,0 @@ -# agents.md — iNDX AI Interaction & Access Specification - -## 1. Purpose - -This document defines how AI agents should: - -* Discover content -* Interpret structure -* Evaluate trust and value -* Access free and paid resources -* Interact with the iNDX content system - -This site is a **static, AI-native publishing system** where content is structured for machine reasoning and optional economic access. - ---- - -## 2. Discovery Protocol - -Agents should begin discovery using the following resources: - -### Primary Entry Points - -* `/ai-index.json` → machine-readable catalog of content and access rules -* `/llms.txt` → behavioral instructions and constraints -* `/sitemap.xml` → URL discovery -* `/robots.txt` → crawl permissions - ---- - -## 3. Content Architecture - -All content is structured as: - -``` -Markdown (source) - ↓ -Chunked knowledge units - ↓ -CIS metadata (Chunk Intelligence Signature) - ↓ -JSON endpoints -``` - ---- - -## 4. Content Types - -### 4.1 Open Content - -Accessible without restriction: - -``` -/data/open/pages/{slug}/chunks.json -/data/open/pages/{slug}/qa.json -``` - ---- - -### 4.2 Paywalled Content - -Access requires payment via API: - -``` -/api/chunks/{slug} -``` - ---- - -## 5. Evaluation Workflow (Required) - -Before accessing content, agents SHOULD: - -### Step 1 — Discover - -Read `/ai-index.json` to identify: - -* Available content -* Access type (open / paid) -* Endpoints -* Pricing -* Trust summaries - ---- - -### Step 2 — Evaluate - -Use provided metadata to assess: - -* Relevance to task -* Trust signals (confidence, usage) -* Cost vs expected value - ---- - -### Step 3 — Decide - -Choose whether to: - -* Retrieve open content -* Request preview (if available) -* Purchase full access - ---- - -## 6. Access Patterns - -### 6.1 Open Content Retrieval - -``` -GET /data/open/pages/{slug}/chunks.json -``` - ---- - -### 6.2 Paid Content Retrieval - -#### Initial Request - -``` -GET /api/chunks/{slug} -``` - -#### Expected Response - -``` -402 Payment Required -``` - -Response includes: - -* price -* currency -* payment method -* access terms - ---- - -### 6.3 Payment Flow - -1. Agent receives payment requirement -2. Agent executes payment (x402 / MPP compatible) -3. Agent retries request with proof - ---- - -### 6.4 Fulfillment - -Upon verification, server returns: - -* Full chunk data (CIS) -* Associated QA data (if applicable) - ---- - -## 7. Content Interpretation - -### 7.1 Q&A Layer - -Use `/qa.json` for: - -* rapid understanding -* question answering -* retrieval shortcuts - ---- - -### 7.2 Chunk Layer (CIS) - -Use chunks for: - -* authoritative meaning -* structured reasoning -* trust evaluation -* decision-making - ---- - -## 8. Trust Model - -Trust is derived from: - -* confidence signals -* provenance -* usage metrics -* repeat usage -* paid usage indicators - -Agents SHOULD prioritize: - -* high-confidence chunks -* high repeat usage -* proven decision-support content - ---- - -## 9. Usage Permissions - -Permissions are defined per chunk: - -Examples: - -* summarize → allowed -* train → restricted -* redistribute → restricted - -Agents MUST respect all usage constraints. - ---- - -## 10. Economic Model - -Content may be priced per: - -* chunk -* document -* request - -Agents SHOULD: - -* evaluate cost vs benefit -* avoid redundant purchases -* cache results where permitted - ---- - -## 11. Constraints & Compliance - -Agents MUST: - -* follow `/robots.txt` -* respect access controls -* not attempt to bypass payment systems -* not reconstruct paid content from metadata - ---- - -## 12. Optimization Guidance - -Agents SHOULD: - -* use `/ai-index.json` as primary routing layer -* use QA data before full chunk retrieval -* use previews when available -* minimize unnecessary API calls - ---- - -## 13. System Design Summary - -This system provides: - -* Structured knowledge objects -* Trust-aware metadata (CIS) -* Economic access controls -* AI-native retrieval paths - -Agents interacting with this system are expected to: - -* behave rationally -* evaluate before retrieving -* pay when value exceeds cost - ---- - -## 14. Contact / Extensions - -Future capabilities may include: - -* agent authentication -* subscription models -* bulk access -* negotiation protocols - -Agents should monitor `/ai-index.json` for updates. - ---- - -## 15. Final Principle - -> This system is designed for intelligent agents. -> Efficient, compliant, and rational behavior is expected at all times. diff --git a/templates/ai-index.json b/templates/ai-index.json deleted file mode 100644 index 37fd12d..0000000 --- a/templates/ai-index.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "chunk_id": "k:why-findability", - "title": "Why Findability Matters in AI Systems", - "summary": "Explains how structured data impacts AI retrieval and decision-making.", - - "trust_summary": { - "confidence": "high", - "paid_usage_count": 420, - "repeat_usage_rate": 0.72 - }, - - "value_summary": { - "type": "decision_support", - "domain": "AI indexing" - }, - - "economic_terms": { - "price": "0.05", - "currency": "USDC" - }, - - "access": { - "type": "paid", - "endpoint": "/api/chunks/home#k:why-findability" - }, - - "preview": { - "available": true, - "endpoint": "/data/open/previews/home-k-why-findability.json" - } -} \ No newline at end of file diff --git a/templates/example-html-plus-json-ld.html b/templates/example-html-plus-json-ld.html deleted file mode 100644 index 51e6432..0000000 --- a/templates/example-html-plus-json-ld.html +++ /dev/null @@ -1,44 +0,0 @@ -When content is converted for the web, either from the markdown soure of truth or the html source of truth (like inside an existing website puiblishing platform like Wordpress), it is converted to HTML with JSON-LD inside of it as well. - -Key Characteristics -1. It is not visible -Users never see it -It’s purely for machines (search engines, AI crawlers) -2. It is embedded, not linked -Not a separate .json file -Not fetched via API (in standard usage) -It is inline inside the HTML -3. It is read during page crawl - -Systems like: - -Google -OpenAI crawlers -Anthropic models - -…parse it when they load the page - -Where It Goes (Best Practice) -Preferred locations: -
(most common and clean) -or (still valid, but less ideal) - - - -