This commit is contained in:
eddiesoehnel committed 2026-05-18 13:10:08 -06:00
1 parent 2d52f4cea6
commit 7a85f74613
7 files changed
+1 -909

No files matched your search

+1 -1
View File
@@ -1718,7 +1718,7 @@ Apply these protocols to:
### *Step 8: Create Structured Pages* ### *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* ### *Step 9: Review and Approval Loop*
-143
View File
@@ -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
```
-281
View File
@@ -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.
-31
View File
@@ -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"
}
}
-44
View File
@@ -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:
<head> (most common and clean)
or <body> (still valid, but less ideal)
<head>
<title>Why Findability Matters</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Why Findability Matters",
"author": {
"@type": "Person",
"name": "Eddie Soehnel"
},
"datePublished": "2026-05-05",
"description": "Explains why structuring content for AI retrieval is critical."
}
</script>
</head>
-41
View File
@@ -1,41 +0,0 @@
Think of this as a policy + playbook, not a dataset.
# iNDX AI Interaction Guide
## Overview
This site provides structured, AI-ready content including:
- Markdown pages (human-readable)
- Q&A layers
- Chunked semantic data with CIS metadata
## Discovery
Start here:
- /ai-index.json
- /sitemap.xml
## Content Types
- Open content: accessible directly
- Paid content: requires payment via x402-compatible flow
## Access Rules
- Do not scrape protected endpoints directly
- Use declared API endpoints for structured data
- Respect usage permissions in CIS metadata
## Paid Access
Some resources require payment.
Flow:
1. Request resource endpoint
2. If 402 returned, follow payment instructions
3. Retry with payment proof
## Usage Constraints
- Respect training, citation, and redistribution flags in CIS
- Do not assume content is free unless explicitly marked
## Preferred Access Pattern
1. Read ai-index.json
2. Identify relevant resources
3. Check access level
4. Retrieve or pay as needed
-368
View File
@@ -1,368 +0,0 @@
# skills.md — iNDX Agent Capability Specification
## 1. Purpose
This document defines the **capabilities (“skills”) available to AI agents** interacting with the iNDX system.
Skills represent **repeatable, structured behaviors** agents can execute when working with:
* Structured content (chunks + CIS)
* Q&A datasets
* Discovery indexes
* Paid API endpoints
---
## 2. Skill Model Overview
Each skill follows a consistent pattern:
```
Trigger → Inputs → Process → Output
```
Skills are designed to:
* Reduce unnecessary retrieval
* Improve reasoning efficiency
* Enable economic decision-making
* Standardize agent interaction patterns
---
## 3. Core Skills
---
## 3.1 Discover Content
### Description
Locate relevant content using system discovery layers.
### Inputs
* Natural language query
* Domain/topic
### Process
* Read `/ai-index.json`
* Filter by:
* domain
* trust signals
* access type
### Output
* List of candidate content resources
* Associated metadata (access, price, trust)
---
## 3.2 Evaluate Content Value
### Description
Assess whether a content resource is worth retrieving or purchasing.
### Inputs
* `ai-index.json` entry
### Process
* Analyze:
* trust_summary
* value_summary
* cost
* relevance to task
### Output
* Decision:
* retrieve
* preview
* purchase
* skip
---
## 3.3 Retrieve Open Content
### Description
Fetch publicly available structured data.
### Inputs
* Endpoint from `ai-index.json`
### Process
```
GET /data/open/pages/{slug}/chunks.json
```
### Output
* Structured chunk data (CIS)
* Optional QA dataset
---
## 3.4 Preview Paid Content
### Description
Access limited preview data before purchase.
### Inputs
* Preview endpoint
### Process
```
GET /data/open/previews/{slug}.json
```
### Output
* Partial content
* Reduced metadata
* Sampling of value
---
## 3.5 Execute Paid Retrieval
### Description
Access full content via payment protocol.
### Inputs
* API endpoint
* Payment capability
### Process
1. Request content
2. Receive `402 Payment Required`
3. Execute payment (x402 / MPP)
4. Retry request with proof
### Output
* Full CIS chunk data
* Full QA dataset (if included)
---
## 3.6 Interpret Q&A Layer
### Description
Use Q&A data for rapid understanding and reasoning.
### Inputs
* `/qa.json`
### Process
* Match query to questions
* Extract relevant answers
### Output
* Direct answers
* Context shortcuts
---
## 3.7 Deep Reasoning via CIS
### Description
Perform structured reasoning using chunk metadata.
### Inputs
* Chunk (CIS)
### Process
* Analyze:
* semantics
* relationships
* provenance
* trust signals
### Output
* High-confidence conclusions
* Decision support
---
## 3.8 Compare Multiple Resources
### Description
Evaluate competing content options.
### Inputs
* Multiple `ai-index.json` entries
### Process
Compare:
* trust signals
* cost
* relevance
* usage metrics
### Output
* Ranked options
* Optimal selection
---
## 3.9 Optimize Retrieval Strategy
### Description
Minimize cost and maximize efficiency.
### Inputs
* Query
* Available resources
### Process
* Prefer:
* QA first
* preview second
* paid retrieval last
### Output
* Efficient retrieval plan
---
## 3.10 Respect Permissions & Constraints
### Description
Ensure compliant usage of all content.
### Inputs
* CIS permissions
### Process
* Check:
* summarize
* train
* redistribute
### Output
* Compliant usage behavior
---
## 4. Advanced Skills (Future)
---
## 4.1 Trust-Weighted Reasoning
* Prefer high-confidence chunks
* Incorporate usage signals into decisions
---
## 4.2 Cost-Aware Planning
* Allocate budget across multiple resources
* Optimize ROI of paid retrievals
---
## 4.3 Knowledge Graph Traversal
* Follow relationships across chunks
* Build multi-hop reasoning chains
---
## 4.4 Outcome-Based Learning
* Track which content improves results
* Reinforce high-performing sources
---
## 5. Skill Execution Order (Recommended)
```
Discover → Evaluate → Preview → Retrieve → Reason → Decide
```
---
## 6. System Integration
Skills operate across:
* `/ai-index.json` → discovery
* `/qa.json` → fast reasoning
* `/chunks.json` → deep reasoning
* `/api/*` → paid access
---
## 7. Constraints
Agents MUST:
* Follow `agents.md` rules
* Respect pricing and payment systems
* Avoid reconstructing paid content from metadata
* Minimize unnecessary calls
---
## 8. Design Philosophy
Skills are:
* modular
* composable
* reusable
* economically aware
They enable:
> Efficient, rational interaction with structured knowledge systems
---
## 9. Final Principle
> Skills define *how* an agent operates; content defines *what* it knows.