1. Vision: The “Container” for Business Logic
In the AI era, business logic is becoming fragmented and uncontrollable. Runly Protocol aims to define an industrial-grade encapsulation standard for logic. Just as Docker encapsulates runtime environments, Runly encapsulates execution paths. Through RSS (Runly SOP Standard), developers can upgrade non-standard “Prompt Interactions” into Digital Logic Assets featuring MeID Identity Provenance, Heterogeneous Resource Contracts, Human-in-the-Loop (HITL) capability, and Automated Royalty Settlement.2. Core Architecture (The 7-Domain Model)
A.runly asset file consists of seven core domains, ensuring security and determinism throughout the logic lifecycle.
2.1. Manifest
- Provenance & Uniqueness: Identifies the asset via a globally unique URN and binds it to the creator’s MeID (via Runly Me).
- Versioning: Follows SemVer 2.0.0 to ensure stability for downstream integrations.
- RAG Standardization: Defines access specifications for Semantic Retrieval (RAG) or Vector Databases.
- Tool Decoupling: Statically defines external actions (REST APIs, local scripts) with strong-typed I/O Schema validation.
- Strong-Typed Admission: Intercepts anomalies before data enters AI nodes using types like
string,json, andfile. - Artifact Definition: Defines final deliverables such as HTML reports or JSON data packets.
- Execution Semantics: Orchestrates the flow of
AI_TASK,LOGIC_GATE, andHITL(Human Approval). - State Machine Suspension: Natively supports pausing workflows at critical points, waiting for experts via Runly Me.
- Automated Settlement: Built-in pricing models and Royalty Share ratios for real-time settlement.
- Tamper-Proofing: Integrates Ed25519 digital signatures; any micro-tampering will cause verification to fail.
3. Why Choose Runly Protocol?
| Feature | Traditional AI Development | Runly Protocol (RSS) |
|---|---|---|
| Logic Stability | Highly prompt-dependent; prone to hallucinations. | Enforced by Logical Gates and Strong-Typed Schemas. |
| Integration Cost | Massive boilerplate for model/API adaptation. | Standardized SDK; Plug-and-Play assets. |
| Human Validation | Manual development of approval backends. | Native HITL suspension and breakpoints. |
| Monetization | Difficult to price “code fragments.” | Built-in Royalty logic; Pay-per-invocation. |
4. Developer Integration Guide (Step-by-Step)
Step 1: Init Use CLI to create a template following the 7-domain standard..runly file.
5. Communication Protocol: RSS Message (Packet Standard)
5.1. Request Packet
5.2. Response Packet
6. Developer Ecosystem & Support
- Runly Hub: Online visual protocol editor and asset repository for version management.
- Runly Executor: Lightweight, high-performance logic engine for cloud and edge deployment.
- Runly Me: Expert digital identity terminal for receiving HITL notifications and making signing decisions.
7. Glossary
| Term | Description | Business Value |
|---|---|---|
| MeID | Digital ID for Experts | Ensures assets are accurately attributed to the creator. |
| HITL | ”Human-in-the-Loop” | Prevents AI drift in high-value decisions with expert backing. |
| Artifact | ”Digital Product” | The final deliverable (PDF, HTML, or JSON) for the client. |
| Royalty | ”Logic Royalties” | Protects creators with automated, real-time revenue sharing. |
| Snapshot | ”Execution Snapshot” | Saves state during suspension for seamless cross-device resumes. |
