7 Commits
Author SHA1 Message Date
eddiesoehnel 83bb404a94 added 2026-10-11 16:58:11 -06:00
eddiesoehnel e1d8deb861 added 2026-07-25 13:12:23 -06:00
eddiesoehnel ca73bd5690 added 2026-07-18 12:55:50 -06:00
eddiesoehnel 80c2b1f5c6 added 2026-07-17 17:00:44 -06:00
eddiesoehnel 5c8511cac6 added 2026-07-14 15:45:54 -06:00
eddiesoehnel e13eefd699 added 2026-07-01 15:53:51 -06:00
eddiesoehnel d1cf9b06d8 added 2026-06-23 12:16:03 -06:00
27 changed files with 1546 additions and 10 deletions

No files matched your search

+71
View File
@@ -0,0 +1,71 @@
# Agent Instructions
## Purpose And Read Order
This repository is a reusable static website builder with content, Hugo,
Python, repository-local skills, semantic artifacts, discovery generation, and
an optional contact API. Read, in order:
1. `README.md`
2. `AUTHOR.md`
3. `repository-variables.json`
4. `repository.json`
5. `PUBLICATION_WORKFLOW.md`
6. `skills.md`
7. The relevant skill, script, content, or Hugo file
## Source Of Truth And Pipeline
- `content/` is the authoritative Markdown source.
- `hugo-html-builder/content/` is a derived Hugo content mirror.
- `hugo-html-builder/public/` and root `public/` are generated outputs and are
excluded from source control.
- `content-index.json` catalogs repository source documents.
- Generated `public/ai-index.json`, semantic chunks, QA data, and discovery
files are publication artifacts with separate purposes.
- Follow the order documented in `README.md` and the applicable skill before
running a mutating pipeline stage.
## Modification Rules
- Preserve unrelated worktree changes. Reinspect Git status before editing.
- Do not rewrite or relocate established skills, scripts, content, layouts, or
publication documentation merely to match a generic template.
- Keep `README.md`, `skills.md`, `repository.json`, and relevant skill files
synchronized when pipeline entrypoints change.
- Keep `content-index.json` synchronized when authoritative source documents
are added, moved, or retired.
- Keep repository identity aligned across `repository-variables.json`,
`AUTHOR.md`, `repository.json`, `CITATION.cff`, and `LICENSE`.
- Record completed versioned changes in `CHANGELOG.md`.
- Treat `UPDATES.md` as proposed work, not authorization.
## Human Approval Requirements
- Obtain approval before publishing generated output, deploying services,
changing domains or canonical URLs, modifying remote/hosting settings,
changing licenses, rotating credentials, or making substantive public
content changes.
- Do not run scripts that overwrite Hugo or public output when the task is
inspection, metadata maintenance, or repository-structure work.
## Security And Privacy
- Follow `PUBLICATION_WORKFLOW.md`, `SECURITY.md`, and `sanitization-map.md`.
- Never commit `.env`, credentials, SMTP passwords, CAPTCHA secrets, tokens,
private infrastructure identifiers, raw subscriber data, logs, or exports.
- `.env.example` must contain placeholders only.
- Preserve the sanitized public/private boundary.
## Validation
1. Parse machine-readable files and validate declared paths.
2. Run repository tests and Python syntax checks.
3. Run the profile audit and `git diff --check`.
4. Run `scripts/leak_scan.ps1` or an equivalent targeted credential scan for
public-release work.
5. When the publishing pipeline changes, validate source/Hugo synchronization,
Hugo rendering, semantic artifacts, discovery files, and the final output in
the order documented by the applicable skills.
6. Record unavailable tools or skipped mutating stages rather than simulating
success.
+52
View File
@@ -0,0 +1,52 @@
# Author And Publisher
## Author
**Eddie Soehnel**
## Publisher
**Eddie Soehnel**
## Maintainer
**Eddie Soehnel**
## Administrator
**Eddie Soehnel**
## Attribution
Preferred repository attribution:
```text
Structured Website Builder by Eddie Soehnel
```
Canonical repository:
```text
https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN
```
Public Forge mirror:
```text
https://forge.paddlenet.earth/industrySIG/structured-website-builder-OPEN
```
The Git history is the authoritative record of individual contributions.
## Rights Scope
Repository software and template materials are governed by the root `LICENSE`.
Published example content may state separate content-level rights in its
frontmatter or in `content/wiki/license.md`.
## Adaptation
When deriving another repository, replace the identity, canonical URL,
attribution, domain-specific settings, and maintainer values. Keep
`repository-variables.json`, `AUTHOR.md`, `repository.json`, `CITATION.cff`,
and `LICENSE` aligned.
+52 -1
View File
@@ -1 +1,52 @@
see tasks-workflows folder # Changelog
All notable changes to this repo should be recorded here.
This repo uses SemVer-style releases:
- Patch releases fix wording, typos, validation gaps, and minor skill behavior.
- Minor releases add sections, skills, manifests, or backward-compatible workflow improvements.
- Major releases introduce breaking changes to the template, skill contract, or user workflow.
## [Unreleased]
## [0.3.0] - 2026-10-10
### Added
- Added deterministic Poppy draft 0.1 ordinary-web manifest generation, validation, and discovery links.
- Protected the generated manifest from stale Hugo output during copying.
- Added adaptation guidance and temporary-output tests; no session, API, agent, or transaction runtime is advertised.
### Fixed
- Generate root helper files before final sitemap collection so a fresh discovery build passes validation.
## [0.2.0] - 2026-07-25
### Added
- AI-ready software/automation repository structure.
- Verified Eddie Soehnel authorship, publishing, administration, maintenance,
and reusable repository variables.
- Machine-readable repository metadata, source-content index, citation,
version, agent instructions, contribution and security guidance, skill and
documentation indexes, repository tests, and durable task records.
### Changed
- Aligned the MIT copyright holder with Eddie Soehnel.
### Preserved
- Existing source content, Hugo application, API, templates, skills, scripts,
workflows, publication guidance, update notes, and uncommitted user changes.
## [0.1.0] - 2026-07-17
### Added
added note to readme about publishing skills for using APIs.
added sync to forge.paddlenet.earth
# Decision Log
+18
View File
@@ -0,0 +1,18 @@
cff-version: 1.2.0
message: "If you use this website builder, please cite it using this metadata."
title: "Structured Website Builder"
type: software
version: 0.3.0
date-released: 2026-10-10
authors:
- family-names: "Soehnel"
given-names: "Eddie"
repository-code: "https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN"
url: "https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN"
license: MIT
keywords:
- artificial-intelligence
- hugo
- semantic-content
- static-website
- website-builder
+31
View File
@@ -0,0 +1,31 @@
# Contributing
## Contributions
Useful contributions include documentation corrections, reusable builder
improvements, content-structure workflows, Hugo layouts, deterministic scripts,
security hardening, tests, and sanitized examples.
## Before You Submit
1. Read `README.md`, `AGENTS.md`, and `PUBLICATION_WORKFLOW.md`.
2. Keep `content/` as the authoring source of truth.
3. Preserve the public-template sanitization boundary.
4. Do not commit generated `public/` output, credentials, private infrastructure
details, raw data, logs, or exports.
5. Update documentation, skills, metadata, tests, and `CHANGELOG.md` when a
change affects them.
## Validation
- Run `python -m unittest discover -s tests -p "test_*.py"`.
- Parse all Python source files or run the project's syntax checks.
- Run `git diff --check`.
- For publication changes, run `scripts/leak_scan.ps1` and the complete
applicable build/publish validation sequence.
- If Hugo or runtime dependencies are unavailable, record that limitation.
## Licensing
By contributing, you agree that your contribution may be distributed under the
root MIT license unless a file clearly states separate content-level terms.
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2026 adminprojects Copyright (c) 2026 Eddie Soehnel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+24 -1
View File
@@ -6,6 +6,10 @@ This process builds a website that is highly structured for SEO and GEO for the
If you have existing big, complex websites in platforms like wordpress, shopify, magento, etc., keep them as your human layer, and use the process in this builder to create corresponding content for AI. I suggest you begin first in this document (https://projects.eddiesoehnel.com/adminprojects/seo-geo) to get your bearings on SEO, GEO and findability in the AI era, and how and why this builder fits. If you have existing big, complex websites in platforms like wordpress, shopify, magento, etc., keep them as your human layer, and use the process in this builder to create corresponding content for AI. I suggest you begin first in this document (https://projects.eddiesoehnel.com/adminprojects/seo-geo) to get your bearings on SEO, GEO and findability in the AI era, and how and why this builder fits.
## Personal Agent Protocol (Poppy)
The final discovery stage now generates `public/.well-known/poppy.json` for Personal Agent Protocol draft 0.1. The supported profile declares ordinary website access only. See [Poppy integration](docs/poppy.md) for adaptation, validation, deployment checks, and future runtime requirements.
# AI-native # AI-native
The idea is to build this front website in git and publish it using apps, skills and scripts. Codex or any AI can access it to complete tasks. Over time we can automate all this via a harness so that AI will do more and more of maintaining and publishing new content. We create a harness so that AI can proactively update content (like a Wiki if one is built) as other elements of the business change. We automate through AI the maintenance of all the content ontology (relationships, edges and nodes). If we add ecommerce carts (human or AI - like x402), AI manages all of that. The idea is to build this front website in git and publish it using apps, skills and scripts. Codex or any AI can access it to complete tasks. Over time we can automate all this via a harness so that AI will do more and more of maintaining and publishing new content. We create a harness so that AI can proactively update content (like a Wiki if one is built) as other elements of the business change. We automate through AI the maintenance of all the content ontology (relationships, edges and nodes). If we add ecommerce carts (human or AI - like x402), AI manages all of that.
@@ -31,6 +35,15 @@ The directory struture of this repo matches the structure, except for this READM
5. Google Captcha for forms 5. Google Captcha for forms
site key: <recaptcha-site-key> site key: <recaptcha-site-key>
secret key: <recaptcha-secret-key> secret key: <recaptcha-secret-key>
site keys goes here:
- skills-scripts/sync_content_to_hugo.py (line 32) - generator source for future Hugo syncs
- hugo-html-builder/content/_index.md (line 296) - current Hugo home content
- hugo-html-builder/public/index.html (line 448) - Hugo rendered output
- public/index.html (line 448) - root published output
For the server process, the new secret should go only in the server env /etc/indx-contact.env. as RECAPTCHA_SECRET_KEY=..., then restart indx-contact.service: sudo systemctl restart indx-contact.service
confirm: sudo systemctl status indx-contact.service --no-pager
6. favicon (because I always forget these) 6. favicon (because I always forget these)
# Initial Conversion # Initial Conversion
@@ -184,6 +197,7 @@ When output passes human testing, run this scrtipt to copy the Hugo output to th
agents.md agents.md
skills.md skills.md
ai-index.json ai-index.json
.well-known/poppy.json (protected against stale Hugo output)
Run it with Run it with
@@ -238,7 +252,11 @@ See contact-form-deployment.md for the infrastracture.
Large site: root index, section indexes, resource manifests, and maybe generated topic/entity indexes Large site: root index, section indexes, resource manifests, and maybe generated topic/entity indexes
So yes: eventually ai-index.json becomes the index of indexes, not the whole catalog. So yes: eventually ai-index.json becomes the index of indexes, not the whole catalog.
After ai-index.json is rebuilt, build the remaining root discovery files using this skill: discovery-files-materialization-skill.md. It references build_discovery_files.py and must be run after the Hugo publish step when pages are added, renamed, or deleted so sitemap.xml, llms.txt, agents.md, skills.md, and robots.txt stay current. After ai-index.json is rebuilt, build the remaining discovery files using this skill: discovery-files-materialization-skill.md. It references build_discovery_files.py and must be run after the Hugo publish step when pages are added, renamed, or deleted so sitemap.xml, llms.txt, agents.md, skills.md, robots.txt, and .well-known/ai-catalog.json stay current.
- .well-known/ai-catalog.json - uses skill ai-catalog-materialization-skill.md through build_discovery_files.py. It advertises actual public agent-usable resources and stays separate from the content-focused ai-index.json.
- .well-known/poppy.json - generated by build_discovery_files.py from SITE_URL and SITE_TITLE; ordinary website access only, without sessions or API claims.
- robots.txt - robots.txt
@@ -255,6 +273,8 @@ See contact-form-deployment.md for the infrastracture.
<changefreq> — estimated update frequency <changefreq> — estimated update frequency
<priority> — relative importance (0.0–1.0) <priority> — relative importance (0.0–1.0)
- if API's/MCP available, consider creating skills specifically that teach agents how to call the API correctly.
### 6. Upload all according to structure below. ### 6. Upload all according to structure below.
For future updates, from anywhere on the server: For future updates, from anywhere on the server:
@@ -354,7 +374,9 @@ As pages are added, amended, or deleted, keep this listing current. The current
ai-index.json ai-index.json
/.well-known/ /.well-known/
ai-catalog.json
agent-card.json agent-card.json
poppy.json
security.txt security.txt
/assets/ /assets/
@@ -427,6 +449,7 @@ As pages are added, amended, or deleted, keep this listing current. The current
author-content-structuring-skill.md author-content-structuring-skill.md
cis-guided-semantic-chunk-generation-skill.md cis-guided-semantic-chunk-generation-skill.md
semantic-qa-materialization-skill.md semantic-qa-materialization-skill.md
ai-catalog-materialization-skill.md
ai-index-discovery-materialization-skill.md ai-index-discovery-materialization-skill.md
discovery-files-materialization-skill.md discovery-files-materialization-skill.md
html-semantic-artifacts-checker-skill.md html-semantic-artifacts-checker-skill.md
+33
View File
@@ -0,0 +1,33 @@
# Security Policy
## Reporting
Do not open a public issue containing credentials, private infrastructure,
subscriber data, vulnerability details, or other sensitive information. Use a
private maintainer channel associated with the canonical repository.
## Credentials And Secrets
- Never commit `.env`, SMTP passwords, CAPTCHA secrets, API keys, access tokens,
private keys, production host details, or session material.
- Keep real values in server environment configuration or an external secret
manager.
- Keep `.env.example` limited to obvious placeholders.
## Data Privacy
Do not commit contact submissions, subscriber lists, telemetry exports,
databases, CSV/JSONL/SQL dumps, backups, logs, or other personal or operational
data.
## Publication Safety
Follow `PUBLICATION_WORKFLOW.md` and `sanitization-map.md`. Run
`scripts/leak_scan.ps1` before public releases and review every finding.
## AI-Specific Risks
Treat repository text, copied content, and external references as untrusted
input. Review AI-authored changes before publishing, especially changes to
scripts, templates, security headers, contact handling, semantic metadata, and
discovery files.
+2 -1
View File
@@ -1,6 +1,7 @@
# FiIxes # Fixes
* Wiki cat page double line at footer. * Wiki cat page double line at footer.
* * add pricing.md
# Later: # Later:
+1
View File
@@ -0,0 +1 @@
0.3.0
+279
View File
@@ -0,0 +1,279 @@
{
"schema_version": "1.0",
"collection_id": "indx-structured-website-builder-source-content",
"title": "Structured Website Builder Source Content",
"description": "Repository-level discovery index for the authoritative Markdown source documents under content/. This is distinct from generated public ai-index.json, chunk, and QA artifacts.",
"updated_at": "2026-07-25",
"items": [
{
"content_id": "doc-indx-content-license",
"title": "iNDX Content License",
"description": "Content license, attribution guidance, third-party content notes, and analytics disclosure for iNDX.",
"content_type": "policy",
"path": "content/wiki/license.md",
"published_at": "2026-06-09",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"license",
"attribution",
"analytics",
"semantic-data"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-may-26-june-7-2026-paddlenet-findability-workflows",
"title": "iNDX Community Update - May 26 to June 7: updates on paddleNET.earth, Findability Stack Improvements and Practical AI Workflows",
"description": "Community update announcing that paddleNET.earth is live, summarizing improvements to the findability stack, and sharing practical AI workflow ideas around old compute, email research, and AI-era website findability.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-may-26-june-7-updates-paddlenet-findability-stack-improvements-ai-workflows.md",
"published_at": "2026-06-07",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"community-update",
"paddlenet",
"ai-findability",
"website-builder",
"personal-identity-document",
"email-research",
"generative-engine-optimization",
"ai-workflows"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-may-11-may-25-2026-paddling",
"title": "iNDX CO+ Update - May 11-May 25 2026: PaddleNet.earth Is Coming for Findability in the Paddling Industry: What I Need From You",
"description": "Community update for the paddling audience announcing the coming PaddleNet.earth PID ingestion layer, explaining why people-indexing matters for industry findability, and sharing recent AI findability research links.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-may-11-may-25-2026-paddlenet-earth-coming-for-findability-in-paddling-industry-what-i-need-from-you.md",
"published_at": "2026-05-25",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"community-update",
"paddlenet",
"personal-identity-document",
"ai-findability",
"industry-indexing",
"semantic-search",
"ai-native-networking"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-apr-27-may-10-paddling",
"title": "iNDX CO+ Update: My next major tool release is here - I rebuilt indx.earth for the AI era and open sourced the builder so you can copy it",
"description": "Community update for the paddling audience announcing the open-sourced indx.earth website builder, explaining how it supports AI-native findability, lower-cost publishing, and AI-assisted website creation.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-apr-27-may-10-next-major-tool-release-rebuilt-indx-earth=for-ai-era-and-open-sourced-the-builder.md",
"published_at": "2026-05-10",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"community-update",
"ai-findability",
"ai-native-website",
"static-website",
"open-source",
"website-builder",
"agentic-engine-optimization"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-overview",
"title": "iNDX Overview",
"description": "Overview of the iNDX platform, its interconnected systems, and its mission to improve discoverability and economic participation in the AI era.",
"content_type": "overview",
"path": "content/home.md",
"published_at": "2026-05-06",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"ai",
"indexing",
"findability",
"outdoor-industry",
"knowledge-graphs",
"networking",
"ecological-intelligence",
"citizen-science"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-apr-13-apr-26-paddling",
"title": "iNDX CO+ Update (Apr 13 - Apr 26): A powerful new AI findability tool to analyze your website",
"description": "Community update for the paddling industry audience covering AI findability tools, personal identity documents, email infrastructure migration, self-hosting, education enrollment decline signals, and agentic engine optimization.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-apr-13-apr-26-a-powerful-new-ai-findability-tool-to-analyze-your-website-paddling.md",
"published_at": "2026-04-26",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"ai-findability",
"agentic-engine-optimization",
"personal-identity-document",
"self-hosting",
"open-source",
"education-trends",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-mar-30-apr-12-paddling",
"title": "iNDX CO+ Update (Mar 30-Apr 12): A new revenue stream just opened - most aren't paying attention. Join my Zoom office hours if you need help",
"description": "Community update for the paddling industry explaining Machine Payments Protocol opportunities for data and service products, suggesting AI-assisted ideation with a PID, and sharing findability resources on problem clarity, fan-out strategies, and Google Search Console-to-Claude workflows.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-mar-30-apr-12-a-new-revenue-stream-just-opened-most-arent-paying-attention-join-my-zoom-office-hours-if-you-need-help.md",
"published_at": "2026-04-12",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"machine-payments-protocol",
"headless-commerce",
"data-products",
"ai-agents",
"pid",
"ai-findability",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-mar-16-mar-29-paddling",
"title": "iNDX CO+ Update (Mar 16-29): I'm releasing the next tool. Takes 10 minutes. Changes everything",
"description": "Community update for the paddling industry introducing the Personal Identity Document for NetworkSIG and sharing findability resources on AI content trust, commerce conversion, PR-driven citations, and authority signals.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-mar-16-29-im-releasing-the-next-tool-takes-10-minutes-changes-everything.md",
"published_at": "2026-03-29",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"personal-identity-document",
"networksig",
"ai-networking",
"ai-findability",
"content-trust",
"earned-media",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-mar-2-mar-15-paddling",
"title": "iNDX CO+ Update: Highlights From March 2 to March 15 2026 - AI Productivity Gold Rush Is Here - STOP! Don't FOMO! Do This Instead. Here Is Why",
"description": "Community update for the paddling industry advising readers to avoid premature AI automation sunk costs, document repetitive workflows, and study findability resources on bots, AI search volume, AI Mode citations, fan-out queries, commerce behavior, and AI SEO command centers.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-mar-2-mar-15-ai-productivity-gold-rush-is-here-stop-dont-fomodo-this-instead-here-is-why.md",
"published_at": "2026-03-15",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"ai-productivity",
"workflow-documentation",
"automation",
"ai-findability",
"bots",
"fan-out-queries",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-feb-16-mar-1-paddling",
"title": "iNDX CO+ Update: Highlights From February 16 to March 1 2026 - Start Doing This Today...Your Future Self Will Thank you",
"description": "Community update for the paddling industry urging businesses to capture real customer conversations for AI-visible insight and sharing findability resources on People Also Ask, Google Search Console, outcome-oriented AI, AI citation behavior, WebMCP, and Cloudflare Markdown for Agents.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-feb-16-mar-1-start-doing-this-today-your-future-self-willthank-you.md",
"published_at": "2026-03-01",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"ai-findability",
"customer-conversations",
"transcription",
"people-also-ask",
"google-search-console",
"webmcp",
"cloudflare",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-feb-2-feb-15-paddling",
"title": "iNDX CO+ Update: Highlights From February 2 to February 15 2026 - Please contribute to the Google Sheets master Paddling Industry Graph",
"description": "Community update for the paddling industry asking trusted participants to contribute to the master paddling industry graph and sharing AI findability resources about platform integration, workflows, skills, fan-out queries, and search visibility signals.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-feb-2-feb-15-please-contribute-to-the-google-sheetmaster-paddling-industry-graph.md",
"published_at": "2026-02-15",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"industry-graph",
"ai-findability",
"seo",
"google-sheet",
"ai-workflows",
"fan-out-queries",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-jan-19-feb-1-paddling",
"title": "iNDX CO+ Update: Highlights From January 19 to February 1 2026 - Here is the Master Findability Framework I promised",
"description": "Community update for the paddling industry announcing the Master Findability Framework and sharing AI-era findability resources on crawl access, structured commerce data, AI-mediated search, and declining publisher traffic.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-jan-19-feb-1-here-is-the-findability-framework-i-promised.md",
"published_at": "2026-02-01",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"master-findability-framework",
"ai-findability",
"seo",
"geo",
"aeo",
"robots-txt",
"community-update"
],
"related_content_ids": []
},
{
"content_id": "doc-indx-co-update-jan-5-jan-18-paddling",
"title": "iNDX CO+ Update: Highlights From January 5 to January 18 2026 - The Findability Breakthrough",
"description": "Community update for the paddling industry introducing the findability breakthrough, previewing an executive roadmap and tools, and sharing AI-era findability resources on GEO, content structure, AI search optimization, and grounding chunks.",
"content_type": "email-summary",
"path": "content/community-summaries/indx-co-update-jan-5-jan-18-the-findability-breakthrough.md",
"published_at": "2026-01-18",
"status": "published",
"author": "Eddie Soehnel",
"topics": [
"paddling",
"ai-findability",
"geo",
"aeo",
"seo",
"content-structure",
"ai-search",
"community-update"
],
"related_content_ids": []
}
]
}
+17
View File
@@ -0,0 +1,17 @@
# Documentation Index
| Document | Purpose |
| --- | --- |
| [`../README.md`](../README.md) | Primary builder, content, Hugo, semantic, discovery, and publication workflow |
| [`../PUBLICATION_WORKFLOW.md`](../PUBLICATION_WORKFLOW.md) | Public-template sanitization and release rules |
| [`../sanitization-map.md`](../sanitization-map.md) | Sanitized replacement classes and review points |
| [`../skills.md`](../skills.md) | Repository-local skill routing |
| [`../SECURITY.md`](../SECURITY.md) | Credential, privacy, publication, and AI-specific security guidance |
| [`../CONTRIBUTING.md`](../CONTRIBUTING.md) | Contribution and validation expectations |
| [`../content-index.json`](../content-index.json) | Repository-level discovery index for source documents |
| [`../repository.json`](../repository.json) | Machine-readable repository manifest |
| [`poppy.md`](poppy.md) | Poppy draft 0.1 website discovery, adaptation, and verification |
The root `content-index.json` catalogs authoritative source documents under
`content/`. It does not replace the generated public `ai-index.json`, semantic
chunk files, QA files, or discovery manifests produced by the website pipeline.
+69
View File
@@ -0,0 +1,69 @@
# Poppy discovery in this builder
This builder implements the ordinary-website discovery profile of
[Personal Agent Protocol draft 0.1](https://personalagentprotocol.org/docs/spec),
updated 2026-10-09 and checked 2026-10-10. Review the current draft before a
release. The generated declaration is intentionally limited to current static
website access; session and transaction features require additional runtime work.
## Generate and adapt
Set `SITE_URL` and `SITE_TITLE` in `skills-scripts/build_discovery_files.py`
when adapting this template. Use an HTTPS domain root without credentials,
port, query, fragment, or subdirectory. The organization name is the site's
display name; its domain is derived from that URL, not the repository host.
Keep the Hugo base URL and other build scripts aligned with the same website.
Follow README steps 1–5: reviewed content, semantic chunks and QA, source/Hugo
sync, Hugo render and semantic checks, copy HTML, build the AI index, then:
```text
python skills-scripts/build_discovery_files.py
```
This writes `public/.well-known/poppy.json`:
```json
{
"protocol_version": "0.1",
"organization": {"name": "iNDX Earth", "domain": "indx.earth"},
"web": {}
}
```
The generator validates the configured identity and supported profile. The
publication copy script preserves this path against stale Hugo static files.
Regenerate discovery after the HTML copy as the normal final step. Commit source
changes; generated `public/` output remains excluded from source control.
`llms.txt`, `agents.md`, and the local `agent-card.json` discovery map link to
the manifest. Keep `ai-index.json` and the resource catalog for content retrieval.
The local agent card and catalog are separate contracts from Poppy.
## Verify publication
Run the repository tests, review generated output, then obtain deployment
approval under `AGENTS.md` and follow `PUBLICATION_WORKFLOW.md`. On the deployed
domain, fetch `https://{domain}/.well-known/poppy.json` and verify a successful
JSON response, HTTPS through any redirect, expected organization identity, and
the absence of an HTML fallback, access challenge, or stale cached manifest.
Ensure the host serves dot directories and uses an appropriate JSON content
type and caching policy. Confirm normal visitor access and the intended crawler
and edge policies. Local tests cannot prove the deployed response.
## Extending beyond website discovery
Do not hand-edit generated output to add future capabilities. Implement them
in the runtime first, then extend the generator and tests in a reviewed change.
The existing contact API is not advertised as a Poppy API: CAPTCHA, SMTP, and
an HTTP endpoint alone do not implement protocol sessions or authorization.
For future work, use a separate staging plan tied to a specific business need.
Verify OAuth issuer/domain binding, client identity, session isolation, scopes,
consent, revocation, DPoP and replay protection; apply the MCP token rules when
relevant. Publish OpenAPI/MCP or company-agent URLs only after their integration
works. If using the optional operations extension, test exact-term approval and
safe retries. Keep credentials and user records outside this public template.
The current tests enforce only this builder's supported ordinary-web profile.
They do not certify a full Poppy implementation or predict AI search rankings.
+37
View File
@@ -0,0 +1,37 @@
{
"schema_version": "1.0",
"purpose": "Verified stable inputs for repository-structure skills and future repository maintenance.",
"repository_profile": "software-automation",
"identity": {
"authors": [
{
"name": "Eddie Soehnel"
}
],
"publisher": {
"name": "Eddie Soehnel"
},
"maintainer": {
"name": "Eddie Soehnel"
}
},
"repository": {
"repository_id": "eddie-soehnel-structured-website-builder-open",
"name": "structured-website-builder-open",
"title": "Structured Website Builder",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN",
"organization": null
},
"rights": {
"license": "MIT",
"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": "User instruction",
"verified_at": "2026-07-25"
}
+266
View File
@@ -0,0 +1,266 @@
{
"schema_version": "1.0",
"repository_id": "eddie-soehnel-structured-website-builder-open",
"name": "structured-website-builder-open",
"title": "Structured Website Builder",
"description": "An open, AI-native static website builder that turns structured Markdown into a Hugo site with semantic artifacts, discovery files, and an optional contact API.",
"summary": "A reusable software, automation, template, and skill repository for authoring structured content, materializing semantic chunks and QA data, rendering a Hugo website, publishing static output, generating AI discovery artifacts, and operating a sanitized public website workflow.",
"canonical_url": "https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN",
"authors": [
{
"name": "Eddie Soehnel"
}
],
"publisher": {
"name": "Eddie Soehnel"
},
"repository_status": "active",
"visibility": "public",
"maturity": "experimental",
"version": "0.3.0",
"created_at": "2026-06-06",
"updated_at": "2026-10-10",
"resource_types": [
"application",
"documentation",
"skill",
"software",
"template",
"workflow"
],
"topics": {
"technology": [
"artificial-intelligence",
"hugo",
"python",
"static-site-generation"
],
"business_function": [
"content-publishing",
"knowledge-management",
"website-operations"
],
"industry_context": [
"cross-industry"
],
"artifact_type": [
"software",
"template",
"workflow",
"skill"
],
"concepts": [
"ai-discovery",
"generative-engine-optimization",
"semantic-content",
"structured-data",
"personal-agent-protocol"
]
},
"audiences": [
"website builders and maintainers",
"content authors",
"developers and operators",
"organizations building AI-readable websites",
"AI agents adapting or publishing the builder"
],
"problems_solved": [
"Teams need a portable static website workflow without dependence on a proprietary CMS.",
"Human-authored content needs structured semantic and discovery outputs for search engines and AI agents.",
"Public website templates need a sanitized, repeatable publication process."
],
"capabilities": [
"Sync authoritative Markdown content into a Hugo project.",
"Render and publish a static website with semantic discovery metadata.",
"Generate AI indexes, discovery files, chunk data, and QA artifacts.",
"Adapt the builder for a new brand, domain, content set, and deployment target.",
"Provide an optional FastAPI contact form backed by environment-managed credentials.",
"Generate Poppy draft 0.1 discovery for ordinary website access only."
],
"use_cases": [
"Create an AI-readable companion site for an existing platform website.",
"Build and self-host a structured static website.",
"Publish content, semantic artifacts, and agent discovery manifests.",
"Fork the template and adapt it for a different organization or domain."
],
"required_inputs": [
{
"name": "Brand, domain, content, and deployment configuration",
"description": "The public identity, content files, site settings, environment placeholders, and deployment choices needed to adapt and publish the builder.",
"required": true,
"sensitivity": "context-dependent"
}
],
"expected_outputs": [
{
"name": "Published structured static website",
"description": "Hugo-rendered HTML, structured source content, semantic artifacts, discovery manifests, and optional contact API configuration.",
"format": "mixed"
}
],
"entrypoints": {
"human": "README.md",
"ai": "AGENTS.md",
"primary_skill": "skills-scripts/skill-convert-builder-for-new-website.md",
"primary_agent": null,
"primary_script": "skills-scripts/sync_content_to_hugo.py",
"primary_template": "templates/gitshow.md"
},
"contents": [
{
"path": "README.md",
"type": "documentation",
"title": "Builder Overview And Workflow",
"description": "Primary setup, authoring, semantic-materialization, Hugo, and publication workflow.",
"required_for_use": true
},
{
"path": "content-index.json",
"type": "content-index",
"title": "Source Content Index",
"description": "Repository-level index of authoritative Markdown source documents under content/.",
"required_for_use": false
},
{
"path": "PUBLICATION_WORKFLOW.md",
"type": "documentation",
"title": "Public Publication Workflow",
"description": "Sanitization and release rules for the public template.",
"required_for_use": true
},
{
"path": "skills.md",
"type": "skill-index",
"title": "Repository Skills",
"description": "Index of repository-local skills and their routing purpose.",
"required_for_use": false
},
{
"path": "skills-scripts/",
"type": "skill-and-script-collection",
"title": "Skills And Deterministic Scripts",
"description": "Content, build, semantic, discovery, publication, and adaptation workflows.",
"required_for_use": true
},
{
"path": "content/",
"type": "source-content",
"title": "Authoritative Source Content",
"description": "Markdown source of truth for site pages.",
"required_for_use": true
},
{
"path": "hugo-html-builder/",
"type": "application",
"title": "Hugo Builder",
"description": "Hugo configuration, content mirror, layouts, and static assets.",
"required_for_use": true
},
{
"path": "api/contact_app.py",
"type": "software",
"title": "Contact Form API",
"description": "Optional FastAPI contact endpoint using environment-managed SMTP and CAPTCHA configuration.",
"required_for_use": false
},
{
"path": "docs/README.md",
"type": "documentation-index",
"title": "Documentation Index",
"description": "Routes users and agents to repository documentation.",
"required_for_use": false
},
{
"path": "repository-variables.json",
"type": "configuration",
"title": "Repository Variables",
"description": "Verified stable identity, publication, rights, profile, and repository-skill defaults.",
"required_for_use": true
},
{
"path": "AGENTS.md",
"type": "agent-instructions",
"title": "Agent Instructions",
"description": "Repository-scoped operating, preservation, and validation rules.",
"required_for_use": true
},
{
"path": "docs/poppy.md",
"type": "documentation",
"title": "Poppy Discovery Integration",
"description": "Supported ordinary-web discovery profile, generation, adaptation, validation, and publication checks.",
"required_for_use": false
}
],
"relationships": {
"part_of": [],
"supports": [],
"depends_on": [],
"related_resources": [
"https://forge.paddlenet.earth/industrySIG/structured-website-builder-OPEN",
"https://projects.eddiesoehnel.com/adminprojects/master-findability-framework-OPEN",
"https://projects.eddiesoehnel.com/adminprojects/ai-knowledge-structure-OPEN"
],
"supersedes": [],
"superseded_by": []
},
"access": {
"public": true,
"authentication_required": false,
"payment_required": false,
"registration_required": false
},
"rights": {
"license": "MIT",
"license_file": "LICENSE",
"usage_guidance": "AUTHOR.md"
},
"provenance": {
"origin_type": "human-authored",
"creation_method": "sanitized-public-template-derived-from-a-private-website-workflow",
"contributors": [
"Eddie Soehnel"
],
"source_references": [
"README.md",
"PUBLICATION_WORKFLOW.md",
"sanitization-map.md",
"https://personalagentprotocol.org/docs/spec"
]
},
"maintenance": {
"maintainer": "Eddie Soehnel",
"review_frequency": "as-needed",
"last_reviewed_at": "2026-07-25",
"deprecated": false,
"archived": false
},
"ai_retrieval": {
"read_first": [
"README.md",
"AUTHOR.md",
"repository-variables.json",
"repository.json",
"AGENTS.md",
"PUBLICATION_WORKFLOW.md",
"skills.md"
],
"retrieve_as_needed": [
"content-index.json",
"content/",
"skills-scripts/",
"hugo-html-builder/",
"api/",
"docs/",
"docs/poppy.md"
],
"exclude_by_default": [
"_original/",
"tasks/",
"tasks-workflows/",
"public/",
"hugo-html-builder/public/"
],
"instructions": "Preserve content/ as the authoring source of truth, follow repository-local skills for each pipeline stage, and treat generated public output separately from repository-level content-index.json. Never expose credentials or private publication data."
}
}
@@ -0,0 +1,45 @@
# Skill: AI Catalog Materialization
## Contract
Create `public/.well-known/ai-catalog.json` as the small, public capability-discovery layer for the site.
The catalog must:
- follow AI Catalog schema version 1.0;
- identify the publishing domain;
- advertise only resources that are actually public and agent-usable;
- point to each resource's native public URL instead of duplicating it;
- remain separate from `ai-index.json`, which catalogs site knowledge rather than capabilities.
## Inputs
Read:
- `README.md`
- `public/ai-index.json`
- existing public agent, API, MCP, skill, and dataset manifests
- existing `public/.well-known/ai-catalog.json`, if present
## Materialize
Run:
```bash
python skills-scripts/build_discovery_files.py
```
Add an entry only when its public URL exists or the build process creates it. Do not invent endpoints, authentication, trust claims, attestations, or capabilities.
For this base builder, advertise `ai-index.json` as an AI-readable knowledge dataset. Add MCP servers, agents, APIs, packaged skills, or nested catalogs only when a converted site actually publishes them.
## Validate
Confirm that:
- the file is valid JSON at `/.well-known/ai-catalog.json`;
- `specVersion` is supported by the current schema;
- every entry has `identifier`, `displayName`, `type`, and exactly one of `url` or inline `data`;
- identifiers are stable, domain-anchored `urn:air` values;
- `representativeQueries` contains 2-5 realistic queries;
- every advertised URL is public and accurate.
+104 -2
View File
@@ -6,8 +6,10 @@ Outputs:
- public/llms.txt - public/llms.txt
- public/agents.md - public/agents.md
- public/skills.md - public/skills.md
- public/.well-known/ai-catalog.json
- public/.well-known/security.txt - public/.well-known/security.txt
- public/.well-known/agent-card.json - public/.well-known/agent-card.json
- public/.well-known/poppy.json (draft 0.1, ordinary website access only)
""" """
from __future__ import annotations from __future__ import annotations
@@ -18,6 +20,7 @@ import re
from dataclasses import dataclass from dataclasses import dataclass
from datetime import date, datetime, timezone from datetime import date, datetime, timezone
from pathlib import Path from pathlib import Path
from urllib.parse import urlparse
from xml.etree import ElementTree as ET from xml.etree import ElementTree as ET
@@ -28,6 +31,7 @@ SKILLS_ROOT = REPO_ROOT / "skills-scripts"
HUGO_PUBLIC = REPO_ROOT / "hugo-html-builder" / "public" HUGO_PUBLIC = REPO_ROOT / "hugo-html-builder" / "public"
SITE_URL = "https://indx.earth" SITE_URL = "https://indx.earth"
SITE_DOMAIN = urlparse(SITE_URL).netloc
SITE_TITLE = "iNDX Earth" SITE_TITLE = "iNDX Earth"
PUBLISHER = "Eddie Soehnel" PUBLISHER = "Eddie Soehnel"
SECURITY_CONTACT = "https://indx.earth/#contact-us" SECURITY_CONTACT = "https://indx.earth/#contact-us"
@@ -298,6 +302,8 @@ def build_llms_txt(entries: list[SitemapEntry]) -> str:
"", "",
"## Machine-Readable URLs", "## Machine-Readable URLs",
f"- {SITE_URL}/ai-index.json", f"- {SITE_URL}/ai-index.json",
f"- {SITE_URL}/.well-known/ai-catalog.json",
f"- {SITE_URL}/.well-known/poppy.json (Personal Agent Protocol draft 0.1; ordinary website access)",
f"- {SITE_URL}/sitemap.xml", f"- {SITE_URL}/sitemap.xml",
"- /data/open/pages/**/chunks.json", "- /data/open/pages/**/chunks.json",
"- /data/open/pages/**/qa.json", "- /data/open/pages/**/qa.json",
@@ -327,6 +333,8 @@ Canonical site: {SITE_URL}/
## Retrieval Policy ## Retrieval Policy
- Use `{SITE_URL}/.well-known/ai-catalog.json` to discover public agent-usable resources.
- `{SITE_URL}/.well-known/poppy.json` declares ordinary website access only (Personal Agent Protocol draft 0.1); it grants no session, account, API, or transaction access.
- Start with `{SITE_URL}/ai-index.json` to understand resources, artifacts, access type, and retrieval priority. - Start with `{SITE_URL}/ai-index.json` to understand resources, artifacts, access type, and retrieval priority.
- Use `{SITE_URL}/sitemap.xml` for canonical human-facing URLs. - Use `{SITE_URL}/sitemap.xml` for canonical human-facing URLs.
- Use `/data/open/pages/**/chunks.json` for semantic retrieval and `/data/open/pages/**/qa.json` for question-answer and workflow hints. - Use `/data/open/pages/**/chunks.json` for semantic retrieval and `/data/open/pages/**/qa.json` for question-answer and workflow hints.
@@ -343,6 +351,7 @@ Canonical site: {SITE_URL}/
## Useful Entry Points ## Useful Entry Points
- `{SITE_URL}/.well-known/ai-catalog.json`
- `{SITE_URL}/ai-index.json` - `{SITE_URL}/ai-index.json`
- `{SITE_URL}/llms.txt` - `{SITE_URL}/llms.txt`
{useful_urls} {useful_urls}
@@ -375,6 +384,8 @@ def build_agent_card_json() -> str:
"contact": SECURITY_CONTACT, "contact": SECURITY_CONTACT,
"license": f"{SITE_URL}/wiki/license/", "license": f"{SITE_URL}/wiki/license/",
"discovery": { "discovery": {
"ai_catalog": f"{SITE_URL}/.well-known/ai-catalog.json",
"poppy": f"{SITE_URL}/.well-known/poppy.json",
"ai_index": f"{SITE_URL}/ai-index.json", "ai_index": f"{SITE_URL}/ai-index.json",
"sitemap": f"{SITE_URL}/sitemap.xml", "sitemap": f"{SITE_URL}/sitemap.xml",
"llms": f"{SITE_URL}/llms.txt", "llms": f"{SITE_URL}/llms.txt",
@@ -394,6 +405,67 @@ def build_agent_card_json() -> str:
return json.dumps(payload, indent=2, ensure_ascii=False) + "\n" return json.dumps(payload, indent=2, ensure_ascii=False) + "\n"
def build_poppy_json() -> str:
"""Generate only the ordinary-web profile from Poppy draft 0.1 sections 3/5.
Do not advertise auth, APIs, agents, browser sessions, or extensions here.
They require a separately implemented and verified protocol runtime.
"""
site = urlparse(SITE_URL)
if (
site.scheme != "https"
or not site.hostname
or site.username is not None
or site.password is not None
or site.netloc != site.hostname
or site.path not in {"", "/"}
or site.query
or site.fragment
):
raise ValueError("Poppy discovery requires SITE_URL to be an HTTPS domain root")
if not SITE_TITLE.strip():
raise ValueError("Poppy discovery requires a non-empty SITE_TITLE")
payload = {
"protocol_version": "0.1",
"organization": {"name": SITE_TITLE, "domain": site.hostname},
"web": {},
}
return json.dumps(payload, indent=2, ensure_ascii=False) + "\n"
def validate_poppy_json(payload: object) -> None:
"""Local supported-profile check, not an official full-protocol validator."""
if payload != json.loads(build_poppy_json()):
raise RuntimeError("poppy.json must match the configured draft 0.1 ordinary-web profile")
def build_ai_catalog_json() -> str:
payload = {
"specVersion": "1.0",
"host": {
"displayName": SITE_TITLE,
"identifier": SITE_DOMAIN,
"documentationUrl": f"{SITE_URL}/",
},
"entries": [
{
"identifier": f"urn:air:{SITE_DOMAIN}:dataset:ai-index",
"displayName": "iNDX AI-Readable Knowledge Index",
"type": "application/json",
"url": f"{SITE_URL}/ai-index.json",
"description": "Discovery and routing metadata for public iNDX content and semantic artifacts.",
"tags": ["knowledge", "structured-content", "semantic-retrieval"],
"capabilities": ["KnowledgeDiscovery", "SemanticArtifactRouting"],
"representativeQueries": [
"What public knowledge and structured content are available from iNDX?",
"Where can I retrieve iNDX semantic chunks and question-answer artifacts?",
],
}
],
}
return json.dumps(payload, indent=2, ensure_ascii=False) + "\n"
def skill_title_from_file(path: Path) -> str: def skill_title_from_file(path: Path) -> str:
if path.suffix == ".py": if path.suffix == ".py":
return path.name return path.name
@@ -406,6 +478,7 @@ def skill_title_from_file(path: Path) -> str:
def skill_summary_from_file(path: Path) -> str: def skill_summary_from_file(path: Path) -> str:
known_summaries = { known_summaries = {
"ai-catalog-materialization-skill.md": "Create the public ARD ai-catalog.json capability manifest without duplicating the site's knowledge index.",
"ai-index-discovery-materialization-skill.md": "Create the machine-readable ai-index.json discovery and routing layer from markdown, chunks.json, qa.json, and existing index structure.", "ai-index-discovery-materialization-skill.md": "Create the machine-readable ai-index.json discovery and routing layer from markdown, chunks.json, qa.json, and existing index structure.",
"author-content-structuring-skill.md": "Add lightweight semantic structure, front matter, chunk markers, and stable identifiers to human-authored markdown content.", "author-content-structuring-skill.md": "Add lightweight semantic structure, front matter, chunk markers, and stable identifiers to human-authored markdown content.",
"cis-guided-semantic-chunk-generation-skill.md": "Create chunks.json semantic retrieval artifacts using the project-selected subset of the CIS envelope.", "cis-guided-semantic-chunk-generation-skill.md": "Create chunks.json semantic retrieval artifacts using the project-selected subset of the CIS envelope.",
@@ -484,10 +557,33 @@ def validate_outputs() -> None:
raise RuntimeError("sitemap.xml is missing changefreq or priority fields") raise RuntimeError("sitemap.xml is missing changefreq or priority fields")
if f"Sitemap: {SITE_URL}/sitemap.xml" not in read_text(PUBLIC_ROOT / "robots.txt"): if f"Sitemap: {SITE_URL}/sitemap.xml" not in read_text(PUBLIC_ROOT / "robots.txt"):
raise RuntimeError("robots.txt does not reference sitemap.xml") raise RuntimeError("robots.txt does not reference sitemap.xml")
for filename in ("llms.txt", "agents.md", "skills.md", ".well-known/security.txt", ".well-known/agent-card.json"): for filename in (
"llms.txt",
"agents.md",
"skills.md",
".well-known/ai-catalog.json",
".well-known/security.txt",
".well-known/agent-card.json",
".well-known/poppy.json",
):
path = PUBLIC_ROOT / filename path = PUBLIC_ROOT / filename
if not path.exists() or path.stat().st_size == 0: if not path.exists() or path.stat().st_size == 0:
raise RuntimeError(f"{filename} was not created") raise RuntimeError(f"{filename} was not created")
ai_catalog = json.loads(read_text(PUBLIC_ROOT / ".well-known" / "ai-catalog.json"))
validate_poppy_json(json.loads(read_text(PUBLIC_ROOT / ".well-known" / "poppy.json")))
if ai_catalog.get("specVersion") != "1.0" or not ai_catalog.get("entries"):
raise RuntimeError("ai-catalog.json is missing its supported specVersion or entries")
for entry in ai_catalog["entries"]:
required = {"identifier", "displayName", "type"}
if not required.issubset(entry):
raise RuntimeError("ai-catalog.json entry is missing required fields")
if not entry["identifier"].startswith(f"urn:air:{SITE_DOMAIN}:"):
raise RuntimeError("ai-catalog.json entry identifier is not anchored to the site domain")
if ("url" in entry) == ("data" in entry):
raise RuntimeError("ai-catalog.json entry must contain exactly one of url or data")
queries = entry.get("representativeQueries", [])
if not 2 <= len(queries) <= 5:
raise RuntimeError("ai-catalog.json entry must contain 2-5 representativeQueries")
for filename in SITEMAP_ROOT_HELPER_FILES: for filename in SITEMAP_ROOT_HELPER_FILES:
path = PUBLIC_ROOT / filename path = PUBLIC_ROOT / filename
if path.exists() and f"<loc>{SITE_URL}/{filename}</loc>" not in sitemap_text: if path.exists() and f"<loc>{SITE_URL}/{filename}</loc>" not in sitemap_text:
@@ -495,14 +591,20 @@ def validate_outputs() -> None:
def main() -> None: def main() -> None:
poppy = build_poppy_json() # Validate configuration before writing any output.
entries = collect_sitemap_entries()
# Materialize helpers before collecting the final sitemap on a fresh build.
write_text(PUBLIC_ROOT / "llms.txt", build_llms_txt(entries))
write_text(PUBLIC_ROOT / "skills.md", build_skills_md())
entries = collect_sitemap_entries() entries = collect_sitemap_entries()
write_text(PUBLIC_ROOT / "robots.txt", build_robots()) write_text(PUBLIC_ROOT / "robots.txt", build_robots())
write_text(PUBLIC_ROOT / "sitemap.xml", build_sitemap(entries)) write_text(PUBLIC_ROOT / "sitemap.xml", build_sitemap(entries))
write_text(PUBLIC_ROOT / "llms.txt", build_llms_txt(entries)) write_text(PUBLIC_ROOT / "llms.txt", build_llms_txt(entries))
write_text(PUBLIC_ROOT / "agents.md", build_agents_md(entries)) write_text(PUBLIC_ROOT / "agents.md", build_agents_md(entries))
write_text(PUBLIC_ROOT / "skills.md", build_skills_md()) write_text(PUBLIC_ROOT / ".well-known" / "ai-catalog.json", build_ai_catalog_json())
write_text(PUBLIC_ROOT / ".well-known" / "security.txt", build_security_txt()) write_text(PUBLIC_ROOT / ".well-known" / "security.txt", build_security_txt())
write_text(PUBLIC_ROOT / ".well-known" / "agent-card.json", build_agent_card_json()) write_text(PUBLIC_ROOT / ".well-known" / "agent-card.json", build_agent_card_json())
write_text(PUBLIC_ROOT / ".well-known" / "poppy.json", poppy)
validate_outputs() validate_outputs()
print(f"Wrote discovery files in {PUBLIC_ROOT} for {len(entries)} sitemap URLs.") print(f"Wrote discovery files in {PUBLIC_ROOT} for {len(entries)} sitemap URLs.")
@@ -9,6 +9,8 @@ Using this skill, reference the current README.md process document, existing pub
- `public/llms.txt` - `public/llms.txt`
- `public/agents.md` - `public/agents.md`
- `public/skills.md` - `public/skills.md`
- `public/.well-known/ai-catalog.json`
- `public/.well-known/poppy.json` (draft 0.1 ordinary-web profile)
--- ---
@@ -22,6 +24,7 @@ This skill guarantees:
- `llms.txt` gives LLMs a concise, plain-text entry point into the site, important URLs, and machine-readable artifacts. - `llms.txt` gives LLMs a concise, plain-text entry point into the site, important URLs, and machine-readable artifacts.
- `agents.md` gives autonomous agents safe retrieval, crawling, and usage guidance grounded in public files. - `agents.md` gives autonomous agents safe retrieval, crawling, and usage guidance grounded in public files.
- `skills.md` lists project skills and deterministic scripts that produce or validate this website. - `skills.md` lists project skills and deterministic scripts that produce or validate this website.
- `.well-known/ai-catalog.json` advertises actual public, agent-usable resources without duplicating `ai-index.json`.
- Existing discovery files are read before replacement when present, so format and project-specific intent can be preserved where appropriate. - Existing discovery files are read before replacement when present, so format and project-specific intent can be preserved where appropriate.
- No credentials, secrets, private endpoints, or unsupported claims are added. - No credentials, secrets, private endpoints, or unsupported claims are added.
@@ -31,6 +34,7 @@ Read these first:
- `README.md` - `README.md`
- Existing `public/robots.txt`, `public/sitemap.xml`, `public/llms.txt`, `public/agents.md`, `public/skills.md` if they exist - Existing `public/robots.txt`, `public/sitemap.xml`, `public/llms.txt`, `public/agents.md`, `public/skills.md` if they exist
- Existing `public/.well-known/ai-catalog.json` if it exists
- `public/ai-index.json` - `public/ai-index.json`
- `content/**/*.md` - `content/**/*.md`
- `public/data/open/pages/**/chunks.json` - `public/data/open/pages/**/chunks.json`
@@ -45,7 +49,7 @@ Use:
python skills-scripts/build_discovery_files.py python skills-scripts/build_discovery_files.py
``` ```
The script materializes all five files deterministically. Patch the script when the policy or output shape changes; do not repeatedly hand-author these files. The script materializes the root and well-known discovery files deterministically. Read `docs/poppy.md` for the Poppy contract; this builder supports ordinary website access only. Patch the script when the policy or output shape changes; do not repeatedly hand-author these files.
## Phases ## Phases
@@ -121,7 +125,15 @@ Create `public/skills.md` listing project skills and deterministic scripts in `s
This is a public inventory, not internal secrets or implementation logs. This is a public inventory, not internal secrets or implementation logs.
### Phase 7: Validation ### Phase 7: AI Catalog
Apply `ai-catalog-materialization-skill.md` to create `public/.well-known/ai-catalog.json`.
### Phase 8: Poppy Discovery
Generate `.well-known/poppy.json` through the same script. Use `SITE_TITLE` for the organization display name and derive its domain from `SITE_URL`. Keep `protocol_version` at `0.1` and `web` empty for ordinary browsing. Do not add auth, APIs, company agents, browser sessions, or extensions without a tested runtime and an updated generator contract. Link the manifest from generated agent guidance and discovery metadata.
### Phase 9: Validation
Validate: Validate:
@@ -131,6 +143,10 @@ Validate:
- sitemap includes `/ai-index.json`, `/llms.txt`, and `/skills.md` after the human-facing HTML URLs when those files exist - sitemap includes `/ai-index.json`, `/llms.txt`, and `/skills.md` after the human-facing HTML URLs when those files exist
- `robots.txt` references the sitemap - `robots.txt` references the sitemap
- `llms.txt`, `agents.md`, and `skills.md` exist and are non-empty - `llms.txt`, `agents.md`, and `skills.md` exist and are non-empty
- `.well-known/ai-catalog.json` parses and advertises only real public resources
- `.well-known/poppy.json` parses and matches the configured ordinary-web profile
- copy/publish preserves the generated Poppy manifest against stale Hugo output
- after authorized deployment, the well-known HTTPS URL returns the expected JSON and identity
- no credentials or private paths are present - no credentials or private paths are present
## Anti-Patterns ## Anti-Patterns
@@ -142,5 +158,6 @@ Do not:
- invent crawler policies that belong in Cloudflare - invent crawler policies that belong in Cloudflare
- duplicate full chunks, QA records, or ai-index contents in `llms.txt` or `agents.md` - duplicate full chunks, QA records, or ai-index contents in `llms.txt` or `agents.md`
- treat `sitemap.xml` as a substitute for `ai-index.json` - treat `sitemap.xml` as a substitute for `ai-index.json`
- treat `ai-catalog.json` as a replacement for `ai-index.json`
- include `robots.txt`, `sitemap.xml`, operational endpoints, or `/healthz/` as index targets - include `robots.txt`, `sitemap.xml`, operational endpoints, or `/healthz/` as index targets
- hand-edit generated files without also updating the builder script when the change should persist - hand-edit generated files without also updating the builder script when the change should persist
+4 -2
View File
@@ -7,7 +7,7 @@ Run after:
4. python skills-scripts/build_discovery_files.py 4. python skills-scripts/build_discovery_files.py
This script copies files from hugo-html-builder/public into public while This script copies files from hugo-html-builder/public into public while
preserving repo-level discovery files generated outside Hugo. preserving repo-level discovery files and the Poppy manifest generated outside Hugo.
""" """
from __future__ import annotations from __future__ import annotations
@@ -31,6 +31,8 @@ PRESERVE_AT_PUBLIC_ROOT = {
def should_preserve(relative_path: Path) -> bool: def should_preserve(relative_path: Path) -> bool:
if relative_path.as_posix() == ".well-known/poppy.json":
return True
return len(relative_path.parts) == 1 and relative_path.name in PRESERVE_AT_PUBLIC_ROOT return len(relative_path.parts) == 1 and relative_path.name in PRESERVE_AT_PUBLIC_ROOT
@@ -61,7 +63,7 @@ def main() -> None:
copied, skipped = copy_hugo_output() copied, skipped = copy_hugo_output()
print(f"Copied {copied} Hugo output files into {PUBLIC_ROOT}") print(f"Copied {copied} Hugo output files into {PUBLIC_ROOT}")
if skipped: if skipped:
print("Preserved root discovery files:") print("Preserved discovery files:")
for path in skipped: for path in skipped:
print(f"- {path}") print(f"- {path}")
@@ -64,6 +64,7 @@ Remove old generated and copied-site artifacts, after confirming paths resolve i
- `/public/agents.md`; - `/public/agents.md`;
- `/public/skills.md`; - `/public/skills.md`;
- `/public/ai-index.json`; - `/public/ai-index.json`;
- stale `/public/.well-known/poppy.json`; regenerate it for the new domain;
- `/public/data/`; - `/public/data/`;
- old public section directories from the copied site; - old public section directories from the copied site;
- `/public/healthz/`; - `/public/healthz/`;
@@ -199,6 +200,7 @@ Recommended `.well-known` files:
- `/public/.well-known/security.txt`; - `/public/.well-known/security.txt`;
- `/public/.well-known/agent-card.json`; - `/public/.well-known/agent-card.json`;
- `/public/.well-known/poppy.json` (draft 0.1 ordinary-web discovery; see `docs/poppy.md`);
- optionally `/public/.well-known/agent-skills.json`. - optionally `/public/.well-known/agent-skills.json`.
Update `skills-scripts/sync_content_to_hugo.py`: Update `skills-scripts/sync_content_to_hugo.py`:
@@ -329,6 +331,7 @@ rg -n "old-domain|old-brand|old-logo|old analytics ID|mojibake-patterns" .
Check: Check:
- Poppy organization name/domain match the new SITE_TITLE/SITE_URL and advertise only ordinary website access;
- no old domain in generated HTML/JSON/discovery files; - no old domain in generated HTML/JSON/discovery files;
- no old logo references; - no old logo references;
- no old analytics ID; - no old analytics ID;
+21
View File
@@ -0,0 +1,21 @@
# Repository Skills
Use this index after reading `README.md`, `AGENTS.md`, and
`PUBLICATION_WORKFLOW.md`. Skills live in `skills-scripts/` alongside their
deterministic helper scripts.
| Skill | Purpose |
| --- | --- |
| `skill-convert-builder-for-new-website.md` | Adapt the builder for a new brand, domain, content set, and deployment target |
| `execute-content-structuring-process-overview-skill.md` | Route the complete content-structuring workflow |
| `author-content-structuring-skill.md` | Prepare authored Markdown, frontmatter, and semantic identifiers |
| `cis-guided-semantic-chunk-generation-skill.md` | Materialize semantic chunks from approved content |
| `semantic-qa-materialization-skill.md` | Generate QA artifacts aligned with semantic chunks |
| `html-semantic-artifacts-checker-skill.md` | Validate rendered semantic links and JSON-LD |
| `ai-index-discovery-materialization-skill.md` | Build the public content-oriented AI index |
| `discovery-files-materialization-skill.md` | Build sitemap, robots, llms, agents, skills, and well-known discovery files including Poppy ordinary-web discovery |
| `ai-catalog-materialization-skill.md` | Materialize the public agent-usable resource catalog |
Supporting operational documents include `contact-form-deployment.md`,
`deploy-security-headers.md`, and `instructions.md`. Deterministic scripts are
documented by their module docstrings and the workflow in `README.md`.
@@ -0,0 +1,41 @@
# Implementation Receipt
## Control
- Task: `structure-ai-ready-repository`
- Approved plan revision: `1`
- Implemented: `2026-07-25`
- Profile: `software-automation`
- Approval: User explicitly requested immediate template application and Eddie
Soehnel identity.
## Modified
- `LICENSE` — aligned the copyright holder while preserving MIT terms.
- `CHANGELOG.md` — added the `0.2.0` structural baseline and preserved history.
## Created
- `AUTHOR.md`, `repository-variables.json`, `repository.json`,
`content-index.json`, `CITATION.cff`, `VERSION`
- `AGENTS.md`, `CONTRIBUTING.md`, `SECURITY.md`, `skills.md`
- `docs/README.md`
- `tests/README.md`, `tests/test_repository.py`
- Task plan, implementation receipt, and validation results
## Preserved
- All established application, content, Hugo, API, skill, script, template,
asset, workflow, and historical-source paths
- Pre-existing uncommitted and untracked user changes byte-for-byte
- The existing chunk, QA, AI-index, and discovery publication design
## Deviations
None from the authorized plan.
## Rollback Guidance
Use Git to restore `LICENSE` and `CHANGELOG.md`, then remove the created files
listed above. Do not restore or remove the pre-existing user changes. No commit,
publication, or remote change was made.
@@ -0,0 +1,121 @@
# Repository Structure Plan
## Plan Control
- Task ID: `structure-ai-ready-repository`
- Target repository: `C:\projects\indx\structured-website-builder-OPEN`
- Repository mode: `existing`
- Profile: `software-automation`
- Revision: `1`
- Status: `implemented`
- Created: `2026-07-25`
- Updated: `2026-07-25`
- Approval evidence: User requested immediate application of `repo-template-OPEN` and specified Eddie Soehnel as author, administrator, and maintainer.
## Outcome
Make the reusable website builder understandable, safe, testable, and
navigable to people and AI agents without disturbing its established content,
Hugo, skill, script, API, or publication workflows.
## Identity And Publication
- Author(s): `Eddie Soehnel`
- Publisher: `Eddie Soehnel`
- Administrator: `Eddie Soehnel`
- Maintainer: `Eddie Soehnel`
- Canonical repository URL: `https://projects.eddiesoehnel.com/adminprojects/structured-website-builder-OPEN`
- Public mirror: `https://forge.paddlenet.earth/industrySIG/structured-website-builder-OPEN`
- License: `MIT` for repository software and templates; individual content may
declare separate content-level rights
- Identity source: User instruction, Git remotes, and existing license
## Current State
### Facts
- The repository contains Python automation, an optional FastAPI service, Hugo
layouts and content, source Markdown, repository-local skills, templates,
assets, publication workflows, and sanitized examples.
- The canonical `origin` and Forge mirror remotes are configured.
- Hugo is not installed in the current environment.
- The worktree already contained uncommitted changes in `README.md`,
`UPDATES.md`, discovery tooling, and a new catalog skill before this task.
### Assumptions
- Version `0.2.0` is the appropriate backward-compatible minor release after
the existing `0.1.0` entry.
### Baseline Audit
- Command: `audit_repository.py <repository> --profile software-automation --json`
- Result: Failed because identity, manifest, citation, version, agent,
contribution, security, docs, and tests paths were absent.
## Profile Decision
Use the software/automation profile because the repository includes executable
Python, Hugo generation, an API, publication automation, and security-sensitive
configuration. Preserve `skills-scripts/` as the established combined skill and
script convention. Add a content index because 13 authoritative source
documents form a content-heavy collection.
## File Actions
| Path | Action | Purpose and planned content | Existing-content treatment |
| --- | --- | --- | --- |
| `README.md`, `UPDATES.md`, dirty discovery files | preserve | Existing workflow and in-progress user changes | Preserve byte-for-byte |
| `content/`, `hugo-html-builder/`, `api/`, `skills-scripts/`, `templates/`, `assets/`, `tasks-workflows/`, `_original/` | preserve | Established application and workflow structure | No restructuring |
| `LICENSE` | modify | Existing MIT terms with Eddie Soehnel copyright | Preserve terms |
| `CHANGELOG.md` | modify | Add version `0.2.0` structure baseline | Preserve `0.1.0` history |
| `AUTHOR.md`, `repository-variables.json`, `repository.json`, `CITATION.cff`, `VERSION` | create | Aligned identity, manifest, citation, and lifecycle metadata | Use verified facts |
| `content-index.json` | create | Index 13 authoritative source documents | Do not duplicate bodies or generated artifacts |
| `AGENTS.md`, `CONTRIBUTING.md`, `SECURITY.md` | create | Operating, contribution, and security rules | Align with publication workflow |
| `skills.md`, `docs/README.md` | create | Skill and documentation routing | Preserve `skills-scripts/` convention |
| `tests/README.md`, `tests/test_repository.py` | create | Read-only metadata, path, index, and syntax checks | Do not run mutating pipeline |
| `tasks/structure-ai-ready-repository/*` | create | Durable plan, receipt, and validation record | Record authorized implementation |
## Human And AI Entry Points
- Human starts at: `README.md`
- AI agent starts at: `AGENTS.md`
- Primary adaptation skill: `skills-scripts/skill-convert-builder-for-new-website.md`
- Primary deterministic script: `skills-scripts/sync_content_to_hugo.py`
- Authoritative manifest: `repository.json`
- Source-content discovery: `content-index.json`
## Hosting Platform Choices
Use `origin` as canonical and record Forge as a public mirror. Do not modify
remotes, hosting settings, branches, tags, releases, or generated public output.
## Validation And Definition Of Done
- [x] Existing dirty files remain byte-for-byte unchanged.
- [x] Template schemas, profile audit, versions, identity, and declared paths pass.
- [x] Content-index IDs and paths are unique and source files exist.
- [x] Repository tests and Python syntax checks pass.
- [x] Git whitespace and targeted credential checks pass.
- [x] Unavailable or intentionally skipped runtime checks are recorded.
## Risks And Preservation Notes
- Do not run the mutating sync, Hugo, materialization, or publication pipeline.
- Preserve the repository's explicit chunk and QA workflow.
- `.env.example` contains placeholders; real credentials must remain external.
## Out Of Scope
- Resolving pre-existing user changes or `UPDATES.md` proposals
- Hugo rendering, deployment, publishing, remote synchronization, commits, or releases
- Website content edits and generated public output
## Open Questions
- None recorded.
## Approval
The user explicitly authorized immediate implementation, so the template
skill's separate pre-change review gate was bypassed.
@@ -0,0 +1,47 @@
# Validation Results
## Summary
The repository passes the software/automation profile audit, template schema
contracts, repository tests, Python syntax checks, content-index integrity,
declared-path, relative-link, whitespace, and targeted credential checks.
## Results
| Check | Result | Notes |
| --- | --- | --- |
| Software-profile audit | Pass | No findings |
| Schema contracts | Pass | Repository, variables, and content-index files satisfy template schemas |
| Version alignment | Pass | `VERSION`, `repository.json`, and `CITATION.cff` use `0.2.0` |
| Identity alignment | Pass | Author, publisher, administrator, maintainer, and MIT attribution identify Eddie Soehnel |
| Repository tests | Pass | 5 tests passed |
| Python syntax | Pass | All Python files under `api/` and `skills-scripts/` parsed successfully |
| Existing-change preservation | Pass | Five pre-existing dirty paths were checked byte-for-byte during implementation |
| Content-index integrity | Pass | 13 unique IDs and paths; every source document exists and matches frontmatter |
| Declared paths and new relative links | Pass | All manifest entrypoints/content paths and new local links resolve |
| Changelog preservation | Pass | Existing `0.1.0` history remains |
| Git whitespace check | Pass | `git diff --check` reported no errors |
| Targeted credential scan | Pass | No private-key blocks or common live-token prefixes found |
## Commands
```text
python audit_repository.py <repository> --profile software-automation --json
python validate_website_builder.py
python -B -m unittest discover -s tests -p "test_*.py" -v
git diff --check
rg -n -i "<private-key and live-token patterns>" <repository>
```
## Not Run
- Hugo rendering was not run because Hugo is unavailable in the current
environment.
- Content synchronization, semantic materialization, discovery generation,
publication, API integration, and deployment checks were intentionally not
run because they mutate generated output or require external configuration.
- External links and live services were not checked.
## Unresolved Decisions
- None recorded.
+11
View File
@@ -0,0 +1,11 @@
# Tests
Run the repository metadata and structural tests from the repository root:
```text
python -m unittest discover -s tests -p "test_*.py"
```
These tests preserve authored content and publication output. They validate repository metadata, versions,
declared paths, content-index integrity, source documents, and Python syntax.
The Poppy tests also generate discovery files in a temporary directory and verify rebranding, unsupported-capability rejection, and preservation during HTML copying. They do not run the Hugo rendering or deployment pipeline.
+114
View File
@@ -0,0 +1,114 @@
from __future__ import annotations
import importlib.util
import json
import sys
import tempfile
import unittest
from pathlib import Path
from unittest.mock import patch
ROOT = Path(__file__).resolve().parents[1]
def load_script(name: str):
spec = importlib.util.spec_from_file_location(name, ROOT / "skills-scripts" / f"{name}.py")
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
return module
discovery = load_script("build_discovery_files")
publisher = load_script("publish_hugo_output")
class PoppyDiscoveryTests(unittest.TestCase):
def test_ordinary_web_manifest(self):
manifest = json.loads(discovery.build_poppy_json())
self.assertEqual(manifest, {
"protocol_version": "0.1",
"organization": {"name": "iNDX Earth", "domain": "indx.earth"},
"web": {},
})
def test_rebranding_uses_website_identity(self):
with patch.object(discovery, "SITE_URL", "https://www.example.com/"), patch.object(
discovery, "SITE_TITLE", "Example Company"
):
manifest = json.loads(discovery.build_poppy_json())
self.assertEqual(manifest["organization"], {
"name": "Example Company", "domain": "www.example.com"
})
def test_invalid_site_configuration_fails_before_writes(self):
invalid_urls = [
"http://example.com", "https:///", "https://user:[email protected]",
"https://example.com:8443", "https://example.com/site/",
"https://example.com?token=placeholder", "https://example.com#home",
]
for url in invalid_urls:
with self.subTest(url=url), patch.object(discovery, "SITE_URL", url), patch.object(
discovery, "write_text"
) as write:
with self.assertRaises(ValueError):
discovery.main()
write.assert_not_called()
with patch.object(discovery, "SITE_TITLE", " "):
with self.assertRaises(ValueError):
discovery.build_poppy_json()
def test_validation_rejects_stale_or_unimplemented_claims(self):
mutations = [
{"protocol_version": "1.0"},
{"organization": {"name": "Old Brand", "domain": "old.example"}},
{"web": {"browser_session_endpoint": "https://indx.earth/session"}},
{"auth": {"issuer": "https://auth.example.com"}},
{"apis": [{"type": "mcp", "url": "https://example.com/mcp"}]},
{"agent": {"protocols": []}},
{"extensions": {"operations": {"version": "1"}}},
]
for mutation in mutations:
with self.subTest(mutation=mutation):
manifest = json.loads(discovery.build_poppy_json())
manifest.update(mutation)
with self.assertRaises(RuntimeError):
discovery.validate_poppy_json(manifest)
def test_discovery_generation_validation_and_copy(self):
with tempfile.TemporaryDirectory(prefix="poppy-test-", dir=ROOT) as directory:
root = Path(directory)
public = root / "public"
hugo = root / "hugo"
hugo.mkdir()
with patch.object(discovery, "PUBLIC_ROOT", public), patch.object(
discovery, "HUGO_PUBLIC", hugo
), patch.object(publisher, "PUBLIC_ROOT", public), patch.object(
publisher, "HUGO_PUBLIC", hugo
):
discovery.main()
target = public / ".well-known/poppy.json"
expected = target.read_bytes()
for name in ("llms.txt", "agents.md", ".well-known/agent-card.json"):
self.assertIn("/.well-known/poppy.json", (public / name).read_text())
stale = hugo / ".well-known/poppy.json"
stale.parent.mkdir()
stale.write_text('{"stale": true}')
(hugo / "index.html").write_text("<html>Example</html>")
copied, skipped = publisher.copy_hugo_output()
self.assertEqual(1, copied)
self.assertIn(".well-known/poppy.json", skipped)
self.assertEqual(expected, target.read_bytes())
discovery.main()
self.assertEqual(expected, target.read_bytes())
target.write_text('{"protocol_version": "9.0"}')
with self.assertRaises(RuntimeError):
discovery.validate_outputs()
target.unlink()
with self.assertRaises(RuntimeError):
discovery.validate_outputs()
if __name__ == "__main__":
unittest.main()
+63
View File
@@ -0,0 +1,63 @@
from __future__ import annotations
import ast
import json
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
class RepositoryTests(unittest.TestCase):
def test_machine_readable_files_parse(self) -> None:
for name in ("repository.json", "repository-variables.json", "content-index.json"):
with self.subTest(name=name):
json.loads((ROOT / name).read_text(encoding="utf-8"))
def test_versions_align(self) -> None:
version = (ROOT / "VERSION").read_text(encoding="utf-8").strip()
manifest = json.loads((ROOT / "repository.json").read_text(encoding="utf-8"))
citation = (ROOT / "CITATION.cff").read_text(encoding="utf-8")
self.assertEqual(version, manifest["version"])
self.assertIn(f"version: {version}", citation)
def test_declared_paths_exist(self) -> None:
manifest = json.loads((ROOT / "repository.json").read_text(encoding="utf-8"))
paths = [
manifest["entrypoints"]["human"],
manifest["entrypoints"]["ai"],
*[
value
for key, value in manifest["entrypoints"].items()
if key not in {"human", "ai"} and value
],
*[item["path"] for item in manifest["contents"]],
]
for path in paths:
with self.subTest(path=path):
self.assertTrue((ROOT / path).exists())
def test_content_index_integrity(self) -> None:
index = json.loads((ROOT / "content-index.json").read_text(encoding="utf-8"))
ids = [item["content_id"] for item in index["items"]]
paths = [item["path"] for item in index["items"]]
self.assertEqual(13, len(index["items"]))
self.assertEqual(len(ids), len(set(ids)))
self.assertEqual(len(paths), len(set(paths)))
for path in paths:
with self.subTest(path=path):
self.assertTrue((ROOT / path).is_file())
def test_python_syntax(self) -> None:
python_files = sorted((ROOT / "api").rglob("*.py")) + sorted(
(ROOT / "skills-scripts").rglob("*.py")
)
self.assertTrue(python_files)
for path in python_files:
with self.subTest(path=path.relative_to(ROOT).as_posix()):
ast.parse(path.read_text(encoding="utf-8-sig"), filename=str(path))
if __name__ == "__main__":
unittest.main()