Package Author Guide
Agent Delivery lets packages add public-safe structured output without changing public Blade views or themes.
Contributor Contracts
Section titled “Contributor Contracts”Use the narrowest contract that matches the data you own:
AgentDeliveryMetadataContributorfor public metadata, provenance, author, reviewer, or content-type signals.AgentDeliveryChunkContributorfor stable semantic chunks from package-owned page types or long-form sections.AgentDeliveryReferenceContributorfor public source links and citations.AgentDeliveryRelatedUrlContributorfor related public URLs.AgentDeliveryContributorremains available for legacy aggregate metadata and chunks.
Tag implementations in the service container with the contract TAG constant.
Public Safety Rules
Section titled “Public Safety Rules”Contributors must only return content already safe for anonymous public visitors.
Do not return:
- Admin URLs, preview URLs, signed URLs, permissions, or role data.
- Drafts, unpublished translations, scheduled content not yet public, or private page state.
- Model IDs, package internals, field paths, editor selectors, prompt text, or AI provider metadata.
- Hidden authoring markers or data that would make public cached HTML unsafe.
Chunk Stability
Section titled “Chunk Stability”Chunk IDs should be stable across normal edits when the section identity has not changed. Prefer slugs based on stable section keys or public headings over database IDs.
Each chunk should include:
- A stable
id. - A public
heading. - A canonical
sourceUrl, including an anchor when useful. - Plain text or Markdown-safe
body. dependsOnentries such asurl:https://example.com/pagefor cache invalidation.