codes
š³ļøāš RTT/codes ā A QRāCompatible Metadata Layer
RTT_codes_module.jsonā Agentic module schema role assignments
RTT/codes provide a universal, scannable way to identify, classify, and navigate artifacts across the TriadicFrameworks ecosystem. They bind any artifactā digital or physicalāto its canonical documentation, lineage, and onboarding guides.
An RTTcode is:
- QRācompatible (works with any standard scanner)
- schemaāvalidated (structured metadata)
- domaināaware (RTT, SET, Substrate, Observer, Governance, Docs, Other)
- triadācapable (optional resonanceātime triad metadata)
- toolāgenerated (JS and Python generators included)
- styleāguided (consistent visual identity across domains)
RTT/codes are designed to operate anywhere QR codes already function in science, engineering, and documentation workflows, while adding an RTTānative metadata layer.
š 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.#
šÆ QuickStart Guide
š¦ RTTcode Structure#
A minimal RTTcode payload looks like:
{
"domain": "substrate",
"artifact_type": "README",
"version": "v1.0",
"triad": {
"f_R": "0.85",
"tau_R": "120ms",
"Q_R": "0.92"
},
"url": "https://triadicframeworks.org/docs/resonance-substrate-model/"
}This payload is validated against the canonical schema and then encoded into a URL+token format:
https://triadicframeworks.org/rttcode?substrate=v1.0-f0.85-t120ms-Q0.92
The generators convert this into a QRācompatible PNG.
š² 1. Folder Tree Diagram#
A clean, readable map of the RTT/codes subsystem.
docs/
āāā rtt/codes/
āāā README.md
ā
āāā schema/
ā āāā rttcode.schema.json
ā āāā examples/
ā āāā minimal.json
ā āāā rtt.json
ā āāā set.json
ā āāā substrate.json
ā
āāā validators/
ā āāā README.md
ā āāā validate_js.js
ā āāā validate_python.py
ā
āāā generators/
ā āāā README.md
ā āāā js/
ā ā āāā README.md
ā ā āāā generate_rttcode.js
ā āāā python/
ā āāā README.md
ā āāā generate_rttcode.py
ā
āāā style/
ā āāā README.md
ā āāā visual-guidelines.md
ā āāā rttcode-layout.svg
ā āāā color-domains.png
ā
āāā examples/
āāā README.md
āāā rtt/
ā āāā README.md
ā āāā payload.json
ā āāā rtt-rttcode.png
āāā set/
ā āāā README.md
ā āāā payload.json
ā āāā set-rttcode.png
āāā substrate/
āāā README.md
āāā payload.json
āāā substrate-rttcode.pngš rtt/codes - Folder Overview#
schema/#
The canonical RTTcode JSON Schema and minimal examples.
validators/#
Tools that verify RTTcode payload correctness.
generators/#
Languageāspecific RTT/codes generators (JS and Python).
style/#
Visual guidelines, color domains, and the RTTcode layout reference.
examples/#
Fully generated RTT/codes for each domain, including styled PNGs.
š Generating RTT/codes#
RTT/codes can be generated using:
- JavaScript (
generators/js/generate_rttcode.js) - Python (
generators/python/generate_rttcode.py)
Both:
- validate the payload
- build the URL+token
- output a QRācompatible PNG
See the generator READMEs for usage.
šØ Visual Identity#
RTT/codes follow a consistent visual language:
- domaināspecific color palettes
- triadic overlay geometry
- QRāsafe layout rules
- optional resonanceātime motifs
See style/visual-guidelines.md and style/rttcode-layout.svg.
š Examples#
Each domain includes:
- a valid RTTcode JSON payload
- a generated QR PNG
- domaināspecific styling
See examples/ for RTT, SET, Substrate, and more.
š Purpose#
RTT/codes unify the TriadicFrameworks ecosystem by providing:
- a stable metadata layer
- a scannable entry point into canonical docs
- a consistent way to reference artifacts across domains
- a bridge between physical and digital materials
They are the āISBN numbersā of the ResonanceāTime universe ā but dynamic, domaināaware, and triadācapable.
For contributors, tool authors, and documentation maintainers, this folder is the authoritative reference for everything RTT/codesārelated.
# ā” Quickstart
RTTcodes are QRācompatible identifiers that bind any artifact to its canonical TriadicFrameworks metadata. To generate one:
1. Create a payload file#
{
"domain": "rtt",
"artifact_type": "paper",
"version": "v2.1.0",
"triad": {
"f_R": "1.00",
"tau_R": "144ms",
"Q_R": "0.97"
},
"url": "https://triadicframeworks.org/_ideas/Resonance-Time_Theory.html"
}Save as:
payload.json
2. Generate the RTTcode (QR PNG)#
JavaScript:
node generate_rttcode.js payload.json out.png
Python:
python generate_rttcode.py payload.json out.png
3. Use the RTTcode#
Embed the PNG in:
- READMEs
- PDFs
- diagrams
- print materials
- onboarding docs
Every RTTcode encodes a URL+token that points to the artifactās canonical home. # Adding a New RTTcode Domain
RTTcodes support multiple domains (RTT, SET, Substrate, Observer, Governance, Docs, Other). You can extend the system by adding a new domain in a structured, schemaāaligned way.
Follow these steps:
1. Choose a domain identifier#
Use a short, lowercase string:
"astro"
"bio"
"ops"
"viz"
Avoid spaces and uppercase letters.
2. Add the domain to the schema#
Edit:
docs/rttcodes/schema/rttcode.schema.json
Add your domain to the enum list under domain:
"domain": {
"type": "string",
"enum": ["rtt", "set", "substrate", "observer", "governance", "docs", "other", "astro"]
}3. Create a domain folder under examples#
Add:
docs/rttcodes/examples/astro/
Include:
payload.jsonastro-rttcode.pngREADME.mddescribing the domainās purpose
4. Define the visual identity#
Add a row to:
docs/rttcodes/style/color-domains.png
And update:
docs/rttcodes/style/visual-guidelines.md
Define:
- primary color
- secondary color
- accent color
- domain motifs (e.g., orbital arcs, spectral lines)
5. Add a generator example (optional)#
Place a sample payload in:
docs/rttcodes/generators/examples/
This helps contributors test the new domain.
6. Validate the new domain#
Run:
node generate_rttcode.js payload.json test.png
or
python generate_rttcode.py payload.json test.png
If the schema accepts the payload and the QR is generated, the domain is fully integrated.
7. Document the domain#
Update:
docs/rttcodes/README.md
Add your domain to the domain list and link to its example folder.
Done#
Your new domain is now:
- schemaāvalid
- generatorācompatible
- visually defined
- documented
- ready for use across TriadicFrameworks
# š Canonical RTTcode Specification Document
A formal, stable reference for the entire system.
RTTcode Specification (v1.0)#
This document defines the canonical structure, encoding rules, and visual requirements for RTTcodes. All generators, validators, and style tools must conform to this specification.
1. Purpose#
RTTcodes provide a universal, QRācompatible metadata layer for artifacts across the TriadicFrameworks ecosystem. They unify:
- identity
- versioning
- triad metadata
- canonical URLs
- domain classification
2. Data Model#
An RTTcode payload MUST be a JSON object with the following fields:
Required#
| Field | Type | Description |
|---|---|---|
domain |
string | Domain identifier (see §3) |
artifact_type |
string | Type of artifact (paper, README, diagram, etc.) |
version |
string | Semantic version (e.g., v1.0.0) |
url |
string | Canonical URL of the artifact |
Optional#
| Field | Type | Description |
|---|---|---|
triad |
object | Resonanceātime triad metadata |
Triad fields:
f_Rā resonance frequencytau_Rā resonance time constantQ_Rā quality factor
All triad fields MUST be strings.
3. Domains#
Valid domain identifiers:
rtt
set
substrate
observer
governance
docs
other
Domains MUST be lowercase ASCII.
4. Encoding Rules#
The RTTcode URL MUST follow this pattern:
[https://triadicframeworks.org/rttcode](https://triadicframeworks.org/rttcode)?<domain>=<token>
Where <token> is:
<version>-f<f_R>-t<tau_R>-Q<Q_R>
Missing triad fields MUST be represented as:
f?
t?
Q?
Example:
`https://triadicframeworks.org/rttcode?set=v0.9.3-f0.72-t203ms-Q0.88` [(triadicframeworks.org in Bing)](https://www.bing.com/search?q="https%3A%2F%2Ftriadicframeworks.org%2Frttcode%3Fset%3Dv0.9.3-f0.72-t203ms-Q0.88")
5. QR Requirements#
- MUST be QR Model 2
- MUST use Error Correction Level H
- MUST include a quiet zone of ā„ 2 modules
- MUST encode the full URL exactly
- MAY include visual styling if scannability is preserved
6. Visual Guidelines#
RTTcodes SHOULD follow the domaināspecific palettes and motifs defined in:
docs/rttcodes/style/visual-guidelines.md
Overlays MUST NOT obscure:
- finder squares
- alignment patterns
- dense data regions
7. Versioning#
This specification is versioned independently from RTTcodes themselves.
Current version: v1.0
Future versions MUST remain backwardācompatible unless explicitly stated.
8. Compliance#
A valid RTTcode MUST:
- Pass schema validation
- Produce a valid URL+token
- Encode that URL in a QR matrix
- Remain scannable by standard QR readers
This document is the authoritative reference for RTTcode behavior.
# Changelog ā /docs/rtt/codes/
RTT/codes module ā QR-compatible metadata layer: schema, validators, generators, style system, and domain examples.
All notable changes to files in /docs/rtt/codes/ are documented in this file.
Format follows Keep a Changelog.
[1.1] ā 2026-05-06#
Context#
Full 14-file module audit triggered by directory migration from /docs/rttcodes/ to /docs/rtt/codes/.
Audit confirmed zero path breaks ā no file in the module references the old path.
Two infrastructure files received metadata refresh; twelve content files passed clean.
Migration#
- Previous location:
/docs/rttcodes/ - Current location:
/docs/rtt/codes/ - Impact: All internal relative paths preserved. No
$ref,$id, or cross-file reference required updating. The canonical schema directory (/docs/schemas/) was not relocated.
Changed ā RTT_codes_module.json (Module Manifest)#
_metaā Added full module registry block:module,canonical_id,module_type,role,version,status,author,licensecanonical_path,module_home(now/docs/rtt/codes/),module_urlrepository,last_updated,migration_note
_session_contextā Replaced old non-standardsession_contextwith standardized_session_contextblock matching TriadicFrameworks conventions (9 fields)._version_historyā Added array with v1.0 and v1.1 entries.cross_module_propagationā Added imports (RTT/1 operators, SARG structural grammar) and exports (schema, validators, generators, style system, examples).structural_grammarā Added dimensional, regime, coherence, drift, and regime sensitivity envelopes.- Version ā Bumped from 1.0 ā 1.1.
Changed ā schema/rttcode.schema.json (Local QR Payload Schema)#
$idā Added:https://www.triadicframeworks.org/rtt/codes/schema/rttcode.schema.json.$commentā Added refresh stamp with migration note._metaā Added full module registry block withrelationship_notedocumenting the distinction between this schema (QR payload) and the canonical packet schema (/docs/schemas/rttcode.v1.json)._session_contextā Added 9-field session context block._version_historyā Added array with v1.0 and v1.1 entries. Documents intentional inclusion of"simulation"in domain enum.- Version ā Bumped from 1.0 ā 1.1.
Not Changed ā Example Payloads (8 files)#
All eight domain example payloads passed the audit with no changes required:
| File | Domain | Artifact | Version | Status |
|---|---|---|---|---|
examples/docs.json |
docs | diagram | v1.0 | ā Pass |
examples/governance.json |
governance | docs | v1.3.1 | ā Pass |
examples/observer.json |
observer | module | v0.4.2 | ā Pass |
examples/other.json |
other | other | v0.0.1 | ā Pass |
examples/rtt.json |
rtt | paper | v2.1.0 | ā Pass |
examples/set.json |
set | simulation | v0.9.3 | ā Pass |
examples/simulation.json |
simulation | config | v0.2.0 | ā Pass |
examples/substrate.json |
substrate | README | v1.0.0 | ā Pass |
Rationale for no metadata addition: Example payloads are pure sample data ā they validate against the schema but do not define infrastructure. Adding _meta/_session_context would conflate sample content with module metadata.
Not Changed ā Schema Examples (4 files)#
All four schema-level example files passed the audit with no changes required:
| File | Purpose | Status |
|---|---|---|
schema/rttcode-payload-example.json |
Inline validation example (ā” examples/substrate.json) |
ā Pass |
schema/examples/diagram.schema.json |
Minimal payload sample (required fields only) | ā Pass |
schema/examples/paper.schema.json |
Full payload sample (ā” examples/rtt.json) |
ā Pass |
schema/examples/simulation.schema.json |
Full payload sample (ā” examples/set.json) |
ā Pass |
Noted ā Content Duplicate Pairs#
Three example files exist in both examples/ and schema/examples/. This is by design ā examples/ holds domain-organized samples; schema/examples/ holds validation-organized samples:
examples/substrate.jsonā”schema/rttcode-payload-example.jsonexamples/rtt.jsonā”schema/examples/paper.schema.jsonexamples/set.jsonā”schema/examples/simulation.schema.json
Noted ā Schema Relationship#
The module contains two distinct schemas serving different levels of abstraction:
| Schema | Location | Purpose | Properties |
|---|---|---|---|
| QR Payload Schema | schema/rttcode.schema.json |
QR-compatible metadata payload | domain, artifact_type, version, triad, url, checksum |
| RTTcode Packet Schema | /docs/schemas/rttcode.v1.json |
Full RTTcode packet structure | rtt_version, tick, entities, environment, intent |
Both schemas now document this relationship in their _meta blocks.
Noted ā Domain Enum Discrepancy#
The local QR payload schema includes "simulation" in its domain enum. The canonical packet schema's _domains list does not. This is intentional ā "simulation" is a payload-level classification used by examples/simulation.json and does not map to a canonical RTTcode packet domain. Documented in _version_history of schema/rttcode.schema.json.
[1.0] ā 2025-01-01#
Added#
RTT_codes_module.jsonā Module manifest.schema/rttcode.schema.jsonā QR-compatible metadata payload schema.schema/rttcode-payload-example.jsonā Inline validation example.schema/examples/diagram.schema.jsonā Minimal payload example.schema/examples/paper.schema.jsonā Full payload example (paper).schema/examples/simulation.schema.jsonā Full payload example (simulation).examples/docs.jsonā Domain example: docs.examples/governance.jsonā Domain example: governance.examples/observer.jsonā Domain example: observer.examples/other.jsonā Domain example: other.examples/rtt.jsonā Domain example: rtt.examples/set.jsonā Domain example: set.examples/simulation.jsonā Domain example: simulation.examples/substrate.jsonā Domain example: substrate.
File Inventory#
| File | Current Version | Status |
|---|---|---|
RTT_codes_module.json |
1.1 | refreshed |
schema/rttcode.schema.json |
1.1 | refreshed |
schema/rttcode-payload-example.json |
1.0 | pass |
schema/examples/diagram.schema.json |
1.0 | pass |
schema/examples/paper.schema.json |
1.0 | pass |
schema/examples/simulation.schema.json |
1.0 | pass |
examples/docs.json |
1.0 | pass |
examples/governance.json |
1.0 | pass |
examples/observer.json |
1.0 | pass |
examples/other.json |
1.0 | pass |
examples/rtt.json |
1.0 | pass |
examples/set.json |
1.0 | pass |
examples/simulation.json |
1.0 | pass |
examples/substrate.json |
1.0 | pass |
CHANGELOG.md |
ā | this file |
Related Changelog#
The canonical schema directory has its own changelog at /docs/schemas/CHANGELOG.md, covering the master packet schema (rttcode.v1.json) and its four sub-schemas (tick.v1.json, entity.v1.json, environment.v1.json, intent.v1.json).
Maintained by: Nawder Loswin Ā· TriadicFrameworks Ā· MIT
# š ļø Contributor Workflow
āHow to Add a New RTTcode (Step by Step)ā#
Contributor Workflow: Adding a New RTTcode#
This guide walks you through creating a new RTTcode from scratch and integrating it into the TriadicFrameworks documentation system.
1. Create a payload file#
Start with a minimal JSON payload:
{
"domain": "rtt",
"artifact_type": "paper",
"version": "v2.1.0",
"triad": {
"f_R": "1.00",
"tau_R": "144ms",
"Q_R": "0.97"
},
"url": "https://triadicframeworks.org/docs/rtt/"
}Save as:
payload.json
2. Validate the payload#
Use either validator:
JavaScript:
node validate_js.js payload.json
Python:
python validate_python.py payload.json
If validation passes, continue.
3. Generate the RTTcode PNG#
JavaScript:
node generate_rttcode.js payload.json out.png
Python:
python generate_rttcode.py payload.json out.png
This produces a QRācompatible RTTcode image.
4. (Optional) Apply domaināspecific styling#
Use the guidelines in:
docs/rttcodes/style/visual-guidelines.md
You may add:
- resonance waves (RTT)
- field lines (SET)
- lattice geometry (Substrate)
Ensure the QR remains scannable.
5. Add the RTTcode to the examples folder#
Place your files in:
docs/rttcodes/examples/<domain>/
Include:
payload.json<domain>-rttcode.pngREADME.mddescribing the artifact
6. Update the topālevel RTTcodes README#
Add a link to your new example and describe its purpose.
7. Commit and open a pull request#
Include:
- the payload
- the generated PNG
- any style updates
- README updates
Your RTTcode is now part of the canonical system.
This workflow is simple, repeatable, and contributorāfriendly.
𧬠3. TriadicFrameworksāWide Metadata Standard#
The layer RTTcodes plug into.#
TriadicFrameworks Metadata Standard (TFāMS v1.0)#
RTTcodes are one component of a broader metadata ecosystem within TriadicFrameworks. This document defines the shared metadata model that all artifacts, tools, and documentation layers plug into.
1. Purpose#
The TriadicFrameworks Metadata Standard (TFāMS) provides:
- a unified identity model for all artifacts
- consistent versioning
- domain classification
- optional resonanceātime triad metadata
- compatibility with RTTcodes, docs, diagrams, and build systems
RTTcodes implement TFāMS in a QRācompatible form.
2. Core Metadata Fields#
Every artifact in TriadicFrameworks SHOULD define:
| Field | Description |
|---|---|
domain |
Which part of the ecosystem the artifact belongs to |
artifact_type |
What kind of artifact it is (paper, README, diagram, model, etc.) |
version |
Semantic version string |
title |
Humanāreadable name |
description |
Short summary |
url |
Canonical location |
authors |
Optional list of contributors |
triad |
Optional resonanceātime metadata |
RTTcodes use a subset of these fields.
3. Domains#
Domains define the conceptual space an artifact belongs to:
rtt
set
substrate
observer
governance
docs
other
Domains MUST be lowercase ASCII.
4. Triad Metadata#
Triad metadata describes resonanceātime characteristics:
f_Rā resonance frequencytau_Rā resonance time constantQ_Rā quality factor
These fields are optional but recommended for RTT, SET, and Substrate artifacts.
5. Versioning#
Artifacts MUST use semantic versioning:
vMAJOR.MINOR.PATCH
Examples:
v1.0.0ā initial stable releasev2.1.0ā minor updatev2.1.3ā patch
RTTcodes embed the version directly into the URL token.
6. RTTcode Integration#
RTTcodes implement TFāMS by:
- encoding
domain,version, andtriadinto a compact token - linking to the canonical
url - providing a QRācompatible entry point into the metadata system
The RTTcode schema is a strict subset of TFāMS.
7. Compliance#
An artifact is TFāMS compliant if:
- It defines all required metadata fields
- It uses valid domain identifiers
- It uses semantic versioning
- It provides a canonical URL
- (Optional) It includes triad metadata
RTTcodes are the portable, scannable representation of this metadata.
TFāMS ensures that all TriadicFrameworks artifacts ā from theory papers to
substrate models ā share a common identity layer that is stable, searchable, and
machineāreadable.
# š§© How RTTcodes Work Internally
A clear, canonical explainer for contributors and tool authors.
RTTcodes are a structured, QRācompatible metadata layer that bind any artifact to its canonical TriadicFrameworks identity. Internally, an RTTcode is built from three cooperating layers:
- Payload Layer (JSON metadata)
- Encoding Layer (URL + token)
- QR Layer (machineāreadable matrix)
Each layer is independent but composable, making RTTcodes portable across languages, tools, and documentation systems.
1. Payload Layer (JSON)#
The payload is a small, schemaāvalidated JSON object:
{
"domain": "rtt",
"artifact_type": "paper",
"version": "v2.1.0",
"triad": {
"f_R": "1.00",
"tau_R": "144ms",
"Q_R": "0.97"
},
"url": "https://triadicframeworks.org/docs/rtt/"
}This layer defines:
- domain ā which part of the ecosystem the artifact belongs to
- artifact_type ā what kind of thing it is
- version ā semantic version
- triad ā optional resonanceātime metadata
- url ā canonical home of the artifact
The payload is validated using the RTTcode JSON Schema.
2. Encoding Layer (URL + Token)#
The payload is transformed into a compact, ASCIIāsafe token:
v2.1.0-f1.00-t144ms-Q0.97
Then embedded into a URL:
https://triadicframeworks.org/rttcode?rtt=v2.1.0-f1.00-t144ms-Q0.97
This URL is what the QR code encodes.
The encoding layer ensures:
- stability
- portability
- compatibility with all QR scanners
- future extensibility
3. QR Layer (Matrix)#
The URL is encoded as a QR code using:
- Error Correction Level H (to tolerate overlays)
- Square layout
- Minimum 2āmodule quiet zone
The QR is then optionally styled using domaināspecific motifs:
- RTT ā resonance waves, triadic nodes
- SET ā field lines, anisotropic vectors
- Substrate ā lattice geometry
- Observer ā frame grids
- Governance ā layered bands
The QR remains fully scannable because overlays respect safe zones.
Internal Flow Summary#
JSON Payload
ā validate
URL + Token
ā encode
QR Matrix
ā style (optional)
RTTcode PNG
This modular design keeps RTTcodes simple, robust, and futureāproof.
# RTTcode Examples
This folder contains example RTTcodes for each domain.
Each example includes:
- a valid RTTcode JSON payload
- a generated QR PNG
- domaināspecific styling (RTT, SET, Substrate)
- canonical URL+token encoding
Use these examples as references when designing new RTTcodes or testing tools. # RTT Domain Examples
This folder contains RTTādomain RTTcodes.
These examples demonstrate:
- resonanceātime triad metadata
- RTTāspecific styling (gold/teal/orange)
- canonical URL+token encoding
- schemaāvalid JSON payloads
Use these examples when creating RTTātheory RTTcodes or testing RTTādomain tools.
# SET Domain Examples
This folder contains SETādomain RTTcodes.
These examples demonstrate:
- field/flow triad metadata
- SETāspecific styling (violet/electric blue/magenta)
- canonical URL+token encoding
- schemaāvalid JSON payloads
Use these examples when creating SETāfield RTTcodes or testing SETādomain tools.
# Substrate Domain Examples
This folder contains Substrateādomain RTTcodes.
These examples demonstrate:
- substrate triad metadata
- deepāblue lattice styling
- canonical URL+token encoding
- schemaāvalid JSON payloads
Use these examples when creating Substrate RTTcodes or testing Substrateādomain tools.
# RTTcode Generators
This folder contains code that produces RTTcodes from JSON payloads.
Generators:
- validate payloads
- build URL+token RTTcode strings
- output QRācompatible PNGs
- support multiple languages (JS, Python)
Use these tools when:
- embedding RTTcode generation into build systems
- producing codes for documentation
- generating domaināspecific RTTcodes automatically # JavaScript RTTcode Generator
This folder contains the Node.js RTTcode generator.
Features:
- schemaāaligned payload validation
- URL+token RTTcode construction
- QR PNG output using the
qrcodepackage - CLI usage for automation
Run:
node generate_rttcode.js payload.json output.png
Use this generator in JSābased build pipelines or web tooling. # Python RTTcode Generator
This folder contains the Python RTTcode generator.
Features:
- schemaāaligned payload validation
- URL+token RTTcode construction
- QR PNG output using the
qrcodelibrary - simple CLI interface
Run:
python generate_rttcode.py payload.json output.png
Use this generator in Python workflows, automation scripts, or scientific tooling. # RTTcode Schema
This folder contains the canonical JSON Schema for RTTcodes.
The schema defines:
- required fields
- optional triad metadata
- allowed domain values
- versioning rules
- structural constraints
Tools in /validators and /generators rely on this schema for correctness.
If you are building RTTcode tooling, validating payloads, or extending the standard, this is the authoritative reference. # RTTcode Schema Examples
This folder provides minimal, valid JSON examples that conform to the RTTcode schema.
Each example demonstrates:
- correct field structure
- valid domain identifiers
- optional triad metadata usage
- version formatting
- URL placement
Use these examples as templates when creating new RTTcodes or testing validators.
This folder defines the visual identity of RTTcodes.
It includes:
- color palettes for each domain
- layout guides for QRāsafe zones
- triadic overlay geometry
- examples of domaināspecific motifs
- the canonical
rttcode-layout.svg
These guidelines ensure RTTcodes remain:
- scannable
- visually consistent
- domainādistinct
- aligned with TriadicFrameworks aesthetics
If you are designing RTTcodes, icons, or documentation visuals, start here.
# RTTcode visual guidelines
RTTcodes are QRācompatible visual identifiers for TriadicFrameworks artifacts.
This document defines the visual language, domain palettes, and layout rules so RTTcodes stay:
- scannable
- consistent
- recognizable as TriadicFrameworks natives
- usable in scientific, industrial, and educational contexts
1. Core principles#
-
QRāfirst:
The QR matrix must remain machineāreadable by standard scanners. -
Triadic identity:
Each RTTcode should visually echo resonanceātime geometry and triadic structure. -
Domainādistinct, familyācoherent:
Domains get their own palettes and motifs, but all RTTcodes should clearly belong to the same visual family. -
Print and screen friendly:
Designs must work in grayscale and on lowāquality prints when color is lost.
2. Base QR layout#
- Shape: square
- Recommended export sizes:
- 512Ć512 (inline docs, PDFs)
- 1024Ć1024 (print, slides, posters)
- Quiet zone (margin): at least 2 modules
- Error correction: level H (to tolerate overlays and subtle styling)
- Base colors:
- foreground (modules): nearāblack or deep domain color
- background: nearāwhite or very light domain tint
Rule: overlays must never obscure the three finder squares or destroy local contrast.
3. Domain palettes and motifs#
3.1 RTT (resonanceātime theory)#
- Palette:
- primary:
#F6B800(gold) - secondary:
#00B3B8(teal) - accent:
#FF6A3C(orange)
- primary:
- Motifs:
- concentric resonance waves
- triadic node triangles
- subtle phaseāshift arcs
- Usage:
- theory papers
- core RTT docs
- canonical triad references
3.2 SET (field / spaceāevent topology)#
- Palette:
- primary:
#5B2CFF(violet) - secondary:
#00C0FF(electric blue) - accent:
#FF3FBF(magenta)
- primary:
- Motifs:
- curved field lines
- anisotropic vector arrows
- nodal āchargeā points
- Usage:
- SET field simulations
- flow diagrams
- fieldāengine modules
3.3 Substrate#
- Palette:
- primary:
#003B73(deep blue) - secondary:
#00A0D6(cyan) - accent:
#7FD4FF(light cyan)
- primary:
- Motifs:
- lattice / grid structures
- crystalline frameworks
- nodeāedge networks
- Usage:
- substrate model READMEs
- structural diagrams
- implementation modules
3.4 Observer, governance, docs, other#
- Observer:
- muted teal + gray
- motifs: nested frames, perspective grids
- Governance:
- deep green + gold
- motifs: layered bands, decision trees
- Docs:
- neutral blues / grays
- motifs: page / tab silhouettes
- Other:
- grayscale or lowāsaturation variants
- minimal overlays
4. Overlay rules#
To keep RTTcodes scannable:
- Opacity:
- overlays should typically stay between 10ā35% opacity over the QR matrix
- stronger color can be used in the background outside the matrix
- Placement:
- avoid heavy overlays on:
- finder squares (three corners)
- dense data regions near the center
- prefer:
- background behind the code
- subtle lines that weave between modules
- avoid heavy overlays on:
- Line weight:
- thin to medium lines only; no large filled shapes over data areas
- Gradients:
- allowed, but maintain strong contrast between modules and background
If in doubt: generate a plain QR first, then layer visuals and test with multiple scanner apps.
5. Token and URL conventions#
RTTcodes use a URL + token pattern:
https://triadicframeworks.org/rttcode?<domain>=<version>-f<f_R>-t<tau_R>-Q<Q_R>Examples:
-
RTT theory:
https://triadicframeworks.org/rttcode?rtt=v2.1.0-f1.00-t144ms-Q0.97 -
SET field simulation:
https://triadicframeworks.org/rttcode?set=v0.9.3-f0.72-t203ms-Q0.88 -
Substrate README:
https://triadicframeworks.org/rttcode?substrate=v1.0.0-f0.83-t118ms-Q0.91
Guideline:
- Keep tokens short and ASCIIāonly.
- Use the same values as in the RTTcode JSON payload when present.
6. Recommended placements#
- In docs:
- topāright or bottomāright of the first page
- near the title block or ācanonical referenceā section
- In READMEs:
- under the main heading
- in a small āRTTcodeā block with a caption
- In diagrams:
- bottomāright corner, outside the main content
- In print / posters:
- at least 2 cm wide
- with a short label like āRTTcode (scan for canonical docs)ā
7. Accessibility and fallback#
- Ensure sufficient contrast between QR modules and background.
- Avoid relying solely on color to distinguish domainsāmotifs and layout help.
- When possible, include the plain URL below the code for manual entry.
8. Versioning and evolution#
- Visual guidelines may evolve; RTTcodes should remain:
- backwardāscannable
- semantically stable (same URL/token pattern)
- When styles change:
- keep the payload stable
- treat visual refreshes as nonābreaking
This file is the canonical reference for RTTcode visuals.
When in doubt, prioritize:
- scannability
- payload stability
- triadic, domaināaware identity
# RTTcode Validators
This folder contains tools that verify whether an RTTcode payload is valid, wellāformed, and compliant with the canonical RTTcode schema.
Validators ensure:
- required fields are present (
domain,artifact_type,version,url) - optional triad metadata is correctly typed
- payloads match the JSON Schema in
/schema/rttcode.schema.json - RTTcode URLs and tokens follow the standard format
Use these validators when:
- creating new RTTcodes
- integrating RTTcodes into build pipelines
- checking contributor submissions
- testing generators
Each validator is intentionally lightweight and easy to embed into other tools.