281 lines
4.1 KiB
Markdown
281 lines
4.1 KiB
Markdown
# 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.
|