The configuration lives at config/artisanpack/specification.php once published, and is read from the artisanpack.specification key. Defaults are merged recursively, so a published file only needs the keys you override.
OKF Source
'okf' => [
'url' => env( 'SPECIFICATION_OKF_URL', 'https://specification.website/okf.tar.gz' ),
'snapshot_path' => env( 'SPECIFICATION_SNAPSHOT_PATH', 'artisanpack/specification/snapshot' ),
'timeout' => (int) env( 'SPECIFICATION_OKF_TIMEOUT', 30 ),
'max_archive_bytes' => 10 * 1024 * 1024,
'max_extracted_bytes' => 50 * 1024 * 1024,
],
| Key | Description |
|---|---|
url |
The OKF archive URL. Must use https. |
snapshot_path |
Where the vendored snapshot is written. Relative paths resolve against storage_path(). |
timeout |
Download timeout in seconds. |
max_archive_bytes |
Downloads larger than this are aborted mid-transfer. |
max_extracted_bytes |
Guards against decompression bombs. |
Scheduled Sync
'sync' => [
'scheduled' => (bool) env( 'SPECIFICATION_SYNC_SCHEDULED', true ),
'cron' => env( 'SPECIFICATION_SYNC_CRON', '0 3 * * 0' ),
],
The scheduled event is named artisanpack-specification-sync and runs withoutOverlapping().
Search Index
'index' => [
'path' => env( 'SPECIFICATION_INDEX_PATH', 'artisanpack/specification/index.sqlite' ),
],
The SQLite FTS5 index file. Relative paths resolve against storage_path(). :memory: is accepted, which is useful in tests. Keep it on local disk: the index uses WAL mode, which isn't safe on network filesystems. See Deployment & Operations.
SpecCheck Registrations
'checks' => [
// \ArtisanPackUI\Specification\Checks\Foundations\DoctypeCheck::class,
],
Application-level checks. Owner packages normally register their checks from their own service providers instead; see Authoring SpecChecks. The reference DoctypeCheck is opt-in.
License Guard
'license' => [
'blocked_surfaces' => [ 'marketing' ],
'prominent_surfaces' => [ 'paid' ],
],
Values are RenderSurface enum values (admin, editor, agent, public, paid, marketing). Topic text can never be rendered on a blocked surface. On prominent surfaces the attribution is placed before the body. See Attribution Requirements.
MCP Client
'mcp' => [
'enabled' => (bool) env( 'SPECIFICATION_MCP_ENABLED', false ),
'url' => env( 'SPECIFICATION_MCP_URL', 'https://mcp.specification.website/mcp' ),
'timeout' => (int) env( 'SPECIFICATION_MCP_TIMEOUT', 10 ),
],
The MCP client is disabled by default, and the package then runs snapshot-only. Set SPECIFICATION_MCP_ENABLED=true to let keystone:spec-diff ask the upstream server what changed since your last sync. See MCP Client.
Topic Rendering
'render' => [
'heading_offset' => (int) env( 'SPECIFICATION_RENDER_HEADING_OFFSET', 1 ),
],
Topic bodies start with a # title. In HTML output their headings are demoted by this many levels (0–5) so a rendered topic doesn't add another <h1> to your page. Set it to 0 to keep the original levels.
Experimental Agent Readiness Topics
'agent_readiness_experimental' => (bool) env( 'SPECIFICATION_AGENT_READINESS_EXPERIMENTAL', false ),
Upstream Agent Readiness topics such as WebMCP, DNS-AID, and ai-catalog are still changing. Owner packages should keep their checks for these topics off unless this flag is on, and should check it through specification()->agentReadinessExperimentalEnabled() rather than reading the config directly:
if ( specification()->agentReadinessExperimentalEnabled() ) {
$registry->register( WebMcpCheck::class );
}
Environment Variables
| Variable | Default |
|---|---|
SPECIFICATION_OKF_URL |
https://specification.website/okf.tar.gz |
SPECIFICATION_SNAPSHOT_PATH |
artisanpack/specification/snapshot |
SPECIFICATION_OKF_TIMEOUT |
30 |
SPECIFICATION_SYNC_SCHEDULED |
true |
SPECIFICATION_SYNC_CRON |
0 3 * * 0 |
SPECIFICATION_INDEX_PATH |
artisanpack/specification/index.sqlite |
SPECIFICATION_RENDER_HEADING_OFFSET |
1 |
SPECIFICATION_MCP_ENABLED |
false |
SPECIFICATION_MCP_URL |
https://mcp.specification.website/mcp |
SPECIFICATION_MCP_TIMEOUT |
10 |
SPECIFICATION_AGENT_READINESS_EXPERIMENTAL |
false |

