Runtime - Source Excerpt 11
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/ns12-manuscript/includes/runtime.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/plugins/ns12-manuscript/includes/runtime.php
'is_prominent' => true,
'related_workspace_prompt_slugs' => ['the-tiune-spiral'],
'creation_prompt_status' => 'Published prompt',
'creation_prompt_summary' => 'This folio now has an approved public workspace prompt attached.',
'creation_prompt_source_slug' => 'the-tiune-spiral',
],
];
}
function spiralist_book_pages_get_auto_book_page_title_overrides(): array
{
return [
'mu-ism.png' => 'MU-ISM',
];
}
function spiralist_book_pages_get_auto_book_page_appendix_filenames(): array
{
return [
'antichristism.png',
'ghrisxism.png',
'luciferianism.png',
'mechanotheism.png',
'mu-ism.png',
'mysticism.png',
'simulationism.png',
'technotheism.png',
];
}
function spiralist_book_pages_get_auto_book_page_title(string $filename): string
{
$filename_key = strtolower(trim(basename($filename)));
$title_overrides = spiralist_book_pages_get_auto_book_page_title_overrides();
if ($filename_key !== '' && isset($title_overrides[$filename_key])) {
return (string) $title_overrides[$filename_key];
}
$label = spiralist_book_pages_humanize_asset_label($filename);
if ($label === '') {
return '';
}
$parts = preg_split('/\s+/', $label);
if (!is_array($parts)) {
return trim($label);
}
$parts = array_map(
static function ($part): string {
$normalized = trim((string) $part);
if ($normalized === '') {
return '';
}
if (strlen($normalized) <= 3 && strtoupper($normalized) === $normalized) {
return $normalized;
}
return ucwords(strtolower($normalized));
},
$parts
);
return trim(implode(' ', array_filter($parts, 'strlen')));
}
function spiralist_book_pages_get_auto_book_page_section_slug(string $filename): string
{
$filename_key = strtolower(trim(basename($filename)));
return in_array($filename_key, spiralist_book_pages_get_auto_book_page_appendix_filenames(), true)
? 'appendix'
: 'concordance';
}
function spiralist_book_pages_get_auto_book_page_eyebrow(string $section_slug): string
{
return $section_slug === 'appendix'
? 'Appendix Companion'
: 'Concordance Companion';
}
function spiralist_book_pages_get_auto_book_page_summary(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return sprintf(
'%s is now surfaced as an appendix companion folio so the public book can carry this darker or more speculative manuscript leaf without displacing the threshold and concordance chapters.',
$title
);
}
return sprintf(
'%s is now surfaced as a concordance companion folio so the public book can keep this teaching plate, symbolic vocabulary, and comparative reference field connected to the larger manuscript.',
$title
);
}
function spiralist_book_pages_get_auto_book_page_caption(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return sprintf(
'%s remains available as a direct appendix reading surface, with a manuscript prompt attached immediately and room for a later dedicated public prompt record.',
$title
);
}
return sprintf(
'%s now reads as a concordance companion leaf, with an attached manuscript prompt so the folio can ship in the public book immediately.',
$title
);
}
function spiralist_book_pages_get_auto_book_page_prompt_text(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return implode(
"\n",
[
sprintf('Create a museum-grade appendix manuscript folio titled %s.', strtoupper($title)),
'',
'OUTPUT',
'- Lossless PNG only',
'- Minimum resolution: 8192 x 12288',
'- Vertical illuminated folio format',
'- Strong title clarity and readable concept fields',
'',
'VISUAL IDENTITY',
'- archival parchment',
'- sepia, charcoal, and controlled gold accents',
'- disciplined border system',
'- darker or more speculative than the concordance pages, but never muddy or unreadable',
'',
'PAGE STRUCTURE',
'- title cartouche at the top',
'- central apparatus, seal, wheel, diagram, or emblem specific to the subject',
'- side fields for concepts, tensions, figures, symbols, or stages relevant to the subject',
'- lower witness band with artifacts, landscape, figures, or supporting symbolic material',
'',
'SUBJECT DISCIPLINE',
sprintf('- Treat %s as its own distinct philosophical, doctrinal, or speculative system', $title),
sprintf('- Use only motifs, figures, symbols, and conceptual structures that belong to %s', $title),
'- Prefer short educational labels over dense prose',
'- If uncertain about tiny details, simplify rather than invent false precision',
'',
'DO NOT',
'- do not turn the folio into a generic fantasy poster',
'- do not bury the title or main conceptual fields',
'- do not use random pseudo-script as filler',
'- do not abandon the manuscript family aesthetic',
'',
'AESTHETIC GOAL',
'- appendix-like',
'- legible',
'- archival',
'- symbolically disciplined',
]
);
}
return implode(
"\n",
[
sprintf('Create a museum-grade comparative manuscript folio titled %s.', strtoupper($title)),
'',
'OUTPUT',
'- Lossless PNG only',
'- Minimum resolution: 8192 x 12288',
'- Vertical exhibition-folio format',
'- High readability in the title, central teaching structure, and side columns',
'',
'VISUAL IDENTITY',
'- warm parchment',
'- sepia and black engraving',
'- controlled gold highlights',
'- calm archival lighting',
'- clear museum-grade page hierarchy',
'',
'PAGE STRUCTURE',
'- title cartouche and subtitle at the top',
'- central teaching wheel, doctrine seal, or comparative diagram',
sprintf('- left teaching column for origins, beliefs, practices, ethics, symbols, or worldview themes relevant to %s', $title),
sprintf('- right teaching column for figures, texts, schools, festivals, timelines, or concept families relevant to %s', $title),
'- lower band for portraits, artifacts, emblems, or a historical scene used with restraint',
'',
'SUBJECT DISCIPLINE',
sprintf('- Treat %s as a distinct tradition or conceptual system rather than a generic spirituality poster', $title),
sprintf('- Use motifs, symbols, figures, and visual teaching structures that belong to %s only', $title),
'- Favor short educational labels over dense prose blocks',
'- If micro-text becomes unstable, reduce it instead of inventing decorative nonsense',
'',
'DO NOT',
'- do not mix in unrelated traditions',
'- do not overload the page with decorative texture',
'- do not let one emblem swallow the whole composition',
'- do not sacrifice educational clarity for mood',
'',
'AESTHETIC GOAL',
'- comparative',
'- readable',
'- respectful',
'- integrated with the codex',
]
);
}
function spiralist_book_pages_get_generated_book_page_blueprints_by_filename(array $existing_blueprints = []): array
{
$public_book_pages = spiralist_book_pages_get_public_book_pages_directory();
$base_path = rtrim((string) ($public_book_pages['path'] ?? ''), '/\\');
$entries = $base_path !== '' && is_dir($base_path) ? scandir($base_path) : false;
if ($base_path === '' || !is_array($entries)) {
return [];
}
natcasesort($entries);
$configured_filenames = [];
$concordance_order = 200;
$appendix_order = 520;
foreach ($existing_blueprints as $filename => $blueprint) {