XPlain is a general-purpose form of agentic AI that’s platform-agnostic and audit-ready. It orchestrates decisions using Meta-Primers, domain Primers, and Romers to align beliefs, goals, and commitments with evidence gates, human pause points, and assurance controls. The result: agents you can trust—traceable, compliant, and ready for real-world deployment across GRC, supply chain, risk, and data quality.
“Meta-primer governs both the topical primers and the romer, ensuring cross-aligned behaviour and trace policy”
“XPlain does the how, not the what”
XPlain-R Romer Trace – Full Architecture Overview
The Romer Trace function sits inside the XPlain-R framework as the audit and assurance spine. It connects the meta-primer (global rules), topical primers (job-specific rules), and the romer runtime (navigation engine) into an explainable, versioned trace that can be reviewed and compared across platforms and time.
Layers
- Meta-Primer Layer – defines global reasoning constraints, logging obligations, and governance rules that apply to every job.
- Topical Primer Layer – binds the meta-primer to a specific domain or use case (e.g. GRC assessment, supply chain audit).
- Romer Runtime Layer – executes the combined rules, generates waypoints and sub-questions, and drives the reasoning path.
- Trace Layer – normalises and persists romer events as an ordered, version-aware trace with state snapshots.
- Storage & Analytics Layer – provides immutable trace storage and cross-job analytics on romer behaviour and method performance.
- Experience Layer – exposes traces to humans via viewers, dashboards, and export packs for audit and research.
Key Design Properties
- Version-aware – every trace event is tagged with primer and meta-primer versions, so behaviour can be explained in context.
- Append-only – traces are immutable; any corrections are new events, not edits.
- Separation of concerns – primers define rules, the romer defines navigation, and the trace service defines auditability.
- Cross-platform – the event schema can be implemented across different AI backends while preserving a common trace format.
- Assurance-ready – designed to support architecture review, internal and external audit, and regulatory explainability requirements.
Typical Flow
- A job is started with a meta-primer and a topical primer bound to it.
- The romer runtime applies these rules to explore, evaluate, and synthesise, emitting structured events.
- The Romer Trace Service enriches these events with versions and state snapshots and writes them to the Trace Store.
- Analytics and observability tools read from the Trace Store to surface patterns, anomalies, and performance metrics.
- Trace viewers and export packs present a human-readable reconstruction of what happened and why.
Romer Trace Architecture
High-level component and data-flow view for the Romer Trace function.
- • Global reasoning constraints
- • Event logging & trace policies
- • Meta-primer version & IDs
- • Contextual rules for this job
- • Domain patterns & templates
- • Primer version & IDs
- • Executes meta-primer constraints & topical rules
- • Generates waypoints & sub-questions
- • Manages modes (explore / evaluate / synthesize / check)
- • Emits events (JobStarted, RomerWaypoint, EvidenceAttached, ExternalCheckRecorded, OutcomeCommitted, JobCompleted)
- • Normalises event payloads
- • Attaches primer & meta-primer versions
- • Captures romer state (mode, focus, constraints)
- • Maintains ordered, append-only trace per job
- • Applies privacy filters & access rules
- • Per-job event streams
- • Indexed by job, agent, version, time
- • Supports filtered read & export
- • Romer path patterns & clustering
- • Primer rule usage analytics
- • Dashboards & health metrics
- • Start → waypoints → checks → outcome
- • Filter by event type or time
- • Redacted views for external reviewers
- • Architecture & method review
- • Assurance & explainability packs
- • Methodology refinement & experiments
Flow Summary (End-to-End)
- Meta-Primer & Topical Primer
- Provide rule sets, governance constraints, and version fingerprints.
- Romer Runtime
- Executes the job, generating waypoints and decisions.
- Emits structured events to the Romer Trace Service.
- Romer Trace Service
- Normalises and enriches events.
- Inserts romer state snapshots (mode, focus, constraints).
- Annotates each event with primer + meta-primer versions.
- Writes to an append-only, immutable trace log.
- Trace Store
- Maintains a fully ordered event stream per job.
- Supports index/search by job, agent, version, or timeframe.
- Analytics Layer
- Extracts path patterns, rule usage profiles, and cross-job behaviour.
- Powers QA, assurance, and lineage dashboards.
- Trace Viewer / Audit Tools
- Presents a job-specific reconstruction:
- Start → waypoints → checks → evidence → outcome.
- Allows filtered export for architecture and compliance review.
- Presents a job-specific reconstruction:
The Stack at a Glance
Directive → Meta-Primer → Topical Primer → Romer → Process → Job → Learning
-
Directive
Sets ethics, licensing, and scope. Defines permitted artifacts and oversight for auditable operation.
-
Meta-Primer
Construction rules for how domain primers are built, validated, and governed.
-
Topical Primer
Domain logic: evidence gates, thresholds, escalation triggers, and audit requirements.
-
Romer
Executable reasoning derived from the Primer (lens selection, rules, pause points, trace logging).
-
Process
Orchestrates stages and handoffs: intake → validation → execution → review → outputs → learning capture.
-
Job
Validated output plus an audit trail suitable for business and system readers.
-
Learning
Feeds improvements back into the Primer (captured edge cases, overrides, drift findings).
Why It Works
- Scaffold-dependent reasoning: XPlain keeps agents inside explicit boundaries (“lenses,” rules, and gates), delivering consistent, auditable results that degrade gracefully on edge cases.
- Assurance by design: Confidence floors, boundary bands, drift checks, and mandatory pause points are first-class citizens.
- Full traceability: Every decision can be surfaced via a Romer Trace (inputs → transformations → judgments → outputs).
Layered Architecture (Embed Any Framework, Including IFAAMAS)
1) Governance Layer — Directive
Defines permitted artifacts, interpretive scope, and oversight. This keeps the system auditable and non-opaque across platforms.
2) Construction Layer — Meta-Primer & Primers
- Meta-Primer: the construction rules (purpose, scope, lenses, validation criteria).
- Topical Primers: domain-specific standards, evidence gates, thresholds, escalation triggers, and audit requirements.
3) Execution Layer — Romer
- Translates the Primer into executable reasoning: choose lens (R_logic, R_prob, R_hybrid, etc.), run decision nodes, apply weights/thresholds, and produce a traceable result.
- Explicit human-in-the-loop triggers (confidence < floor, boundary cases, bias flags).
4) Orchestration Layer — Process
- Intake → Primer selection → Romer activation → Validation gates → Conditional human review → Finalization → Learning capture.
- Ensures repeatability, variance reduction, and governance in practice.
5) Assurance & Trace Layer
- Romer Trace provides the black-box recorder for reasoning; audit mode surfaces full chains with overrides and rationale.
- Learning capture converts edge cases into bounded updates.
IFAAMAS-Compatible by Design
XPlain embeds AAMAS concepts without locking you to a specific runtime:
- BDI Alignment:
- Beliefs ↔ evidence + lenses in Primers
- Desires ↔ stated objectives and metrics
- Intentions ↔ Romer plan selection + commitment rules, logged in the trace
This makes agent goals and commitments explicit and verifiable.
- Norms & Governance:
Evidence gates, pause points, and change budgets operationalize institutional norms and oversight—core AAMAS themes adapted to modern LLM agents. - Protocols & Coordination:
Process handoffs and audit-ready traces provide the substrate for formal interaction patterns (e.g., you can layer FIPA/contract-net semantics over the same gated decisions).
Bottom line: XPlain is the integration surface—bring BDI, norms, or mechanism-design ideas from AAMAS, and bind them to evidence, gates, and traces for real-world assurance.
What You Get (Out-of-the-Box Behaviors)
- Consistency & comparability: identical inputs → identical governed logic.
- Human-in-the-loop by rule, not by hope: explicit triggers for review and escalation.
- Dual-reader outputs: concise business report + detailed system report + full trace on demand.
Example (Abbreviated)
- Primer: Third-Party Security (v2.1) — mandatory evidence, confidence floor, and constraints to reference ISO/NIST.
- Romer: R_hybrid lens applies scoring and thresholds; boundary cases escalate.
- Output: Risk score with confidence, evidence summary, and audit trail pointer—repeatable across vendors.
Governance Note
This page reflects XPlain’s interpretive architecture and permitted artifacts (Primers, Romers, Traces, Processes). Executable analytics or data-run simulations fall outside the governed scope unless explicitly authorized.
CTA
Design your first Primer → Encode your domain rules, evidence gates, and assurance thresholds, then derive a Romer to make your agent auditable from day one.