Facet
All docs

Field Mapping Guide

Aliasing your own field names onto the canonical fields Governance, Analytics, and FinOps already expect — no code changes to your business logic required.

Field Mapping Guide

Read this if: your Governance, Analytics, or FinOps dashboards show blank or missing values for a field you know your application actually produces — e.g. a Decision Record with an empty outcome, or a FinOps cost-allocation view that can't tell which team or cost center a Trace belongs to, even though that information is right there in your own data under a different name.

Field Mapping is the layer that bridges your own field names onto the canonical field names every projection (Governance, Analytics, FinOps) already knows how to read. It never invents or computes a value — it only tells the platform which of your own field names holds the value a canonical field expects.

Field Mapping has two parts, which solve related but distinct problems. Both live under a single "Vocabulary Mapping" umbrella in the Customer Portal:

Artifact Payload Field Mapping Trace Context Field Mapping
Question it answers "Which key in this Artifact's own payload holds the value outcome/confidence/risk_score expects?" "Which key in this Trace's own context holds the value cost_center/team expects?"
Used by Governance (Decision Records, Policy Compliance, Risk Assessments) FinOps (cost allocation by team, cost center, or any other allocation dimension)
Scope Per Artifact type (DECISION, APPROVAL, POLICY_EVALUATION, RISK_ASSESSMENT, OBLIGATION, EXCEPTION) Flat, one mapping per context key

Why this exists

Your own application already produces everything a projection needs — it just doesn't necessarily call it by the same name a canonical field uses. One of your applications might call its decision outcome decision_outcome; another, written by a different team, might call the same concept verdict. Both are the same canonical idea (DECISION.outcome), but the platform has no way to know that on its own — guessing would mean baking an assumption about your naming conventions into the platform, which this platform deliberately never does.

Field Mapping closes that gap explicitly, per application, without ever requiring the platform to guess your own naming conventions. It is purely additive: your original field is never removed or overwritten, only aliased.

Prerequisite: classify the Artifact first

Artifact Payload Field Mapping only has something to map once an Artifact is already classified as the right type (DECISION, APPROVAL, POLICY_EVALUATION, RISK_ASSESSMENT, OBLIGATION, or EXCEPTION). If your Governance dashboard shows "No DECISION artifact observed yet for this Trace" at all — not just a blank outcome field on an Artifact that otherwise shows up — see the Artifact Type Mapping guide first. Classification and field mapping are two steps in the same pipeline: classify first, then map that Artifact's own field names.

Configuring Artifact Payload Field Mapping

A mapping is a flat table, scoped to one Artifact type, pairing a canonical field name with the path to your own payload key:

# For every DECISION artifact this application produces:
[artifact_payload_field_mapping.DECISION]
outcome = "decision_outcome"
confidence = "confidence_score"
explanation = "rationale"

# For every RISK_ASSESSMENT artifact:
[artifact_payload_field_mapping.RISK_ASSESSMENT]
risk_score = "exposure"

Resolution happens once, when an Artifact is first created — the resolved value is written alongside your own original field, never in place of it, so nothing you already produce is ever lost or hidden.

Configuring Trace Context Field Mapping

Trace Context Field Mapping follows the same idea, but is flat (no per-type nesting), because it bridges one thing: whatever your own application's execution context calls a FinOps allocation dimension (cost center, team, business unit, environment, or any other dimension your FinOps projection groups cost by):

[trace_context_field_mapping]
cost_center = "billing_code"
team = "owning_squad"

Two ways to configure Field Mapping

  1. SDK-side configuration file (recommended for applications you control) — add an [artifact_payload_field_mapping.<TYPE>] and/or [trace_context_field_mapping] section to the same configuration file your adapter already reads. This keeps your field-naming knowledge in versioned, reviewable configuration, living alongside your own application code. It is read live, inside your own process, before anything is sent to ADG — nothing about your field names ever needs to be shared out-of-band.
  2. Customer Portal — "Vocabulary Mapping" tab — configure the same mapping directly in the Portal, with separate sub-tabs for Artifact Payload Field Mapping and Trace Context Field Mapping. This is the right choice when you can't change the application's own code directly, or when a FinOps/cost-ownership stakeholder (rather than the integrating engineer) owns the allocation- dimension decision.

If both are configured, your own SDK-side file always takes precedence for any field it names; the Portal-configured mapping only fills in whatever field your own file leaves unmapped. Nothing is ever silently overridden.

Applies once an application has more than a few applications: tenant-wide defaults

Once you have several applications that should share the same field names (e.g. every application in your organization calls its decision outcome verdict), you can configure a mapping once as your tenant- wide default in the Customer Portal, instead of repeating the same mapping in every application individually. Any application's own mapping, if present, always takes precedence over the tenant-wide default — the default only fills in whatever that application's own config is silent on.

A note on timing

Because Artifact Payload Field Mapping is resolved once, at the moment an Artifact is first created, a configuration change only affects Artifacts created after the change — it does not retroactively re-alias Artifacts you already have stored. Trace Context Field Mapping behaves the same way for FinOps's cost allocation.

Relationship to Semantic Mapping

Field Mapping only renames — it never classifies or invents new business categories. If you need to answer a question like "which of these Artifacts count as sensitive?" or "which Resources are approvers?", where your raw data has no single field that already names that category directly, that's a classification question, not a renaming one — see the Semantic Mapping guide instead.

Where to go next

  • The Artifact Type Mapping guide — classifying your own outcome Artifacts as DECISION/APPROVAL/POLICY_EVALUATION/etc., a prerequisite for Artifact Payload Field Mapping to have anything to map.
  • The Semantic Mapping guide — declaring business-meaning classifications over already-observed data, a different and later step than Field Mapping.
  • The Ontology Mapping Decision Guide — for the earlier question of which of your own objects/calls should become a Trace, Activity, Artifact, or Resource in the first place.
  • Your Facet platform contact — for configuring tenant-wide defaults, or if a FinOps/cost-ownership stakeholder needs help deciding which context keys should map to which allocation dimensions.