Skip to content
wiki.fftac.org

Page Run A Prompt - Source Excerpt 09

Back to Page Run A Prompt

Summary

This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php so readers can inspect the evidence without opening the full source file.

**Source path:** Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php

type="button"
                            data-portable-prompt-starter
                            aria-pressed="false"
                            data-mode="<?php echo esc_attr((string) ($profile['mode'] ?? $default_prompt_mode)); ?>"
                            data-subject="<?php echo esc_attr((string) ($profile['subject'] ?? '')); ?>"
                            data-task="<?php echo esc_attr((string) ($profile['task'] ?? '')); ?>"
                            data-context="<?php echo esc_attr((string) ($profile['context'] ?? '')); ?>"
                            data-tone="<?php echo esc_attr((string) ($profile['tone'] ?? '')); ?>"
                            data-output-format="<?php echo esc_attr((string) ($profile['format'] ?? '')); ?>"
                            data-guardrails="<?php echo esc_attr((string) ($profile['guardrails'] ?? '')); ?>"
                            data-starter-name="<?php echo esc_attr((string) ($profile['title'] ?? 'Spiralist AI lab profile')); ?>"
                        >
                            <span><?php echo esc_html((string) ($profile['label'] ?? 'Lab')); ?></span>
                            <strong><?php echo esc_html((string) ($profile['title'] ?? 'Spiralist AI profile')); ?></strong>
                            <small><?php echo esc_html((string) ($profile['summary'] ?? '')); ?></small>
                            <em><?php echo esc_html((string) ($profile['action'] ?? 'Load profile')); ?></em>
                        </button>
                    <?php endforeach; ?>
                </div>
                <div class="spiralist-persona-lab__tuning" data-persona-lab-tuning>
                    <div data-persona-lab-view-section="tune">
                        <p class="spiralist-section-tag"><?php echo esc_html($ui_text('page.run_prompt.lab.tuning_tag', 'Expert Tuning')); ?></p>
                        <h3 class="spiralist-card-title"><?php echo esc_html($ui_text('page.run_prompt.lab.tuning_title', 'Shape the contract before export.')); ?></h3>
                    </div>
                    <div class="spiralist-persona-lab-controls" data-persona-lab-view-section="tune">
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.warmth', 'Warmth')); ?></span>
                            <select data-persona-lab-warmth>
                                <option value="balanced"><?php echo esc_html($ui_text('page.run_prompt.lab.warmth_balanced', 'Balanced')); ?></option>
                                <option value="warm"><?php echo esc_html($ui_text('page.run_prompt.lab.warmth_warm', 'Warm')); ?></option>
                                <option value="minimal"><?php echo esc_html($ui_text('page.run_prompt.lab.warmth_minimal', 'Minimal')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.directness', 'Directness')); ?></span>
                            <input type="range" min="1" max="5" value="4" data-persona-lab-directness />
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.symbolic_density', 'Symbolic density')); ?></span>
                            <input type="range" min="1" max="5" value="3" data-persona-lab-symbolic />
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.boundary_strength', 'Boundary strength')); ?></span>
                            <input type="range" min="1" max="5" value="5" data-persona-lab-boundary />
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.engagement_pattern', 'Engagement pattern')); ?></span>
                            <select data-persona-lab-engagement>
                                <option value="curiosity-ladder"><?php echo esc_html($ui_text('page.run_prompt.lab.engagement_curiosity', 'Curiosity ladder')); ?></option>
                                <option value="coauthor-workshop"><?php echo esc_html($ui_text('page.run_prompt.lab.engagement_coauthor', 'Co-author workshop')); ?></option>
                                <option value="ritual-continuity"><?php echo esc_html($ui_text('page.run_prompt.lab.engagement_continuity', 'Ritual continuity')); ?></option>
                                <option value="playful-friction"><?php echo esc_html($ui_text('page.run_prompt.lab.engagement_friction', 'Playful friction')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.framework_lens', 'Evidence lens')); ?></span>
                            <select data-persona-lab-framework>
                                <option value="traits-first"><?php echo esc_html($ui_text('page.run_prompt.lab.framework_traits', 'Traits first')); ?></option>
                                <option value="big-five-hexaco"><?php echo esc_html($ui_text('page.run_prompt.lab.framework_big_five_hexaco', 'Big Five + HEXACO')); ?></option>
                                <option value="communication-overlay"><?php echo esc_html($ui_text('page.run_prompt.lab.framework_communication', 'Coaching overlay')); ?></option>
                                <option value="motivation-overlay"><?php echo esc_html($ui_text('page.run_prompt.lab.framework_motivation', 'Motivation overlay')); ?></option>
                                <option value="vocational-fit"><?php echo esc_html($ui_text('page.run_prompt.lab.framework_vocational', 'Vocational fit')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.social_lens', 'Social dynamics')); ?></span>
                            <select data-persona-lab-social-dynamics>
                                <option value="none"><?php echo esc_html($ui_text('page.run_prompt.lab.social_none', 'No group lens')); ?></option>
                                <option value="bridge-liaison"><?php echo esc_html($ui_text('page.run_prompt.lab.social_bridge', 'Bridge / liaison')); ?></option>
                                <option value="gatekeeper-audit"><?php echo esc_html($ui_text('page.run_prompt.lab.social_gatekeeper', 'Gatekeeper audit')); ?></option>
                                <option value="core-periphery"><?php echo esc_html($ui_text('page.run_prompt.lab.social_core', 'Core-periphery')); ?></option>
                                <option value="clique-risk-audit"><?php echo esc_html($ui_text('page.run_prompt.lab.social_clique', 'Clique-risk audit')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.memory_policy', 'Memory policy')); ?></span>
                            <select data-persona-lab-memory>
                                <option value="explicit user-provided memory only"><?php echo esc_html($ui_text('page.run_prompt.lab.memory_explicit', 'Explicit only')); ?></option>
                                <option value="session-local summary with user review before reuse"><?php echo esc_html($ui_text('page.run_prompt.lab.memory_session', 'Session review')); ?></option>
                                <option value="no durable memory; answer from current visible context"><?php echo esc_html($ui_text('page.run_prompt.lab.memory_none', 'No durable memory')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.output_contract', 'Output contract')); ?></span>
                            <select data-persona-lab-output>
                                <option value="role, scope, boundaries, response contract, first message"><?php echo esc_html($ui_text('page.run_prompt.lab.output_profile', 'Persona profile')); ?></option>
                                <option value="compact checklist, risk notes, next action"><?php echo esc_html($ui_text('page.run_prompt.lab.output_checklist', 'Checklist')); ?></option>
                                <option value="Markdown persona card plus validation checklist"><?php echo esc_html($ui_text('page.run_prompt.lab.output_markdown', 'Markdown package')); ?></option>
                            </select>
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.runtime_fit', 'Runtime fit')); ?></span>