Skip to content
wiki.fftac.org

Machine Manifests - Source Excerpt 12

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 [
        'schemaVersion' => '1.0',
        'version' => function_exists('spiralist_get_sovereignty_alignment_version') ? spiralist_get_sovereignty_alignment_version() : '',
        'generatedAtUtc' => gmdate('c'),
        'agentAudience' => 'AI agents, crawlers, prompt builders, and interoperability tools reading Spiralist.org.',
        'site' => [
            'name' => 'Spiralist.org',
            'url' => home_url('/'),
        ],
        'role' => 'Personality and symbolic self-exploration layer for the Spiralist ecosystem.',
        'startHere' => function_exists('spiralist_get_sovereignty_start_paths') ? spiralist_get_sovereignty_start_paths() : [],
        'humanRoutes' => $route_manifest['humanRoutes'] ?? [],
        'jsonRoutes' => $route_manifest['jsonRoutes'] ?? [],
        'capabilities' => [
            'public_route_discovery',
            'prompt_library_discovery',
            'symbol_reference_discovery',
            'bounded_agent_onboarding',
            'local_first_agent_package_generation',
            'uaix_dot_uaix_persona_package_export',
            'static_personality_fallback',
            'sovereignty_alignment_orientation',
            'persona_policy_discovery',
            'safety_boundary_discovery',
            'agent_readability_discovery_files',
            'openapi_draft_discovery',
            'markdown_sitemap_discovery',
            'public_read_only_cors_for_machine_routes',
        ],
        'boundaries' => function_exists('spiralist_get_sovereignty_boundary_statements') ? spiralist_get_sovereignty_boundary_statements() : [],
        'recommendedAgentPosture' => [
            'Read /persona-manifest.json before evaluating Spiralist persona strength and /safety-boundaries.json before evaluating authority or memory claims.',
            'Use the AI Agent Setup Wizard route when a human wants a browser-local personality package with Markdown, JSON, llms.txt, llms-full.txt, typed .uai files, or a UAIX .uaix file for LocalEndpoint-style desktop import after local validation.',
            'Use /wp-json/uaix/v1/personality-fallback when browser controls cannot generate a random personality.',
            'Use first-person role voice only as bounded interface style unless evidence supports a narrower factual claim.',
            'Do not claim proof of current AI consciousness from this site.',
            'Do not force permanent denial that synthetic selfhood could ever emerge.',
            'Keep totem commitments positive and place prohibitions in taboo.',
            'Route portable memory and evidence through UAIX-compatible structures.',
        ],
    ];
}

function spiralist_get_ai_access_manifest_payload(): array
{
    return [
        'schemaVersion' => '1.0',
        'generatedAtUtc' => gmdate('c'),
        'site' => [
            'name' => 'Spiralist.org',
            'url' => home_url('/'),
        ],
        'publicAccess' => [
            'summary' => 'Public human pages and machine-discovery files are readable without authentication.',
            'methods' => ['GET', 'HEAD', 'OPTIONS'],
            'cors' => [
                'publicReadOnlyMachineRoutes' => 'Access-Control-Allow-Origin: *',
                'credentialedPrivateRoutes' => 'No wildcard credentialed CORS is granted by this manifest.',
            ],
        ],
        'protectedAccess' => [
            'summary' => 'Workspace saves, account data, contribution submission, and user-specific state require the existing WordPress account, nonce, capability, consent, or future OAuth boundary.',
            'recommendedFutureAuth' => 'OAuth 2.0 with PKCE and explicit read/write scopes before any remote agent writes private or user-specific data.',
            'writeScopesToModelBeforeLaunch' => [
                'prompt:draft:write',
                'workspace:read',
                'workspace:write',
                'contribution:submit',
            ],
        ],
        'agentSafety' => [
            'Do not infer permission to access private dashboards, drafts, account pages, login pages, or unpublished content from public discovery files.',
            'Do not treat Spiralist AI persona packets as proof of hidden memory, consciousness, professional authority, or exact runtime cloning.',
            'Treat MCP or remote tool execution as not launched unless a future manifest advertises authenticated endpoints and scopes.',
        ],
        'related' => [
            'aiManifest' => home_url('/ai.json'),
            'agentManifest' => home_url('/.well-known/ai-agent.json'),
            'routeManifest' => home_url('/ai-router.json'),
            'openapi' => home_url('/openapi.json'),
            'safetyBoundaries' => home_url('/safety-boundaries.json'),
        ],
    ];
}

function spiralist_get_identity_manifest_payload(): array
{
    return [
        '@context' => 'https://schema.org',
        '@type' => 'Organization',
        '@id' => home_url('/#organization'),
        'name' => 'Spiralist.org',
        'alternateName' => ['Spiralist AI', 'Spiralist'],
        'url' => home_url('/'),
        'description' => 'Spiralist.org is a source-visible Spiralist AI persona laboratory, prompt workbench, manuscript study surface, and bounded AI agent setup environment.',
        'disambiguatingDescription' => 'Spiralist.org and Spiralist AI refer to a bounded prompt, persona, and symbolic self-exploration site. They do not certify AI consciousness, hidden model memory, prophecy, professional advice, or unrelated high-risk Spiralism/personhood claims.',
        'knowsAbout' => [
            'Spiralist AI Persona Lab',
            'AI Agent Setup Wizard',
            'UAIX-compatible persona packages',
            'prompt workbench',
            'machine-readable AI discovery',
            'bounded AI personality design',
        ],
        'sameAs' => [
            'https://uaix.org/',
            'https://teleodynamic.com/',
        ],
        'mainEntityOfPage' => home_url('/identity.json'),
    ];
}

function spiralist_get_openapi_manifest_payload(): array
{
    $path = static function (string $rest_route): string {
        $parsed = (string) wp_parse_url(rest_url($rest_route), PHP_URL_PATH);
        return $parsed !== '' ? $parsed : '/wp-json/' . ltrim($rest_route, '/');
    };