Start with stable identifiers
Prefer metadata that identifies the workflow and boundary cleanly:
You do not need every field on every request. The right goal is stable context, not maximal metadata.
A useful baseline object
What to avoid
- Raw prompt content duplicated into metadata.
- Secrets, tokens, or credentials.
- Unnecessary PII when a stable internal identifier would work.
- Free-form values that change spelling across services and make filtering unreliable.
How to decide what belongs there
1
Start from the questions operators ask
If an operator sees a
block, what will they need to know first. Usually that means the boundary, feature, request,
and source.2
Prefer identifiers over descriptions
Use values your logs, traces, and incident workflows can join reliably. Descriptive prose is harder to filter and
compare later.
3
Add source context only where it exists
Retrieval flows need document or source IDs. Tool flows need a tool name. Output-only flows may not need either.
4
Keep the schema stable across services
The same
boundary or feature should mean the same thing everywhere. This matters more than having a long list of
fields.Related pages
- Anthale Metadata and Logs for Runtime Operations
- Investigate Anthale Policy Hits in Production
- Design Anthale Policies by Trust Boundary