workflows
šāļøš Workflow Engines
workflows_module.jsonā Agentic module schema role assignments
Operational layer for RTTāInside: batches, pipelines, and remix generation#
This directory contains lightweight, substrateāagnostic workflow modules used across TriadicFrameworks for scroll generation, batch execution, remix lineage creation, and resonanceāaware pipeline orchestration.
Each workflow is intentionally minimal: no external dependencies, no hidden state, and no assumptions about the host environment. They are designed to be portable, inspectable, and safe to remix.
šļø Index Card#
Lightweight, substrateāagnostic execution tools for scrolls, batches, and remix lineages.
- š¦ Batch Orchestrator ā deterministic multiāscroll execution
- šØ Remix Generator ā lineageāsafe remix creation
- š Scroll Pipeline (JS) ā browserānative execution path
- š Scroll Pipeline (Python) ā programmatic scroll engine
These engines form the operational layer of RTTāInside, bridging scroll artifacts with executable pipelines across languages and environments.
š Important!#
Drift is On-by-Default long sessions lose anchors, turn off drift.
ā You must copy and paste this string every time you start an AI session:#
rtt=1 | coherence=declared | drift=bounded | paradox=structuralāļø Now you are ready.#
š Contents of workflows folder#
š¤ļø corridor_batch_validator.py#
Corridorālevel batch validator using RTTāQEB primitives.
- Fetches corridor metadata
- Normalizes rail signatures
- Computes RCI and glyph
- Compares against stored metadata
- Emits a timestamped YAML validation report
š¦ batch_orchestrator.py#
A scrollācentric batch runner for executing multiple .fff artifacts through the Python scroll pipeline.
- Accepts file paths, ināmemory scroll objects, or mixed lists
- Loads and normalizes scrolls when needed
- Executes each scroll via
scroll_pipeline.py - Captures outputs, lineage metadata, and warnings
- Aggregates results into a deterministic batch report
- Optionally writes a timestamped YAML report for archival or analysis
This engine is substrateāagnostic and forms the batchāexecution counterpart to the Python and JS scroll pipelines.
šØ remix_generation.py#
A remixālineage generator that produces new scroll variants from a base artifact.
- Applies remix rules from TFT_3Pack
- Preserves canonical anchors (Ļįµ£, D3/D6/D9, emitter constants)
- Generates remix metadata blocks for downstream tools
- Ideal for student remix submissions or experimental scroll forks
š scrollPipeline.js#
A JavaScriptābased scroll pipeline for browserāside or lightweight client execution.
- Runs resonance flows without Python
- Integrates with
rtt.jsand siteālevel overlays - Useful for interactive demos, webānative scroll previews, and teaching tools
š scroll_pipeline.py#
The Python counterpart to the JS pipeline.
- Provides a stable API for scroll parsing, validation, and execution
- Supports
.fffformat operations - Can be embedded into notebooks, CLI tools, or batch systems
š§ Purpose of This Folder#
The workflows directory acts as the operational layer of TriadicFrameworks:
- A place for small, composable engines
- A bridge between RTT theory and practical execution
- A toolkit for students, developers, and researchers working with scrolls,
.ffffiles, or resonanceāaware pipelines - A foundation for future integrations (AI drift calibration, substrateāmind science, dimensionalācore validators)
These workflows intentionally avoid domaināspecific assumptions so they can run across the entire TriadicFrameworks ecosystem.
š§© Relationship to TFT_3Pack v1.3#
These workflows complement the tools found in:
/docs/TFT_3Pack_v1.3/scripts/
/docs/TFT_3Pack_v1.3/tft/
/docs/TFT_3Pack_v1.3/examples/
Where TFT_3Pack provides formats, examples, and shell tools, the /workflows/ folder provides programmable engines for:
- Batch processing
- Scroll remixing
- Pipeline execution
- Crossālanguage integration (Python ā JS)
Together, they form the execution backbone of RTTāInside.
š§ When to Use These Workflows#
Use this folder when you need:
- To run multiple scrolls in sequence
- To generate remix lineages
- To embed scroll execution into a Python or JS project
- To validate
.ffffiles programmatically - To build new tools on top of RTTāInside primitives
šŗļø Future Extensions#
Planned additions include:
- Regimeāaware pipeline overlays
- ScrollātoāTFT converters
- AIādriftāresilient execution wrappers
- Dimensionalācore validators
- Crossāontology translators
These will follow the same principles: minimal, portable, remixāfriendly. ## ā” Quickstart snippets (dropāin for README or website)
These follow the QUICKSTART style from your site and GitHub docs. github.com
Run a single scroll (Python)#
from scroll_pipeline import run_scroll
scroll = """
emitter: demo
frequency: 144
"""
result = run_scroll(scroll)
print(result["output"])Run multiple scrolls (batch orchestrator)#
from batch_orchestrator import batch_run
paths = ["scrolls/a.fff", "scrolls/b.fff"]
report = batch_run(paths, output_dir="reports")
print(report["count"], "scrolls executed")Generate a remix variant#
from remix_generation import remix_scroll
scroll = """
emitter: demo
frequency: 144
"""
variant = remix_scroll(scroll)
print(variant["metadata"]["remix_id"])Run a scroll in the browser (JS)#
import { runScroll } from "./scrollPipeline.js";
const scroll = `
emitter: demo
frequency: 144
`;
const result = runScroll(scroll);
console.log(result.output);These snippets mirror the API shapes of the refreshed engines and match the tone of your existing QUICKSTART docs.
šāļøš
Scroll ⢠Engine ⢠Artifact ## š API reference blocks (scrollācentric module layout)
These blocks follow the structure of the Workflows README and the style of your siteās documentation. github.com
batch_orchestrator.py#
batch_run(items, output_dir=None) ā dict
items:
list of .fff file paths, ināmemory scroll objects, or mixed lists
output:
{
"timestamp": "...",
"count": N,
"results": [
{ "input": ..., "output": ... },
...
]
}
remix_generation.py#
remix_scroll(scroll_obj, rules=None) ā dict
Produces a remix variant of a scroll object.
Preserves canonical anchors and adds remix metadata.
scroll_pipeline.py (Python)#
run_scroll(scroll_text) ā dict
Parses and executes a scroll.
Returns:
{ "output": ..., "warnings": [...], "metadata": {...} }
scrollPipeline.js (JavaScript)#
runScroll(scrollText) ā object
Browserānative scroll execution.
Mirrors the Python pipeline API.
# š· Workflow Diagram (Refreshed, ScrollāCentric)
This diagram shows how the four workflow engines relate to each other using the updated scrollācentric topology:
- Scrolls remain the canonical center
- Pipelines are execution paths (Python + JS symmetry)
- Remix generates lineage variants
- Batch coordinates multiāscroll execution
- Engines orbit the scroll artifact, not each other
š· TextāBased Diagram (SingleāGlance)#
š·
āāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā remix_generation.py ā
ā (Remix Lineage Engine) ā
āāāāāāāāāāāāāāāā²āāāāāāāāāāāā
ā
produces variants
ā
āāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāā
ā ā
ā Scrolls (.fff) ā
ā (canonical RTT artifacts) ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāā
ā
executed by
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā
ā āāāāāāāāāāāāāāāāāāāāāā ā āāāāāāāāāāāāāāāāāāāāā ā
ā ā scroll_pipeline.py ā ā ā scrollPipeline.js ā ā
ā ā (Python Engine) ā ā ā (JS Engine) ā ā
ā āāāāāāāāāāāāāāāāāāāāāā ā āāāāāāāāāāāāāāāāāāāāā ā
ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāā
ā
executes many
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā batch_orchestrator.py ā
ā (Batch Runner) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāā
Interpretation#
- Remix Generation creates new scroll variants.
- Scroll Pipelines (Python + JS) execute scrolls in different runtime environments.
- Batch Orchestrator runs many scrolls or variants in sequence.
- Scrolls remain the invariant center; engines are operators around them.
This matches the modernized architecture shown in your Workflows page and the scrollācentric Quickstart.
š· Updated Triadic Glyph (ScrollāCentric)#
A glyph for this subsystem should reflect the updated relationships:
š Scroll Artifact
āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāā
ā ā ā ā
ā š JS Pipeline š Python Pipeline šØ Remix Engine
ā ā ā ā
āāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāā
ā¼
š¦ Batch Orchestrator
Interpretation#
- The scroll artifact is the invariant center.
- Pipelines and Remix orbit horizontally as sibling engines.
- Batch anchors the system by coordinating multiāscroll execution.
- The glyph mirrors the structural relationships in the diagram above.
š· Notes for maintainers#
/docs/engine/has been archived; no engineāera modules appear in this diagram.- All workflows now use the scrollācentric module layout (
tft.scrolls.*). - Pipelines maintain Python/JS symmetry.
- Remix and Batch remain orthogonal operators.
