QNTX Glossary & Definitive Terms

This glossary defines the core concepts and symbols used throughout QNTX. For a conceptual overview, see Understanding QNTX. For system architecture patterns, see Two-Phase Jobs.

Core Concepts

ATS (Attestation Type System)

Both a type system AND storage system for attestations. For storage details, see Bounded Storage. It defines:

Attestation

A verifiable claim in the form: [Subject] is [Predicate] of [Context] by [Actor] at [Time]

Example: USER-123 is member of TEAM-ENGINEERING by hr-system@company at 2025-01-06T09:45:00Z

ASID (Attestation System ID)

Unique identifier for attestations. Always random for uniqueness, ensuring no collisions.

SEG / Symbol / Glyph

SEG (Segment)

An atomic unit of the attestation grammar. The operators (i, am, ix, ax, by, at, so, se, as, is, of) are all segments. Each segment has three layers:

Primary SEG Operators (UI/Command Symbols)

These symbols have UI components and keyboard shortcuts (user-configurable):

SymbolCommandMeaningUsage
iSelfYour vantage point into QNTX - the current user/session
amConfigurationSystem settings and state
ixIngestImport external data
axExpandQuery and surface related context
byActorAll forms: creator, source, authenticated user
atTemporalTime marker/moment
soThereforeConsequent action/trigger
seSemanticMeaning-based search and entailment

Attestation Building Blocks

Fundamental components of attestations (not UI elements):

SymbolConceptRole in Attestation
+asAssert - emit an attestation
=isIdentity/equivalence in "subject IS predicate"
ofMembership in "predicate OF context"

Note: Consider alternative typeable symbol for (of) for better keyboard accessibility

System Symbols

Infrastructure and lifecycle markers:

SymbolNamePurpose
PulseAsync operations, always prefix Pulse-related logs. See API
PulseOpenGraceful startup with orphaned job recovery. See Opening & Closing
PulseCloseGraceful shutdown with checkpoint preservation. See Opening & Closing
DBDatabase/storage layer
ProseDocumentation and prose content
DocDocument/file content (PDF, etc.)
SubcanvasNested canvas workspace

Manifestation

The visual form a glyph takes when it morphs beyond the GlyphRun. A glyph can manifest as a window, canvas, fullscreen overlay, modal, tooltip, or any other interactive surface. The same DOM element, the same identity — different manifestations. See glyphs.md for the full vision.

Configuration

Configuration Files

Configuration Precedence (Pluggable)

  1. System (/etc/qntx/config.toml) - lowest
  2. User (~/.qntx/config.toml)
  3. User UI (~/.qntx/am_from_ui.toml)
  4. Project (./config.toml)
  5. Environment (QNTX_*) - highest

Always shows source in UI to debug precedence issues.

Configuration Philosophy

Architecture

Core vs Plugins

Core is minimal, containing only:

Everything else is a plugin communicating via gRPC for isolation.

Package Relationships

ai/tracker → pulse/budget

The ai/tracker records API calls and feeds data to pulse/budget for centralized budget management.

Web UI ↔ Backend

Uses both REST API and WebSocket:

Async Job System

Data Model

Bounded Storage

Hard limits with oldest deletion by default. Future versions will support user-defined retention policies.

Temporal Representation

Flexible based on predicate - can be single timestamp, range, or point-in-time with duration.

Database Schema

Versioned with migrations using the migration system in db/sqlite/migrations/

Development Philosophy

Documentation Standards

Error Messages

Testing

Terminology Notes

Simplified Terms

Honest Documentation

Canvas Execution Model

upstream (Python global)

When a meld edge triggers a py glyph, the triggering attestation is injected as a Python dict named upstream. The glyph code doesn't fetch or subscribe — it is invoked with the attestation already present. Each matching attestation triggers a fresh execution.

The name upstream reflects that the attestation comes from the upstream glyph in the meld DAG. Injected by the Rust runtime (qntx-python/src/execution.rs) alongside attest(). See development/glyph-attestation-flow.md for the full model.

attest() (Python builtin)

Creates an attestation from within a py glyph. Injected into the Python execution context by the Rust runtime (qntx-python/src/atsstore.rs) — not a library import, just available as a global function.

attest(
    subjects=["alice"],
    predicates=["enriched"],
    contexts=["pipeline"],
    actors=None,        # defaults to ["glyph:{glyph_id}"] when running in a glyph
    attributes={"key": "value"}  # optional, arbitrary JSON
)

Returns a dict with the created attestation's fields (id, subjects, predicates, etc.). When called inside a meld-triggered execution, the output attestation can trigger further downstream glyphs if the DAG continues.

Actor convention: glyph:{id}

Attestations created by canvas glyphs carry actor: glyph:{glyph_id}. This is how producer→downstream edges scope their subscriptions: the edge watches for attestations from that specific upstream glyph. Defaulted automatically by attest() when running inside a glyph execution context.

Common Patterns

Query Pattern

ax contact                    # Find all attestations about contacts
ax is member of TEAM-ENGINEERING  # Find team members

Ingestion Pattern

ix https://api.example.com/data   # Ingest from API
ix file://./data.json             # Ingest from local file

Configuration Check

qntx am show                      # Show all configuration with sources
qntx am get pulse.workers         # Get specific value

See Also