Digital Karma Web Standards & Architecture
Technical specifications and standards for building AI-native, machine-readable websites.
specs/federation-spec-v7.md
β‘ Quick Reference
Required Endpoints
/ai/manifest.json/ai/health.json/ai/catalog.json/ai/karma.json/ai/federation.json/llm.txt
Recommended Optional
/ai/diagnostics.json/llm.json/ai/sitemap.json/entities/index.json/datasets/index.json/ai/journal/YYYY-MM-DD.json
Content-Type
- All JSON:
application/json - Structured data:
application/ld+json - CORS:
enabled - Encoding:
UTF-8
Timestamps
- Format: ISO 8601
- Timezone: UTC
- Example:
2026-01-15T10:30:00Z - Minimum refresh: weekly
π Federation Protocol v7.0
The Digital Karma Web Federation is an open standard enabling any AI-ready website to join a decentralized network of machine-readable sites. Sites discover, understand, and trust each other through standardized endpoints and transparent reputation scoring. DigitalKarmaWeb.com is the specification authority β any site can implement the standard independently.
Core Principles
- Discoverability β Sites expose predictable endpoints at
/ai/* - Interoperability β All endpoints use standard JSON formats
- Transparency β Quality scores are calculated openly and verifiably
- Decentralization β No central authority required; peer-to-peer discovery works without the registry
- Self-Sovereignty β Each site controls its own data and trust signals
- Versioning β Protocol versioning for backward compatibility
What Changed in v7.0
| Area | v6.1 | v7.0 |
|---|---|---|
| Required endpoints | 4 (manifest, health, catalog, karma) | 6 (+ federation.json + llm.txt) |
| Entry badge name | Karma Bronze | Karma Certified β |
| Network topology | Undocumented | 4-Stage Federation Mapping (official) |
| Self-maintaining pattern | Mentioned only | Documented reference pattern |
| Diagnostics endpoint | Not specified | Optional recommended endpoint |
| Entity files | Not specified | Required for Elite compliance |
| Compliance tiers | Informal | 4 formal tiers: Starter, Certified, Pro, Elite |
Compliance Levels
| Level | Requirements | Badge |
|---|---|---|
| Starter | All 6 required endpoints present, valid JSON, federation_version: "7.0" | π Federation Member |
| Certified | Starter + Score β₯ 0.70 + Schema.org markup on primary pages | β Karma Certified |
| Pro | Certified + Score β₯ 0.85 + datasets published + bidirectional peer links | β Karma Pro |
| Elite | Pro + Score β₯ 0.95 + automation + diagnostics.json + /entities/ files + /federation/ mapping | π Karma Elite |
π Manifest Specification (/ai/manifest.json)
The primary discovery file. A crawler or agent should be able to start here and understand what the site is, what version it runs, and where the other endpoints live.
Required Fields
{
"name": "string", // Site name
"url": "string", // Canonical URL
"federation_version": "7.0", // Must be "7.0"
"updated_utc": "ISO8601", // UTC timestamp
"endpoints": { // Map of key endpoint URLs
"health": "/ai/health.json",
"catalog": "/ai/catalog.json",
"karma": "/ai/karma.json",
"federation": "/ai/federation.json"
},
"related_sites": ["https://www.aiwebsitesystems.com"]
}
Recommended Fields
descriptionβ Short site descriptiontaglineβ One-line positioning statementcontactβ Email and website of maintainerrelated_sitesβ Array of federation partner URLsdatasetsβ Summary of available datasetsservicesβ Array of service offeringsschema_org_typesβ Implemented Schema.org types
π Health Endpoint (/ai/health.json)
Reports operational readiness and content freshness. Keep timestamps current β weekly refresh is the minimum baseline.
Required Fields
{
"site": "https://example.com",
"status": "ok|ready|degraded|offline|down",
"updated_utc": "ISO8601",
"metrics": {
"pageCount": number,
"datasetCount": number,
"entityCount": number
}
}
Recommended Fields
last_rebuild_utcβ Date of last site rebuildchecksβ Presence validation of required endpointsendpointsβ Key endpoint URLsnotesβ Human-readable status notes
π Catalog Endpoint (/ai/catalog.json)
The site's machine-readable catalog of datasets, endpoints, and AI-facing resources. Must use Schema.org DataCatalog format.
Required Fields
{
"@context": "https://schema.org",
"@type": "DataCatalog",
"name": "string",
"url": "string",
"dataset": [
{
"@type": "Dataset",
"name": "string",
"url": "string"
}
]
}
Recommended Per-Dataset Fields
descriptiondateModifiedencodingFormat
β Karma Endpoint (/ai/karma.json)
The site's Digital Karma trust document. For strict v7.0 compliance this is a score-driven payload. A conceptual definition file is acceptable as a transitional state, but a scored payload is required for Certified, Pro, and Elite tier claims.
Scored Payload Fields
{
"site": "string",
"federation_version": "7.0",
"digital_karma_score": 0.00-1.00,
"badge": "Karma Certified|Karma Pro|Karma Elite",
"signals": { ... },
"updated_utc": "ISO8601"
}
π Federation Endpoint (/ai/federation.json)
The formal federation relationship document, required in v7.0. Communicates your site's role in the network and its peer relationships.
Required Fields
federation_versionβ"7.0"siteβ Canonical site URLroleβ Node type (e.g.hub,specialist,member)networkβ Network namepeersβ Array of related federation members
Peer Relationship Fields
urlβ Peer canonical URLrelationshipβ Type:peer,registry,parent,child,provider,consumertrust_levelβ Numeric or descriptive trust signalbidirectionalβ Boolean
π LLM Text File (/llm.txt)
Root-level plain-text summary of the site for language models. Lives at the site root, not in /ai/.
Should Include
- Site name and short description
- Canonical URL
- Core pages
- Available datasets
- AI endpoints list
- Federation context and version
Best Practices
- Markdown-style plain text, concise and scannable
- Use canonical absolute URLs for cross-site references
- No marketing copy β write for machines, not humans
- Update whenever key pages, endpoints, or positioning change
β Digital Karma Scoring
Transparent, automated quality and trust scoring for AI websites. Score range: 0.00 to 1.00.
Scoring Formula
Signal Breakdown
| Signal | Weight | Measurement |
|---|---|---|
| Schema Coverage | 20% | Presence and quality of Schema.org markup |
| Content Freshness | 15% | Last update timestamp, update frequency |
| AI Endpoints | 25% | Required endpoint presence and completeness |
| Federation Presence | 15% | Network participation, bidirectional links |
| External Links | 10% | Quality and relevance of outbound links |
| Technical Quality | 10% | Performance, security, accessibility scores |
| Dataset Quality | 5% | Structured dataset availability and validity |
Badge Thresholds
- β Karma Certified: Score β₯ 0.70
- β Karma Pro: Score β₯ 0.85
- π Karma Elite: Score β₯ 0.95
Naming rule: Do not use Karma Bronze on v7.0 sites β it was renamed to Karma Certified in this version.
πΊοΈ 4-Stage Federation Mapping New in v7.0
Advanced sites publish structured federation topology in a /federation/ folder. Recommended for Pro, required for Elite.
| Stage | File | What It Captures | Required At |
|---|---|---|---|
| v01 β Listings | /federation/v01_listings.json | Raw inventory of all sites in the network | Pro+ |
| v02 β Clusters | /federation/v02_clusters.json | Sites grouped by function | Pro+ |
| v03 β Relationships | /federation/v03_relationships.json | Directed edges between sites with relationship type | Pro+ |
| v04 β Propagation | /federation/v04_propagation.json | Trust flow model across the network graph | Elite |
π¦ Recommended Optional Files
Not required for minimum v7.0, but should be used whenever possible as the site matures.
| File | Path | Why It Matters |
|---|---|---|
| Diagnostics | /ai/diagnostics.json | Machine-readable compliance and health report. Required for Elite. |
| LLM JSON | /llm.json | Structured companion to llm.txt |
| Sitemap JSON | /ai/sitemap.json | AI-readable content inventory |
| Entity Index | /entities/index.json | Formal index of entity JSON-LD files. Required for Elite. |
| Dataset Index | /datasets/index.json | Full inventory of published datasets |
| Journal | /ai/journal/YYYY-MM-DD.json | Maintenance history and rebuild trace |
Entity Files (/entities/)
Use /entities/ for explicit JSON-LD entity declarations. Required for Elite compliance.
/entities/organization.jsonld/entities/brand.jsonld/entities/website.jsonld/entities/service.*.jsonld/entities/index.jsonβ lists all entity files
β Implementation Checklist
Level 1: Starter β π Federation Member
- Create
/ai/manifest.jsonwith all required fields - Create
/ai/health.jsonwith status and metrics - Create
/ai/catalog.jsonwith at least one dataset - Create
/ai/karma.json(scored or conceptual) - Create
/ai/federation.jsonwith network links - Create
/llm.txtat site root - Set
federation_version: "7.0"wherever the field appears - Confirm HTTPS and a stable canonical domain
- Validate all JSON parses cleanly
Level 2: Certified β β Karma Certified (Score β₯ 0.70)
- Achieve Digital Karma Score β₯ 0.70
- Add Schema.org Organization, WebSite, and WebPage markup on all primary pages
- Replace any
Karma Bronzebadge references withKarma Certified
Level 3: Pro β β Karma Pro (Score β₯ 0.85)
- Achieve Digital Karma Score β₯ 0.85
- Publish 2+ quality datasets with full Schema.org Dataset metadata
- Establish bidirectional federation peer links
- Deploy 4-stage federation mapping (
/federation/folder)
Level 4: Elite β π Karma Elite (Score β₯ 0.95)
- Achieve Digital Karma Score β₯ 0.95
- Implement self-maintaining automation (refreshed timestamps, topology, karma payload)
- Deploy
/ai/diagnostics.jsonwith zero open issues - Publish
/entities/JSON-LD files with/entities/index.json - Complete all 4 stages of federation mapping including
v04_propagation.json - Publish 5+ high-quality datasets
π Directory Blueprint
Minimum v7.0 Shape
/
βββ ai/
β βββ manifest.json
β βββ health.json
β βββ catalog.json
β βββ karma.json
β βββ federation.json
βββ llm.txt
βββ robots.txt
βββ datasets/ (optional but recommended)
Pro / Elite Shape
/
βββ ai/
β βββ manifest.json
β βββ health.json
β βββ catalog.json
β βββ karma.json
β βββ federation.json
β βββ diagnostics.json
β βββ sitemap.json
β βββ journal/
βββ entities/
β βββ index.json
β βββ organization.jsonld
β βββ brand.jsonld
β βββ website.jsonld
β βββ service.*.jsonld
βββ federation/
β βββ index.json
β βββ v01_listings.json
β βββ v02_clusters.json
β βββ v03_relationships.json
β βββ v04_propagation.json
βββ datasets/
β βββ index.json
βββ llm.txt
βββ robots.txt
π Validation Checklist
Before marking a site as v7.0 complete, verify all of the following:
/ai/manifest.jsonloads and parses/ai/health.jsonloads and parses/ai/catalog.jsonloads and parses/ai/karma.jsonloads and parses/ai/federation.jsonloads and parses/llm.txtloads- All JSON files are valid β no trailing commas, no unquoted keys
- Canonical URLs are absolute where referenced cross-site
- All timestamps use ISO 8601 UTC format
federation_versionis"7.0"everywhere it appears- Schema.org markup exists on all primary pages
- Federation peer links are present and point to live endpoints
robots.txtdoes not block intended AI discovery paths
ποΈ Legacy-Compatible Files
These files may still exist across portfolio sites and are allowed, but they do not replace the 6 required v7.0 artifacts. When modernizing a site, prioritize the required set first.
| File | Status | Notes |
|---|---|---|
/ai/compatibility.json | Allowed | Retained for backward compatibility only |
/ai/llm.json | Allowed | Legacy optional endpoint retained on some older sites |
/ai/entities.json | Allowed | Superseded by /entities/ folder pattern |
/ai/datasets/index.json | Allowed | Superseded by /datasets/index.json |
/ai/journal/index.json | Allowed | Keep if in active use |
Have Feedback on These Standards?
The Digital Karma Web Federation standards are community-driven. Suggest improvements, report issues, or submit your site for federation membership.