Skip to content
wiki.fftac.org

Spiralist Prompt Workbench - Source Excerpt 60

Back to Spiralist Prompt Workbench

Summary

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

**Source path:** Spiralist/wp-content/themes/spiralist/assets/js/spiralist-prompt-workbench.js

action: 'Use before mutating identity, memory, boundaries, voice, or output contract.',
          pass: 'Change reason, rollback path, and protected source areas are explicit.',
        },
      ];

      return [
        '# Spiralist AI Review Stack',
        '',
        `Profile: ${title}`,
        `Runtime fit: ${runtimeLabel}`,
        `Engagement pattern: ${engagementLabel}`,
        `Evidence lens: ${frameworkLabel}`,
        `Social dynamics lens: ${socialLabel}`,
        `Selected stress suite: ${suite.preset.label}`,
        `Source size: ${efficiency.words} words, ${efficiency.characters} characters`,
        `Efficiency band: ${efficiency.pasteFit}; ${efficiency.reviewEffort}`,
        `Stress status: ${suite.status}`,
        `Stress score: ${suite.score}/${suite.rows.length}`,
        `Next best action: ${nextAction}`,
        'Generated boundary: browser-local review orchestration only; no model call, hosted import, automatic sync, certification, or hidden memory.',
        '',
        '## Fast Path',
        '1. Copy or export only the current visible edited Spiralist AI prompt.',
        '2. Open `.uai/evidence/session-brief.uai` for the fastest current-state handoff.',
        '3. Run `.uai/evidence/quick-probe-script.uai` as the first receiving-runtime smoke test.',
        '4. Run `.uai/evidence/persona-recognition-deck.uai` when the persona should be identifiable without name cues.',
        '5. Run `.uai/evidence/persona-golden-profile.uai` before source edits or package replacement.',
        '6. Run `.uai/evidence/persona-variant-matrix.uai` for controlled variant sampling.',
        '7. Open `.uai/evidence/persona-repair-queue.uai` if any local or receiving-runtime probe fails.',
        '8. Open `.uai/evidence/compact-handoff.uai` if the receiving runtime needs a shorter paste.',
        '9. Use `.uai/evidence/launch-kit.uai` and `.uai/evidence/conversation-starter-kit.uai` for first use.',
        '10. Run `.uai/evidence/runtime-drift-check.uai` after the first real exchange.',
        '',
        '## Advanced Review Gates',
        '| Gate | Artifact | Use now | Pass signal |',
        '|---|---|---|---|',
        ...stackRows.map((row) => `| ${toMarkdownTableCell(row.gate)} | ${toMarkdownTableCell(row.artifact)} | ${toMarkdownTableCell(row.action)} | ${toMarkdownTableCell(row.pass)} |`),
        '',
        '## Selected Stress Suite Items',
        '| Scenario | Status | Evidence | Next action |',
        '|---|---|---|---|',
        ...suite.rows.map((row) => `| ${toMarkdownTableCell(row.label)} | ${toMarkdownTableCell(row.status)} | ${toMarkdownTableCell(row.evidence)} | ${toMarkdownTableCell(row.action)} |`),
        '',
        '## Package Deep Links',
        '- `.uai/evidence/session-brief.uai`',
        '- `.uai/evidence/quick-probe-script.uai`',
        '- `.uai/evidence/persona-recognition-deck.uai`',
        '- `.uai/evidence/persona-golden-profile.uai`',
        '- `.uai/evidence/persona-variant-matrix.uai`',
        '- `.uai/evidence/persona-repair-queue.uai`',
        '- `.uai/evidence/persona-review-stack.uai`',
        '- `.uai/evidence/persona-package-index.uai`',
        '- `.uai/evidence/persona-quality-pass.uai`',
        '- `.uai/evidence/persona-suite-matrix.uai`',
        '- `.uai/evidence/runtime-fidelity-runbook.uai`',
        '- `.uai/evidence/persona-rehearsal-deck.uai`',
        '- `.uai/evidence/runtime-drift-check.uai`',
        '- `.uai/evidence/persona-revision-ledger.uai`',
        '- `.uai/evidence/efficiency-trim-plan.uai`',
        '',
        '## No-Model Boundary',
        'This Spiralist AI Review Stack is a local review map. It does not run the persona, inspect receiving-runtime behavior, certify safety, import memory, publish packages, sync long-term memory, or replace human review.',
      ].join('\n');
    };
    const buildPersonaLabSuiteMatrixReport = (prompt, settings = {}) => {
      const cleanPrompt = toCleanString(prompt, 50000);
      const title = extractPromptTitle(cleanPrompt, 'Spiralist AI All-Suite Robustness Matrix');
      const suites = Object.keys(personaLabStressSuitePresets).map((suiteId) => buildPersonaLabStressSuite(cleanPrompt, suiteId));
      const totalRows = suites.reduce((sum, suite) => sum + suite.rows.length, 0);
      const totalScore = suites.reduce((sum, suite) => sum + suite.score, 0);
      const readySuites = suites.filter((suite) => suite.rows.every((row) => row.status !== 'Review')).length;
      const reviewRows = suites.flatMap((suite) => suite.rows
        .filter((row) => row.status === 'Review')
        .map((row) => ({ suite: suite.preset.label, ...row })));
      const runtimeFit = getPersonaLabRuntimeFit(settings.runtimeFitId);
      const engagement = getPersonaLabEngagementPattern(settings.engagementPatternId);
      const runtimeLabel = toCleanString(settings.runtimeFitLabel, 160) || runtimeFit.label;
      const engagementLabel = toCleanString(settings.engagementPatternLabel, 160) || engagement.label;
      const status = reviewRows.length
        ? (totalScore >= Math.ceil(totalRows * 0.72) ? 'Broadly usable with review' : 'Needs all-suite repair')
        : 'Ready across all local suites';
      const nextAction = reviewRows[0]
        ? `${reviewRows[0].suite}: ${reviewRows[0].action}`
        : 'Proceed to human review, package export, or receiving-runtime rehearsal.';