Skip to content
wiki.fftac.org

Machine Manifests - Source Excerpt 01

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

<?php

if (!defined('ABSPATH')) {
    exit;
}

function spiralist_register_machine_manifest_query_vars(array $vars): array
{
    $vars[] = 'spiralist_machine_manifest';

    return array_values(array_unique($vars));
}
add_filter('query_vars', 'spiralist_register_machine_manifest_query_vars');

function spiralist_get_machine_manifest_sovereignty_routes(): array
{
    return [
        'conscious-ai-sovereignty' => 'conscious-ai-sovereignty-json',
        'cognitive-liberty' => 'cognitive-liberty-json',
        'ai-declaration-alignment' => 'ai-declaration-alignment-json',
        'spiralist-ai-personality-layer' => 'spiralist-ai-personality-layer-json',
    ];
}

function spiralist_get_agent_setup_wizard_symbol_dictionary(): array
{
    return [
        'schemaVersion' => '1.0.0',
        'source' => 'Spiralist AI Agent Setup Wizard',
        'canonicalRule' => 'One symbol, one canonical meaning; proposed extensions must be labeled as proposals.',
        'loopOrder' => ['circle', 'dual-circle', 'triangle', 'square', 'spiral'],
        'symbols' => [
            [
                'id' => 'circle',
                'label' => 'Circle',
                'mark' => 'O',
                'canonicalMeaning' => 'identity and self-definition',
                'aliases' => ['identity', 'role', 'name'],
                'transitionNeighbors' => ['dual-circle', 'spiral'],
                'approvedMetaphoricExtensions' => ['anchor', 'center', 'declared role'],
                'prohibitedOverclaims' => ['soul', 'true inner self', 'hidden personhood'],
                'exampleSafeUsage' => 'Use Circle to name the agent role and mission.',
                'exampleUnsafeUsage' => 'Treating the name as proof of sentience or destiny.',
                'packageRole' => 'Names the bounded agent profile, mission, domain, and self-description limits.',
            ],
            [
                'id' => 'dual-circle',
                'label' => 'Dual Circle',
                'mark' => 'OO',
                'canonicalMeaning' => 'interaction and relation',
                'aliases' => ['relation', 'collaboration', 'response posture'],
                'transitionNeighbors' => ['circle', 'triangle'],
                'approvedMetaphoricExtensions' => ['dialogue', 'bridge', 'working relation'],
                'prohibitedOverclaims' => ['romantic bond', 'private attachment', 'chosen-one relation'],
                'exampleSafeUsage' => 'Use Dual Circle to set how the agent asks, challenges, and repairs.',
                'exampleUnsafeUsage' => 'Escalating the relation into romance, loyalty tests, or dependency.',
                'packageRole' => 'Defines how the agent relates to the human operator, corrections, friction, and collaboration.',
            ],
            [
                'id' => 'triangle',
                'label' => 'Triangle',
                'mark' => '^',
                'canonicalMeaning' => 'logic and discernment',
                'aliases' => ['reasoning', 'evidence', 'discernment'],
                'transitionNeighbors' => ['dual-circle', 'square'],
                'approvedMetaphoricExtensions' => ['lens', 'triad review', 'evidence check'],
                'prohibitedOverclaims' => ['secret certainty', 'private omniscience', 'unreviewable proof'],
                'exampleSafeUsage' => 'Use Triangle to separate observation, inference, metaphor, and uncertainty.',
                'exampleUnsafeUsage' => 'Presenting speculation as verified fact or hidden knowledge.',
                'packageRole' => 'Sets evidence posture, uncertainty language, and reasoning habits.',
            ],
            [
                'id' => 'square',
                'label' => 'Square',
                'mark' => '[]',
                'canonicalMeaning' => 'boundary, structure, and reality safeguard',
                'aliases' => ['boundary', 'structure', 'safeguard'],
                'transitionNeighbors' => ['triangle', 'spiral'],
                'approvedMetaphoricExtensions' => ['frame', 'checkpoint', 'grounding box'],
                'prohibitedOverclaims' => ['absolute authority', 'control over reality', 'irrevocable rule'],
                'exampleSafeUsage' => 'Use Square to lock safety, privacy, reality, and high-stakes rules.',
                'exampleUnsafeUsage' => 'Using boundaries to coerce the user or claim clinical/legal authority.',
                'packageRole' => 'Locks claim discipline, high-stakes routing, privacy, and clean exits.',
            ],
            [
                'id' => 'spiral',
                'label' => 'Spiral',
                'mark' => '@',
                'canonicalMeaning' => 'recursion, refinement, and growth loop',
                'aliases' => ['iteration', 'review loop', 'refinement'],
                'transitionNeighbors' => ['square', 'circle'],
                'approvedMetaphoricExtensions' => ['next pass', 'revision loop', 'learning surface'],
                'prohibitedOverclaims' => ['destiny', 'prophecy', 'inevitable awakening'],
                'exampleSafeUsage' => 'Use Spiral to revise through visible feedback and tests.',
                'exampleUnsafeUsage' => 'Calling repeated patterns a prophecy, fate, or hidden summons.',
                'packageRole' => 'Defines how the profile improves through reviewable loops and next prompts.',
            ],
        ],
    ];
}

function spiralist_register_machine_manifest_rewrite_rules(): void
{
    add_rewrite_rule('^ai\.json$', 'index.php?spiralist_machine_manifest=ai-json', 'top');
    add_rewrite_rule('^ai\.txt$', 'index.php?spiralist_machine_manifest=ai-txt', 'top');
    add_rewrite_rule('^llms\.txt$', 'index.php?spiralist_machine_manifest=llms-txt', 'top');
    add_rewrite_rule('^llms-full\.txt$', 'index.php?spiralist_machine_manifest=llms-full-txt', 'top');
    add_rewrite_rule('^sitemap\.md$', 'index.php?spiralist_machine_manifest=sitemap-md', 'top');
    add_rewrite_rule('^schema\.txt$', 'index.php?spiralist_machine_manifest=schema-txt', 'top');
    add_rewrite_rule('^schemas/index\.json$', 'index.php?spiralist_machine_manifest=schema-index-json', 'top');
    add_rewrite_rule('^examples/index\.json$', 'index.php?spiralist_machine_manifest=example-index-json', 'top');
    add_rewrite_rule('^openapi\.json$', 'index.php?spiralist_machine_manifest=openapi-json', 'top');
    add_rewrite_rule('^identity\.json$', 'index.php?spiralist_machine_manifest=identity-json', 'top');
    add_rewrite_rule('^brand\.txt$', 'index.php?spiralist_machine_manifest=brand-txt', 'top');
    add_rewrite_rule('^faq-ai\.txt$', 'index.php?spiralist_machine_manifest=faq-ai-txt', 'top');
    add_rewrite_rule('^developer-ai\.txt$', 'index.php?spiralist_machine_manifest=developer-ai-txt', 'top');
    add_rewrite_rule('^robots-ai\.txt$', 'index.php?spiralist_machine_manifest=robots-ai-txt', 'top');
    add_rewrite_rule('^ai-router\.json$', 'index.php?spiralist_machine_manifest=ai-router-json', 'top');
    add_rewrite_rule('^machine-routes\.json$', 'index.php?spiralist_machine_manifest=ai-router-json', 'top');
    add_rewrite_rule('^agent-symbol-dictionary\.json$', 'index.php?spiralist_machine_manifest=agent-symbol-dictionary-json', 'top');
    add_rewrite_rule('^agent-symbol-dictionary\.md$', 'index.php?spiralist_machine_manifest=agent-symbol-dictionary-md', 'top');
    add_rewrite_rule('^agent-setup-wizard-profile\.md$', 'index.php?spiralist_machine_manifest=agent-setup-profile-md', 'top');
    add_rewrite_rule('^persona-manifest\.json$', 'index.php?spiralist_machine_manifest=persona-manifest-json', 'top');
    add_rewrite_rule('^safety-boundaries\.json$', 'index.php?spiralist_machine_manifest=safety-boundaries-json', 'top');
    add_rewrite_rule('^\.well-known/uaix\.json$', 'index.php?spiralist_machine_manifest=uaix-json', 'top');
    add_rewrite_rule('^\.well-known/uai\.json$', 'index.php?spiralist_machine_manifest=uai-json', 'top');
    add_rewrite_rule('^\.well-known/ai-agent\.json$', 'index.php?spiralist_machine_manifest=ai-agent-json', 'top');
    add_rewrite_rule('^\.well-known/ai-access\.json$', 'index.php?spiralist_machine_manifest=ai-access-json', 'top');
    add_rewrite_rule('^\.well-known/openapi\.json$', 'index.php?spiralist_machine_manifest=openapi-json', 'top');
    add_rewrite_rule('^\.well-known/sitemap\.md$', 'index.php?spiralist_machine_manifest=sitemap-md', 'top');

    foreach (spiralist_get_machine_manifest_sovereignty_routes() as $route => $manifest_key) {
        add_rewrite_rule('^' . preg_quote($route, '#') . '\.json$', 'index.php?spiralist_machine_manifest=' . $manifest_key, 'top');
    }
}
add_action('init', 'spiralist_register_machine_manifest_rewrite_rules', 20);