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.