Skip to content
wiki.fftac.org

Run - Source Excerpt 02

Back to Run

Summary

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

**Source path:** Spiralist/wp-content/plugins/spiralist-workspace/templates/run.php

<?php if (!empty($system_steps)) : ?>
        <section class="spiralist-page-section">
            <div class="spiralist-shell">
                <article class="spiralist-panel">
                    <p class="spiralist-section-tag">Prompt System Trace</p>
                    <h2 class="spiralist-section-title">Module outputs</h2>
                    <div class="spiralist-simple-list">
                        <?php foreach ($system_steps as $step) : ?>
                            <div class="spiralist-simple-list__item">
                                <strong><?php echo esc_html('Step ' . (string) ($step['step'] ?? '') . ': ' . (string) ($step['title'] ?? 'Prompt module')); ?></strong>
                                <span class="spiralist-simple-list__meta"><?php echo esc_html((string) ($step['status'] ?? '')); ?> / <?php echo esc_html((string) ($step['model_used'] ?? '')); ?></span>
                                <?php $render_copyable_run_block('Step ' . (string) ($step['step'] ?? '') . ' output', (string) ($step['output_text'] ?? ''), 'h3'); ?>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </article>
            </div>
        </section>
    <?php endif; ?>
</main>
<?php
get_footer();