2026-10-18 09:23:43 -06:00
2026-10-18 09:23:43 -06:00
2026-08-15 11:49:05 -06:00
2026-10-18 09:23:43 -06:00
2026-10-18 09:23:43 -06:00
2026-10-18 09:23:43 -06:00
2026-08-15 11:49:05 -06:00
2026-10-18 09:23:43 -06:00
2026-08-15 11:49:05 -06:00
2026-08-15 11:49:05 -06:00
2026-05-06 10:51:28 -06:00
2026-10-18 09:23:43 -06:00
2026-10-11 17:00:46 -06:00
2026-10-18 09:23:43 -06:00
2026-08-15 11:49:05 -06:00
2026-10-18 09:23:43 -06:00
2026-08-15 11:49:05 -06:00
2026-10-14 12:09:54 -06:00
2026-10-18 09:23:43 -06:00

Structuring Content for AI

This repository is the master roadmap, guide, and reference for making knowledge discoverable, understandable, retrievable, governable, and reusable by both people and AI agents.

It describes the overall system and records what has been learned across working implementations. It is intentionally broader than any one website, repository, knowledge base, agent, graph, or payment system. Implementation-specific code, templates, schemas, and operating instructions remain in their own repositories and are linked from this guide.

The goal is not to create every artifact for every project. The goal is to choose the smallest structure that makes the content clear and reliable now, while preserving a path to richer identity, lineage, policy, graph, retrieval, and economic layers later.

How to Use This Repository

Start with this README for the complete roadmap and decision framework. Retrieve the supporting documents only when the task needs their greater depth:

  • chunk-intelligence-signature.md defines the advanced Chunk Intelligence Signature (CIS) metadata model.
  • poppy.md documents Personal Agent Protocol discovery, the ordinary-web profile, and the path to verified agent access.
  • control-plane.md explains the separation between canonical semantic content and mutable policy or runtime state.
  • media-structuring.md applies the model to audio/video and routes to the media-specific builder, skills, and tools.
  • docs/README.md is the documentation index.

This repository is guidance, not a turnkey publisher or runtime. Choose a maturity profile below, then use the linked reference implementations for executable skills, schemas, scripts, and website pipelines.

For AI-assisted work, read AGENTS.md, repository-variables.json, and repository.json before modifying the roadmap. Proposed future ideas belong in UPDATES.md; completed, versioned work belongs in CHANGELOG.md.

Core Principles

  1. Structure content when it is created, not only after retrieval fails.
  2. Keep human-readable source and machine-readable derivatives connected.
  3. Separate content and meaning from policy, pricing, permissions, and runtime state.
  4. Give documents, concepts, chunks, and repositories stable identities where stability matters.
  5. Generate discovery artifacts deterministically from reviewed sources whenever possible.
  6. Treat current state and change history as different products.
  7. Preserve provenance, lineage, deprecation, and tombstones instead of silently deleting history.
  8. Add complexity only when the corpus, risk, or use case justifies it.
  9. Validate identifiers, links, schemas, source-to-output consistency, and privacy boundaries before publishing.
  10. Make the next useful action obvious to both humans and agents.

The System in One View

A content resource can have several connected representations:

  1. Human source — usually Markdown; sometimes source HTML or content exported from another platform.
  2. Human publication — rendered HTML, a document, an application page, or another human-facing format.
  3. Semantic artifacts — chunks, questions and answers, summaries, entities, relationships, rights, and provenance.
  4. Discovery metadata — indexes and guidance that explain what exists, why it matters, how to access it, and what to retrieve first.
  5. Repository metadata — machine-readable descriptions of the code, content, skills, schemas, inputs, outputs, ownership, and lifecycle behind the resource.
  6. Temporal metadata — meaningful versions, timestamps, hashes, source commits, semantic change events, and tombstones.
  7. Policy overlay — access, permissions, pricing, entitlement, status, and usage state.
  8. Retrieval and graph layers — search, embeddings, entities, edges, ontology, ranking, and multi-hop reasoning.

The common website case is:

Markdown source
  -> structured Markdown and stable IDs
  -> chunks.json and qa.json
  -> rendered HTML with JSON-LD and alternate links
  -> ai-index.json and public discovery files
  -> optional policy-resolved API, graph, and vector index

The repository and website should also point to each other:

Website discovery layer
  -> repository catalog or bridge page
  -> each repository's repository.json
  -> README, content-index.json, skills, schemas, and source

Repository manifest
  -> canonical repository URL
  -> related website, published artifacts, documentation, APIs, and feeds

Choose a Maturity Profile

Do not force a small public site to implement a graph database, control plane, or payment system. Use a maturity profile that fits the project.

Level Use when Minimum useful structure
1 — Clear source Small guides and repositories README, authoritative source, headings, front matter where useful, canonical URLs, license, sitemap for websites
2 — Semantic publication Content should be directly retrievable by agents Stable document/chunk IDs, chunks.json, qa.json, HTML alternate links, JSON-LD, ai-index.json, llms.txt
2.5 — Operational discovery A growing site or cross-domain ecosystem needs freshness and lifecycle evidence Resource registry, semantic change index, Atom feed, exact timestamps, hashes, source commits, repository manifests, repository inventory, tombstones
3 — Governed corpus Multiple authors, pipelines, access levels, or paid resources Authoritative identity service, CIS metadata, control plane, permissions, pricing, resolved views, usage evidence
4 — Graph-native intelligence Cross-corpus reasoning and continuing enrichment are core capabilities Domain and interpretive ontology, relationship provenance, graph database, hybrid retrieval, reconciliation jobs, trust propagation

A project may use different levels for different resources. Record the choice explicitly rather than implying that every planned layer is already implemented.

Architecture

The full model resolves into nine separable layers:

  1. Authoring layer — human-maintained source content.
  2. Structuring layer — headings, front matter, chunk boundaries, stable IDs, and retrieval hints.
  3. Semantic layer — chunks, Q&A, summaries, entities, claims, rights, provenance, and CIS metadata.
  4. Repository layer — repository identity, entry points, contents, skills, schemas, validation, and lifecycle guidance.
  5. Temporal layer — meaningful timestamps, versions, hashes, commits, events, lineage, deprecation, and tombstones.
  6. Discovery layer — HTML links, JSON-LD, indexes, catalogs, sitemaps, feeds, and agent guidance.
  7. Control-plane layer — permissions, pricing, status, entitlements, usage, and governance state.
  8. Serving layer — static files, APIs, MCP servers, paid endpoints, and computed resolved views.
  9. Retrieval and reasoning layer — keyword search, vector search, graph traversal, ranking fusion, and agent workflows.

Each layer should have a clear source of truth and build direction. Generated publication artifacts must not silently become the authoring source.

End-to-End Process

Phase A — Author and Structure

1. Establish the source of truth

Prefer Markdown for new knowledge-heavy projects because it is portable, versionable, diffable, and easy for humans and agents to inspect. Existing WordPress, Shopify, or other platform HTML can remain the human layer; create corresponding semantic and discovery layers without requiring an immediate platform migration.

For a website, a useful convention is:

/content/page.md                  authoritative source
/public/page/index.html           generated human publication
/public/data/open/pages/page/     generated semantic artifacts

2. Add document structure

For audio/video, the original recording plus TXT/VTT is the source set. Use a metadata interview, timed cue references, conceptual chunks, cited Q&A, and explicit draft → review → final approval. Preserve unknown metadata and original files; publication and embeddings are separate later decisions. See media structuring and Structured Media Builder for the media-specific route.

Use descriptive headings, a stable document identifier, lightweight front matter, and explicit chunk boundaries where retrieval benefits. A chunk is a conceptual unit, not merely a fixed number of tokens.

<!-- CHUNK id="k:why-findability" -->

Preserve heading paths and narrative order. They provide structural context, breadcrumb semantics, retrieval weighting, and support for later graph construction.

For simple content, front matter and chunk markers may be enough. When multiple agents, authors, ingestion pipelines, distributed systems, synchronization, re-chunking, graph merges, or cross-corpus references appear, agents should request IDs from an authoritative registry or service rather than inventing them independently.

Phase B — Materialize Semantic Artifacts

3. Generate chunks

Generate a compact chunks.json or equivalent artifact containing only fields that improve retrieval, continuity, rights handling, provenance, or later extensibility. Useful fields include:

  • document ID and stable chunk ID;
  • heading path and order;
  • title, summary, and content;
  • lightly used tags or concepts;
  • canonical source URL;
  • license and usage guidance;
  • meaningful version, timestamps, and hashes when the project is mature enough;
  • lineage fields when a chunk supersedes or derives from another resource.

Avoid speculative trust scores, relationships, provenance claims, and taxonomies that have no evidence or operational use.

4. Generate questions, answers, and next actions

Generate qa.json or equivalent material that represents the questions an agent or user may actually ask. Answers can reference multiple knowledge and chunk IDs for synthesis and multi-hop reasoning.

Where useful, include tools, processes, workflows, prerequisites, limitations, and practical next steps. This turns the reasoning layer into an action layer without mixing executable permissions into content.

5. Add a document-level semantic summary only when it is unique

A semantic-summary.json can aggregate document purpose, audience, major claims, resource relationships, and retrieval guidance. Do not create it if it merely repeats chunks, front matter, or ai-index.json.

Phase C — Render Human Pages and Connect Their AI Representations

6. Render HTML and JSON-LD

For websites, render HTML from reviewed source and include appropriate Schema.org JSON-LD. In the HTML <head>, add canonical links and rel="alternate" links to the page's semantic artifacts.

The HTML page, chunks, Q&A, and index entry should share canonical identity and compatible rights metadata. The current website-builder implementation generates these links and JSON-LD through a shared Hugo partial instead of hand-authoring each page.

Phase D — Build Discovery

7. Publish complementary discovery artifacts

No single file should carry every responsibility.

Artifact Primary question it answers
HTML + JSON-LD What is this page for humans and general web systems?
sitemap.xml Which public URLs should crawlers visit, and when did their meaning last change?
robots.txt What may automated crawlers access?
llms.txt How should an AI approach and retrieve this site?
ai-index.json What content exists now, why is it relevant, and where are its semantic artifacts?
.well-known/ai-catalog.json Which public agent-usable resources, tools, or interfaces are advertised?
.well-known/poppy.json How can a personal agent connect to this business? Emerging Personal Agent Protocol draft 0.1; see poppy.md
.well-known/agent-card.json What agent-facing capabilities and endpoints does this system expose?
agents.md What operating guidance, boundaries, and retrieval order should agents follow?
skills.md Which skills, scripts, or workflows are available and when should they be used?
change-index.json Which reviewed material changes happened, and why?
changes.atom How can consumers subscribe to chronological change events?
repository.json What is this repository, what does it contain, and how should it be used?
content-index.json Which individual documents exist inside a content-heavy repository?

Treat newer or ecosystem-specific formats as evaluated additions, not assumed standards. Confirm current specifications before committing to names or contracts.

Poppy is an optional business-access addition to the discovery and serving layers. Use ordinary website discovery first; add session-capable interfaces only after their runtime is implemented and verified. See poppy.md for the current contract and adoption workflow.

8. Scale ai-index.json as an index of indexes

For a small corpus, one index may list every resource. As the corpus grows:

/ai-index.json                           lightweight root router
/data/open/indexes/community.json        section index
/data/open/indexes/research.json         section index
/data/open/pages/<slug>/chunks.json      resource detail
/data/open/pages/<slug>/qa.json          resource reasoning layer

The root index should remain fast and decision-enabling. It should advertise current resources and route retrieval, not duplicate the full CIS envelope or every chunk.

Phase E — Make Repositories AI-Findable

9. Give each repository a control surface

An AI-ready repository should expose predictable human and machine entry points. Select the smallest repository profile that fits, then consider:

  • README.md — purpose, users, workflow, and human entry point;
  • AUTHOR.md — verified authorship, publisher, maintainer, and attribution;
  • repository-variables.json — reusable verified identity, rights, and publication facts;
  • repository.json — authoritative machine-readable manifest;
  • content-index.json — file-level catalog for content-heavy repositories;
  • AGENTS.md — repository-scoped AI operating instructions;
  • skills.md and skills/ — available workflows and their triggers;
  • schemas/, templates/, examples/, scripts/, and tests/ when they have a real purpose;
  • UPDATES.md for proposals and CHANGELOG.md for completed versioned work;
  • VERSION, CITATION.cff, SECURITY.md, CONTRIBUTING.md, and LICENSE where appropriate.

Keep identity aligned across manifests, author records, citation metadata, version files, licenses, and canonical URLs. Validate declared files, relative links, stable identifiers, and schema contracts deterministically.

10. Build the website-to-repository bridge

When a website and its implementation repositories live on different domains, create explicit paths in both directions:

  1. Each repository publishes its own repository.json and canonical repository URL.
  2. Repository manifests relate the repository to its website, documentation, data, APIs, feeds, and other repositories.
  3. The website publishes a human-facing repository or Forge overview page.
  4. The website publishes a machine-readable repository inventory generated from the Git host API when practical.
  5. Inventory records include repository, API, clone, and raw repository.json URLs, plus status, visibility, topics, license, timestamps, commit/release evidence, and verification status.
  6. Global HTML discovery links advertise the website AI index, change index, feed, sitemap, and relevant repository inventory.
  7. agents.md, agent-use guidance, the repository overview, and the Git host API provide deeper routes.

Do not make each repository edit the website's ai-index.json, and do not manually duplicate every repository in the site index. Each domain owns its source. A deterministic website-side catalog materializer aggregates public repository facts.

Repository activity is evidence of activity, not proof of a semantic change or release. Keep API-derived current state separate from reviewed change events.

Phase F — Add Temporal Findability

11. Separate current state from event history

Use distinct, related artifacts:

  • a resource registry describes resources that exist now or are intentionally retired;
  • ai-index.json presents the current public retrieval state;
  • change-index.json is an append-only, reviewed semantic event ledger;
  • changes.atom is generated from the same event ledger;
  • Git and Git-host APIs provide source, commit, and release evidence.

Do not reconstruct semantic history from filesystem modification times or commits alone. A deploy, formatting change, or build may not change meaning.

12. Track meaningful resource and chunk changes

For each resource, track as justified:

  • stable ID, status, and version;
  • first declaration, creation, content update, and metadata update timestamps;
  • exact UTC timestamp plus a declared display timezone;
  • current and previous content hashes;
  • source repository, path, branch, and commit;
  • whether the working tree was modified during generation;
  • superseded or derived-from relationships;
  • tombstones for moved, archived, or deleted resources.

For chunks, preserve the same stable chunk_id while the conceptual unit remains the same. Increment the chunk version and update the hash only when content changes. Record the superseded version where useful.

Use semantic registry timestamps for sitemap <lastmod>, not deployment time. This lets agents distinguish actual freshness from rebuild noise.

Phase G — Add Identity, Lineage, and Trust

13. Use a layered identity model

The CIS model distinguishes:

  • knowledge_id — stable identity of the idea or conceptual unit;
  • did_chunk — identity of a particular version;
  • cid_chunk — content-derived hash or content identifier.

The rule is: identity is authored or authoritatively assigned, versions are computed, and runtime state is managed.

For minor edits, preserve the knowledge ID and create a new version. For splits and merges, create appropriate new knowledge IDs and explicit lineage. For a replacement document, deprecate the old resource and link the new one; do not silently erase the old identity.

Semantic similarity may help reviewers assess continuity, but thresholds are heuristics, not an autonomous source of truth. Trust should transfer only to the degree that meaning and evidence persist.

Phase H — Add Policy and Controlled Delivery

14. Keep the control plane separate from canonical content

The control plane manages state such as:

  • active, deprecated, or superseded status;
  • access and permissions;
  • pricing and entitlements;
  • usage, delivery, payment, and outcome evidence;
  • lineage and governance decisions.

It should not become the canonical store for content, identity, or authored structure.

chunks.base.json + control-plane state -> chunks.resolved.json

chunks.base.json remains the stable semantic publication. chunks.resolved.json is a computed view, generated at build time or request time. Dynamic resolution is preferable when permissions or prices change frequently.

Open and controlled routes can coexist:

/data/open/pages/<slug>/chunks.json    public content or preview
/api/chunks/<slug>                     authenticated, entitled, or paid content

Possible economic mechanisms include membership credentials, partner entitlements, accountless per-resource payment such as x402 or MPP, and event records for request, payment, and delivery. These are optional serving and policy concerns, not prerequisites for semantic structure.

Phase I — Enrich, Graph, and Retrieve

15. Grow ontology in layers

Ontology should mature with the corpus:

  1. Structural ontology — document, section, chunk, claim, answer, entity.
  2. Domain ontology — project-specific types such as product, service, process, regulation, person, organization, location, or tool.
  3. Interpretive ontology — relationships such as supports, contradicts, depends_on, solves, applies_to, caused_by, prerequisite_for, and replacement_for.

Record provenance on edges: manual, front matter, deterministic extraction, model inference, or another source. Reconcile stale edges whenever content changes, retain unresolved references as enrichment triggers, and prefer soft deprecation and recovery over deletion.

Useful later-stage patterns include:

  • automatic link extraction after content writes;
  • front-matter-to-edge mapping as a lightweight ontology;
  • backlink and reputation signals in ranking;
  • hybrid retrieval using keyword, vector, and graph signals with ranking fusion;
  • background reinterpretation and enrichment jobs;
  • compiled-current-truth views separated from timeline/event history.

16. Add embeddings after structure and provenance

Vectorization improves semantic retrieval but does not replace stable identity, headings, metadata, provenance, keyword search, or graph edges. Embed reviewed semantic units, retain the source and embedding-model version, and rebuild selectively when content or models change.

Validation and Operating Rules

Before publication or deployment:

  1. Confirm the authoritative source and generated-output boundaries.
  2. Parse and schema-validate JSON, XML, and feeds.
  3. Verify stable IDs across source, chunks, Q&A, indexes, and change records.
  4. Verify canonical URLs and all website-to-repository links in both directions.
  5. Verify every declared path exists and every generated artifact maps to reviewed source.
  6. Confirm meaningful timestamps, versions, hashes, commits, and tombstones.
  7. Check that private repositories, credentials, internal infrastructure, logs, and unpublished data are not exposed.
  8. Validate HTML canonical, alternate, JSON-LD, AI-index, feed, and sitemap links.
  9. Run repository-native tests, deterministic validators, and credential/leak scans.
  10. Have a human review meaning, rights, policy, pricing, and publication scope.
  11. Use a second independent review pass for high-risk or large materializations, especially identifier and source-to-output consistency.
  12. Review the complete diff before publishing.

Never store credentials in public content or repository discovery artifacts. Public catalogs must exclude private repositories and sensitive operational facts.

Reference Implementations

These repositories contain the detailed, evolving implementations behind this guide:

Repository or site What it demonstrates Link
Structured Website Builder Markdown-to-Hugo workflow, structured chunks and Q&A, HTML alternate links, JSON-LD, AI index generation, discovery files, schemas, skills, and validation Repository
Structured Media Builder Recording + TXT/VTT intake, metadata interview, timed chunks, cited Q&A, chapters, local draft/review/final approval, checksums, keyword retrieval, and optional public export; API/MCP services and embeddings remain separate integrations Repository · reference model and tool routes
AI-Ready Repository Template Repository profiles, repository.json, repository-variables.json, content-index.json, AI instructions, skills, schemas, deterministic validation, governance, and lifecycle conventions Repository
PaddleNET website and Forge bridge Cross-domain website/repository discovery, repository inventory, temporal resource registry, reviewed change ledger, Atom feed, tombstones, source/commit provenance, and semantic timestamps Published website · public Forge
Master findability framework Broader SEO, GEO, discovery, distribution, and submission context Repository

Use those repositories for executable details. Keep this README focused on the durable model, the decision framework, and lessons that should carry across implementations.

Research and Future Work

The following areas should continue to be evaluated and promoted into the main process only when specifications and working implementations justify them:

  • current status and interoperability of emerging AI catalogs and agent-discovery conventions;
  • MCP for exposing content and tools across a service boundary;
  • WebMCP or equivalent page-scoped agent capabilities;
  • authoritative distributed ID services and cross-corpus identity resolution;
  • graph databases, edge reconciliation, and trust propagation;
  • automated semantic continuity review for splits, merges, and revisions;
  • paid previews, x402, MPP, credentials, entitlements, and outcome-based trust;
  • privacy-preserving structure for internal knowledge assembled from files, NAS data, email, browser history, and other personal sources;
  • synchronization and policy boundaries between the private internal brain, processing environments, public servers, and partner systems.

The central design question remains: does an artifact add a unique, operationally useful layer, or does it merely duplicate information already available elsewhere?

High-Level Control Model

ai-index.json
  = public content discovery and routing

repository.json + repository inventory
  = implementation discovery and cross-domain routing

CIS metadata
  = identity, provenance, meaning, lineage, and optional policy descriptors

resource registry + change index
  = current lifecycle state plus reviewed semantic history

chunk API or static semantic artifacts
  = delivery

credentials, entitlements, x402, or MPP
  = optional access and payment

event store
  = request, payment, delivery, usage, and outcome evidence

control plane
  = aggregated permissions, policy, pricing, usage, and governance state

Repository Information

The repository is an evolving synthesis of implemented patterns and active research. External specifications and ecosystem conventions can change; verify current contracts before treating an emerging discovery format as stable.

S
Description
No description provided
Readme Cite this repository
255 KiB
0 Stars 1 Watchers 0 Forks
Languages
Markdown 100%