Skip to content
wiki.fftac.org

Foundation - Source Excerpt 09

Back to Foundation

Summary

This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/plugins/fftac-foundation-core/inc/foundation.php so readers can inspect the evidence without opening the full source file.

**Source path:** Anti-Christ.org/wp-content/plugins/fftac-foundation-core/inc/foundation.php

'title'      => (string) ($timeline_entry['title'] ?? ''),
            'summary'    => (string) ($timeline_entry['summary'] ?? ''),
            'url'        => (string) ($timeline_entry['record_url'] ?? $timeline_entry['research_url'] ?? antichrist_engine_foundation_build_target_url('research', array(), 'historical-timeline')),
            'type'       => 'Timeline',
            'group'      => 'Historical Timeline',
            'meta'       => trim(implode(' / ', array_filter(array(
                $timeline_entry['record_id'] ?? '',
                $timeline_entry['year'] ?? '',
            )))),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    $projection_section_keywords = 'projection ledger failed forecasts panic script chronology repeated assignments claim history research atlas';
    $items[] = array(
        'id'         => 'research-projection-ledger',
        'title'      => __('Projection Ledger', 'antichrist-engine'),
        'summary'    => __('Flattened claim chronology for failed forecasts, reassigned villains, and recurring panic scripts.', 'antichrist-engine'),
        'url'        => antichrist_engine_foundation_build_target_url('research', array(), 'projection-ledger'),
        'type'       => 'Section',
        'group'      => 'Research Program',
        'meta'       => __('Claim history desk', 'antichrist-engine'),
        'keywords'   => $projection_section_keywords,
        'searchable' => antichrist_engine_foundation_normalize_search_text($projection_section_keywords),
    );

    foreach (antichrist_engine_foundation_get_projection_ledger_entries() as $projection) {
        $keywords = implode(' ', array(
            'projection ledger claim history failed forecast chronology',
            $projection['title'] ?? '',
            $projection['summary'] ?? '',
            $projection['period'] ?? '',
            $projection['source'] ?? '',
            $projection['status'] ?? '',
            $projection['claim_title'] ?? '',
            $projection['claim_record_id'] ?? '',
            $projection['claim_category_label'] ?? '',
            $projection['claim_verdict_label'] ?? '',
            $projection['record_id'] ?? '',
        ));

        $items[] = array(
            'id'         => (string) ($projection['anchor'] ?? 'projection-entry'),
            'title'      => (string) ($projection['title'] ?? ''),
            'summary'    => (string) ($projection['summary'] ?? ''),
            'url'        => (string) ($projection['record_url'] ?? $projection['research_url'] ?? antichrist_engine_foundation_build_target_url('research', array(), 'projection-ledger')),
            'type'       => 'Projection',
            'group'      => 'Projection Ledger',
            'meta'       => trim(implode(' / ', array_filter(array(
                $projection['record_id'] ?? '',
                $projection['claim_record_id'] ?? '',
                $projection['period'] ?? '',
            )))),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_research_command_presets() as $index => $preset) {
        $keywords = implode(' ', array(
            $preset['eyebrow'] ?? '',
            $preset['title'] ?? '',
            $preset['summary'] ?? '',
            implode(' ', array_map('strval', array_values($preset['args'] ?? array()))),
            'research command atlas dossier query filters',
        ));

        $items[] = array(
            'id'         => 'command-' . ($index + 1),
            'title'      => (string) ($preset['title'] ?? ''),
            'summary'    => (string) ($preset['summary'] ?? ''),
            'url'        => antichrist_engine_foundation_build_target_url(
                'research',
                (array) ($preset['args'] ?? array()),
                (string) ($preset['anchor'] ?? 'research-command')
            ),
            'type'       => 'Command',
            'group'      => 'Research Command',
            'meta'       => (string) ($preset['eyebrow'] ?? ''),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_get_enriched_claim_dossiers() as $claim) {
        $keywords = implode(' ', array(
            $claim['title'] ?? '',
            $claim['summary'] ?? '',
            $claim['history'] ?? '',
            $claim['diagnostic'] ?? '',
            $claim['status'] ?? '',
            $claim['keywords'] ?? '',
            $claim['record_id'] ?? '',
            implode(' ', array_map(static function ($source_reference) {
                return (string) ($source_reference['record_id'] ?? '');
            }, (array) ($claim['source_references'] ?? array()))),
        ));

        $items[] = array(
            'id'         => (string) ($claim['anchor'] ?? 'claim'),
            'title'      => (string) ($claim['title'] ?? ''),
            'summary'    => (string) ($claim['summary'] ?? ''),
            'url'        => (string) ($claim['record_url'] ?? $claim['research_url'] ?? antichrist_engine_foundation_build_target_url('research', array(), (string) ($claim['anchor'] ?? 'claim-index'))),
            'type'       => 'Claim',
            'group'      => 'Fact-Check',
            'meta'       => (string) ($claim['record_id'] ?? ''),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_get_research_api_sources() as $source) {
        $keywords = implode(' ', array(
            $source['title'] ?? '',
            $source['publisher'] ?? '',
            $source['group'] ?? '',
            $source['note'] ?? '',
            $source['record_id'] ?? '',
        ));

        $items[] = array(
            'id'         => (string) ($source['anchor'] ?? ('source-' . ($source['key'] ?? 'source'))),
            'title'      => (string) ($source['title'] ?? ''),
            'summary'    => (string) ($source['note'] ?? ''),
            'url'        => (string) ($source['record_url'] ?? $source['research_url'] ?? antichrist_engine_foundation_build_target_url('research', array(), 'source-' . ($source['key'] ?? 'source'))),
            'type'       => 'Source',
            'group'      => (string) ($source['group'] ?? 'Source Library'),
            'meta'       => (string) ($source['record_id'] ?? ''),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_get_research_export_downloads() as $download) {
        $keywords = implode(' ', array(
            $download['title'] ?? '',
            $download['summary'] ?? '',
            $download['format_label'] ?? '',
            $download['meta'] ?? '',
            $download['slug'] ?? '',
            'research export claims timeline sources records provenance csv ndjson txt download dataset',
        ));

        $items[] = array(
            'id'         => 'research-export-' . sanitize_key((string) ($download['slug'] ?? 'export')),
            'title'      => (string) ($download['title'] ?? ''),
            'summary'    => (string) ($download['summary'] ?? ''),
            'url'        => (string) ($download['url'] ?? ''),
            'type'       => 'Export',
            'group'      => 'Research Exports',
            'meta'       => trim(implode(' / ', array_filter(array(
                $download['format_label'] ?? '',
                $download['meta'] ?? '',
            )))),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_publication_series() as $slug => $track) {
        $keywords = implode(' ', array(
            $track['name'] ?? '',
            $track['description'] ?? '',
            $track['classification'] ?? '',
        ));

        $items[] = array(
            'id'         => 'series-' . $slug,
            'title'      => (string) ($track['name'] ?? $slug),
            'summary'    => (string) ($track['description'] ?? ''),
            'url'        => add_query_arg('track', $slug, antichrist_engine_foundation_get_page_url('journal')),
            'type'       => 'Series',
            'group'      => 'Journal Track',
            'meta'       => (string) ($track['classification'] ?? ''),
            'keywords'   => $keywords,