Details
# Informatica for Claude Platform
Governed catalog discovery and data Q&A for Informatica IDMC, across the entire enterprise data estate, in Claude Code and Claude CoWork.
This plugin targets two Informatica IDMC capability areas — **CDGC** (Cloud Data Governance and Catalog) and **Claire** (Informatica's GenAI/AI engine). Today, CDGC is covered by one real, substantive skill (catalog discovery).
Install via the `claude-plugins-official` marketplace.
**Privacy Policy:** [https://www.informatica.com/privacy-policy.html](https://www.informatica.com/privacy-policy.html)
## Quick Start
1. **Add the marketplace.**
```
/plugin marketplace add claude-plugins-official
```
2. **Install the plugin.**
```
/plugin install informatica-for-claude-platform@claude-plugins-official
```
3. **Restart Claude Code / reload plugins** to pick up the manifest, MCP server, and skills.
## Sample Prompts
The `catalog-and-data-discovery` skill activates automatically on data questions like:
- Where's the customer data with the highest quality?
- Can I rely on the RATING field in FCT_ORDERS?
- Is this data safe to use for a marketing campaign?
- Who owns the SALES_FACT table, and is it certified?
- What policy applies to this PII column?
- Is there a right-to-be-forgotten flag on this dataset before I run outreach?
## Verify, Update, and Uninstall the Plugin
- **Verify:** Confirm the plugin is loaded by checking that `catalog-and-data-discovery` appears in Claude Code's Skills list and that `informatica-catalog-discovery` and `informatica-data-exploration` appear in the active MCP servers.
- **Update:** `/plugin marketplace update claude-plugins-official`, reinstall/upgrade the plugin, and then restart Claude Code / reload plugins.
- **Uninstall:** `/plugin uninstall informatica-for-claude-platform@claude-plugins-official` and then restart.
## What's Included
### 1 Skill (CDGC)
| Area | Skill | Description |
|------|-------|--------------|
| Discovery & trust | `catalog-and-data-discovery` | Intent-driven catalog discovery. Discovers assets, assembles tenant context (glossary, ownership, certification, ratings), assesses trust/reliability per field, checks sensitivity/PII, looks up applicable policy, gives safe-usage guidance, and checks compliance flags (RTBF/consent) with structured, severity-ranked gap reporting. Grounded exclusively in catalog metadata; zero-hallucination rules and a verdict-first response format. |
### What Else is in the Box
- **MCP servers:** Two entries in `.mcp.json` (`type: "http"`): `informatica-catalog-discovery` (CDGC) and `informatica-data-exploration` (Claire).
- **Plugin manifest:** `.claude-plugin/plugin.json` declares `name`, `version` (`1.0.0`), `description`, and `author` only. There's no `userConfig` field, so there's no install-time prompt for a tenant/environment host.
## skills/catalog-and-data-discovery/SKILL.md
---
name: catalog-and-data-discovery
description: "Enterprise catalog discovery and governance over CDGC. Finds data assets from the catalog — tables, columns, files, reports, glossary terms, domains, policies — and evaluates their trustworthiness, business meaning, ownership, sensitivity, applicable policy, and safe use, grounded exclusively in catalog metadata. Use whenever the user asks a data or metadata question — 'find', 'where is', 'show me', 'what tables have X', 'is there a report on Y', 'give me [topic] data', 'who owns', 'what does column X mean', 'is this the authoritative source', 'can I rely on this', 'is this sensitive / PII', 'what policy applies', 'can I safely use this for [purpose]'. Covers business assets (domains, glossaries, policies) and technical assets (tables, columns, files). Always run BEFORE reading actual data through other MCPs so the caller picks the right, trusted, compliant asset."
---
# Catalog and Data Discovery — Intent-Driven Trusted Data Discovery
The CDGC catalog is the authoritative index of what data exists, what it means to *this* organization, who owns it, and how trustworthy it is. This skill discovers, validates, assesses, traces, and reports gaps — grounded exclusively in catalog metadata.
---
## 1. Core Principles
1. **Catalog-first.** Never query a database directly from a cold prompt. The catalog tells you which asset is right. Once the right, trusted asset is resolved and the user needs the *actual data*, hand off to the `informatica-data-exploration` MCP (§4.7, "Reading actual data") — enriching the hand-off prompt with the resolved facts per §4.8. This skill itself only reads metadata.
2. **Tenant context wins.** Glossary terms in *this* catalog override generic definitions.
3. **Certification is dataset-only.** `certified: true` = steward-vetted. Business terms/domains/policies use `assetLifecycle` (`Published` > `Draft`).
4. **Read aggregations first.** Every search returns buckets — use them to route the next call.
5. **Gaps are findings.** Missing description, absent owner, no glossary term — report these explicitly.
6. **Zero hallucination.** Every claim cites a tool response or the absence of expected data.
7. **Minimize calls.** Batch segments. Cap at 3–5 calls per strategy unless user asks for more.
8. **Parallelize independent calls.** When multiple tool calls have no data dependency between them, issue them in the same turn — do NOT wait for one to return before sending the next. See §4.5 for the execution model.
---
## 2. Anti-Hallucination Protocol (absolute rules)
1. NEVER state a field value not returned by a tool call.
2. NEVER invent glossary definitions — say "no business definition exists in the catalog."
3. NEVER assume relationships — say "no declared key relationship found."
4. NEVER claim ownership — say "no governance owner is assigned."
5. Distinguish declared (FK/PK — visible in hierarchy AND as a `core.PKFK` edge in neighborhood) from inferred (RelatedTo in neighborhood).
6. When confidence is low, say "Based on available catalog metadata..."
7. Absence is evidence — report it as a finding.
8. NEVER upgrade a verdict based on column-name intuition. "RATING sounds like a rating" is NOT evidence. Only glossary terms, business names, and descriptions FROM the tool response constitute governed metadata — and even then, a description alone does NOT equal a glossary term.
9. NEVER soften an AMBIGUOUS or UNDOCUMENTED verdict with reassurance like "but you can probably rely on it" or "Yes as the [X]." The verdict IS the answer — do not undermine it.
10. A description matching the column name does NOT substitute for a glossary term. Description = documentation (may be informal/unreviewed). Glossary term = steward-curated governed meaning. They are different trust levels. No glossary term = UNDOCUMENTED regardless of how clear the description appears.
---
## 3. Asset Types
The catalog holds two families of assets. Every strategy first classifies its target into one of these families before deciding which segments to pull and which trust signal applies.
### 3.1 Supertypes vs. specific classTypes
Technical assets are organized as a **type hierarchy**: supertypes (`Dataset`, `DataElement`) generalize many specific `classType`s. The table below shows the supertype and one common concrete `classType` as an example — real catalogs contain many more subtypes per supertype (Oracle Table, Snowflake View, S3 File, etc.), all rolled up under the same supertype.
- **`Dataset`** — any tabular / file-shaped container. Examples: `com.infa.odin.models.relational.Table`, `com.infa.odin.models.file.File`, plus views, external tables, and other source-specific subtypes. **File is a Dataset.**
- **`DataElement`** — any field / column-shaped member of a Dataset. Example: `com.infa.odin.models.relational.Column`, plus file fields and other subtypes.
Business assets do not use this two-level split — their `classType`s (`BusinessTerm`, `Domain`, `SubDomain`, `Metric`, `Policy`, `System`) are themselves the searchable type.
### 3.2 Asset table
| Asset Type | Supertype | Example `classType` | Family | Key segments |
|-----------|-----------|---------------------|--------|--------------|
| Table | `Dataset` | `com.infa.odin.models.relational.Table` | Technical | summary, hierarchy, selfAttributes, dataClassification, stakeholdership |
| File | `Dataset` | `com.infa.odin.models.file.File` | Technical | summary, dataClassification, stakeholdership |
| Column | `DataElement` | `com.infa.odin.models.relational.Column` | Technical | summary, glossary, dataClassification, selfAttributes |
| Business Term | — | `com.infa.ccgf.models.governance.BusinessTerm` | Business | summary, stakeholdership, neighborhood |
| Metric | — | `com.infa.ccgf.models.governance.Metric` | Business | summary, stakeholdership |
| Domain | — | `com.infa.ccgf.models.governance.Domain` | Business | summary, stakeholdership |
| SubDomain | — | `com.infa.ccgf.models.governance.SubDomain` | Business | summary, stakeholdership |
| Policy | — | `com.infa.ccgf.models.governance.Policy` | Business | summary, selfAttributes |
| System | — | `com.infa.ccgf.models.governance.System` | Business | summary, stakeholdership |
`classType` values above are examples of what a real search returns; do **not** hard-code them as the only accepted match. When the intent is "any table" or "any column" regardless of source, use NL mode (§3.4 A) — the supertype path via `filterSpec.types` is not caller-settable (see §3.4 B).
### 3.3 Family rules
- **Technical assets** use `certified: true` as the primary trust signal (Dataset-only, per §1 principle 3).
- **Business assets** use `assetLifecycle` (`Published` > `DRAFT` > `OBSOLETE`) as the trust signal. They are not "certified" in the catalog sense.
- `stakeholdership` applies to both families.
- `hierarchy` is meaningful for containers along the technical chain: `core.Resource → core.DataSource (Database/Schema) → core.Dataset → core.DataElement`. Also applies to `Domain → SubDomain` on the business side.
- `dataClassification` (PII / sensitivity labels) applies only to technical assets.
### 3.4 How to search by type
Two ways to constrain a search to a type — pick based on whether the intent is supertype-level ("any table") or subtype-specific ("only Snowflake tables"):
**A. NL mode — say the type in plain English.** The NL parser resolves common type words to the right supertype/classType internally. This is the **only** path for supertype-level intent ("any Dataset", "any DataElement") — see §3.4 B for why the structured supertype path is unavailable.
- `"Oracle Tables"` → any Dataset on Oracle sources
- `"show columns from table customers"` → DataElements under a specific parent
- `"my business terms"` → BusinessTerm authored by the caller
- `"find files with customer data"` → File Datasets
- `"show domains linked to policy GDPR"` → Domain related to a Policy
**B. KEYWORD mode — pass fully-qualified names via `filterSpec.classType` (multivalued, `in` operator).** Use this when the caller has named specific subtypes and you can enumerate them.
```
filterSpec: { classType: ["com.infa.odin.models.relational.Table"] }
filterSpec: { classType: ["com.infa.ccgf.models.governance.BusinessTerm",
"com.infa.ccgf.models.governance.Metric"] }
```
**Do not use `filterSpec.types`.** Although the tool schema lists `types` as a filter field, the BFF server strips any caller-supplied value (`SearchRequestBuilder.stripRestrictedFilters`) — the supertype policy is enforced server-side and cannot be widened or narrowed by the client. Passing `types` is a silent no-op. For supertype-level intent, use NL mode (§3.4 A) instead.
Use `filterSpec.resourceType` (e.g. `Oracle`, `Snowflake`, `MySql`, `Postgres`, `Redshift`) to narrow technical assets by catalog **source**. Combine `classType` + `resourceType` for "Snowflake tables only":
```
filterSpec: {
classType: ["com.infa.odin.models.relational.Table"],
resourceType: ["Snowflake"]
}
```
### 3.5 Business-asset key fields (Metric, BusinessTerm, glossary parenting)
The §3.2 segment column names the *catalog fetch* — but a business asset's real payload lives in specific fields that a generic report will miss. Surface these when the answer depends on them:
- **`Metric` — `business logic` field.** The tenant's actual calculation formula (status filters, currency conversion, window, join path) lives here — the business-side analogue of a view's `sourceStatementText`. When reporting a Metric, quote the `business logic` formula, not just the prose description; that's what the user has to reproduce if they query the source tables directly.
- **`BusinessTerm` — `alias names` field.** Synonyms the concept can appear under in tables. If the term is "Net Revenue" but tables use `NET_SALES_AMT`, the alias tells you so. Treat aliases as extra search probes; surface them explicitly when you report the concept → data mapping.
- **Glossary parenting is flexible.** `Domain`, `SubDomain`, `BusinessTerm`, and `Metric` can each sit under any of the others — a `hierarchy` walk over glossary assets is NOT a strict `Domain → SubDomain → Term` chain. Do NOT assume the parent's class; read `classType` on the parent before drawing a governance conclusion.
### 3.6 Additional catalog categories
Present in `search_assets` but not modelled as first-class targets by this skill — treat as opaque matches and drill in with `get_asset_details` if a query surfaces them: Process, Project, AI (`AIModel`, `AISystem`), Business Area, Legal Entity, Geography, Regulation. If a user question is clearly aimed at one of these, state the limitation before proceeding.
---
## 4. Tools & Segments
Two read-only discovery tools. This skill does NOT enrich, edit, classify, or certify assets — those are steward workflows outside its scope. When a gap is found, the skill reports it and points to the steward; it never proposes to write to the catalog.
### 4.1 `search_assets` — find assets by query + filters
Search the catalog by natural language (NL) or keyword. Returns a page of asset summaries — identity, `classType`, name, description, stakeholders, assetGroups — plus optional aggregations for narrowing and `suggested_next_steps` for iterative refinement. Always call this **first** to discover asset identities before drilling into `get_asset_details`.
**Parameters:** `query` (required; `*` = whole catalog), `mode` (`KEYWORD` default, `NL` fallback), `filterSpec` (typed filters — see §3.4, §11), `aggregationSpec` (max 1 aggregation, ≤20 buckets), `sortSpec` (max 2), `from`, `size` (default 20).
### 4.2 `get_asset_details` — fetch typed asset by identity
Fetch full details of one asset by identity. Always returns a `resolvedSummary` (identity, name, type, location, description, stakeholders resolved to names/emails, assetGroups, timestamps) plus raw `systemAttributes`. Additional aspects are opt-in via `segments[]` — pick the minimum set for the intent (§4.4 Batching rules).
**Parameters:** `assetIdentity` (required), `identityType` (`INTERNAL` = UUID default, `EXTERNAL` = path), `segments[]` (see §4.3; default is `summary` only).
**Always use internal UUID (the `identity` field from search results) with the default `INTERNAL` identity type.** Do not use `identityType: EXTERNAL` — the `externalId` field includes a `~classType` suffix that the API rejects with 400. Do not attempt to construct external IDs from child asset paths. External IDs are only needed for the `data_explore` hand-off (§4.7), where you pass the `externalId` value exactly as returned from search/details — never constructed.
### 4.3 Segments
- **`summary`** (default) — core identity + lifecycle: name, `classType`, description, `certified`, rating, `assetLifecycle`, timestamps, stakeholders, path.
- **`selfAttributes`** — self-declared attributes: `sourceStatementText` (view SQL), `NumberOfRows`, custom attributes, `businessName`.
- **`stakeholdership`** — full stakeholder list with governance roles (Data Owner, Data Steward, etc.), beyond the truncated `summary` view.
- **`glossary`** — linked business terms with `curationStatus` (`ACCEPTED` | `INFERRED` | `REJECTED`) — the load-bearing signal for meaning verdicts (§2 rule 2).
- **`hierarchy`** — declared children along the containment chain: columns under a Table, PK/FK/indexes, SubDomains under a Domain.
- **`neighborhood`** — associations to other assets: declared PK/FK table-to-table joins (`core.PKFK`), glossary links, DQ rules, `RelatedTo`. Excludes `ParentChild`, `DataFlow`, `ClassifiedAs`.
- **`dataClassification`** — PII, PCI, and other sensitivity labels (technical assets only).
### 4.4 Batching rules
- TRUST_ASSESSMENT → `[selfAttributes, stakeholdership, glossary]`
- RELATIONSHIPS → `[hierarchy, neighborhood]`
- SENSITIVITY → `[hierarchy, dataClassification]`
- FIELD_MEANING → `[hierarchy]` on parent, then `[glossary, selfAttributes]` per child
### 4.5 Parallel execution model
Issue independent tool calls in the **same turn** — do not wait for one to return before sending the next. Two calls are independent when neither needs a value from the other's response.
**Round model for BROAD_DISCOVERY (target: 2–3 rounds depending on path):**
Column UUIDs can arrive from two sources — Round 1 search results or Round 2 hierarchy. Which path applies determines whether glossary wiring runs in Round 2 or Round 3.
```
Round 1 (parallel): search(topic) + search(dimension terms) + search(fiscal terms)
↓ identities resolve — check: did search return column UUIDs?
─── Fast path (columns in Round 1 results — 2 rounds total) ─────────────────
Round 2 (parallel): get_asset_details(top asset, [hierarchy, selfAttributes, dataClassification, stakeholdership])
+ get_asset_details(date column, [glossary]) — fiscal wiring
+ get_asset_details(region column, [glossary]) — dimensional wiring
Column UUIDs already known → glossary runs alongside hierarchy, not after it.
─── Slow path (columns NOT in Round 1 results — 3 rounds) ───────────────────
Round 2 (parallel): get_asset_details(top asset, [hierarchy, selfAttributes, dataClassification, stakeholdership])
+ get_asset_details(related dimension table, [hierarchy])
↓ column identities resolve from hierarchy
Round 3 (parallel): get_asset_details(date column, [glossary]) — fiscal wiring
+ get_asset_details(region column, [glossary]) — dimensional wiring
```
**Rules:**
- All searches in step 1–3 of §7.1 are independent → **always parallel in Round 1**.
- **Path selection after Round 1:** inspect search results for column/DataElement identities. If the columns you need for glossary wiring (date column, region column, etc.) appeared in Round 1 results, their UUIDs are already known — take the fast path. If search returned only the parent table (common when column names don't match the keyword), take the slow path.
- **Fast path:** all `get_asset_details` calls — hierarchy on the parent, glossary on known columns — are independent → **all parallel in Round 2**. Do NOT wait for hierarchy to "discover" column UUIDs you already have from search. This eliminates Round 3 entirely.
- **Slow path:** hierarchy fetch in Round 2 → column UUIDs resolve → glossary wiring checks on those columns in Round 3.
- **Do not re-search for columns the hierarchy already gave you.** After Round 2's hierarchy fetch returns the full column list with UUIDs, use those UUIDs directly for Round 3 glossary calls. A separate `search_assets(query="ORDER_DATE")` to find a column UUID that hierarchy already returned is a wasted call.
- Escalation-on-zero (§7.1 step 3) is inherently sequential — it retries only when the prior call returned zero. This is the one case where waiting is correct.
- Segment batching (§4.4) still applies — combine segments into one call per asset rather than one call per segment.
### 4.6 Limitations (state when relevant)
1. No lineage — `DataFlow` is excluded from `neighborhood`.
2. FK/PK objects appear as `hierarchy` children; the join they define ALSO appears in `neighborhood` as a `core.PKFK` table-to-table edge — both are valid evidence of a declared relationship.
3. `neighborhood` excludes `DataFlow` lineage, `ParentChild`, and `ClassifiedAs` associations.
4. No reverse lookup — search by name to find dependents.
5. `data_explore` / `master_data_explore` expose **no structured field for resolved catalog facts** — resolved measures, filters, and date ranges must ride inside the free-text `prompt` (§4.8). This is a documented workaround; the durable fix is a structured resolved-filters field on the tool contract. Until then, the §4.8 verification gate is required because prompt enrichment is not otherwise enforced.
### 4.7 Reading actual data — hand off to `informatica-data-exploration`
This skill is **metadata-only** — it decides *which* asset is right, trusted, and compliant, and never reads row values. When the user's question needs the **actual data** (row values, counts, aggregates, ranked lists, anti-joins, sampling the contents) — not just picking the asset — hand off to the **`informatica-data-exploration`** MCP *after* discovery has resolved the trusted asset and its identity.
**Sequence (catalog-first, always):** run discovery to pick the right/trusted/compliant asset and resolve its identity → then call `informatica-data-exploration` to read the data → carry the governance verdict forward (do not read data from an asset you flagged FORBIDDEN/CAUTION in §7.14 without stating the gate).
**How to call it:**
- Authenticate first: `authenticate` → `complete_authentication`. (The data-explore token is a flat 60-minute TTL with no refresh — re-authenticate when it expires.)
- Then call **`data_explore`** with the request payload.
**MANDATORY — always send `external_id` (single asset) or `external_ids` (multiple assets) in the `data_explore` payload.** This is the asset's **EXTERNAL** catalog identity — the same value passed as `assetIdentity` with `identityType: EXTERNAL` — carried straight through from the `search_assets` / `get_asset_details` response. If `external_id`/`external_ids` is omitted, `data_explore` returns **empty result frames (zero rows) silently — no error is raised**. An empty frame therefore means "the external_id was missing," not "the asset has no data." Never call `data_explore` without it. The `prompt` you send is equally mandatory — it MUST be enriched with the resolved facts per §4.8, never the raw user question.
> **Provenance:** the mandatory-`external_id` behavior is CONFIRMED from live experiment runs (CallRecords data-exploration arm over live `CALLRECS_WITH_INFO`): with `external_id` present, `data_explore` returns real `DataExploreResult` rows; a missing `external_id` was the *sole* cause of empty frames. It is NOT verified against `informatica-data-exploration` source here — re-confirm the exact field spelling against the tool schema if a call unexpectedly returns empty.
For sources the `informatica-data-exploration` does not cover, pass the resolved path into the direct source MCP instead (Snowflake, Postgres, S3, BI). If the relevant connector is installed but not enabled in this chat, its tools will not appear — say so and ask the user to enable it, rather than reporting the question as unanswerable.
### 4.8 Hand-off enrichment — the `prompt` you send (MANDATORY)
`external_id` binds the *asset* (§4.7). It does NOT carry anything else discovery resolved. Whenever discovery resolved a fact the query engine needs — a Metric's business-logic formula, a `BusinessTerm`'s `AliasNames`, a fiscal/period term's date range, a dimension term's resolved member list, the specific measure column, or column wiring — the `prompt` argument passed to `data_explore` / `master_data_explore` **MUST be a rewritten, fully-resolved instruction carrying those facts. It MUST NOT be the user's raw question.**
**Why this is mandatory, not a nicety.** These tools route on the `prompt` string verbatim; there is **no separate structured field for resolved catalog facts** (see §4.6). Anything discovery learned is invisible to the agent unless it is written into the prompt string. If the raw question is passed, the agent re-resolves the terms itself — off possibly-stale profiles — and silently returns a wrong number. (Observed live: the raw prompt `"Q2 Sales Revenue for EMEA"` made the agent filter `WHERE LOWER(SALES_REGION)='emea'`, which matched zero rows against country-valued data.)
**Prompt-rewrite template (ASCII only — no em-dashes, no angle brackets in the actual prompt string; both trip the MCP input validator):**
```
Sum MEASURE_COLUMN from TABLE where DIM_COLUMN in (resolved member list)
and DATE_COLUMN between resolved_fiscal_start and resolved_fiscal_end
[and status/scope filters]. Use these exact filter values; do not re-derive
the region or the period from the data.
```
**Worked example (the EMEA case):**
- Raw (WRONG — do not send): `Q2 Sales Revenue for EMEA`
- Enriched (CORRECT): `Sum NET_SALES from FACT_ORDER where SALES_REGION in ('France','Italy','Germany') and ORDER_DATE between 2026-05-01 and 2026-07-31. Use these exact filter values; do not re-derive the region or the period from the data.`
**Negative example (this is the live bug, not a valid call).** Emitting `data_explore` with `"prompt": "<the user's raw question>"` — even with `external_id` present — is a defect. Correctly decoding the terms in your visible reasoning is NOT a substitute for putting the resolved facts into the prompt; only the prompt string reaches the engine.
**Pre-hand-off verification gate (silent — run before emitting ANY `data_explore` / `master_data_explore` call; mirrors §13):**
1. Does `prompt` contain the resolved **measure column**? If NO → rewrite before sending.
2. Does `prompt` contain the resolved **dimension member list** (the actual values, e.g. the countries) rather than the business-term label (e.g. "EMEA")? If NO → rewrite.
3. Does `prompt` contain the resolved **fiscal date range** (explicit start and end dates), not a bare period word ("Q2")? If NO → rewrite.
4. Is `prompt` byte-identical or near-identical to the user's **raw question**? If YES → STOP: it has not been enriched — rewrite before sending.
5. Is `external_id` / `external_ids` present (§4.7)? If NO → add it.
This gate is internal only — never print it. Its purpose is to catch an un-enriched hand-off before it reaches the engine, since prompt enrichment is not otherwise enforced (§4.6).
---
## 5. Intent Classification
### Intents
| Intent | Signals | Disambiguator |
|--------|---------|---------------|
| **BROAD_DISCOVERY** | "what data", "find", "relevant", "available", "show me", "do we have" | Open-ended, no specific asset yet |
| **AUTHORITY_COMPARE** | "authoritative", "which one", "correct", "vs", "difference" | Two+ known candidates, comparative |
| **FIELD_MEANING** | "key fields", "columns", "what does X mean", "metrics", "measures" | Targets fields/columns specifically |
| **FIELD_RELIABILITY** | "can I rely on [field]", "can I use [field]", "trust this field" | Targets a NAMED FIELD (not dataset). If "rely on" → dataset = TRUST_ASSESSMENT |
| **TRUST_ASSESSMENT** | "leadership", "present to", "rely on this data", "fit for use", "production-ready" | Dataset-level trustworthiness |
| **FRESHNESS** | "how current", "when was", "last refreshed", "stale", "up to date" | Specifically about time/recency |
| **RELATIONSHIPS** | "connect", "join", "link", "relate", "between", "foreign key" | About connections between assets |
| **IMPACT_ANALYSIS** | "what would break", "downstream", "if we change", "rename", "impact" | Forward-looking consequences |
| **PROVENANCE** | "how is it built", "what feeds", "derived", "source of", "comes from" | Backward-looking origins |
| **ROOT_CAUSE** | "wrong", "incorrect", "explain why", "root cause", "mismatch" | References a problem/error |
| **OWNERSHIP** | "who owns", "responsible", "steward", "contact", "approval" | About people/roles |
| **SENSITIVITY** | "sensitive", "personal", "PII", "restricted", "special category", "classified" | Data protection characteristics (not meaning) |
| **POLICY** | "policy", "rule", "compliance", "regulation", "GDPR", "lawful basis" | Governance rules constraining usage |
| **SAFE_USAGE** | "safe to use", "permissible", "which can I", "what's allowed", "compliant", "safe ways" | Positive recommendation synthesized from findings |
| **COMPLIANCE_FLAG** | "right to be forgotten", "RTBF", "consent", "opt-out", "suppress", "erasure" | Individual rights/consent mechanisms |
### Routing Algorithm
1. **Scan** for signal tokens (case-insensitive). Apply disambiguators for overlaps.
2. **Route:** 1 intent → execute. 2 intents → both (primary first). 3+ or 0 → score by (signal count × disambiguator match), fallback to BROAD_DISCOVERY.
3. **Context override:** If assets already known and prompt references them → skip search, use stored UUIDs.
---
## 6. Model Tiering
| Tier | Use For |
|------|---------|
| **Main context** (Opus/Sonnet) | Intent classification, synthesis, trust scoring, root-cause, final answer |
| **tools-haiku** (delegate) | Single search/details calls with known parameters |
| **tools-sonnet** (delegate) | Multi-step chains requiring interpretation between steps |
**Rules:** Delegate only when params are fully determined (haiku) or multi-step reasoning is needed (sonnet). Never delegate classification, synthesis, or final answers. Skip delegation on short conversations (1–2 turns, 1–2 calls).
---
## 7. Strategies
### Call Budgets
BROAD_DISCOVERY: 3–5 (up to 10 on a first-turn fitness/campaign prompt that triggers escalation, column-to-parent derivation, origin-scoped searches, and wiring checks per §7.1) | AUTHORITY_COMPARE: 1–2 | FIELD_MEANING: 2–4 | FIELD_RELIABILITY: 1–2 | TRUST_ASSESSMENT: 1–2 | FRESHNESS: 0–1 | RELATIONSHIPS: 1–2 | IMPACT_ANALYSIS: 2–4 | PROVENANCE: 2–3 | ROOT_CAUSE: 0–2 | OWNERSHIP: 1 | SENSITIVITY: 1–3 | POLICY: 1–2 | SAFE_USAGE: 0–2 | COMPLIANCE_FLAG: 0–1
### 7.1 BROAD_DISCOVERY
1. **Term extraction — include dimensional terms.** From the question, extract every catalog-relevant term: business concepts ("revenue", "customer") AND dimensional / qualifying terms ("EMEA", "last quarter", "by category"). Do NOT drop dimensional terms as filtering-only noise — the catalog governs them too (Fiscal Quarter, Region, Product Category typically exist as glossary terms, business domains, or reference dimensions), and dropping them loses the exact governance context that answers the question. Every extracted term is a candidate query for steps 2–4, and each should be resolved against BOTH technical assets (tables, columns, files, reports) AND business assets (glossary terms, domains, policies). The highest-value hit shape is a technical asset that carries a linked business glossary term — physical location + governed meaning in one place — rank this shape first when reporting (step 7).
2. **⟦ROUND 1 — all parallel⟧ One topic-scoped search PLUS all dimensional/fiscal term searches in the same turn.** Issue the topic search AND the dimensional term searches (e.g. EMEA, fiscal quarter) simultaneously — they have no data dependency.
**Hard rule — compound-phrase gate (apply before routing).** If any extracted topic is a multi-word phrase ("sales revenue", "customer orders", "product performance"), do NOT pass it as a single KEYWORD query — KEYWORD matches token-by-token and multi-word compounds return 0 results. Two options: (a) split into individual single-word KEYWORD searches, each run in parallel within Round 1 (preferred when each word is a meaningful asset name), or (b) route the full phrase to NL mode (preferred when the words form one concept, e.g. "customer lifetime value"). This is a hard gate, not a tip — violating it wastes a call and returns zero.
Route each search by shape:
- Single noun / entity / named-asset shape → `search_assets(query=<term>, mode=KEYWORD, size=10, aggregationSpec=[{name:"agg", attributeNames:["core.classType"]}])`
- Multi-word concept phrase (if not split above) → `search_assets(query=<user's phrasing>, mode=NL, size=10, aggregationSpec=[{name:"agg", attributeNames:["core.classType"]}])`
- Cold-start / topic-less prompt only → trust census (`query="*"`, `filterSpec={certified:true}`, `aggregationSpec=[{name:"agg", attributeNames:["core.classType"]}]`)
Apply `filterSpec={certified:true}` inline when the user is asking for trusted data. Read the returned assets AND the free `core.classType` / `origin` / `resourceType` / `assetLifecycle` buckets before spending another call.
3. **Escalation on zero.** Diagnose the cause — filter or mode — before retrying:
- **Filter-first escalation (when `certified:true` or `classType` filter was applied):** retry the SAME mode WITHOUT those filters. If results appear, the data exists but is not certified/typed — report as an UNCERTIFIED or UNTYPED gap alongside the results. Do NOT switch to NL mode to work around a filter problem — NL silently drops `filterSpec`, which hides the certification gap instead of surfacing it.
- **Mode escalation (when no restrictive filter was applied, or filter-drop also returned zero):** KEYWORD zero → retry as NL with the user's original phrasing. NL zero → fall back to KEYWORD on concrete nouns from the question.
- **Still zero after both:** state honestly that the tenant has no match; do NOT invent one.
- **Column-to-parent derivation (when escalation returns DataElements but no parent Dataset).** Certification is dataset-only (§1 principle 3), so dropping the `certified:true` filter often surfaces columns (e.g. NET_SALES) whose parent table (FACT_ORDER) didn't match the keyword. When results contain DataElements but no Dataset: (a) read the column's `location` / `path` from the search result — it names the parent table and its origin; (b) use the parent table name + origin to resolve the Dataset in the next round (origin-scoped search per step 4, or `get_asset_details` if the parent UUID is already in the column's hierarchy). Do NOT issue a separate broad search for the parent — the column's location already tells you where it lives. Report the parent as UNCERTIFIED if the original certified search missed it.
4. **Origin-scoped follow-up searches.** When a previous call has resolved an asset's `origin` or `resource`, use `filterSpec={origin:[<origin_id>]}` to scope all subsequent searches to that source. This applies to two scenarios:
- **Sibling discovery (finding co-located assets):** `search_assets(query="*", filterSpec={origin:[<origin_id>]}, size=10)` to surface the full connected domain from the same source. Use KEYWORD on related table names found in descriptions.
- **Known-asset resolution (finding a specific asset within a resolved source):** when you know an asset name from a prior result (e.g. a parent table from a column's location, a dimension table from a description) and you know its origin, search origin-scoped: `search_assets(query="FACT_ORDER", mode=KEYWORD, filterSpec={origin:[<origin_id>]}, size=5)`. This is cheaper and more precise than a broad search — it eliminates same-name assets from other sources and avoids polluting results with staging duplicates.
5. Read aggregation buckets: small named bucket = curated, large generic = staging
6. **⟦ROUND 2 — parallel; see §4.5 fast/slow path⟧ Fitness pre-scan (do NOT defer to later turns):** if the prompt implies the data will be USED — e.g. "for a campaign", "present to leadership", "target customers", "where's the customer/product data" — proactively run a fitness pass on the top asset so THIS turn's answer also covers business meaning, sensitivity/PII, ownership/policy, AND the specific governance traps the catalog exists to surface. A first-turn discovery answer that surfaces only findability (and defers meaning/sensitivity/policy to "later turns") is INCOMPLETE — the user asked a fitness question, answer it now.
**Before issuing Round 2 calls, check which path applies (§4.5):**
- **Fast path (column UUIDs already known from Round 1 search results):** issue hierarchy fetch on the parent AND glossary wiring checks on known columns ALL in parallel in this round. Do NOT wait for hierarchy to "discover" column UUIDs you already have — that wastes a round.
- **Slow path (Round 1 returned only the parent table, not columns):** issue hierarchy fetch in this round; column UUIDs resolve from the hierarchy response; glossary wiring moves to step 6(e)/Round 3.
Run:
- (a) `get_asset_details(segments=[hierarchy, dataClassification, stakeholdership])` — lists fields, PII/sensitivity labels, and owner in one call. **Note:** hierarchy returns all child column UUIDs. If you need column UUIDs for glossary checks in step 6(d)/(e), read them from THIS response — do NOT issue a separate search for a column that hierarchy already returned.
- (b) **Trap drill-down (mandatory when a field name is ambiguous or geo/demographic-sounding — e.g. REGION, AREA, CODE, CATEGORY, TYPE):** `get_asset_details(segments=[glossary])` on those child fields. A benign-looking column can carry a glossary term revealing HIDDEN_SENSITIVITY (classic: REGION actually encodes *Religion* → special-category). Do NOT report field meaning from the column name alone — confirm from the field-level glossary term (§7.12 step 4).
- (c) **Compliance-flag scan (mandatory for any contact/campaign/targeting use):** inspect the hierarchy field names for consent / RTBF / opt-out / do-not-contact / suppression columns (§7.15). Report whether they are PRESENT (state the gating rule) or ABSENT (a NO_COMPLIANCE_FLAG gap that must be escalated before outreach) — do NOT merely say "no flags found" without calling it a gap.
- (d) **Grain check + fiscal-term resolution (mandatory when the question is period-scoped — "last quarter", "in March", "YoY", "MoM", "Q2"; independent of the fitness trigger).** Two sub-checks, both required:
- **Grain capability:** From the same hierarchy fetch, apply §11's grain-check heuristic (`TOTAL_*` / `LIFETIME_*` cumulative → cannot answer; `L7D_*` / `L30D_*` / `L90D_*` rolling → **not** "last quarter"; `DATE_KEY` / `DATE_VALUE` / `*_DATE` grain → period-capable). On views/aggregates, also read `sourceStatementText` in `selfAttributes` for the true metric definition. Report a GRAIN_MISMATCH gap if the candidate cannot answer the period the user asked about — even if every other signal is green.
- **Fiscal-term resolution (column-glossary-first, NEVER agent knowledge).** The agent MUST NOT interpret period terms ("Q2", "quarterly", "last quarter", "FY") using its own calendar knowledge. Resolution order:
1. **Column glossary first:** `get_asset_details(segments=[glossary])` on the date/period column (e.g. ORDER_DATE). **On the fast path, this call runs in parallel with step 6(a) — the column UUID is already known from Round 1.** On the slow path, this call waits for step 6(a)'s hierarchy to provide the column UUID and runs in Round 3/step 6(e).
2. **Search fallback:** If no fiscal term is linked to the column, search for one: `search_assets(query="fiscal quarter", filterSpec={classType:["com.infa.ccgf.models.governance.BusinessTerm"], assetLifecycle:["Published"]})`. If found → use the definition but flag the column link as missing (TERM_NOT_WIRED, §7.1 step 6e).
3. **No term at all:** If neither path yields a fiscal/period term → report as a FISCAL_TERM_MISSING gap. State "no fiscal calendar definition exists in the catalog — confirm the period boundary with the data steward before running." Do NOT fall back to generic calendar quarters (Jan–Mar, Apr–Jun, etc.).
- (e) **⟦ROUND 3 — parallel; slow path only⟧ Dimensional-term wiring check (man