Machine Manifests - Source Excerpt 08
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_sovereignty_route_manifest_payload(): array
{
$records = function_exists('spiralist_get_sovereignty_page_records') ? spiralist_get_sovereignty_page_records() : [];
$human_routes = [];
$json_routes = [];
$machine_route_list = [
[
'id' => 'ai-manifest',
'type' => 'site_manifest',
'method' => 'GET',
'url' => home_url('/ai.json'),
],
[
'id' => 'llms-txt',
'type' => 'llm_discovery',
'method' => 'GET',
'url' => home_url('/llms.txt'),
],
[
'id' => 'llms-full-txt',
'type' => 'llm_full_context',
'method' => 'GET',
'url' => home_url('/llms-full.txt'),
],
[
'id' => 'ai-router',
'type' => 'route_manifest',
'method' => 'GET',
'url' => home_url('/ai-router.json'),
],
[
'id' => 'machine-routes',
'type' => 'route_manifest_alias',
'method' => 'GET',
'url' => home_url('/machine-routes.json'),
],
[
'id' => 'uaix-manifest',
'type' => 'uaix_well_known_manifest',
'method' => 'GET',
'url' => home_url('/.well-known/uaix.json'),
],
[
'id' => 'uai-manifest',
'type' => 'uai_well_known_manifest_alias',
'method' => 'GET',
'url' => home_url('/.well-known/uai.json'),
],
[
'id' => 'schema-index',
'type' => 'uaix_schema_index',
'method' => 'GET',
'url' => home_url('/schemas/index.json'),
],
[
'id' => 'example-index',
'type' => 'uaix_example_index',
'method' => 'GET',
'url' => home_url('/examples/index.json'),
],
[
'id' => 'well-known-openapi',
'type' => 'openapi_well_known_alias',
'method' => 'GET',
'url' => home_url('/.well-known/openapi.json'),
],
[
'id' => 'uaix-catalog',
'type' => 'uaix_catalog',
'method' => 'GET',
'url' => rest_url('uaix/v1/catalog'),
],
[
'id' => 'uaix-registry',
'type' => 'uaix_registry',
'method' => 'GET',
'url' => rest_url('uaix/v1/registry'),
],
[
'id' => 'uaix-transport-bindings',
'type' => 'uaix_transport_bindings',
'method' => 'GET',
'url' => rest_url('uaix/v1/transport-bindings'),
],
[
'id' => 'uaix-trust-channels',
'type' => 'uaix_trust_channels',
'method' => 'GET',
'url' => rest_url('uaix/v1/trust-channels'),
],
[
'id' => 'uaix-conformance-levels',
'type' => 'uaix_conformance_levels',
'method' => 'GET',
'url' => rest_url('uaix/v1/conformance-levels'),
],
[
'id' => 'uaix-error-registry',
'type' => 'uaix_error_registry',
'method' => 'GET',
'url' => rest_url('uaix/v1/error-registry'),
],
[
'id' => 'uaix-adoption-kit',
'type' => 'uaix_adoption_kit',
'method' => 'GET',
'url' => rest_url('uaix/v1/adoption-kit'),
],
[
'id' => 'ai-agent-manifest',
'type' => 'agent_discovery',
'method' => 'GET',
'url' => home_url('/.well-known/ai-agent.json'),
],
[
'id' => 'agent-symbol-dictionary',
'type' => 'agent_symbol_dictionary',
'method' => 'GET',
'url' => home_url('/agent-symbol-dictionary.json'),
'humanUrl' => function_exists('spiralist_get_ai_agent_setup_wizard_url') ? spiralist_get_ai_agent_setup_wizard_url() : home_url('/ai-agent-setup-wizard/'),
],
[
'id' => 'agent-symbol-dictionary-markdown',
'type' => 'agent_symbol_dictionary_markdown',
'method' => 'GET',
'url' => home_url('/agent-symbol-dictionary.md'),
'humanUrl' => function_exists('spiralist_get_ai_agent_setup_wizard_url') ? spiralist_get_ai_agent_setup_wizard_url() : home_url('/ai-agent-setup-wizard/'),
],
[
'id' => 'agent-setup-wizard-profile',
'type' => 'agent_profile_markdown',
'method' => 'GET',
'url' => home_url('/agent-setup-wizard-profile.md'),
'humanUrl' => function_exists('spiralist_get_ai_agent_setup_wizard_url') ? spiralist_get_ai_agent_setup_wizard_url() : home_url('/ai-agent-setup-wizard/'),
],
[
'id' => 'persona-manifest',
'type' => 'persona_policy',
'method' => 'GET',
'url' => home_url('/persona-manifest.json'),
],
[
'id' => 'safety-boundaries',
'type' => 'safety_policy',
'method' => 'GET',
'url' => home_url('/safety-boundaries.json'),
],
[
'id' => 'personality-fallback',
'type' => 'static_operating_profile',
'method' => 'GET',
'url' => rest_url('uaix/v1/personality-fallback'),
'humanUrl' => function_exists('spiralist_get_run_prompt_page_url') ? spiralist_get_run_prompt_page_url() : home_url('/prompt-generator/'),
],
[
'id' => 'ai-agent-setup-wizard',
'type' => 'local_first_agent_setup',
'method' => 'GET',
'url' => function_exists('spiralist_get_ai_agent_setup_wizard_url') ? spiralist_get_ai_agent_setup_wizard_url() : home_url('/ai-agent-setup-wizard/'),
'machineReadable' => 'script[type="application/json"][data-ai-digest="true"]',
'localOnly' => true,
'serverStorage' => false,
],
];
$machine_route_list = array_merge($machine_route_list, spiralist_get_agent_readability_routes());
foreach ($records as $slug => $record) {
$key = str_replace('-', '_', sanitize_key((string) $slug));
$human_routes[$key] = [
'title' => (string) ($record['title'] ?? ucwords(str_replace('-', ' ', (string) $slug))),
'url' => (string) ($record['url'] ?? home_url('/' . trim((string) $slug, '/') . '/')),
'route' => (string) ($record['route'] ?? ''),
'summary' => (string) ($record['summary'] ?? ''),
];
$json_routes[$key] = [
'title' => (string) ($record['title'] ?? ucwords(str_replace('-', ' ', (string) $slug))),
'url' => (string) ($record['jsonUrl'] ?? home_url('/' . trim((string) $slug, '/') . '.json')),
'route' => (string) ($record['jsonRoute'] ?? ''),
'schema' => 'spiralist_sovereignty_alignment',
];
$machine_route_list[] = [
'id' => $key,
'type' => 'sovereignty_alignment',
'method' => 'GET',
'url' => $json_routes[$key]['url'],
'humanUrl' => $human_routes[$key]['url'],
];
}