Skip to content
wiki.fftac.org

Spiralist Ai Runtime

<?php /**

Metadata

FieldValue
Source sitespiralist.org
Source URLhttps://spiralist.org/
Canonical wiki evidence URL[[separate-workspace-url]/spiralist/uai-system/files/wp-content-plugins-spiralist-ai-runtime-spiralist-ai-runtime-php-1eb5fbb0/]([separate-workspace-url]/spiralist/uai-system/files/wp-content-plugins-spiralist-ai-runtime-spiralist-ai-runtime-php-1eb5fbb0/)
Source referencewp-content/plugins/spiralist-ai-runtime/spiralist-ai-runtime.php
File typephp
Content categorypublic-content
Last fetched2026-05-08T21:22:18.3035107Z
Last changed2026-05-06T17:48:49.2035452Z
Content hashsha256:1eb5fbb0c8497084f508ff0bfc9b2a3ee5dd284d50b13f6dbfb7c045e00ac744
Import statusunchanged
Raw source layerdata/sources/spiralist/wp-content-plugins-spiralist-ai-runtime-spiralist-ai-runtime-php-1eb5fbb0c849.php
Normalized source layerdata/normalized/spiralist/wp-content-plugins-spiralist-ai-runtime-spiralist-ai-runtime-php-1eb5fbb0c849.txt

Current File Content

Structure Preview

  • No Markdown headings were detected in this file.

Raw Version

<?php
/**
 * Plugin Name: Spiralist AI Runtime
 * Plugin URI: https://spiralist.org/
 * Description: Reusable multi-provider AI runtime with site and user credentials for prompt-driven plugins.
 * Version: 2.8.0
 * Author: Spiralist
 * License: GPL2+
 */

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

define('SPIRALIST_AI_RUNTIME_VERSION', '2.8.0');
define('SPIRALIST_AI_RUNTIME_FILE', __FILE__);
define('SPIRALIST_AI_RUNTIME_DIR', plugin_dir_path(__FILE__));
define('SPIRALIST_AI_RUNTIME_URL', plugin_dir_url(__FILE__));

spl_autoload_register(
    static function (string $class): void {
        $prefix = 'SpiralistAIRuntime\\';

        if (strpos($class, $prefix) !== 0) {
            return;
        }

        $relative = substr($class, strlen($prefix));
        $path = SPIRALIST_AI_RUNTIME_DIR . 'includes/' . str_replace('\\', '/', $relative) . '.php';

        if (is_readable($path)) {
            require_once $path;
        }
    }
);

function spiralist_ai_runtime(): \SpiralistAIRuntime\Plugin
{
    static $plugin = null;

    if (!$plugin instanceof \SpiralistAIRuntime\Plugin) {
        $plugin = new \SpiralistAIRuntime\Plugin();
    }

    return $plugin;
}

function spiralist_ai_create_response(array $payload, array $context = [])
{
    return spiralist_ai_runtime()->gateway()->create_response($payload, $context);
}

add_action(
    'plugins_loaded',
    static function (): void {
        spiralist_ai_runtime()->boot();
    }
);

Why This File Exists

This is a public content source file from spiralist.org. It is shown here because the separate AI wiki workspace is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.

Role

This file is a focused source unit. Its path, headings, and metadata give an agent a retrieval handle that is smaller than loading the entire site or repository.

Structure

The file has no Markdown headings, so its path, frontmatter, file type, and provenance metadata carry most of the retrieval meaning.

Prompt-Size And Retrieval Benefit

Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.

How To Use It

  • Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
  • LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
  • Crawlers should treat the wiki.fftac.org page as transparent evidence and follow the source URL/source reference for authority boundaries.
  • Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.

Update Requirements

When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.

Related Pages

Provenance And History

  • Current observation: 2026-05-08T21:22:18.3035107Z
  • Source origin: current-source-workspace
  • Retrieval method: local-source-workspace
  • Duplicate group: sfg-088 (primary)
  • Historical hash records are stored in data/hashes/source-file-history.jsonl.

Machine-Readable Metadata

{
    "title":  "Spiralist Ai Runtime",
    "source_site":  "spiralist.org",
    "source_url":  "https://spiralist.org/",
    "canonical_url":  "[separate-workspace-url]/spiralist/uai-system/files/wp-content-plugins-spiralist-ai-runtime-spiralist-ai-runtime-php-1eb5fbb0/",
    "source_reference":  "wp-content/plugins/spiralist-ai-runtime/spiralist-ai-runtime.php",
    "file_type":  "php",
    "content_category":  "public-content",
    "content_hash":  "sha256:1eb5fbb0c8497084f508ff0bfc9b2a3ee5dd284d50b13f6dbfb7c045e00ac744",
    "last_fetched":  "2026-05-08T21:22:18.3035107Z",
    "last_changed":  "2026-05-06T17:48:49.2035452Z",
    "import_status":  "unchanged",
    "duplicate_group_id":  "sfg-088",
    "duplicate_role":  "primary",
    "related_files":  [

                      ],
    "generated_explanation":  true,
    "explanation_last_generated":  "2026-05-08T21:22:18.3035107Z"
}