Files
2026-10-11 16:58:11 -06:00

70 lines
3.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.