workflow: datasource diagnose
Read ../idmp-shared/SKILL.md first.
Recommended references
references/datasource-diagnose.md../idmp-datasource/SKILL.md
Missing context to resolve first
- Credential source.
- Verification rereads.
- The target connection, database, or table that the operator thinks is broken.
- Whether the complaint is reachability, metadata visibility, or model mismatch.
- Which element or template mapping should be compared back to source metadata.
Constrained live behaviors
- Do not copy
connections getintoconnectivity create. datasource check listfor the built-in TDengine listener.- After any write-like probe or import, reread.
- Read the connection object before probing reachability.
- Additional properties and metadata are evidence; they do not replace a live connectivity probe.
- Metadata diagnosis stays ordered: connection -> probe -> db -> table -> column -> model mapping.
Execution flow
- Read
idmp-cli datasource connections listandidmp-cli datasource connections get --paramsbefore any probe. - Use
idmp-cli datasource additional-properties list-get --paramsto capture datasource-side context. - Reread
idmp-cli datasource check listand then runidmp-cli datasource connectivity create --ack-risk --datato separate summary health from live reachability. - Use
idmp-cli datasource dbnames list --params,idmp-cli datasource tablenames list --params, andidmp-cli datasource columninfo create --ack-risk --paramsto lock the metadata boundary. - Compare that metadata with
idmp-cli attr-template elements attributes --params, and useidmp-cli datasource csv create --ack-risk --paramsonly when the diagnosis includes a write-like CSV probe. - Reread
idmp-cli data records listif the diagnosis also touches import or export traces.
Exception paths
- If the connectivity probe fails, fall back to
datasource check listplus metadata reads before interpreting missing tables as schema bugs. - If metadata exists but the model does not match, report the exact column or mapping mismatch.
- If record traces are absent, say whether the gap is ingestion history or datasource visibility. Capture whether the root cause is connectivity.
Validation scenarios
1. Listener health confirmation
Start with idmp-cli datasource connections list and idmp-cli datasource connections get --params. Only then run idmp-cli datasource check list.
2. Redacted-payload connectivity failure isolation
Use idmp-cli datasource connectivity create --ack-risk --data after a redaction-aware connection read. Reachability failures should not trigger secret hunting.
3. Metadata versus model mismatch
Pair idmp-cli datasource columninfo create --ack-risk --params with idmp-cli attr-template elements attributes --params. The result should name the exact mapping mismatch.
4. Table discovery failure
Walk idmp-cli datasource dbnames list --params and idmp-cli datasource tablenames list --params in order. The failing step should become the reported boundary.
5. CSV import trace during diagnosis
If the datasource complaint touches ingestion, reread idmp-cli data records list. Keep record-trace evidence separate from connectivity evidence.