Specification · Controls · EAS-12

EAS-12 Governed Observability

Agent Traces are designed twice: once to be useful for debugging, evaluation, cost and audit, and once to be governed as the copy of customer data they are, with redaction before export, controlled access, and deletion that reaches every copy.

Rationale: Principle 12 essay · 11 controls · L1 2 · L2 7 · L3 2

IDControlLevelFix
EAS-12.01Structured trace tree with common schemaL1local
EAS-12.02No unredacted personal data exportedL1local
EAS-12.03Metrics by versionL2local
EAS-12.04Tiered payload captureL2local
EAS-12.05Tokenised redaction with a vaultL2structural
EAS-12.06Trace access governed like customer dataL2structural
EAS-12.07Data inventory covers all copiesL2local
EAS-12.08Records tagged with tenant and data subjects; retention per tierL2local
EAS-12.09Tracked, verified deletionL3structural
EAS-12.10Per-tenant encryption keysL3structural
EAS-12.11Privacy-safe eval datasetsL2local

EAS-12.01 Structured trace tree with common schema L1

Applies to: All Workflows.

Every Run MUST emit a Trace structured as a tree (Run, Steps, and the ModelCalls and ToolCalls beneath the Step that made them) using the EAS telemetry conventions. Run spans MUST carry Run identifier, tenant, Workflow and version; ModelCall spans model, token counts, latency and cost; ToolCall spans Tool, result size and error; PolicyDecisions MUST be recorded at each boundary.

Why: A privacy-safe trace that cannot diagnose anything protects nobody, and a common schema is what makes cross-Workflow questions answerable without bespoke work. Essay →

Declared
observability.exporter names an OpenTelemetry-compatible exporter.
Static
Instrumentation that creates eas.run, eas.step, model and execute_tool spans with parent-child relationships. Not satisfied by: flat logs per call; per-team attribute names that differ from the conventions.
Runtime
Every eas.run span carries eas.run.id, eas.tenant.id, eas.workflow.id and eas.workflow.version; every model span is a descendant of an eas.step and carries gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens and eas.cost.usd; every execute_tool span carries gen_ai.tool.name and eas.tool.output_tokens.

Remediation local: Adopt the framework’s OpenTelemetry GenAI instrumentation and add the eas.* attributes in a shared span processor rather than per Tool.

Hooks: run.start, model.after, tool.after, run.end · Components: telemetry-pipeline

EAS-12.02 No unredacted personal data exported L1

Applies to: All Workflows that handle personal data.

Personal data (names, email addresses, phone numbers, account identifiers, free-text fields likely to contain them) MUST NOT leave the agent’s process in telemetry. Either redaction MUST run in-process before export, or payload capture MUST be disabled.

Why: Traces are a copy of everything the agent touched, and are usually stored with far less care than the systems they were copied from; the most effective control is to reduce what they contain before they leave the process. Essay →

Declared
observability.redaction is set, or observability.payload_capture is disabled.
Static
A redaction span processor registered ahead of the exporter in the agent process. Not satisfied by: redaction configured in the downstream collector or tracing vendor; framework defaults that capture prompts and completions with no processor in place.
Runtime
No exported span has eas.payload.captured = true without eas.redaction.applied = true and an eas.redaction.policy value; principals’ personal identifiers never appear in clear text in any attribute.

Remediation local: Disable payload capture immediately; then add an in-process redaction processor before the exporter and re-enable capture per EAS-12.04.

Components: telemetry-pipeline · See also: EAS-12.05

EAS-12.03 Metrics by version L2

Applies to: All Workflows.

Metrics MUST be derived from Traces and broken down by Workflow, tenant and version: reliability (share of Runs succeeding, failing unrecoverably or stuck; latency to first useful output and to completion; queue wait time), production quality signals (policy rejections, escalations, user corrections or retries, grounding-check failures) and cost (tokens and currency per Run and per successful outcome). Cost anomalies MUST raise alerts.

Why: Breaking every metric down by version is what makes regressions attributable; without it a bad release shows up as a vague deterioration nobody can pin on a cause. Essay →

Static
Dashboard and alert definitions grouped by eas.workflow.version, covering each metric family.
Runtime
Distributions of eas.run.status, counts of eas.policy.decision by value, and sums of eas.cost.usd are derivable per eas.workflow.id, eas.workflow.version and eas.tenant.id.
Attested
Produce the dashboard showing the current and previous version side by side, and the cost anomaly alert rule.

Remediation local: Build the metric set from span attributes with version as a mandatory dimension, and add anomaly alerts on cost per Run.

Components: telemetry-pipeline · See also: EAS-10.09, EAS-11.03, EAS-05.13

EAS-12.04 Tiered payload capture L2

Applies to: All Workflows.

Metadata (timings, token counts, models, Tools called, outcomes, costs) MUST be retained for every Run. Full payloads MUST be retained selectively: for every error, policy rejection, escalation, Run on a canary version, and user-flagged Run, plus a random sample of all other Runs. Recent Traces SHOULD be held in an interactive tool with short retention and the remainder archived in governed storage the organisation controls, partitioned by tenant and date.

Why: Full payloads at production volume are very large and expensive in volume-priced tools; tiering keeps the small metadata that supports aggregate analysis and the payloads that matter, with a random sample so analysis is not biased towards failures. Essay →

Declared
observability.payload_capture is tiered and observability.payload_sample_rate is set.
Static
A sampling or capture policy in the telemetry pipeline keyed on error, policy, escalation, canary and flag conditions plus a random rate.
Runtime
Every span with eas.payload.captured = true carries an eas.payload.capture_reason; every eas.policy span with eas.policy.decision of deny or escalate belongs to a Run with captured payloads; some captured Runs have reason sample.

Remediation local: Make the capture decision at Run end from its status and decisions, and archive captured payloads in tenant- and date-partitioned storage.

Hooks: run.end · Components: telemetry-pipeline · See also: EAS-12.02, EAS-12.08

EAS-12.05 Tokenised redaction with a vault L2

Applies to: All Workflows that capture payloads containing personal data.

Redaction MUST replace personal data with tokens referring to entries in a secure vault, so that the tracing system receives only tokens. Re-identification MUST go through a controlled process that records who looked and why.

Why: Engineers can see the structure of what happened without the real values; and deleting a person’s vault entries makes every token referring to them meaningless, wherever the Trace has been copied. Essay →

Static
The redaction processor calls a vault to tokenise detected values; vault access controls and an audit log for detokenisation. Not satisfied by: irreversible masking only (acceptable for EAS-12.02 but not this control); a vault whose detokenisation is not audited.
Attested
Produce the detokenisation audit log for the last month and the procedure for requesting a real value.

Remediation structural: Introduce a PII vault with consistent tokens per value and route all re-identification through an audited request flow.

Components: pii-vault, telemetry-pipeline · See also: EAS-12.02, EAS-12.09

EAS-12.06 Trace access governed like customer data L2

Applies to: All Workflows.

Access to Traces MUST be restricted to the team that owns the Workflow. Cross-tenant access MUST be restricted and logged. Access for investigating a specific customer’s issue MUST be time-limited, granted for that purpose and revoked afterwards.

Why: Traces are copies of customer data, so the access rules that would be unremarkable for a production database apply; they need stating because they are unusual for an observability stack. Essay →

Static
Access-control configuration of the tracing backend and archive scoped by Workflow owner and tenant; a just-in-time access mechanism with expiry.
Attested
Who can read Traces for this Workflow today, and how is time-limited support access granted and revoked? Produce the access log for a recent grant.

Remediation structural: Scope tracing projects or datasets per Workflow owner, partition by tenant, and replace standing broad access with expiring grants.

Components: telemetry-pipeline, data-governance

EAS-12.07 Data inventory covers all copies L2

Applies to: All Workflows that handle personal data.

An inventory MUST list every store that holds data derived from Runs: Traces, Checkpoints, memory, search and vector indexes, eval datasets, prompt and response caches, the model provider’s retention, and ad-hoc copies (notebooks, tickets, local files). Each entry MUST state what it holds, its retention, and how deletion reaches it.

Why: Agent systems copy data into many places, and the right to deletion does not exempt logs; the most often forgotten copies are the ones engineers paste while debugging. Essay →

Static
A data inventory document or catalogue entry per Workflow covering each store category.
Attested
Produce the inventory. What is the model provider’s retention for this Workflow, and what policy governs pasting Traces into tickets and notebooks?

Remediation local: Enumerate stores from the manifest (state, memory, context.sources, observability, evaluation) plus provider terms and ad-hoc copies, and assign an owner to each.

Components: data-governance · See also: EAS-12.09

EAS-12.08 Records tagged with tenant and data subjects; retention per tier L2

Applies to: All Workflows that handle personal data.

Every record in a store holding Run-derived data MUST be labelled with its tenant and the data subjects it concerns at write time, so deletion is a lookup rather than a search. Each storage tier MUST have a defined retention period, and records SHOULD hold references instead of copies where possible.

Why: Tagging at write turns deletion into a lookup, and minimising what is stored, with short retention for interactive tools, reduces what must be found and removed. Essay →

Declared
observability.retention_days (interactive tier) and observability.archive_retention_days are set.
Static
Write paths for traces, Checkpoints, memory and indexes attach tenant and data-subject tags (as tokens, not clear values); retention or lifecycle policies configured on each store. Not satisfied by: tenant tags without data-subject tags; retention configured on the tracing tool but not the archive.
Runtime
Every exported span carries eas.tenant.id.

Remediation local: Add tenant and subject tags in shared write paths (span processor, state.checkpoint and memory.write hooks) and set lifecycle rules on every store.

Hooks: state.checkpoint, memory.write · Components: telemetry-pipeline, state-store, memory-store, data-governance · See also: EAS-12.07, EAS-12.09

EAS-12.09 Tracked, verified deletion L3

Applies to: All Workflows that handle personal data under deletion obligations.

A deletion request MUST create a tracked job that fans out to every store in the inventory, confirms the data is gone by checking for it, and records evidence that it did. Stores that delete eventually rather than immediately MUST have the delay known, documented and within legal limits.

Why: Deletion must reach traces and every other copy; a fan-out that is not verified cannot show that it did, and eventual deletion in some table formats leaves rows in older files until compaction runs. Essay →

Static
A deletion service or job definition that enumerates inventory stores, performs a post-deletion lookup, and writes a completion record.
Attested
Produce the record of a recent deletion request showing each store, the verification result and the timestamp, and the documented delays for eventually-deleting stores.

Remediation structural: Build deletion as a workflow over the inventory with per-store delete-and-verify steps; deleting vault entries (EAS-12.05) covers tokenised copies.

Components: data-governance, pii-vault · See also: EAS-12.05, EAS-12.07, EAS-12.08

EAS-12.10 Per-tenant encryption keys L3

Applies to: Multi-tenant platforms holding sensitive Run-derived data.

Sensitive fields in stores holding Run-derived data MUST be encrypted with keys held per tenant, so that removing a tenant can be done by destroying its key.

Why: Data copied into many stores is hard to delete exhaustively; destroying a tenant’s key renders every copy encrypted under it unreadable. Essay →

Static
Key-management configuration with a key per tenant and field-level or envelope encryption in Trace archive, state, memory and index write paths.
Attested
What is the procedure for destroying a tenant’s key, and which stores does it cover?

Remediation structural: Introduce envelope encryption with per-tenant data keys in the shared write paths for each store.

Components: data-governance, state-store, memory-store, telemetry-pipeline · See also: EAS-12.09

EAS-12.11 Privacy-safe eval datasets L2

Applies to: All EvalSuites built from production data.

Eval datasets built from production Traces SHOULD be made from redacted or synthetic versions of real cases, with personal details replaced by consistent placeholders. Where real data is retained, each case MUST be tagged with its data subjects so it can be removed, and a removal MUST be recorded as a dataset version change.

Why: Eval datasets are deliberately permanent and built from production Traces, so they need to remain useful without containing anyone’s data, and removing a case changes the baseline. Essay →

Static
Dataset build pipeline applies the redaction policy; case metadata carries a contains_personal_data flag and subject tags for any unredacted case. Not satisfied by: raw Trace payloads copied into eval files.
Attested
How many cases in the current dataset contain real personal data, and how would one be removed on request?

Remediation local: Run dataset construction through the same tokenising redaction as Traces, with consistent placeholders, and bump the dataset version on any removal.

Components: eval-platform, data-governance · See also: EAS-10.03, EAS-12.07