UCL 5.0 "GraphNative" is an advanced formal language specification designed for clear, unambiguous, and powerfully expressive communication with AI systems (especially Large Language Models - LLMs) and between software components. It enables precise instruction, rich data representation as semantic graphs, and sophisticated contextual control.
As AI systems evolve, the need for a communication method that matches their sophistication becomes critical. UCL 5.0 builds on the foundation of previous versions to address the challenges of instructing and interacting with highly capable AI:
- Deep Semantic Precision: Moves beyond simple structured data to graph-native payloads, where relationships and meanings are explicitly defined using URIs, minimizing ambiguity.
- Sophisticated Contextual Control: Introduces the Context Mixer (
cm:
), a powerful mechanism to define, weigh, and combine multiple contextual influences (e.g., style, audience, domain knowledge, ethical guidelines) to precisely guide AI behavior. - Enhanced AI "Instructability": Empowers developers to "program" AI tasks with a higher degree of control, leading to more predictable, reliable, and nuanced outcomes from LLMs and other AI services.
- True Semantic Interoperability: Facilitates a shared, machine-interpretable understanding of complex data and commands between diverse systems by leveraging RDF-like principles and shared vocabularies.
- Robust Automation of Complex AI Workflows: Provides a clear language for defining configurations, data transformations, multi-step reasoning processes, and inter-agent communication.
UCL 5.0 messages are built upon these enhanced core ideas:
- Structured Message Envelope: A clear syntax defining
Source
(optional),Target
,Operation_UCLID
(usingexecute
as the primary verb), and high-levelModifiers
. - UCL-IDs (URIs): Globally unique identifiers (URIs, often shortened with
@prefix
to CURIEs) for all semantic elements: concepts, entities, properties (predicates), actions, and contextual aspects. - Graph-Native Payload (
PayloadGraph
): The core data of the message is represented as a graph of semantic triples(subject predicate object)
, enabling rich and explicit relationship modeling. - Context Mixer (
cm:
): The primary mechanism for advanced context management.^cm:profile
modifiers link operations to "Context Mixer Profiles" that define how various contextual focuses are weighted, filtered, and applied. - Optional Context Stack (
#
): A simpler, linear stack of contexts (from UCL 4.2) can still be used for broader, complementary contextual framing. - Extensibility & Vocabularies: Designed to be extended with custom, domain-specific vocabularies and ontologies, while encouraging reuse of standard ones (e.g., Schema.org).
- Graph-Native Data Representation: Directly model complex, interconnected information within message payloads.
- Advanced Context Mixer: Fine-grained control over multiple, weighted contextual influences.
- Streamlined Envelope Syntax: Clear and focused on orchestrating the operation.
- Enhanced Semantic Rigor: Strong emphasis on URI-based identification for all concepts.
- Optimized for LLM Orchestration: Designed to instruct LLMs on how to think and process, not just what to process.
- Foundation for Reasoning Traces: Supports requests for structured explanations of AI processing.
- Conceptual Binary Serialization (UCL-Bin 5.0): Vision for an efficient binary format for M2M communication.
- Dive into the Documentation:
DOCS/00_welcome_to_ucl5.md
- Your first welcome to UCL 5.0.DOCS/01_migrating_from_ucl4.2.md
- Essential guide for users of previous versions.DOCS/02_introduction_and_goals_ucl5.md
- Understand the "why" behind UCL 5.0.DOCS/03_getting_started_ucl5.md
- Your first steps with UCL 5.0 syntax and concepts.DOCS/04_core_concepts_ucl5/01_graph_native_representation.md
- Deep dive into graph payloads, envelopes, UCL-IDs.DOCS/05_context_mixer_deep_dive/01_introduction_to_cm.md
- Master the powerful Context Mixer.DOCS/06_syntax_in_detail_ucl5.md
- The complete textual syntax reference.DOCS/08_ucl5_and_llms/01_optimizing_llm_communication.md
- Specifics on using UCL 5.0 with Large Language Models.DOCS/09_use_cases_and_benefits_ucl5.md
- Explore what you can achieve with UCL 5.0.DOCS/10_building_an_advanced_ucl_prompt.md
- Tutorial on crafting sophisticated UCL 5.0 messages.DOCS/11_future_directions.md
- Our vision for what's next.
- Practical Examples:
examples/
- See UCL 5.0 in action, including migration examples and advanced scenarios. - Full Specification (Under Development): A formal
SPECIFICATION.MD
for UCL 5.0 is a goal. TheDOCS/
currently serve as the descriptive specification. - Quick Overview: (A
PRESENTATION_QUICK_GUIDE_UCL5.md
will be created).
UCL 5.0 is envisioned as a collaborative, evolving standard. We welcome contributions! Please read our CONTRIBUTING.md
guide to learn how you can help improve the specification, documentation, examples, or develop tooling.
(A CODE_OF_CONDUCT.md
should also be present for community guidelines).
UCL 5.0 (this specification and documentation) will be made available under a permissive open-source license (e.g., MIT or Apache 2.0 - to be finalized in the LICENSE
file).
This repository hosts the evolving specification for UCL 5.0 "GraphNative." It aims to be a living document, refined through community feedback, practical application, and ongoing research into effective AI communication.