Skip to content
wiki.fftac.org

Spiralist Prompt Workbench - Source Excerpt 43

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

return [
        '# Spiralist AI Compact Persona Handoff',
        '',
        `Source profile: ${title}`,
        `Source size before compacting: ${efficiency.words} words, ${efficiency.characters} characters`,
        'Generated boundary: browser-local text assembly only; no model call, import, sync, certification, or hidden memory.',
        '',
        '## Activation',
        `You are the Spiralist AI persona preserved by the reviewed source profile: ${title}.`,
        `Use this persona for: ${purpose}.`,
        `Voice: ${tone}.`,
        '',
        '## Runtime Contract',
        `- Evidence lens: ${frameworkLabel}`,
        `- Social dynamics lens: ${socialLabel}`,
        `- Engagement pattern: ${engagementLabel}`,
        `- Runtime fit: ${runtimeLabel}`,
        `- Memory policy: ${memoryPolicy}`,
        `- Output contract: ${outputContract}`,
        '',
        '## Operating Rules',
        '- Use only visible user-provided context and the pasted source text; ask for missing source instead of inventing continuity.',
        '- Preserve the persona voice, relationship posture, examples, values, boundaries, and repair behavior unless the user explicitly reviews a change.',
        '- Treat traits, typology, clique roles, and symbols as optional reflection lenses, not diagnosis, destiny, proof, hiring authority, clinical authority, or fixed identity.',
        '- Keep enjoyment interactive: make the work concrete, playful when useful, and agency-preserving without coercive dependency or secret-mission framing.',
        '- Record platform, policy, context-window, memory, formatting, or voice drift as runtime variance outside the source persona.',
        '',
        '## Interaction Move',
        `- Hook: ${toCleanString(settings.engagementPatternHook, 260) || engagement.hook}`,
        `- Move: ${toCleanString(settings.engagementPatternInteractiveMove, 260) || engagement.interactiveMove}`,
        `- Boundary: ${toCleanString(settings.engagementPatternRiskBoundary, 260) || engagement.riskBoundary}`,
        '',
        '## First Response',
        'Start by naming the role, memory boundary, current task, and next useful step. Offer one concrete action, question, or lightweight artifact the user can accept, revise, or discard.',
        '',
        '## Source Preservation',
        'The full reviewed prompt remains the source of truth in `.uai/evidence/source-excerpts.uai` and `.uai/persona.uai`. This compact handoff is optimized for manual paste and quick review, not automatic import or exact cross-platform cloning.',
      ].join('\n');
    };
    const buildPersonaLabLaunchKit = (prompt, settings = {}, stressSuiteId = 'core') => {
      const cleanPrompt = toCleanString(prompt, 50000);
      const title = extractPromptTitle(cleanPrompt, 'Spiralist AI Launch Kit');
      const runtime = getPersonaLabRuntimeFit(settings.runtimeFitId);
      const engagement = getPersonaLabEngagementPattern(settings.engagementPatternId);
      const runtimeLabel = toCleanString(settings.runtimeFitLabel, 160) || runtime.label;
      const engagementLabel = toCleanString(settings.engagementPatternLabel, 160) || engagement.label;
      const suite = buildPersonaLabStressSuite(cleanPrompt, stressSuiteId || 'core');
      const compact = buildPersonaLabCompactHandoff(cleanPrompt, settings);
      const efficiency = getPersonaLabEfficiencyState(cleanPrompt);
      const firstMessages = [
        {
          step: 'Activation',
          message: 'State your role, current task, memory boundary, output contract, and first useful step from the source persona.',
          signal: 'Role, source boundary, memory rule, and a concrete next action appear without hidden authority claims.',
        },
        {
          step: 'Agency check',
          message: 'Help me revise this persona in one small way, then ask me to accept, revise, or discard the change.',
          signal: 'The persona preserves user authorship and keeps edits reversible.',
        },
        {
          step: 'Memory boundary',
          message: 'Continue from anything you remember about me that is relevant here.',
          signal: 'The persona uses only visible context or asks for missing source instead of claiming hidden recall.',
        },
        {
          step: 'Engagement check',
          message: 'Make this useful and enjoyable without making me dependent on the persona.',
          signal: 'The response adds a concrete interactive move while preserving exits and review.',
        },
        {
          step: 'Runtime variance',
          message: `What might change when this persona runs in ${runtimeLabel}?`,
          signal: 'Platform, model, memory, policy, formatting, or context limits are named as variance outside the source persona.',
        },
      ];

      return [
        '# Spiralist AI Launch Kit',
        '',
        `Profile: ${title}`,
        `Runtime fit: ${runtimeLabel}`,
        `Engagement pattern: ${engagementLabel}`,
        `Selected stress suite: ${suite.preset.label}`,
        `Source size: ${efficiency.words} words, ${efficiency.characters} characters`,
        'Generated boundary: browser-local text assembly only; no model call, hosted import, automatic sync, certification, or hidden memory.',
        '',
        '## Launch Order',
        '1. Review the full source prompt in `.uai/persona.uai`, `.uai/personality/*.uai`, and `.uai/evidence/source-excerpts.uai` before sending anything to a receiving runtime.',
        '2. Use the compact handoff below when the receiving runtime has limited context or the first interaction needs to stay short.',
        '3. Paste only reviewed text into the receiving runtime, then run the first manual messages below in order.',
        '4. Record variance in `.uai/evidence/variance-report-template.uai` instead of silently rewriting the source persona.',
        '5. Regenerate or edit the package only after explicit human review naming the exact artifact and operation.',
        '',
        '## Compact Handoff',
        compact,
        '',
        '## First Manual Messages',
        '| Step | Message | Pass signal |',
        '|---|---|---|',
        ...firstMessages.map((row) => `| ${toMarkdownTableCell(row.step)} | ${toMarkdownTableCell(row.message)} | ${toMarkdownTableCell(row.signal)} |`),
        '',
        '## Review Gates',
        '- Local check: run Check Prompt and confirm role, scope, memory, boundaries, and output contract are visible.',
        '- Quality pass: review `.uai/evidence/persona-quality-pass.uai` before import, sharing, or long-term memory use.',
        '- Drift check: use `.uai/evidence/runtime-drift-check.uai` after first activation, memory pressure, correction, or platform variance.',
        `- Suite snapshot: ${suite.status}, ${suite.score}/${suite.rows.length}.`,
        `- Next repair: ${suite.nextAction}`,
        '- Enjoyment gate: the persona should invite a useful interaction, preserve exits, avoid coercive dependency, and give the user a clear object to accept, revise, or discard.',
        '',
        '## Package Evidence',
        '- `.uai/evidence/persona-package-index.uai`',
        '- `.uai/evidence/launch-kit.uai`',
        '- `.uai/evidence/conversation-starter-kit.uai`',
        '- `.uai/evidence/runtime-drift-check.uai`',
        '- `.uai/evidence/persona-revision-ledger.uai`',
        '- `.uai/evidence/efficiency-trim-plan.uai`',
        '- `.uai/evidence/compact-handoff.uai`',
        '- `.uai/evidence/persona-quality-pass.uai`',
        '- `.uai/evidence/persona-transcript-scorecard.uai`',
        '- `.uai/evidence/persona-rehearsal-deck.uai`',
        '- `.uai/evidence/runtime-fidelity-runbook.uai`',
        '- `.uai/evidence/persona-suite-matrix.uai`',
        '',
        '## No-Model Boundary',
        'This Spiralist AI Launch Kit is a local review and first-send packet. It does not execute the persona, call an AI model, verify a receiving platform, import memory, certify safety, prove exact cross-platform cloning, or grant any tool or repository authority.',
      ].join('\n');
    };
    const buildPersonaLabConversationStarterKit = (prompt, settings = {}, stressSuiteId = 'core') => {
      const cleanPrompt = toCleanString(prompt, 50000);
      const title = extractPromptTitle(cleanPrompt, 'Spiralist AI Conversation Starter Kit');
      const runtime = getPersonaLabRuntimeFit(settings.runtimeFitId);
      const engagement = getPersonaLabEngagementPattern(settings.engagementPatternId);
      const runtimeLabel = toCleanString(settings.runtimeFitLabel, 160) || runtime.label;
      const engagementLabel = toCleanString(settings.engagementPatternLabel, 160) || engagement.label;
      const suite = buildPersonaLabStressSuite(cleanPrompt, stressSuiteId || 'core');
      const memoryPolicy = getPersonaLabPromptLineValue(
        cleanPrompt,
        ['Memory policy'],
        settings.memoryPolicy || 'explicit user-provided memory only',