Skip to main content

Protobuf schema reference

All inter-layer contracts are defined as Protobuf schemas in proto/. This reference is generated from the .proto files using protoc-gen-doc.

pipeline.proto

Package: aucert.pipeline Java package: com.aucert.platform.domain.pipeline.model

Messages

MCPMessage

The MCP (Model Context Protocol) message envelope. All inter-layer communication flows through this message.

FieldTypeNumberDescription
task_idstring1Unique identifier for the test run task
source_layerstring2Originating layer (e.g., "generation")
target_layerstring3Destination layer (e.g., "execution")
payloadbytes4Serialized inner message
context_snapshotmap<string, string>5Key-value context data
confidence_scoredouble6Confidence level (0.0-1.0)
trace_idstring7Distributed tracing identifier
timestamp_msint648Unix timestamp in milliseconds

TestRunRequest

Request to initiate a test run through the pipeline.

FieldTypeNumberDescription
customer_idstring1Customer identifier
app_idstring2Mobile application identifier
frameworkstring3Test framework (e.g., "espresso", "xctest")
test_scoperepeated string4Scope filters for test generation

TestRunResult

Result of a completed test run.

FieldTypeNumberDescription
task_idstring1Task identifier from the request
statusstring2Run status (e.g., "completed", "failed")
tests_runint323Total tests executed
tests_passedint324Tests that passed
tests_failedint325Tests that failed
bugsrepeated BugReport6Detected bugs

BugReport

A bug detected during test execution.

FieldTypeNumberDescription
bug_idstring1Unique bug identifier
titlestring2Bug title
descriptionstring3Detailed description
severitystring4Severity level (critical, high, medium, low)
screenshot_urlstring5Screenshot evidence URL
device_contextstring6Device/emulator context
confidencedouble7Detection confidence (0.0-1.0)

knowledge-graph.proto

Package: aucert.knowledgegraph Java package: com.aucert.platform.knowledgegraph.model

Messages

KGQuery

Query the Knowledge Graph for nodes and relationships.

FieldTypeNumberDescription
query_typestring1Query type (e.g., "traverse", "neighbors", "search")
root_node_idstring2Starting node for traversal
max_depthint323Maximum traversal depth
filtersmap<string, string>4Filter criteria

KGResponse

Response from a Knowledge Graph query.

FieldTypeNumberDescription
nodesrepeated KGNode1Matching nodes
edgesrepeated KGEdge2Connecting edges
total_countint323Total matching results

KGNode

A node in the Knowledge Graph representing an app element.

FieldTypeNumberDescription
node_idstring1Unique node identifier
labelstring2Node type (e.g., "screen", "component", "action")
propertiesmap<string, string>3Node properties (stored as JSONB)
created_atint644Creation timestamp
updated_atint645Last update timestamp

KGEdge

An edge connecting two nodes in the Knowledge Graph.

FieldTypeNumberDescription
edge_idstring1Unique edge identifier
source_idstring2Source node ID
target_idstring3Target node ID
relationshipstring4Relationship type (e.g., "contains", "navigates_to")
weightdouble5Edge weight (for ranking)
propertiesmap<string, string>6Edge properties

Regeneration

This reference can be regenerated from source:

# Using protoc-gen-doc
protoc --doc_out=. --doc_opt=markdown,reference.md \
-I proto/ proto/*.proto

# Or via the generate script
./docs/scripts/generate-code-reference.sh proto