{"id":100996,"plugin_id":"plugins_6aed3278a3848191925fc74753ecbe72","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-17T06:15:21.817Z","digest":"08924044937766752b4f6ebede8466074f4f22fdbbc1ee597d85eef3c20e1810","against":null,"payload":{"description":"IDMP datasource diagnosis workflow. Read the connection, probe connectivity, inspect databases and metadata, compare model mappings, and reread after every probe or write.","included_files":[{"relative_path":"references/datasource-diagnose.md","size_in_bytes":4785}],"name":"idmp-workflow-datasource-diagnose","skill_md_contents":"---\nname: idmp-workflow-datasource-diagnose\ndescription: \"IDMP datasource diagnosis workflow. Read the connection, probe connectivity, inspect databases and metadata, compare model mappings, and reread after every probe or write.\"\nmetadata:\n  author: \"TAOS Data\"\n  version: \"0.6.1\"\n  owner_team: \"AI\"\n  requires:\n    bins:\n      - idmp-cli\n  cliHelp: \"idmp-cli datasource --help\"\n---\n\n# workflow: datasource diagnose\n\n**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**\n\n## Recommended references\n\n- [`references/datasource-diagnose.md`](references/datasource-diagnose.md)\n- [`../idmp-datasource/SKILL.md`](../idmp-datasource/SKILL.md)\n\n## Missing context to resolve first\n\n- Credential source.\n- Verification rereads.\n- The target connection, database, or table that the operator thinks is broken.\n- Whether the complaint is reachability, metadata visibility, or model mismatch.\n- Which element or template mapping should be compared back to source metadata.\n\n## Constrained live behaviors\n\n- Do not copy `connections get` into `connectivity create`.\n- `datasource check list` for the built-in TDengine listener.\n- After any write-like probe or import, reread.\n- Read the connection object before probing reachability.\n- Additional properties and metadata are evidence; they do not replace a live connectivity probe.\n- Metadata diagnosis stays ordered: connection -> probe -> db -> table -> column -> model mapping.\n\n## Execution flow\n\n1. Read `idmp-cli datasource connections list` and `idmp-cli datasource connections get --params` before any probe.\n2. Use `idmp-cli datasource additional-properties list-get --params` to capture datasource-side context.\n3. Reread `idmp-cli datasource check list` and then run `idmp-cli datasource connectivity create --ack-risk --data` to separate summary health from live reachability.\n4. Use `idmp-cli datasource dbnames list --params`, `idmp-cli datasource tablenames list --params`, and `idmp-cli datasource columninfo create --ack-risk --params` to lock the metadata boundary.\n5. Compare that metadata with `idmp-cli attr-template elements attributes --params`, and use `idmp-cli datasource csv create --ack-risk --params` only when the diagnosis includes a write-like CSV probe.\n6. Reread `idmp-cli data records list` if the diagnosis also touches import or export traces.\n\n## Exception paths\n\n- If the connectivity probe fails, fall back to `datasource check list` plus metadata reads before interpreting missing tables as schema bugs.\n- If metadata exists but the model does not match, report the exact column or mapping mismatch.\n- If record traces are absent, say whether the gap is ingestion history or datasource visibility. Capture whether the root cause is connectivity.\n\n## Validation scenarios\n\n### 1. Listener health confirmation\nStart with `idmp-cli datasource connections list` and `idmp-cli datasource connections get --params`. Only then run `idmp-cli datasource check list`.\n\n### 2. Redacted-payload connectivity failure isolation\nUse `idmp-cli datasource connectivity create --ack-risk --data` after a redaction-aware connection read. Reachability failures should not trigger secret hunting.\n\n### 3. Metadata versus model mismatch\nPair `idmp-cli datasource columninfo create --ack-risk --params` with `idmp-cli attr-template elements attributes --params`. The result should name the exact mapping mismatch.\n\n### 4. Table discovery failure\nWalk `idmp-cli datasource dbnames list --params` and `idmp-cli datasource tablenames list --params` in order. The failing step should become the reported boundary.\n\n### 5. CSV import trace during diagnosis\nIf the datasource complaint touches ingestion, reread `idmp-cli data records list`. Keep record-trace evidence separate from connectivity evidence.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}