XasCode
English

Graph IaC concepts

Look up the terms used in Graph IaC and follow a release from its configuration snapshot to the running instances.

Graph-based software engineering

Scroll horizontally to see the full diagram.

Graph-based software engineering Git declarations and CI graph publications supply content and provenance for Configuration Topology, which pins objects and dependencies to an immutable snapshot. Deployment records and runtime observations reconstruct Running Topology for an environment, time and evidence cutoff. Each deployment binding links to its configuration revision. The topologies share object identity, scope and provenance. Configuration Topology supports dependency, diff and impact review. A target snapshot, image artifact and running baseline feed a read-only release plan. Runtime evidence and configuration provenance support drift investigation and the SRE Agent. Engineering inputs Graph IaC Engineering uses SOURCE GRAPH BUNDLE EVIDENCE IMAGE ARTIFACT BOUND REVISION TARGET SNAPSHOT BASELINE Git and IaC declarations Source commits, objects and references CI publications and image artifacts Published graph snapshots Image tags and digests Deployment records and observations Expected configuration Observed runtime state Configuration Topology Objects and dependencies Fixed by snapshotId Running Topology Environment, time, evidence Revision per binding Design and review Dependencies and impact Configuration diffs Release planning Read-only release plan Steps and prerequisites Runtime investigation Runtime evidence Configuration provenance Drift and SRE Agent Shared by both topologies Object identity, scope and provenance
External tools or a separately authorized Terraform control plane execute deployments.

Example release for Receipt worker

  1. Choose the target snapshot

    Snapshot A contains Receipt worker at config-12. Snapshot B declares a new S3 bucket and a reference from the worker. B has its own snapshot ID even if the worker keeps the config-12 label.

  2. Identify the image

    The label v2.4.1 selects a recorded image. The artifact revision identifies its registration content, and the repository plus digest identifies the image itself.

  3. Read the running baseline

    The running bindings can still point to snapshot A. During a rollout, bindings using A and B can appear together in Running Topology.

  4. Review prerequisites

    The plan can include preparing the bucket and ECR repository, building the image if its digest is pending, releasing the worker, and verifying it. The steps are ordered by their declared dependencies.

Graph model

Graph IaC
A versioned graph of engineering metadata that connects declarations, delivery records, and runtime evidence.
Configuration Topology
The objects and declared relationships in a selected, immutable configuration snapshot.
Logical object
A service, resource, or other declaration whose identity persists across configuration snapshots.
Object ID (uid@scope)
The scoped identity of a logical object. Renaming it or moving its declaration preserves its identity.
Scope
The boundary that places a declaration in an environment and cloud context, such as an account, region, or project.
Cloud provider
The platform in a scope, such as AWS, Google Cloud, or Azure. The implementation layer selects the specific cloud product and the native configuration format.
Environment
A grouping such as test or production that can contain several cloud scopes. All clouds opens the readable scopes in that environment.
Object kind (kind)
The declared type of a node, such as Component or ObjectStorage, from which its fields and reference rules are defined.
Type contract
The versioned definition of a kind, including its schema, defaults, reference rules, and output capabilities.
Declaration
A scoped document object with metadata, spec, and lifecycle information. Its spec expresses the desired configuration or requirements.
Object metadata
Identity and descriptive fields for a declaration, including the UID, display name, namespace, labels, and governance details where provided.
Typed reference ($ref)
A field that identifies another object and one of its outputs. An explicit cross-scope reference needs permission from the source scope.
Declared output
A named value offered by a resource, such as a bucket name or endpoint, with a type and an availability stage.
Edge and relation
A directed fact with a relation such as CALLS or HAS_PERMISSION. For a declared reference, the edge runs from the referring object to the referenced object.
Reference slot
The specific field or position that gives rise to a reference. Separate slots preserve separate relationships between the same two objects.
Relationship evidence
The source declaration or observation supporting an edge, along with its enabled and resolution state.
External resource
An existing resource referenced through its declared physical identity and available outputs. The declaration leaves ownership with its existing manager.
Source location
A reference to the source file and evaluated JSON pointer behind a graph fact. Original line numbers depend on the available source evidence.
Network boundary and attachment
A network grouping or declared link, such as VPC peering, a transit gateway attachment, or Direct VPC egress. End-to-end reachability requires separate evidence.

Configuration and versions

Declaration layer
The portable object model for identities, scopes, dependencies, and requirements such as capacity or availability.
Implementation layer
An explicit choice of runtime or cloud product that realizes a declaration and resolves its requirements and references.
Native configuration
The tool-specific configuration produced by an implementation, such as a Terraform root module or a CloudFormation template.
Implementation mapping
The recorded link from a declared object or field to generated resources and properties in a native artifact.
Node phase
A classification such as authored, generated, or artifact that tells where a node comes from.
Configuration snapshot and graph version
One immutable revision of the complete configuration graph, including its nodes, edges, and recorded configuration artifacts.
Snapshot ID (snapshotId)
The content hash that selects an exact configuration snapshot for browsing, comparison, or a release target.
Node revision (nodeRevisionId)
The exact revision of a single graph node. An unchanged node revision can appear in several snapshots.
Edge revision
The exact revision of a relationship. Snapshot comparison can report edge and node changes independently.
Semantic hash
A fingerprint of deployment-relevant graph content. Display names and source annotations can change the full snapshot while leaving that fingerprint unchanged.
Binding configuration hash (configurationHash)
A fingerprint reported for one binding’s configuration. Comparable expected and observed fingerprints can support a drift check.
Git provenance
The commit SHA, message, branch, and repository associated with a build or publication. The version picker can show this context alongside the snapshot ID.
Configuration version label (configVersion)
A label such as config-12 attached to a release declaration, artifact, or runtime record. The same label can appear in several configuration snapshots.
GraphBundle
A portable package of a compiled graph snapshot and the content needed to validate, import, or publish it.
Content-addressed storage
Storage that retrieves immutable content by hash and lets snapshots share unchanged fragments.

Delivery and artifacts

Pipeline
A declaration of an external CI workflow and its inputs, source, or outputs, depending on the pipeline contract.
Pipeline binding
The declaration linking a pipeline to the components or targets it serves.
CI execution and attempt
The native identity of a run and its attempt on an external CI platform, used when verifying or tracing a publication.
Build run
A recorded generation or import of a graph snapshot. Repeated builds can reference the same snapshot ID.
Graph publication
A CI record that links a GraphBundle and snapshot to an external execution, its source, and the publisher connection.
Publisher connection
A configured external CI connection with a publishing identity and scope. Its adapter can verify reported execution and artifact facts.
Metadata ingestion
The process that accepts an uploaded payload and records its graph, artifact, runtime, or topology facts. Its receipt tracks whether the payload has been applied.
Ingestion envelope (GraphMetadataIngest/v1)
The source, event ID, scope, kind, payload digest, and optional provenance that identify a metadata submission.
Payload digest (payloadDigest)
The digest of the exact uploaded JSON bytes, used to check that the stored payload is the one referenced by its envelope.
Source event identity
The pair of source and event IDs used to deduplicate submissions. Reusing the pair for different content is a conflict.
Topology report
A report that associates a logical object with an exact snapshot and effective time, such as a configuration change reported after a Terraform run.
Release artifact
A recorded image or configuration artifact with a version label and immutable content identity. A configuration artifact references an existing snapshot.
Artifact input
A named slot in a component declaration that expects an artifact from a specified source, such as the main container image.
Image version (version)
A release label such as v2.4.1. The planner uses it with the declared image source to resolve a recorded artifact.
Artifact ID (artifactId)
The registration identity for a kind, source, optional target object, and version label.
Image artifact revision (revisionId)
Graph IaC’s immutable identity for registered image content, calculated from fields including source, repository, and digest. Several labels can refer to the same revision.
OCI image digest
The registry content identifier, such as sha256:…. The repository and digest together identify the precise image to use.
Release composition
The configuration revision and the artifact revisions for the image slots associated with a component release.
Lineage
An evidence-backed chain connecting source commits, builds, artifacts, configuration, and deployed objects wherever identifiers can be matched.

Running state and evidence

Running Topology
The environment graph reconstructed from deployment records and observations at a chosen time and evidence cutoff.
Graph reference (graphRef)
A query reference to a configuration snapshot or to a specific running view with its time and evidence cutoff.
Deployment binding (bindingId)
A runtime association between a logical object and a particular deployment or instance. Overlapping deployments can use distinct bindings and revisions.
Physical identity (physicalId)
The identifier reported by a cloud platform or runtime for a concrete instance or resource.
Deployment record
A recorded assertion that a specific binding is expected to use a configuration revision, with artifact identities when supplied.
Runtime observation
A timestamped report of what a collector or another source observed, such as existence, readiness, an image digest, or a configuration value.
Removal record
An assertion that ends a binding’s presence in the running view after its effective time. Earlier history stays available.
Effective time (effectiveAt, at)
The time a fact took effect, or the time being queried for a running view.
Evidence cutoff (knownAt, knowledgeRevision)
The information available to a query at its cutoff. The pinned knowledge revision identifies the committed ledger prefix for repeatable reads.
Recorded time (recordedAt)
The time the service recorded a fact. Late reports can have an effective time earlier than their recorded time.
Evidence validity (validUntil)
The deadline through which an observation supports a current-state claim. An expired observation stays in history.
Evidence status
A record of how well a claim is supported, including verified or observed facts, reported intent, missing observations, expiry, and conflicts.
Evidence provenance
The identity and origin of a declaration, report, collector observation, or simulated record, so a reader can evaluate its claim.
Observed call
Runtime evidence that one endpoint called another, such as a correlated trace. The graph also retains separately declared dependencies.
Resolved runtime reference (resolvedBindings)
Evidence that identifies the concrete binding used by a logical dependency at runtime.
Rollout
The transition in which old and new bindings can coexist. A rollback records a return to a previously used version.
Version group
A running-view grouping of candidate versions or instances for a logical object.
Configuration drift
A difference between the expected configuration and comparable, valid observations for the same binding at the same time.
Running timeline
A view of recorded changes over time, with links to the effective configuration or evidence at a point or across a selected range.
Replay dataset (datasetId)
An isolated historical dataset for replay, such as the simulated Commerce demo. The latest replay view uses the last applicable sample.
Kubernetes ownership lineage
Collected links from a Deployment through its ReplicaSets to Pods, combined with container digests and release evidence when available.

Releases and planning

Activity and Inspect
Activity lists historical release records and demo timeline events. Inspect opens one row with the facts and fields available for its source.
Archived deployment
A historical release request with its linked plan, targets, and last recorded execution or job status when available.
Simulated timeline
The release, health check, and scaling events generated for a demo dataset. Each event carries its own time and reported status.
Builds and Artifacts
Builds lists external runs and publications. Artifacts lists recorded image and configuration versions and their content identities.
Release plan preview
A read-only proposal of the steps required to reach a selected configuration and image from the comparison baseline.
Release target
The managed component or resource for which a release plan is generated.
Target configuration
The desired configuration snapshot from which the planner reads the release target and its declared prerequisites.
Comparison baseline
The recorded running state used by default, or an explicitly selected comparison snapshot. The local demo offers a simulated runtime baseline.
Configuration diff
The recorded graph, field, relationship, or native configuration changes between two selected snapshots.
AI summary
An optional explanation of recorded snapshot differences, with links to the changes it summarizes.
Prerequisite and required output
A declared resource, artifact, or output that a later release step needs. A plan can include a bucket, registry, and build step before a component release.
Plan stage
A position in the dependency order. Independent prerequisites can belong to the same stage.
Plan status and blockers
Indicators that show available evidence, steps awaiting input, and blocked dependencies such as a missing digest or missing verification.
Plan details
The complete plan record with the selected configuration, frozen runtime reference, image identities, steps, and dependency evidence.

Exploration and observability

Topology workspace
The canvas for navigating configuration or running graphs, tracing relationships, and opening node or edge details.
Nodes inventory
The filterable list of nodes for an environment, with counts, object details, and coverage.
Dependency chain and hop
A path made of individual recorded relationships. A hop traverses one relationship.
Impact analysis
A bounded reverse-dependency traversal from a changed object to consumers that might be affected.
Coverage and evidence gap
Information about how many references or facts can be resolved, with explicit gaps such as unavailable fields or missing observations.
Runtime workspace
The time-bounded view of connected resources, metrics, logs, traces, and recorded changes for an object.
Metrics, logs, and traces
Metrics summarize measured values over time, logs retain events, and traces connect the spans of a request.
Observability catalog
The recorded metrics, log formats, field meanings, correlation keys, and collection sources available for an object.
Alert evaluation group
A named set of alert rules on a telemetry binding with a shared evaluation interval.
Metadata context
A bounded set of graph, lineage, and runtime evidence scoped to an object and query time, with coverage and unknowns.
SRE Agent
A read-only investigator that queries a fixed context and returns findings and hypotheses with cited evidence and follow-up checks.
Shareable view
A link that retains the graph or running time, scope, filters, and selected object or evidence so another authorized reader can reopen the same view.
Metadata consumers
The viewer, CLI, HTTP API, and read-only MCP tools that query graph facts and their evidence.

Access and Terraform execution

Managed access
A deployment mode that authenticates users with OIDC and presents graph facts according to the current access view.
Project
An authorization boundary for ownership, evidence sources, and deployment resources in a managed instance.
Access roster
A protected Git document that defines people, scoped component ownership, grants, and trusted evidence or publishing sources.
Principal and grant
A user, reader, publisher, or automation identity together with permissions over particular objects or deployment targets.
Terraform deployment control plane
An optional, separately enabled service for running authorized native Terraform deployments. The Releases plan preview stays read-only.
Terraform deployment package
An immutable, private package of native Terraform files, local modules, and provider locks for an authorized deployment.
Terraform deployment target
The binding of a project, scope, artifact source, root module, variables, credential profile, and fixed state address.
State and state occupancy
Terraform state records its managed resources. State occupancy serializes runs that would operate on the same fixed state.
Deployment run
A durable record of one authorized deployment attempt, tying together the target, artifact, lifecycle, and any linked graph snapshot.
Native Terraform plan (plan.bin)
The saved plan for a single Terraform root and state. The apply phase verifies and uses that saved plan.
Recovery and unknown outcome
Recovery reconciles evidence from the original run. An unconfirmed apply outcome retains state occupancy while the system waits for evidence.

Declared object kinds

System
An application or service system that groups components and resources.
Environment
A declared deployment environment.
Component
An application or service workload with configuration and dependencies.
ExternalService
A third-party or separately operated service that components can reference.
Network
A virtual network that can contain subnets.
Subnet
A segment of a network with a defined address range.
VpcPeeringConnection
A declared peering link between two networks.
TransitGateway
A hub for connecting multiple networks.
TransitGatewayVpcAttachment
The attachment of a network and selected subnets to a transit gateway.
LoadBalancer
A traffic distribution resource with listener or backend relationships.
DomainName
A DNS name and its declared target.
HttpRoute
HTTP matching and forwarding rules for a service.
Cluster
A compute or workload hosting cluster.
ImageRepository
A registry repository that stores container images.
Cache
A cache service with declared capacity and availability requirements.
ObjectStorage
A logical object store such as a bucket.
RelationalDatabase
A relational database resource.
Volume
A storage volume that a workload can mount.
Queue
A message queue with producer or consumer relationships.
Topic
A message topic that publishes to subscribers.
Identity
An execution or access identity referenced by a workload.
AccessPolicy
A declaration of permissions over resources.
SecurityGroup
A network access rule group for associated resources.
SecretReference
A reference to a secret managed by another system.
Certificate
A certificate resource used in secure endpoints.
ConfigArtifact
A configuration object available as an artifact or dependency.
DeploymentStack
A declared group of resources with a shared deployment boundary and parameters.
Pipeline
The declared metadata of an external CI workflow.
PipelineBinding
A link from an external pipeline declaration to components or targets.
TelemetryBinding
A link between an observed object and its declared observability configuration.
AlertRule
An alert condition with a query expression and alert settings.
LogGroup
A named destination or grouping for logs.
AWS::S3::Bucket
A direct declaration of an AWS S3 bucket.
AWS::SQS::Queue
A direct declaration of an AWS SQS queue.

See these concepts in use

Graph IaC integration guide

Start with one service. Connect its declared dependencies, CI publications, and runtime observations using Payment and its Stripe dependency as an example.

Declare a dependency

Give the component and dependency stable IDs within a scope. In payment.jsonnet, the Payment component uses a $ref to the Stripe object. Replace the example image with the artifact your CI builds.

local scope = std.extVar('scope');
local object(kind, uid, name, spec) = {
  apiVersion: 'platform.graph-iac/v1alpha1',
  kind: kind,
  scopeRef: scope,
  metadata: { uid: uid, name: name, namespace: 'commerce' },
  lifecycle: { deletion: 'retain' },
  spec: spec,
};
{
  scopes: [{
    id: scope, environment: scope, cloudProvider: 'gcp',
    account: 'example-commerce', region: 'us-central1',
    allowReferencesTo: [],
  }],
  objects: [
    object('Component', 'payment', 'Payment', {
      image: 'docker.io/library/nginx:1.27',
      containerPort: 80,
      replicas: 1,
      externalDependencies: {
        payments: { target: { '$ref': { uid: 'stripe', output: 'identity' } } },
      },
    }),
    object('ExternalService', 'stripe', 'Stripe', {
      vendor: 'stripe', product: 'payments',
      locations: [{ countryCode: 'US', region: 'us-east-1' }],
    }),
  ],
}

Inspect Payment in System Graph · Explore the Amazon EKS sample

Publish a versioned snapshot from CI

On your CI runner, build a GraphBundle from the exact revision it checked out. Register the pipeline and its binding with your XasCode instance, then create a publication manifest that identifies the CI execution and attempt, scope, snapshot ID, and bundle digest. Keep the publisher token in CI secrets.

graph-iac bundle --file payment.jsonnet --scope prod --output graph-bundle.json

graph-iac publish --file graph-bundle.json \
  --request graph-publication.json --endpoint "$GRAPH_IAC_ENDPOINT"

Store the bundle as a CI artifact so the exact configuration can be reviewed later. The content-addressed snapshot ID pins the declarations behind the graph.

Connect source commits and artifacts

Publish the build result with the source repository and commit, CI execution ID, and immutable artifact reference, such as an OCI repository and digest. Record the application artifact and configuration snapshot used for a deployment so an observed digest can be traced back to its build and commit.

Trace the Stripe dependency across the snapshot

Rebuild running state from records and observations

Have the deployment system report the scope, object ID, binding ID, and exact configuration snapshot or revision it expects. Have a collector report that same binding’s observed instance identity, image digest, effective time, and evidence expiry.

XasCode uses the deployment records and observations available at the chosen time. During a rollout, different bindings can point to different snapshots. Compare each observation with its own binding’s expected configuration to identify drift, and surface missing, stale, or conflicting evidence.

Follow the Checkout rollback investigation

Investigate with cited evidence

Start with a question, a scope, and a time window. The SRE Agent can look up declared dependencies, changes, releases, and available runtime evidence. Its findings link to the records and paths they rely on. Use the reported gaps to decide which checks still need to run.

Follow the Auth drift investigation

IaC guides

Bring an engineering question

Share your current CI, runtime platform, and what you want to trace. We can work through the first integration together.

[email protected]