This commit is contained in:
eddiesoehnel committed 2026-11-18 15:42:30 -07:00
1 parent cf8bb92e0f
commit 2283df4f17
23 files changed
+1154 -2

No files matched your search

@@ -0,0 +1,7 @@
---
name: Documentation correction
about: Correct a token technology guide or use case
---
Document path or URL
Suggested correction and supporting source
+5
View File
@@ -0,0 +1,5 @@
## Documents changed
## Sources and attribution
## Catalog validation
+5
View File
@@ -0,0 +1,5 @@
# Using the collection
Read README.md for the subject directory and repository.json for collection identity. Select documents using content-index.json, then read the Markdown under core-docs/ and its cited sources. Several documents describe proposed applications. Preserve the distinction between examples, proposals and implemented systems. Preserve individual credits and the adjacent image references. For the apparel use case retain its Future Map provenance.
Refresh and check the catalog using the README commands. When moving a source file, edit its path in the existing catalog entry before refreshing to retain its content ID. Review descriptions and topics after substantive edits.
+3
View File
@@ -0,0 +1,3 @@
# Attribution
Eddie Soehnel publishes and maintains Token Tech for Consumer Brands. Use CITATION.cff to cite the collection. Follow each document’s credits for quoted material, illustrations and third-party contributions. The apparel use case originates in Eddie’s Future Map work.
+5
View File
@@ -0,0 +1,5 @@
# Changelog
## 1.0.0 · 2026-11-18
Initial structured edition with a file-level catalog, repository metadata, citation and validation.
+8
View File
@@ -0,0 +1,8 @@
cff-version: 1.2.0
message: "Cite this collection and credit the authors of individual documents used."
title: "Token Tech for Consumer Brands"
authors:
- family-names: Soehnel
given-names: Eddie
version: 1.0.0
repository-code: "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN"
+3
View File
@@ -0,0 +1,3 @@
# Contributing
Use a Gitea issue to identify the document, the requested correction and a source. For a pull request, preserve attribution and relative links, regenerate the catalog, and run the checks in README.md.
+1
View File
@@ -0,0 +1 @@
Repository-wide reuse terms are unspecified. This notice records the current metadata status and grants no additional license. Consult the individual documents for applicable notices and third-party credits. Direct permission requests to Eddie Soehnel.
+6 -1
View File
@@ -2,7 +2,6 @@
## Table of Contents
- [**Admin**](#admin)
- [**Token Tech Overview**](#token-tech-overview)
- [**Use Cases**](#use-cases)
- [**Token Technologies, Standards and Protocols**](#token-technologies-standards-and-protocols)
@@ -31,3 +30,9 @@
# **Additional Token Content And Tools**
* [Marketing Ascension Framework: Web2 Vs Web3](https://docs.google.com/document/d/15xpAmlH2CvLQYrR3IUmrxFxDlRAgZw67uMcj7IchThQ/edit?usp=sharing%20)
## Repository edition
Read the [local guides and use cases](core-docs/) or use the [document catalog](content-index.json) for individual file links, descriptions and topics. The directory above also links to the Google Docs editions. See [repository metadata](repository.json), [agent instructions](AGENTS.md), [attribution](AUTHOR.md) and [reuse terms](LICENSE).
After editing documents, run `python scripts/catalog.py` and review the catalog entries. Install the validator dependency with `python -m pip install -r scripts/requirements.txt`, then run `python scripts/catalog.py --check`. New entries start as drafts. Mark them published after verifying their availability on the public branch.
+3
View File
@@ -0,0 +1,3 @@
# Reporting sensitive material
For accidental disclosure of private information or credentials, contact Eddie Soehnel privately through his website. Include the affected path and revision. Keep sensitive values out of public issues.
+3
View File
@@ -0,0 +1,3 @@
# Maintenance notes
Record future editorial changes here. For each structured release, update VERSION, CITATION.cff, repository.json and CHANGELOG.md together.
+1
View File
@@ -0,0 +1 @@
1.0.0
+154
View File
@@ -0,0 +1,154 @@
{
"schema_version": "1.0",
"collection_id": "web3-consumer-brands",
"title": "Token Tech for Consumer Brands",
"description": "Token technologies and consumer-brand use cases.",
"updated_at": "2026-11-18",
"items": [
{
"path": "core-docs/Extended Producer Responsibility Laws.md",
"topics": [
"producer-responsibility"
],
"description": "Extended producer responsibility laws and their relevance to consumer brands.",
"status": "published",
"content_type": "guide",
"content_id": "web3-extended-producer-responsibility-laws-7743acd1",
"title": "Extended Producer Responsibility Laws",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Extended%20Producer%20Responsibility%20Laws.md"
},
{
"path": "core-docs/Future of Apparel.md",
"topics": [
"apparel"
],
"description": "Future Map use case exploring apparel and the role of token technology.",
"status": "published",
"content_type": "use-case",
"content_id": "web3-future-of-apparel-2f582c85",
"title": "Future of Apparel",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Future%20of%20Apparel.md"
},
{
"path": "core-docs/Holding Tokens In Accounts, Wallets And Apps.md",
"topics": [
"digital-wallets"
],
"description": "How consumers hold and access tokens through wallets, accounts and apps.",
"status": "published",
"content_type": "guide",
"content_id": "web3-holding-tokens-in-accounts-wallets-and-apps-d462d02f",
"title": "Holding Tokens In Accounts, Wallets And Apps",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Holding%20Tokens%20In%20Accounts%2C%20Wallets%20And%20Apps.md"
},
{
"path": "core-docs/Marketing Ascension Framework_ Web2 Vs Web3.md",
"topics": [
"marketing"
],
"description": "Compares Web2 and Web3 approaches to the marketing ascension framework.",
"status": "published",
"content_type": "guide",
"content_id": "web3-marketing-ascension-framework-web2-vs-web3-71ecf952",
"title": "Marketing Ascension Framework: Web2 Vs Web3",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Marketing%20Ascension%20Framework_%20Web2%20Vs%20Web3.md"
},
{
"path": "core-docs/Place Identification Standard And Tool.md",
"topics": [
"place-identification"
],
"description": "A standard and tool for identifying places.",
"status": "published",
"content_type": "guide",
"content_id": "web3-place-identification-standard-and-tool-2f55130c",
"title": "Place Identification Standard And Tool",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Place%20Identification%20Standard%20And%20Tool.md"
},
{
"path": "core-docs/Product Identification Standard And Tool.md",
"topics": [
"product-identification"
],
"description": "A standard and tool for identifying products.",
"status": "published",
"content_type": "guide",
"content_id": "web3-product-identification-standard-and-tool-7fa72076",
"title": "Product Identification Standard And Tool",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Product%20Identification%20Standard%20And%20Tool.md"
},
{
"path": "core-docs/Token Technologies Standards And Protocols.md",
"topics": [
"token-standards"
],
"description": "Reference guide to token technologies, standards and protocols.",
"status": "published",
"content_type": "guide",
"content_id": "web3-token-technologies-standards-and-protocols-b27f202b",
"title": "Token Technologies Standards And Protocols",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Token%20Technologies%20Standards%20And%20Protocols.md"
},
{
"path": "core-docs/Token Technology Overview For Consumer Brands.md",
"topics": [
"token-technology"
],
"description": "Introduces token technology and its applications for consumer brands.",
"status": "published",
"content_type": "guide",
"content_id": "web3-token-technology-overview-for-consumer-brands-86c49994",
"title": "Token Technology Overview For Consumer Brands",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Token%20Technology%20Overview%20For%20Consumer%20Brands.md"
},
{
"path": "core-docs/Use Case_ Boost Conservation, Stewardship And Funding For Natural Spaces_cleaned.md",
"topics": [
"conservation"
],
"description": "Proposed token applications for funding and stewardship of public lands.",
"status": "published",
"content_type": "use-case",
"content_id": "web3-use-case-boost-conservation-stewardship-and-funding-for-natural-spaces-6a1eeddb",
"title": "Use Case: Boost Conservation, Stewardship And Funding For Public Lands",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Boost%20Conservation%2C%20Stewardship%20And%20Funding%20For%20Natural%20Spaces_cleaned.md"
},
{
"path": "core-docs/Use Case_ Create Livsn Superfans Through Challenges_Gamification.md",
"topics": [
"customer-loyalty"
],
"description": "A LIVSN use case exploring challenges and gamification to build customer engagement.",
"status": "published",
"content_type": "use-case",
"content_id": "web3-use-case-create-livsn-superfans-through-challenges-gamification-ceac052d",
"title": "Use Case: Create Livsn Superfans Through Challenges/Gamification",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Create%20Livsn%20Superfans%20Through%20Challenges_Gamification.md"
},
{
"path": "core-docs/Use Case_ Recycling Incentive System.md",
"topics": [
"recycling"
],
"description": "A proposed incentive system for recycling.",
"status": "published",
"content_type": "use-case",
"content_id": "web3-use-case-recycling-incentive-system-95042f58",
"title": "Use Case: Recycling Incentive System",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Recycling%20Incentive%20System.md"
},
{
"path": "core-docs/Use Case_ Secondary Market Used Product Sales and Product Rental Royalties.md",
"topics": [
"resale-and-rental"
],
"description": "Explores royalties from secondary-market sales and product rentals.",
"status": "published",
"content_type": "use-case",
"content_id": "web3-use-case-secondary-market-used-product-sales-and-product-rental-royalt-6280b29d",
"title": "Use Case: Secondary Market Used Product Sales and Product Rental Royalties",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Secondary%20Market%20Used%20Product%20Sales%20and%20Product%20Rental%20Royalties.md"
}
],
"$schema": "./schemas/content-index.schema.json"
}
@@ -17,7 +17,7 @@
Google doc URL for this document: [https\://docs.google.com/document/d/1LpTYGPsgJyriMV-Xbjr8PB9f3PwBaIMDGwECF\_6X6j4/edit?usp=sharing](https://docs.google.com/document/d/1LpTYGPsgJyriMV-Xbjr8PB9f3PwBaIMDGwECF_6X6j4/edit?usp=sharing)
This document is part of the Token Tech Knowledgbase that lives at [https\://eddiesoehnel.com/token-tech-for-consumer-brands/](https://eddiesoehnel.com/token-tech-for-consumer-brands/)
This document is part of the [Token Tech for Consumer Brands knowledgebase](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN).
# **What Is The Token Technology Paradigm?**
@@ -135,3 +135,17 @@ That is starting to reverse because regulatory clarity in the U.S. has emerged;
[image1]: assets/images/token-technology-overview-for-consumer-brands-image1.png
[image2]: assets/images/token-technology-overview-for-consumer-brands-image2.png "adoption_curve"
## Related guides and use cases
- [Extended Producer Responsibility Laws](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Extended%20Producer%20Responsibility%20Laws.md)
- [Future of Apparel](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Future%20of%20Apparel.md)
- [Holding Tokens In Accounts, Wallets And Apps](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Holding%20Tokens%20In%20Accounts%2C%20Wallets%20And%20Apps.md)
- [Marketing Ascension Framework: Web2 Vs Web3](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Marketing%20Ascension%20Framework_%20Web2%20Vs%20Web3.md)
- [Place Identification Standard And Tool](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Place%20Identification%20Standard%20And%20Tool.md)
- [Product Identification Standard And Tool](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Product%20Identification%20Standard%20And%20Tool.md)
- [Token Technologies Standards And Protocols](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Token%20Technologies%20Standards%20And%20Protocols.md)
- [Use Case: Boost Conservation, Stewardship And Funding For Public Lands](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Boost%20Conservation%2C%20Stewardship%20And%20Funding%20For%20Natural%20Spaces_cleaned.md)
- [Use Case: Create Livsn Superfans Through Challenges/Gamification](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Create%20Livsn%20Superfans%20Through%20Challenges_Gamification.md)
- [Use Case: Recycling Incentive System](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Recycling%20Incentive%20System.md)
- [Use Case: Secondary Market Used Product Sales and Product Rental Royalties](https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN/src/branch/main/core-docs/Use%20Case_%20Secondary%20Market%20Used%20Product%20Sales%20and%20Product%20Rental%20Royalties.md)
+37
View File
@@ -0,0 +1,37 @@
{
"$schema": "./schemas/repository-variables.schema.json",
"schema_version": "1.0",
"purpose": "Stable metadata for maintaining the Token Tech for Consumer Brands collection.",
"repository_profile": "documentation-guide",
"identity": {
"authors": [
{
"name": "Eddie Soehnel"
}
],
"publisher": {
"name": "Eddie Soehnel"
},
"maintainer": {
"name": "Eddie Soehnel"
}
},
"repository": {
"repository_id": "adminprojects-web3-consumer-brands-open",
"name": "web3-consumer-brands-open",
"title": "Token Tech for Consumer Brands",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN"
},
"rights": {
"license": "NOASSERTION",
"license_file": "LICENSE"
},
"skill_defaults": {
"task_id": "structure-ai-ready-repository",
"require_plan_approval": true,
"preserve_existing_content": true,
"use_smallest_fitting_profile": true
},
"verified_by": "Owner-authorized repository setup, existing directory, Git history and anonymous Gitea metadata",
"verified_at": "2026-11-18"
}
+96
View File
@@ -0,0 +1,96 @@
{
"$schema": "./schemas/repository.schema.json",
"schema_version": "1.0",
"repository_id": "adminprojects-web3-consumer-brands-open",
"name": "web3-consumer-brands-open",
"title": "Token Tech for Consumer Brands",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/web3-consumer-brands-OPEN",
"description": "A knowledgebase on token technologies, wallets, standards and applications for consumer brands.",
"authors": [
{
"name": "Eddie Soehnel"
}
],
"publisher": {
"name": "Eddie Soehnel"
},
"repository_status": "active",
"visibility": "public",
"maturity": "stable",
"version": "1.0.0",
"resource_types": [
"documentation",
"framework"
],
"entrypoints": {
"human": "README.md",
"ai": "AGENTS.md",
"primary_script": "scripts/catalog.py"
},
"contents": [
{
"path": "core-docs/",
"type": "collection",
"title": "Token technology guides and use cases",
"description": "Source documents and supporting images.",
"required_for_use": true
},
{
"path": "content-index.json",
"type": "index",
"title": "Document catalog",
"description": "File-level topics, descriptions and canonical links.",
"required_for_use": true
}
],
"rights": {
"license": "NOASSERTION",
"license_file": "LICENSE"
},
"maintenance": {
"maintainer": "Eddie Soehnel",
"review_frequency": "as-needed",
"deprecated": false,
"archived": false
},
"ai_retrieval": {
"read_first": [
"README.md",
"AGENTS.md",
"content-index.json"
],
"retrieve_as_needed": [
"core-docs/",
"AUTHOR.md",
"LICENSE"
],
"exclude_by_default": [
"tasks/"
],
"instructions": "Select documents from the index and cite the original file and source credits."
},
"topics": {
"technology": [
"web3",
"tokenization",
"digital-wallets"
],
"business_function": [
"marketing",
"product-identification"
],
"industry_context": [
"consumer-brands",
"apparel"
],
"artifact_type": [
"guide",
"use-case"
],
"concepts": [
"recycling-incentives",
"product-royalties",
"conservation"
]
}
}
+133
View File
@@ -0,0 +1,133 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/content-index.schema.json",
"title": "Repository Content Index",
"description": "Compact machine-readable catalog of individual documents in a content-heavy repository.",
"type": "object",
"required": [
"schema_version",
"collection_id",
"title",
"description",
"updated_at",
"items"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"collection_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"updated_at": {
"type": "string",
"format": "date"
},
"items": {
"type": "array",
"items": {
"$ref": "#/$defs/contentItem"
}
}
},
"additionalProperties": false,
"$defs": {
"stringArray": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"contentItem": {
"type": "object",
"required": [
"content_id",
"title",
"description",
"content_type",
"path",
"status"
],
"properties": {
"content_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"content_type": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"path": {
"type": "string",
"minLength": 1
},
"canonical_url": {
"type": [
"string",
"null"
]
},
"published_at": {
"type": [
"string",
"null"
],
"format": "date"
},
"updated_at": {
"type": [
"string",
"null"
],
"format": "date"
},
"status": {
"type": "string",
"enum": [
"draft",
"published",
"deprecated",
"archived",
"superseded"
]
},
"author": {
"type": [
"string",
"null"
]
},
"topics": {
"$ref": "#/$defs/stringArray"
},
"related_content_ids": {
"$ref": "#/$defs/stringArray"
}
},
"additionalProperties": false
}
}
}
+179
View File
@@ -0,0 +1,179 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/repository-variables.schema.json",
"title": "Repository Structure Skill Variables",
"description": "Verified stable identity, repository, rights, profile, and workflow inputs reused by repository-structure skills.",
"type": "object",
"required": [
"schema_version",
"purpose",
"repository_profile",
"identity",
"repository",
"rights",
"skill_defaults",
"verified_by",
"verified_at"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"purpose": {
"type": "string",
"minLength": 1
},
"repository_profile": {
"enum": [
"documentation-guide",
"skill-workflow",
"software-automation",
"dataset",
"custom"
]
},
"identity": {
"type": "object",
"required": [
"authors",
"publisher",
"maintainer"
],
"properties": {
"authors": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/namedEntity"
}
},
"publisher": {
"$ref": "#/$defs/namedEntity"
},
"maintainer": {
"$ref": "#/$defs/namedEntity"
}
},
"additionalProperties": false
},
"repository": {
"type": "object",
"required": [
"repository_id",
"name",
"title",
"canonical_url"
],
"properties": {
"repository_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"canonical_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"organization": {
"oneOf": [
{
"$ref": "#/$defs/namedEntity"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"rights": {
"type": "object",
"required": [
"license",
"license_file"
],
"properties": {
"license": {
"type": "string",
"minLength": 1
},
"license_file": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
},
"skill_defaults": {
"type": "object",
"required": [
"task_id",
"require_plan_approval",
"preserve_existing_content",
"use_smallest_fitting_profile"
],
"properties": {
"task_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"require_plan_approval": {
"type": "boolean"
},
"preserve_existing_content": {
"type": "boolean"
},
"use_smallest_fitting_profile": {
"type": "boolean"
}
},
"additionalProperties": false
},
"verified_by": {
"type": "string",
"minLength": 1
},
"verified_at": {
"type": "string",
"format": "date"
}
},
"$defs": {
"namedEntity": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
+397
View File
@@ -0,0 +1,397 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/repository.schema.json",
"title": "AI-Ready Repository Manifest",
"description": "Machine-readable identity, discovery, rights, provenance, maintenance, and AI retrieval metadata for an AI-ready repository.",
"type": "object",
"required": [
"schema_version",
"repository_id",
"name",
"title",
"description",
"authors",
"publisher",
"repository_status",
"visibility",
"maturity",
"version",
"resource_types",
"entrypoints",
"rights",
"maintenance",
"ai_retrieval"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"repository_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"summary": {
"type": "string"
},
"canonical_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"organization": {
"$ref": "#/$defs/namedEntity"
},
"authors": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/namedEntity"
}
},
"publisher": {
"$ref": "#/$defs/namedEntity"
},
"repository_status": {
"enum": [
"draft",
"active",
"deprecated",
"archived",
"superseded"
]
},
"visibility": {
"enum": [
"public",
"restricted",
"private"
]
},
"maturity": {
"enum": [
"concept",
"experimental",
"prototype",
"beta",
"stable",
"production"
]
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
},
"created_at": {
"type": "string",
"format": "date"
},
"updated_at": {
"type": "string",
"format": "date"
},
"resource_types": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"topics": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"audiences": {
"$ref": "#/$defs/stringArray"
},
"problems_solved": {
"$ref": "#/$defs/stringArray"
},
"capabilities": {
"$ref": "#/$defs/stringArray"
},
"use_cases": {
"$ref": "#/$defs/stringArray"
},
"required_inputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"required",
"sensitivity"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"required": {
"type": "boolean"
},
"sensitivity": {
"type": "string"
}
},
"additionalProperties": false
}
},
"expected_outputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"format"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"format": {
"type": "string"
}
},
"additionalProperties": false
}
},
"entrypoints": {
"type": "object",
"required": [
"human",
"ai"
],
"properties": {
"human": {
"type": "string"
},
"ai": {
"type": "string"
},
"primary_skill": {
"type": [
"string",
"null"
]
},
"primary_agent": {
"type": [
"string",
"null"
]
},
"primary_script": {
"type": [
"string",
"null"
]
},
"primary_template": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"contents": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"type",
"title",
"description",
"required_for_use"
],
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"required_for_use": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"relationships": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/stringArray"
}
},
"access": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"rights": {
"type": "object",
"required": [
"license",
"license_file"
],
"properties": {
"license": {
"type": "string"
},
"license_file": {
"type": "string"
},
"usage_guidance": {
"type": "string"
}
},
"additionalProperties": false
},
"provenance": {
"type": "object",
"properties": {
"origin_type": {
"type": "string"
},
"creation_method": {
"type": "string"
},
"contributors": {
"type": "array"
},
"source_references": {
"$ref": "#/$defs/stringArray"
}
},
"additionalProperties": false
},
"maintenance": {
"type": "object",
"required": [
"maintainer",
"review_frequency",
"deprecated",
"archived"
],
"properties": {
"maintainer": {
"type": [
"string",
"null"
]
},
"review_frequency": {
"type": "string"
},
"last_reviewed_at": {
"type": [
"string",
"null"
],
"format": "date"
},
"deprecated": {
"type": "boolean"
},
"archived": {
"type": "boolean"
}
},
"additionalProperties": false
},
"ai_retrieval": {
"type": "object",
"required": [
"read_first",
"retrieve_as_needed",
"exclude_by_default",
"instructions"
],
"properties": {
"read_first": {
"$ref": "#/$defs/stringArray"
},
"retrieve_as_needed": {
"$ref": "#/$defs/stringArray"
},
"exclude_by_default": {
"$ref": "#/$defs/stringArray"
},
"instructions": {
"type": "string"
}
},
"additionalProperties": false
}
},
"$defs": {
"stringArray": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"namedEntity": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
+83
View File
@@ -0,0 +1,83 @@
"""Refresh the document index; validate metadata with --check."""
import argparse
import hashlib
import json
import re
from datetime import date
from pathlib import Path
from urllib.parse import quote
ROOT = Path(__file__).resolve().parents[1]
INDEX = ROOT / "content-index.json"
def read(path):
return json.loads(path.read_text(encoding="utf-8"))
def documents():
return sorted((ROOT / "core-docs").rglob("*.md"))
def record(f, previous, origin):
path = f.relative_to(ROOT).as_posix()
raw = f.read_text(encoding="utf-8-sig")
heading = re.search(r"^#\s+(.+)$", raw, re.M)
title = heading[1].replace("**", "").strip() if heading else f.stem.replace("_", " ")
slug = re.sub(r"[^a-z0-9]+", "-", f.stem.lower()).strip("-")[:70].rstrip("-")
key = "web3-" + slug + "-" + hashlib.sha256(path.encode()).hexdigest()[:8]
item = dict(previous)
item.setdefault("content_id", key)
item.setdefault("description", title)
item.setdefault("topics", ["token-technology"])
item.setdefault("status", "draft")
item.setdefault("content_type", "guide")
item.update(title=title, path=path,
canonical_url=origin + "/src/branch/main/" + quote(path))
return item
def check(index, manifest, variables):
from jsonschema import Draft202012Validator, FormatChecker
for name, data in [("repository", manifest), ("repository-variables", variables), ("content-index", index)]:
schema = read(ROOT / "schemas" / (name + ".schema.json"))
Draft202012Validator(schema, format_checker=FormatChecker()).validate(data)
items = index["items"]
ids = {i["content_id"] for i in items}
if len(ids) != len(items) or any(set(i.get("related_content_ids", [])) - ids for i in items):
raise ValueError("Duplicate or unresolved content IDs")
version = (ROOT / "VERSION").read_text().strip()
if manifest["version"] != version or f"version: {version}" not in (ROOT / "CITATION.cff").read_text():
raise ValueError("Version mismatch")
if manifest["rights"] != variables["rights"]:
raise ValueError("Rights mismatch")
for path in [*manifest["entrypoints"].values(), *manifest["ai_retrieval"]["read_first"],
*manifest["ai_retrieval"]["retrieve_as_needed"], manifest["rights"]["license_file"]]:
if not (ROOT / path).exists():
raise ValueError(f"Missing repository reference: {path}")
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--check", action="store_true")
args = parser.parse_args()
index = read(INDEX)
manifest = read(ROOT / "repository.json")
previous = {i["path"]: i for i in index["items"]}
items = [record(f, previous.get(f.relative_to(ROOT).as_posix(), {}), manifest["canonical_url"])
for f in documents()]
if args.check:
if index["items"] != items:
raise ValueError("Index is stale. Run python scripts/catalog.py and review the diff.")
check(index, manifest, read(ROOT / "repository-variables.json"))
print(f"Validated 3 schemas and {len(items)} indexed documents.")
elif items != index["items"]:
index.update(items=items, updated_at=date.today().isoformat())
tmp = INDEX.with_suffix(".json.tmp")
tmp.write_text(json.dumps(index, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
tmp.replace(INDEX)
if __name__ == "__main__":
main()
+1
View File
@@ -0,0 +1 @@
jsonschema[format]>=4.18,<5
@@ -0,0 +1,3 @@
# Repository structure plan
Owner authorized implementation on 2026-11-18. Use the documentation-guide profile. Preserve the 12 source documents, nine images and Google Docs directory. Add repository identity, citation, publication metadata, rights status, AI entry points and a validated file-level index. Keep delivery local.
@@ -0,0 +1,6 @@
# Validation results
Validated all three template schemas, 12 indexed Markdown files, unique content IDs and entry points. The anonymous Gitea main revision matched local HEAD cf8bb92. The source documents and nine images have no Git diff. All 12 original Google Docs links were preserved. Repository-wide licensing is unspecified.
Unresolved relative Markdown file links: 0.