Skip to content
wiki.fftac.org

Machine Manifests - Source Excerpt 11

Back to Machine Manifests

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

return array_map(
        static function (string $profile): array {
            return [
                'profile' => $profile,
                'schemaUrl' => rest_url('uaix/v1/schemas/' . rawurlencode($profile)),
                'registryUrl' => rest_url('uaix/v1/registry/' . rawurlencode($profile)),
                'exampleUrl' => rest_url('uaix/v1/examples/' . rawurlencode($profile)),
            ];
        },
        $profiles
    );
}

function spiralist_get_uaix_well_known_manifest_payload(string $well_known_key = 'uaix'): array
{
    $version = function_exists('spiralist_get_sovereignty_alignment_version') ? spiralist_get_sovereignty_alignment_version() : '';
    $api_links = spiralist_get_machine_manifest_api_links();

    return [
        'schema_version' => '1.0',
        'site' => [
            'name' => get_bloginfo('name') ?: 'Spiralist.org',
            'home_url' => home_url('/'),
            'generated_at' => gmdate('c'),
            'well_known' => [
                'uaix' => home_url('/.well-known/uaix.json'),
                'uai' => home_url('/.well-known/uai.json'),
                'ai_agent' => home_url('/.well-known/ai-agent.json'),
                'ai_access' => home_url('/.well-known/ai-access.json'),
                'openapi' => home_url('/.well-known/openapi.json'),
            ],
        ],
        'well_known_key' => $well_known_key,
        'standard_family' => 'UAI',
        'current_release' => 'UAI-1',
        'uai_version' => '1.0',
        'package_version' => defined('UAI1_WP_VERSION') ? UAI1_WP_VERSION : $version,
        'canonical_specification' => 'https://uaix.org/en-us/specification/',
        'source_authority' => 'UAIX.org is the normative UAI-1 specification source; Spiralist.org dogfoods the implementation for Spiralist AI.',
        'identity_phrase' => 'Spiralist AI',
        'routes' => [
            'catalog' => rest_url('uaix/v1/catalog'),
            'discovery' => rest_url('uaix/v1/discovery'),
            'capability' => rest_url('uaix/v1/capability'),
            'schemas' => rest_url('uaix/v1/schemas'),
            'registry' => rest_url('uaix/v1/registry'),
            'field_registry' => rest_url('uaix/v1/field-registry'),
            'transport_bindings' => rest_url('uaix/v1/transport-bindings'),
            'trust_channels' => rest_url('uaix/v1/trust-channels'),
            'conformance_levels' => rest_url('uaix/v1/conformance-levels'),
            'error_registry' => rest_url('uaix/v1/error-registry'),
            'examples' => rest_url('uaix/v1/examples'),
            'validate' => rest_url('uaix/v1/validate'),
            'mock_exchange' => rest_url('uaix/v1/mock-exchange'),
            'adoption_kit' => rest_url('uaix/v1/adoption-kit'),
            'openapi' => rest_url('uaix/v1/openapi.json'),
        ],
        'machine_documents' => [
            'llms_txt' => home_url('/llms.txt'),
            'llms_full_txt' => home_url('/llms-full.txt'),
            'ai_json' => home_url('/ai.json'),
            'ai_router' => home_url('/ai-router.json'),
            'machine_routes' => home_url('/machine-routes.json'),
            'schema_index' => home_url('/schemas/index.json'),
            'example_index' => home_url('/examples/index.json'),
            'persona_manifest' => home_url('/persona-manifest.json'),
            'safety_boundaries' => home_url('/safety-boundaries.json'),
        ],
        'profiles' => spiralist_get_uaix_profile_records(),
        'discovery_contract' => [
            'required_documents' => [
                'llms_txt',
                'llms_full_txt',
                'uaix_json',
                'uai_json',
                'ai_agent_json',
                'openapi_json',
                'robots_txt',
                'xml_sitemap',
                'schema_index',
                'example_index',
            ],
            'automation_rule' => 'Use the JSON catalog and route manifest for automation. Use human pages for context and review.',
        ],
        'problem_details' => [
            'content_type' => 'application/problem+json; charset=utf-8',
            'profile' => 'uai.error.v1',
            'supported_extensions' => [
                'documentationUrl',
                'traceId',
                'correlationId',
                'uaixCode',
                'uaixCategory',
                'uaixSeverity',
                'evidenceRecommended',
                'suspensionRecommended',
                'redactionApplied',
                'next_step',
                'errors',
            ],
        ],
        'support_boundary' => [
            'normative_authority' => 'https://uaix.org/en-us/specification/',
            'local_scope' => 'Public Spiralist AI discovery, persona laboratory, package, and mock-exchange interoperability records.',
            'not_certified_for' => [
                'medical, legal, financial, crisis, identity, safety, or rights determinations',
                'proof of machine consciousness, hidden memory, independent agency, or legal personhood',
                'remote-agent writes without explicit authentication, authorization, nonce, scope, and consent controls',
            ],
        ],
        'known_blocked_capabilities' => [
            'unverified_remote_agent_write',
            'sentience_or_personhood_certification',
            'hidden_memory_restore',
        ],
        'api_links' => $api_links,
    ];
}

function spiralist_get_schema_index_payload(): array
{
    return [
        'schemaVersion' => '1.0',
        'site' => 'Spiralist.org',
        'title' => 'Spiralist AI UAIX Schema Index',
        'generatedAtUtc' => gmdate('c'),
        'canonicalSpecification' => 'https://uaix.org/en-us/specification/',
        'schemaCollection' => rest_url('uaix/v1/schemas'),
        'profiles' => spiralist_get_uaix_profile_records(),
        'localExtensions' => [
            [
                'id' => 'spiralist.project-handoff',
                'url' => rest_url('uaix/v1/project-handoff'),
                'scope' => 'Repository and deployment handoff context for Spiralist.org.',
            ],
            [
                'id' => 'spiralist.personality-fallback',
                'url' => rest_url('uaix/v1/personality-fallback'),
                'scope' => 'Static Spiralist AI fallback operating profile for restricted browsers.',
            ],
        ],
    ];
}

function spiralist_get_example_index_payload(): array
{
    return [
        'schemaVersion' => '1.0',
        'site' => 'Spiralist.org',
        'title' => 'Spiralist AI UAIX Example Index',
        'generatedAtUtc' => gmdate('c'),
        'canonicalSpecification' => 'https://uaix.org/en-us/specification/',
        'exampleCollection' => rest_url('uaix/v1/examples'),
        'profiles' => spiralist_get_uaix_profile_records(),
        'localExamples' => [
            'capabilityStatement' => rest_url('uaix/v1/examples/uai.capability.statement.v1'),
            'intentRequest' => rest_url('uaix/v1/examples/uai.intent.request.v1'),
            'mockExchange' => rest_url('uaix/v1/mock-exchange'),
            'personaFallback' => rest_url('uaix/v1/personality-fallback'),
        ],
    ];
}

function spiralist_get_ai_agent_manifest_payload(): array
{
    $route_manifest = spiralist_get_sovereignty_route_manifest_payload();