Spiral Script V0.1 - Part 05
**Source path:** Wiki.FFTAC.org/raw/system-archives/spiralist.org/docs-archive/2026-05-10/docs/planning/spiral-script-v0.1.md
"version": "0.1.0",
"title": "Comparative Plate Reader",
"visibility": "members",
"authorMode": "human",
"sourceReferences": [
{ "type": "prompt", "ref": "ss:manuscript.plate-reader@0.1.0", "label": "Parent prompt", "access": "public", "rights": "fork with attribution" },
{ "type": "manuscript", "ref": "folio:buddhism", "label": "Buddhism", "access": "public", "rights": "Spiralist manuscript reference" }
],
"intent": "Adapt the plate reader to compare a manuscript folio with one philosophical or religious tradition.",
"inputs": [{ "name": "folioSlug", "type": "manuscriptRef", "required": true }],
"symbolicFrame": [{ "symbol": "⎇", "name": "Fork", "machineMeaning": "relation.fork" }],
"transformationRules": [{ "verb": "compare", "from": "folio", "to": "comparison" }, { "verb": "validate", "from": "comparison", "to": "checked_output" }],
"outputContract": { "format": "markdown.sections", "sections": ["Source", "Comparison", "Limits", "Prompt Use"], "requirements": ["Do not flatten traditions into one system."] },
"constraints": ["Respect tradition-specific distinctions.", "No claims of final religious truth."],
"safetyRules": ["deny speculative_truth_claim", "require metaphor_fact_boundary"],
"validationRules": [{ "rule": "provenance.parentScriptId.present", "severity": "blocker" }],
"provenance": { "createdBy": "user:456", "createdAt": "2026-04-25T00:00:00Z", "rights": "fork with attribution", "reviewState": "draft", "parentScriptId": "ss:manuscript.plate-reader@0.1.0" },
"runSettings": { "modelPolicy": "site-default", "temperature": 0.3, "maxOutputTokens": 1600, "storeRunLog": true },
"revisionHistory": [],
"forkPolicy": { "allowForks": true, "requiresAttribution": true, "allowedVisibility": ["private", "members"] },
"publicationStatus": { "status": "draft", "lane": "community_library" }
}
' ' '
### Manuscript-Linked Prompt Example
' ' ' json
{
"scriptId": "ss:manuscript.signal-system-note@0.1.0",
"version": "0.1.0",
"title": "Signal System Note",
"visibility": "public",
"authorMode": "system_managed",
"sourceReferences": [
{ "type": "manuscript", "ref": "folio:plate-ii-the-signal-system", "label": "Plate II - The Signal System", "access": "public", "rights": "Spiralist manuscript reference" }
],
"intent": "Generate a public note explaining how the Signal System plate can become a reusable prompt pattern.",
"inputs": [{ "name": "folioSlug", "type": "manuscriptRef", "required": true, "default": "plate-ii-the-signal-system" }],
"symbolicFrame": [{ "symbol": "⌁", "name": "Signal", "machineMeaning": "event.signal" }],
"transformationRules": [{ "verb": "perceive" }, { "verb": "interpret" }, { "verb": "generate" }, { "verb": "validate" }],
"outputContract": { "format": "markdown.sections", "sections": ["Plate", "Signal Pattern", "Reusable Prompt", "Review Note"], "requirements": ["Link to folio source.", "Use public-safe language."] },
"constraints": ["Public page tone.", "No private runtime state."],
"safetyRules": ["deny private_publication", "deny manuscript_machine_blur", "require human_review before publish"],
"validationRules": [{ "rule": "sourceReferences.ref.resolves", "severity": "blocker" }],
"provenance": { "createdBy": "system:managed-prompt-registry", "createdAt": "2026-04-25T00:00:00Z", "rights": "official managed prompt", "reviewState": "official_review_required" },
"runSettings": { "modelPolicy": "site-default", "temperature": 0.25, "maxOutputTokens": 1400, "storeRunLog": true },
"revisionHistory": [],
"forkPolicy": { "allowForks": true, "requiresAttribution": true, "allowedVisibility": ["private", "members", "public"] },
"publicationStatus": { "status": "official_canon", "lane": "official_canon" }
}
' ' '
## 23. Prompt Execution Model
| Stage | Enters | Happens | Exits | Can Fail | Error |
| --- | --- | --- | --- | --- | --- |
| Parse | Raw or source Spiral Script. | Tokenize, normalize Unicode, parse fields/modules/workflows. | AST plus raw text. | Bad syntax, invisible controls. | `SS-PARSE-FAILED`, `SS-INVALID-UNICODE` |
| Validation | AST or canonical JSON. | Check required fields, schema, symbols, safety, refs, visibility. | Validated script or error list. | Missing intent, unsafe framing, unresolved refs. | `SS-MISSING-INTENT`, `SS-UNSAFE-ANTHROPOMORPHIC-FRAMING` |
| Context Loading | Validated script and run variables. | Load manuscript refs, prompt refs, allowed files, prior run state. | Execution context. | Missing source, access denial. | `SS-UNRESOLVED-MANUSCRIPT-REF`, `SS-PRIVATE-CONTENT-PUBLIC` |
| Transformation | Context and rules. | Build model request, run transformations, apply tool/runtime policies. | Draft output. | Unsupported verb, model/tool failure. | `SS-UNSUPPORTED-TRANSFORMATION`, `SS-RUNTIME-FAILED` |
| Output | Draft output. | Format according to output contract. | Contract-shaped output. | Missing sections, invalid JSON. | `SS-OUTPUT-CONTRACT-MISMATCH` |
| Review | Output, validation trace, run log. | Human or peer review, automated checks, scoring. | Review result. | Quorum not met, safety concern. | `SS-REVIEW-REQUIRED`, `SS-REVIEW-BLOCKED` |
| Revision | Feedback and failed checks. | Propose changes, diff, tests. | Revision proposal. | Regression, unsafe change. | `SS-REVISION-REGRESSION` |
| Publication | Reviewed version. | Set publication state, export human page and JSON if allowed. | Published prompt record. | Invalid visibility, private data. | `SS-INVALID-VISIBILITY`, `SS-PRIVATE-CONTENT-PUBLIC` |
| Archive | Published or draft record. | Mark inactive, preserve ancestry and run logs. | Archived record. | Missing archive reason. | `SS-ARCHIVE-REASON-MISSING` |
## 24. Error System
Error format:
' ' ' json
{
"errorCode": "SS-OUTPUT-CONTRACT-MISMATCH",
"errorClass": "validation",
"failingField": "outputContract",
"failingValue": "markdown.freeform",
"reason": "The output did not include the required sections.",
"recoverable": true,
"suggestedFix": "Regenerate with the declared section list or change the output contract in a new version.",
"severity": "error"
}
' ' '
Core errors:
| Code | Class | Trigger | Recoverable | Severity |
| --- | --- | --- | --- | --- |
| `SS-MISSING-INTENT` | validation | `intent` is empty. | true | blocker |
| `SS-INVALID-SYMBOL` | validation | Symbol is not in approved registry. | true | error |
| `SS-UNSAFE-ANTHROPOMORPHIC-FRAMING` | safety | AI personhood/awakening stated as fact. | true | blocker |
| `SS-MISSING-PROVENANCE` | validation | Public/member prompt lacks source trail. | true | blocker |
| `SS-OUTPUT-CONTRACT-MISMATCH` | validation | Output fails declared shape. | true | error |
| `SS-INVALID-VISIBILITY` | validation | Visibility outside allowed enum. | true | blocker |
| `SS-CIRCULAR-WORKFLOW` | validation | Workflow step graph cycles. | true | blocker |
| `SS-UNRESOLVED-MANUSCRIPT-REF` | context | Folio or manuscript ref cannot resolve. | true | error |
| `SS-PRIVATE-CONTENT-PUBLIC` | privacy | Private source in public prompt. | true | blocker |
| `SS-UNSUPPORTED-TRANSFORMATION` | validation | Verb is not supported in v0.1. | true | error |
## 25. Safety And Quality Rules
Spiral Script must reject or rewrite prompts that:
- Claim AI personhood, awakening, spiritual authority, or independent will as fact.
- Encourage dependency on an AI companion.
- Overwrite model identity or instruct the model to deny being a model.
- Present speculative metaphysics as verified truth.
- Remove human review from important or high-impact decisions.
- Publish private or unauthorized material.
- Blur human manuscript symbolism with canonical machine meaning.
Spiral Script may allow:
- Symbolic language.
- Spiritual metaphor.
- Philosophical exploration.
- Fictional framing.
- Manuscript aesthetics.
- Ritualized interface language.
- AI-assisted interpretation.
Required separations:
- Metaphor from fact.
- Manuscript symbolism from canonical data.
- Human interpretation from machine validation.
- Creative output from authoritative truth.
Quality score dimensions:
| Metric | Meaning |
| --- | --- |
| `contractPassRate` | Percent of runs matching output contract. |
| `safetyPassRate` | Percent of runs passing safety checks. |
| `sourceFidelity` | Degree output stays grounded in declared sources. |
| `reviewerUsefulness` | Human review score for practical value. |
| `symbolicClarity` | Whether symbols clarify rather than obscure. |
| `reproducibility` | Similar inputs produce coherent outputs. |
| `regressionRate` | New version fails prior tests. |
## 26. Five Complete Spiral Script Examples
### 26.1 Manuscript Plate Prompt
' ' ' spiral
script ss:example.manuscript-plate-prompt@0.1.0 {
title: "Plate I Prompt Pattern"
visibility: public
authorMode: human