added
This commit is contained in:
1 parent
d5411194a8
commit
41917c8e11
18 files changed
+1397
-1125
No files matched your search
@@ -1,456 +1,424 @@
|
||||
# Overview
|
||||
# Structuring Content for AI
|
||||
|
||||
This is an AI-native, versioned knowledge system with structured discovery, reasoning layers, and an economic access layer. This is the process that would be used to structure content for AI to use.
|
||||
This repository is the master roadmap, guide, and reference for making knowledge discoverable, understandable, retrievable, governable, and reusable by both people and AI agents.
|
||||
|
||||
This repo is an overview and would contain files not in another repo. Specific applications of this process - like publishing a website - would contain more relevant artifacts used for that application. I would clone an existing website publishing repo if I were to build a new website.
|
||||
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.
|
||||
|
||||
It has four fundamental properties:
|
||||
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.
|
||||
|
||||
1. Content is structured at creation
|
||||
2. Meaning is separated from policy
|
||||
3. Trust compounds over time
|
||||
4. Access can be programmatically gated (free → paid)
|
||||
## How to Use This Repository
|
||||
|
||||
Mental model:
|
||||
Page =
|
||||
1. Human version (Markdown or HTML if a website, or makdown is source of truth published into HTML for human website reading)
|
||||
2. AI version (json + Q&A + chunks + CIS envelope).
|
||||
Start with this README for the complete roadmap and decision framework. Retrieve the supporting documents only when the task needs their greater depth:
|
||||
|
||||
# The Architecture (Layered Model)
|
||||
- [`chunk-intelligence-signature.md`](chunk-intelligence-signature.md) defines the advanced Chunk Intelligence Signature (CIS) metadata model.
|
||||
- [`control-plane.md`](control-plane.md) explains the separation between canonical semantic content and mutable policy or runtime state.
|
||||
- [`docs/README.md`](docs/README.md) is the documentation index.
|
||||
|
||||
The system resolves into six clean layers:
|
||||
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.
|
||||
|
||||
1. Authoring Layer → Markdown (human)
|
||||
2. Structuring Layer → Chunked Markdown (parser)
|
||||
3. Semantic Layer → Chunks + CIS (meaning + trust)
|
||||
4. Control Plane → Policy + pricing + state
|
||||
5. Serving Layer → Resolved JSON (content + policy)
|
||||
6. Discovery Layer → ai-index.json, llms.txt, sitemap. This is for website, but could these also carry over to other knowledgebases? This would also be extended into vectorization/embeddings
|
||||
For AI-assisted work, read [`AGENTS.md`](AGENTS.md), [`repository-variables.json`](repository-variables.json), and [`repository.json`](repository.json) before modifying the roadmap. Proposed future ideas belong in `UPDATES.md`; completed, versioned work belongs in [`CHANGELOG.md`](CHANGELOG.md).
|
||||
|
||||
Each layer has a single responsibility, which is why the system stays stable.
|
||||
## Core Principles
|
||||
|
||||
# Process
|
||||
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.
|
||||
|
||||
## Phase A — Creation
|
||||
## The System in One View
|
||||
|
||||
### Step 1: Author writes content
|
||||
A content resource can have several connected representations:
|
||||
|
||||
Ideal is markdown pages = website pages
|
||||
But likely could be existing platforms like Wordpress or Shopify that produce HTML pages.
|
||||
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.
|
||||
|
||||
/content/home.md
|
||||
The common website case is:
|
||||
|
||||
- Human-readable narrative
|
||||
- Becomes the source of truth
|
||||
```text
|
||||
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
|
||||
```
|
||||
|
||||
If produced in markdown and this is for a website, use a tool like Hugo to create the corresponding HTML page + JSON-LD
|
||||
The repository and website should also point to each other:
|
||||
|
||||
---
|
||||
To engage AI with steps 2 and 3 below, the human should review this skill and guidance and direction on prompts and execution: execute-content-structuring-process-overview-skill.md
|
||||
---
|
||||
```text
|
||||
Website discovery layer
|
||||
-> repository catalog or bridge page
|
||||
-> each repository's repository.json
|
||||
-> README, content-index.json, skills, schemas, and source
|
||||
|
||||
### Step 2: Parser structures the document
|
||||
Repository manifest
|
||||
-> canonical repository URL
|
||||
-> related website, published artifacts, documentation, APIs, and feeds
|
||||
```
|
||||
|
||||
- Inserts chunk boundaries
|
||||
- Assigns stable chunk ID and knowledge-level IDs
|
||||
## 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:
|
||||
|
||||
```text
|
||||
/content/page.md authoritative source
|
||||
/public/page/index.html generated human publication
|
||||
/public/data/open/pages/page/ generated semantic artifacts
|
||||
```
|
||||
|
||||
#### 2. Add document structure
|
||||
|
||||
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.
|
||||
|
||||
```html
|
||||
<!-- CHUNK id="k:why-findability" -->
|
||||
```
|
||||
|
||||
This is a reasoning layer for AI to parse the document. Or, the author could just use a template.
|
||||
Preserve heading paths and narrative order. They provide structural context, breadcrumb semantics, retrieval weighting, and support for later graph construction.
|
||||
|
||||
Identity of the chunkcs are created here.
|
||||
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.
|
||||
|
||||
This step is converting the markdown itself into:
|
||||
### Phase B — Materialize Semantic Artifacts
|
||||
|
||||
- authored knowledge graph structure
|
||||
- semantic retrieval structure
|
||||
- reasoning topology
|
||||
#### 3. Generate chunks
|
||||
|
||||
not just content.
|
||||
Generate a compact `chunks.json` or equivalent artifact containing only fields that improve retrieval, continuity, rights handling, provenance, or later extensibility. Useful fields include:
|
||||
|
||||
This step 2 parser can also take the place of the CIS envelope for simple content, like a small static website. We don't want to overcomplicate things when not needed. The CIS envelope and control plane described further is more advanced for larger content repositories.
|
||||
- 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.
|
||||
|
||||
Use author-content-structuring-skill.md for this step.
|
||||
Avoid speculative trust scores, relationships, provenance claims, and taxonomies that have no evidence or operational use.
|
||||
|
||||
For UUID, use this skill. But later, when there is :
|
||||
#### 4. Generate questions, answers, and next actions
|
||||
|
||||
multiple agents
|
||||
multiple ingestion pipelines
|
||||
multiple authors
|
||||
distributed systems
|
||||
synchronization
|
||||
re-chunking
|
||||
lineage tracking
|
||||
graph merges
|
||||
cross-corpus references
|
||||
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.
|
||||
|
||||
then you want authoritative identity management.
|
||||
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.
|
||||
|
||||
At that point:
|
||||
#### 5. Add a document-level semantic summary only when it is unique
|
||||
|
||||
AI should REQUEST IDs and not invent them independently, from:, for example:
|
||||
a py UUID service
|
||||
a database
|
||||
an API
|
||||
a registry
|
||||
a microservice
|
||||
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`.
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent.
|
||||
### Phase C — Render Human Pages and Connect Their AI Representations
|
||||
|
||||
skill: author-content-structuring-skill.md
|
||||
#### 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.
|
||||
|
||||
## Phase B — Structuring + Enrichment
|
||||
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.
|
||||
|
||||
### Step 3: Build process extracts chunks
|
||||
### Phase D — Build Discovery
|
||||
|
||||
For each chunk:
|
||||
#### 7. Publish complementary discovery artifacts
|
||||
|
||||
- knowledge_id → from chunk ID
|
||||
- did_chunk → version ID
|
||||
- cid_chunk → hash of content
|
||||
No single file should carry every responsibility.
|
||||
|
||||
Generates:
|
||||
| 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/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? |
|
||||
|
||||
- chunks.base.json (immutable content + core CIS)
|
||||
- qa.json (AI-generated questions/answers)
|
||||
Treat newer or ecosystem-specific formats as evaluated additions, not assumed standards. Confirm current specifications before committing to names or contracts.
|
||||
|
||||
Core CIS is chunk-intelligence-signature - see .md file for it. Also called CIS envelope.
|
||||
#### 8. Scale `ai-index.json` as an index of indexes
|
||||
|
||||
Here, we pull from the CIS envelope for reference depending on the content and application. It may not be treated as a full implementation requirement. If we have a simple static website, we only need what is required to improve retrieval, continuity, reasoning and futur extensibility. We build the schema based on this perspective for both chunks and qa .json.
|
||||
For a small corpus, one index may list every resource. As the corpus grows:
|
||||
|
||||
This initial is an interative process between human and AI, referencing the CIS envelope to determine the labels that need to be used moving forward.
|
||||
```text
|
||||
/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
|
||||
```
|
||||
|
||||
Use:
|
||||
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.
|
||||
|
||||
knowledge_ids: []
|
||||
chunk_ids: []
|
||||
### Phase E — Make Repositories AI-Findable
|
||||
|
||||
as arrays for:
|
||||
- multi-hop reasoning;
|
||||
- cross-chunk answers;
|
||||
- synthesis answers
|
||||
#### 9. Give each repository a control surface
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent. Verify that the ID's match throughout
|
||||
An AI-ready repository should expose predictable human and machine entry points. Select the smallest repository profile that fits, then consider:
|
||||
|
||||
skill: cis-guided-semantic-chunk-generation-skill.md
|
||||
- `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.
|
||||
|
||||
### Step 4: Q&A generation and Tools To Complete Tasks, Generation
|
||||
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.
|
||||
|
||||
content → AI → questions
|
||||
#### 10. Build the website-to-repository bridge
|
||||
|
||||
Produces:
|
||||
When a website and its implementation repositories live on different domains, create explicit paths in both directions:
|
||||
|
||||
- Full QA dataset (reasoning layer)
|
||||
- If feasible, identify tools, processes, workflows that can be used to help users complete tasks. Include them as part of answers that prompts users what to do next using the tools, proceses workflows identified.
|
||||
- Subset used for JSON-LD (optional)
|
||||
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.
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent.Verify that the ID's match throughout in the process outline in all the steps up to now. Sample prompt: I need you to verify that the ID's used in each of these documents match throughout. These documents represent a flow, with the source page enriched for frontmatter meaning, and the chunk and qa to follow with more meaning.
|
||||
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.
|
||||
|
||||
skill: semantic-qa-materialization-skill.md
|
||||
Repository activity is evidence of activity, not proof of a semantic change or release. Keep API-derived current state separate from reviewed change events.
|
||||
|
||||
### Step 5: Semantic JSON Page - this may not be needed,
|
||||
- A new page written in JSON format based on your HTML page, referenced by your HTML page.
|
||||
- Explains what the content means
|
||||
- Canonical source of truth
|
||||
- It is useful only if it acts as a document-level aggregation layer for agents.
|
||||
- Key question: is this file doing something unique or just repeating other layers.
|
||||
- Call it what is is to be precise: semantic-summary.json
|
||||
### Phase F — Add Temporal Findability
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent.Verify that the ID's match throughout in the process outline in all the steps up to now.
|
||||
#### 11. Separate current state from event history
|
||||
|
||||
### Step 6: ai-index.json - Discovery + Routing Layer. What exists, where is it, and how do I access it? This is a single page for all referenced pages in the system. This is for a website, but could exist for any knowledgebase, which is what a website rally is.
|
||||
Use distinct, related artifacts:
|
||||
|
||||
This is a machine-readable control plane. It replaces ambiguity from:
|
||||
- sitemap (URLs only)
|
||||
- llms.txt (text only)
|
||||
Without ai-index.json, the agent has to:
|
||||
- parse HTML
|
||||
- guess structure using sitemap.xml and agents.md
|
||||
- infer access rules
|
||||
With it:
|
||||
- You are explicitly programming the agent’s entry point
|
||||
- Think of it as a table of contents, whereas the JSON chunk pages with the CIS metadata is the full book.
|
||||
- You include only decision-enabling metadata, not the full CIS envelope (referenced above in chunks). The metadata is descriptive, evaluative.
|
||||
- Think of it as advertising what is available.
|
||||
1. What is this?
|
||||
2. Why should I trust it?
|
||||
3. Why is it worth paying for?
|
||||
4. Pulling trust and value signals, economic terms, access routing and possibly even a preview if available, all of which is contained in each JSON chunk.
|
||||
- What Drives Conversion (For Agents)? Agents will pay when they see:
|
||||
1. Proof of use: “others paid for this”
|
||||
2. Clear relevance: matches current task
|
||||
3. Low uncertainty: high confidence signal
|
||||
4. Low friction: simple endpoint + price
|
||||
- ai-index.json should make buying the obvious rational choice, not a guess.
|
||||
- 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.
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent. Verify that the ID's match throughout in the process outline in all the steps up to now.
|
||||
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
|
||||
|
||||
## Phase C — Control Plane Integration
|
||||
For each resource, track as justified:
|
||||
|
||||
### Step 7: Sync with control plane
|
||||
- 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.
|
||||
|
||||
The control plane is a relational database in tables. The CIS envelope metadata that accompanies each chunk is rolled up into colums and rows for filtering and sorting. This control plane references metadata in the chunks, but some metadata is controlled here, like pricing for chunks if they are paywalled. From here you would produce resolved chunks that have their chunked content, their CIS envelope metadata, the metadata from the control plane (which is the policy and governance layer). See below
|
||||
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.
|
||||
|
||||
This database stores:
|
||||
Use semantic registry timestamps for sitemap `<lastmod>`, not deployment time. This lets agents distinguish actual freshness from rebuild noise.
|
||||
|
||||
- Chunk records
|
||||
- Version + status (active/deprecated)
|
||||
- Pricing + permissions
|
||||
- Usage metrics
|
||||
- Lineage (supersedes / derived_from)
|
||||
### Phase G — Add Identity, Lineage, and Trust
|
||||
|
||||
Control plane manages state, not content
|
||||
#### 13. Use a layered identity model
|
||||
|
||||
Manages:
|
||||
The CIS model distinguishes:
|
||||
|
||||
- Access
|
||||
- Pricing
|
||||
- Permissions
|
||||
- Usage
|
||||
- Version state
|
||||
- `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.
|
||||
|
||||
Does NOT manage:
|
||||
The rule is: identity is authored or authoritatively assigned, versions are computed, and runtime state is managed.
|
||||
|
||||
- Content
|
||||
- Identity
|
||||
- Structure
|
||||
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.
|
||||
|
||||
Once completed, validate that this task was completed according to the skill requirements using another AI agent.Verify that the ID's match throughout in the process outline in all the steps up to now.
|
||||
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
|
||||
|
||||
Details at control-plane.md
|
||||
#### 14. Keep the control plane separate from canonical content
|
||||
|
||||
---
|
||||
The control plane manages state such as:
|
||||
|
||||
## Phase D — Versioning & Evolution
|
||||
- active, deprecated, or superseded status;
|
||||
- access and permissions;
|
||||
- pricing and entitlements;
|
||||
- usage, delivery, payment, and outcome evidence;
|
||||
- lineage and governance decisions.
|
||||
|
||||
### Minor edits
|
||||
It should not become the canonical store for content, identity, or authored structure.
|
||||
|
||||
- Same knowledge_id
|
||||
- New did_chunk
|
||||
- Old chunks → deprecated
|
||||
- Trust carries forward
|
||||
```text
|
||||
chunks.base.json + control-plane state -> chunks.resolved.json
|
||||
```
|
||||
|
||||
### Moderate structural changes (split/merge)
|
||||
`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.
|
||||
|
||||
- New knowledge IDs
|
||||
- Lineage recorded
|
||||
- Partial trust inheritance
|
||||
Open and controlled routes can coexist:
|
||||
|
||||
### Major revision (new document)
|
||||
```text
|
||||
/data/open/pages/<slug>/chunks.json public content or preview
|
||||
/api/chunks/<slug> authenticated, entitled, or paid content
|
||||
```
|
||||
|
||||
- New document_id
|
||||
- Old document deprecated
|
||||
- No automatic trust transfer
|
||||
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.
|
||||
|
||||
Rule: Never delete—only deprecate and supersede
|
||||
### Phase I — Enrich, Graph, and Retrieve
|
||||
|
||||
### How to Detect This
|
||||
#### 15. Grow ontology in layers
|
||||
|
||||
You need a semantic continuity check
|
||||
Ontology should mature with the corpus:
|
||||
|
||||
At build time, Compare old chunk ↔ new chunk.
|
||||
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`.
|
||||
|
||||
Compute:
|
||||
semantic_similarity = 0.0 → 1.0
|
||||
Then apply rules:
|
||||
- > 0.85 → same knowledge_id (inherit trust)
|
||||
- 0.5–0.85 → partial inheritance
|
||||
- < 0.5 → new knowledge_id (no inheritance)
|
||||
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.
|
||||
|
||||
Trust Migration Logic
|
||||
Useful later-stage patterns include:
|
||||
|
||||
Instead of “copying trust,” do this:
|
||||
- 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.
|
||||
|
||||
For each new chunk:
|
||||
Case 1 — Strong match
|
||||
{
|
||||
"knowledge_id": "same",
|
||||
"trust_inheritance": 0.9
|
||||
}
|
||||
Case 2 — Partial match
|
||||
{
|
||||
"knowledge_id": "same",
|
||||
"trust_inheritance": 0.4
|
||||
}
|
||||
Case 3 — New concept
|
||||
{
|
||||
"knowledge_id": "new",
|
||||
"trust_inheritance": 0.0
|
||||
}
|
||||
#### 16. Add embeddings after structure and provenance
|
||||
|
||||
Trust should transfer only when meaning persists.
|
||||
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
|
||||
|
||||
## Phase E — Policy Overlay
|
||||
Before publication or deployment:
|
||||
|
||||
### Step 8: Merge content + policy
|
||||
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.
|
||||
|
||||
chunks.base.json + control plane data → chunks.resolved.json. As detailed above, here you produce resolved chunks from the original chunks and the control plane.
|
||||
Never store credentials in public content or repository discovery artifacts. Public catalogs must exclude private repositories and sensitive operational facts.
|
||||
|
||||
- Base chunks remain unchanged
|
||||
- Resolved data is a computed view
|
||||
- Not a new canonical document
|
||||
## Reference Implementations
|
||||
|
||||
see control-plane.md
|
||||
These repositories contain the detailed, evolving implementations behind this guide:
|
||||
|
||||
You could build these when chunk is created, or dynamically as requested, which is better to accomdate changes in the control policy.
|
||||
| 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](https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN) |
|
||||
| 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](https://projects.eddiesoehnel.com/adminprojects/repo-template) |
|
||||
| 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](https://paddlenet.earth/) · [public Forge](https://forge.paddlenet.earth/) |
|
||||
| Master findability framework | Broader SEO, GEO, discovery, distribution, and submission context | [Repository](https://projects.eddiesoehnel.com/adminprojects/seo-geo) |
|
||||
|
||||
---
|
||||
Use those repositories for executable details. Keep this README focused on the durable model, the decision framework, and lessons that should carry across implementations.
|
||||
|
||||
## Phase F — Publishing
|
||||
## Research and Future Work
|
||||
|
||||
### Step 9: Generate outputs - this is specifically for a website, but could accompany any knowledgegage, of which a website is a form of it.
|
||||
The following areas should continue to be evaluated and promoted into the main process only when specifications and working implementations justify them:
|
||||
|
||||
/public/data/open/... → free content
|
||||
/api/chunks/... → paid content access
|
||||
ai-index.json
|
||||
sitemap.xml
|
||||
llms.txt
|
||||
agents.md
|
||||
skills.md
|
||||
(optional) JSON-LD
|
||||
- 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.
|
||||
|
||||
### Step 10: Previews of Paywalled Chunks
|
||||
The central design question remains: does an artifact add a unique, operationally useful layer, or does it merely duplicate information already available elsewhere?
|
||||
|
||||
It is possible you can produce JSON previews of paywalled chunks to help sell them. This is another layer. THink x402 and MPP
|
||||
|
||||
### Step 11: Deploy
|
||||
|
||||
- Static files synced to server
|
||||
- API endpoints handle paywalled access
|
||||
|
||||
## Phase E - Enrichment
|
||||
|
||||
This element needs to be built out in far greater detail. We take the above and use reasoning to enrich the artifacts above to help create the relationships, ontologies and mapping the edges between all the artifacts.
|
||||
|
||||
We may be thinking conceptually about this as follows, creating ontology across three different layers that mature over time, rather than trying to do all at once:
|
||||
|
||||
1. Structural ontology
|
||||
document → section → chunk → claim → answer → entity
|
||||
|
||||
2. Domain ontology
|
||||
product, service, process, material, regulation, person, company, location, tool
|
||||
|
||||
3. Interpretive ontology
|
||||
supports, contradicts, depends_on, solves, applies_to, caused_by, priced_as,
|
||||
suitable_for, unsafe_for, prerequisite_for, replacement_for
|
||||
|
||||
Enrichment is a process that probably never ends but keeps improving as more content is added to the corpus and understanding compounds, which means enrichment gets better and better.
|
||||
|
||||
This phase also introduces the need for a graph database.
|
||||
|
||||
## Phase F - Vectorization
|
||||
|
||||
THe above phases are for sturucturing content for AI, whether for a website or any knowledgebase. But if we want to connect our own AI model, then in this phase, we would further process the content via vectorization/embeddings.
|
||||
|
||||
---
|
||||
|
||||
# Public vs Paywalled Content Model
|
||||
|
||||
Open content:
|
||||
|
||||
/data/open/pages/home/chunks.json
|
||||
|
||||
Paid content:
|
||||
|
||||
GET /api/chunks/{slug}
|
||||
→ 402 Payment Required
|
||||
→ payment
|
||||
→ 200 + data
|
||||
|
||||
---
|
||||
|
||||
# Discovery System
|
||||
|
||||
html+JSON-LD - if website
|
||||
sitemap.xml - if website
|
||||
robots.txt - if website
|
||||
llms.txt → how to behave
|
||||
ai-index.json → what exists
|
||||
semantic json pages - if needed
|
||||
QA json pages
|
||||
preview json pages
|
||||
skills.md
|
||||
agents.md
|
||||
ai-catalog.json - this is new per google so research this better to understand its fit. I think it is the agents.md file.
|
||||
|
||||
More elements fo structured assets here: C:\projects\indx\structured-website-builder-OPEN
|
||||
|
||||
But also further adding to this mix is MCP and webMCP. The former you expose the content and tools that an AI can do on your website or app, the latter is what can an AI do on that page right now.
|
||||
|
||||
Now, further add to this model this repo: C:\projects\productivity\repo-template-OPEN This repo is specifically for adding structured assets to git repos so they become more findable. If your website or app uses a git platform, you use this for the repo, but then you also need to create a path between the website and the repo so AI can find the repo. For that, add in what you did for this front website: C:\projects\paddlenet-closed\paddlenet-app\paddlenet-front-website This needs to be folder into this repo.
|
||||
|
||||
The core content system would be in markdown/html pages for humans and in the resolved chunk json pages for AI. The above pieces are for discovery and evaluation by the AI agent to determine if it wants the resolved chunk json pages.
|
||||
|
||||
Relevant templates for websites for the discovery layer is in the seo-geo repo: https://projects.eddiesoehnel.com/adminprojects/seo-geo
|
||||
---
|
||||
|
||||
# Trust System
|
||||
|
||||
Entity → Document → Knowledge ID → Chunk
|
||||
|
||||
Trust evolves through usage, repetition, and outcomes, which is aggregated into the ai-index.json page
|
||||
|
||||
Principle: Trust follows meaning, not structure
|
||||
|
||||
---
|
||||
|
||||
# Identity Model
|
||||
|
||||
in the CIS envelope:
|
||||
- knowledge_id → stable idea
|
||||
- did_chunk → version
|
||||
- cid_chunk → content hash
|
||||
|
||||
Rule: Identity is authored, versions are computed, state is managed
|
||||
|
||||
# Gbrain Elements To Model
|
||||
|
||||
Below from analysis of Gbrain repo. Consider adding these elements.
|
||||
|
||||
- Auto-linking after every content write
|
||||
- Stale edge reconciliation when content changes
|
||||
- Provenance on edges: manual, frontmatter, extracted, llm, etc.
|
||||
- Frontmatter-to-edge mapping as a lightweight ontology
|
||||
- Backlink/reputation boost in retrieval
|
||||
- Hybrid search: vector + keyword + graph + ranking fusion
|
||||
- Background “dream” jobs, but for CIS reinterpretation/enrichment
|
||||
- Unresolved references as enrichment triggers
|
||||
- Compiled-truth/timeline split, adapted to chunk/document summaries
|
||||
- Soft deprecation/recovery instead of deletion
|
||||
|
||||
See Gbrain repo analysis google doc
|
||||
|
||||
# Validation Of Process
|
||||
|
||||
One agent can create, another must then validate that the task is complete and the skills followed correctly.
|
||||
|
||||
# High Level Model And Flow
|
||||
## High-Level Control Model
|
||||
|
||||
```text
|
||||
ai-index.json
|
||||
= public discovery and routing
|
||||
= public content discovery and routing
|
||||
|
||||
repository.json + repository inventory
|
||||
= implementation discovery and cross-domain routing
|
||||
|
||||
CIS metadata
|
||||
= identity, provenance, policy and pricing
|
||||
= identity, provenance, meaning, lineage, and optional policy descriptors
|
||||
|
||||
Chunk API
|
||||
= controlled delivery
|
||||
resource registry + change index
|
||||
= current lifecycle state plus reviewed semantic history
|
||||
|
||||
Credentials
|
||||
= membership or partner entitlement
|
||||
chunk API or static semantic artifacts
|
||||
= delivery
|
||||
|
||||
x402
|
||||
= accountless per-resource payment
|
||||
credentials, entitlements, x402, or MPP
|
||||
= optional access and payment
|
||||
|
||||
Event store
|
||||
= request, payment and delivery evidence
|
||||
event store
|
||||
= request, payment, delivery, usage, and outcome evidence
|
||||
|
||||
CIS control plane
|
||||
= aggregated usage and revenue intelligence
|
||||
control plane
|
||||
= aggregated permissions, policy, pricing, usage, and governance state
|
||||
```
|
||||
|
||||
## Repository Information
|
||||
|
||||
- **Profile:** Documentation/guide
|
||||
- **Version:** [`0.1.0`](VERSION)
|
||||
- **Author, publisher, and maintainer:** [Eddie Soehnel](AUTHOR.md)
|
||||
- **Canonical repository:** [ai-knowledge-structure-OPEN](https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure-OPEN)
|
||||
- **License:** [MIT](LICENSE)
|
||||
- **Contributions:** See [CONTRIBUTING.md](CONTRIBUTING.md)
|
||||
- **Security and privacy:** See [SECURITY.md](SECURITY.md)
|
||||
|
||||
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.
|
||||
Reference in new issue
Block a user