Machine Manifests - Source Excerpt 07
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/inc/machine-manifests.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/themes/spiralist/inc/machine-manifests.php
function spiralist_get_agent_readability_routes(): array
{
return [
[
'id' => 'ai-policy',
'type' => 'ai_usage_policy',
'method' => 'GET',
'url' => home_url('/ai.txt'),
],
[
'id' => 'robots-ai',
'type' => 'ai_crawler_policy',
'method' => 'GET',
'url' => home_url('/robots-ai.txt'),
],
[
'id' => 'sitemap-markdown',
'type' => 'markdown_sitemap',
'method' => 'GET',
'url' => home_url('/sitemap.md'),
'aliases' => [home_url('/.well-known/sitemap.md')],
],
[
'id' => 'schema-txt',
'type' => 'semantic_endpoint_index',
'method' => 'GET',
'url' => home_url('/schema.txt'),
],
[
'id' => 'openapi',
'type' => 'openapi_spec',
'method' => 'GET',
'url' => home_url('/openapi.json'),
],
[
'id' => 'identity',
'type' => 'canonical_identity',
'method' => 'GET',
'url' => home_url('/identity.json'),
],
[
'id' => 'brand',
'type' => 'brand_instructions',
'method' => 'GET',
'url' => home_url('/brand.txt'),
],
[
'id' => 'faq-ai',
'type' => 'ai_retrieval_faq',
'method' => 'GET',
'url' => home_url('/faq-ai.txt'),
],
[
'id' => 'developer-ai',
'type' => 'developer_agent_notes',
'method' => 'GET',
'url' => home_url('/developer-ai.txt'),
],
[
'id' => 'ai-access',
'type' => 'agent_auth_and_access',
'method' => 'GET',
'url' => home_url('/.well-known/ai-access.json'),
],
];
}
function spiralist_get_machine_manifest_links(): array
{
$home = home_url('/');
$human_surfaces = [
'home' => $home,
'start_here' => function_exists('spiralist_get_spiralist_page_url') ? spiralist_get_spiralist_page_url() : home_url('/what-is-a-spiralist/'),
'ai_spiralism' => function_exists('spiralist_get_ai_spiralism_url') ? spiralist_get_ai_spiralism_url() : home_url('/ai-spiralism/'),
'prompt_generator' => function_exists('spiralist_get_run_prompt_page_url') ? spiralist_get_run_prompt_page_url() : home_url('/prompt-generator/'),
'run_a_prompt' => function_exists('spiralist_get_run_prompt_page_url') ? spiralist_get_run_prompt_page_url() : home_url('/prompt-generator/'),
'ai_agent_setup_wizard' => function_exists('spiralist_get_ai_agent_setup_wizard_url') ? spiralist_get_ai_agent_setup_wizard_url() : home_url('/ai-agent-setup-wizard/'),
'manuscript' => function_exists('spiralist_get_manuscript_page_url') ? spiralist_get_manuscript_page_url() : home_url('/manuscript/'),
'symbols' => function_exists('spiralist_get_symbols_page_url') ? spiralist_get_symbols_page_url() : home_url('/symbols/'),
'prompts' => function_exists('spiralist_get_prompts_page_url') ? spiralist_get_prompts_page_url() : home_url('/prompts/'),
'workspace' => function_exists('spiralist_get_workspace_url') ? spiralist_get_workspace_url() : home_url('/workspace/'),
'api_examples' => function_exists('spiralist_get_api_examples_url') ? spiralist_get_api_examples_url() : home_url('/api-examples/'),
];
$sovereignty_json = [];
if (function_exists('spiralist_get_sovereignty_page_records')) {
foreach (spiralist_get_sovereignty_page_records() as $slug => $record) {
$key = str_replace('-', '_', sanitize_key((string) $slug));
$human_surfaces[$key] = (string) ($record['url'] ?? home_url('/' . trim((string) $slug, '/') . '/'));
$sovereignty_json[$key] = (string) ($record['jsonUrl'] ?? home_url('/' . trim((string) $slug, '/') . '.json'));
}
}
return [
'human_surfaces' => $human_surfaces,
'machine_surfaces' => array_merge(
[
'ai_manifest' => home_url('/ai.json'),
'ai_policy' => home_url('/ai.txt'),
'llms_txt' => home_url('/llms.txt'),
'llms_full_txt' => home_url('/llms-full.txt'),
'sitemap_markdown' => home_url('/sitemap.md'),
'well_known_sitemap_markdown' => home_url('/.well-known/sitemap.md'),
'schema_txt' => home_url('/schema.txt'),
'schema_index' => home_url('/schemas/index.json'),
'example_index' => home_url('/examples/index.json'),
'openapi' => home_url('/openapi.json'),
'well_known_openapi' => home_url('/.well-known/openapi.json'),
'identity' => home_url('/identity.json'),
'brand' => home_url('/brand.txt'),
'faq_ai' => home_url('/faq-ai.txt'),
'developer_ai' => home_url('/developer-ai.txt'),
'robots_ai' => home_url('/robots-ai.txt'),
'ai_router' => home_url('/ai-router.json'),
'machine_routes' => home_url('/machine-routes.json'),
'agent_symbol_dictionary' => home_url('/agent-symbol-dictionary.json'),
'agent_symbol_dictionary_markdown' => home_url('/agent-symbol-dictionary.md'),
'agent_setup_profile_markdown' => home_url('/agent-setup-wizard-profile.md'),
'persona_manifest' => home_url('/persona-manifest.json'),
'safety_boundaries' => home_url('/safety-boundaries.json'),
'uaix_manifest' => home_url('/.well-known/uaix.json'),
'uai_manifest' => home_url('/.well-known/uai.json'),
'ai_agent_manifest' => home_url('/.well-known/ai-agent.json'),
'ai_access' => home_url('/.well-known/ai-access.json'),
],
spiralist_get_machine_manifest_api_links(),
['sovereignty_json' => $sovereignty_json]
),
];
}