/oracle-ai-data-platform-fusion-autopilot:fusion-drift-doctorfrom oracle-ai-data-platform-fusion-autopilot
Diagnose and route Fusion->AIDP schema-drift / gate failures. When a run fails with a drift gate (AIDPF-2072 Fusion PVO drift, AIDPF-4070/4071 source-schema, AIDPF-2012 bronze fingerprint, AIDPF-4040 plan-hash), this read-only skill explains the code, probes the LIVE Fusion PVO, classifies each affected column, and routes the fix: bootstrap --refresh (mechanical re-pin), /medallion-author (overlay a new column name the pack never anticipated), re-seed (plan-hash drift), or human investigate. Use when an incremental/seed run reports schema drift or an AIDPF-20xx/40xx gate, when 'the Fusion PVO column changed', or as a precheck before /aidp-fusion-incremental. Does NOT fix anything itself — it diagnoses and hands off.
Ships in oracle-ai-data-platform-fusion-autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The runtime gates DETECT drift and fail the run; they don't tell you which fix. This skill closes that: read the failure, probe the live Fusion PVO, classify each affected column, and route to the right remediation. Read-only — it diagnoses and hands off; it never edits packs/profiles or runs the pipeline.
seed/incremental run failed with AIDPF-2072 / 4070 / 4071 /
2012 / 4040, or the summary says "schema drift" / "PVO drift"./aidp-fusion-incremental before dispatch.| Code | What it means | Route |
|---|---|---|
| AIDPF-2072 | Live Fusion PVO schema drifted vs the bootstrap-pinned snapshot (a source column renamed/removed). | classify → bootstrap --refresh or /medallion-author |
| AIDPF-4071 | A declared outputSchema column is missing from the live PVO. | classify (same as 2072) |
| AIDPF-4070 | A live PVO column's type changed vs declared. | /medallion-author — draft a bronze type-overlay (retype outputSchema to the live type) from the persisted AIDPF-4070__<node>.json |
| AIDPF-2012 | Bronze table fingerprint drifted vs the pinned profile fingerprint. | confirm the change is legit → bootstrap --refresh to re-pin |
| AIDPF-4040 | Plan-hash drift — the node's plan-hash differs from the seed-pinned one. | classify the cause (below) — re-seed only fixes a genuine plan-shape change |
Note the distinction: PVO source drift (2072/4070/4071) is detected by a metadata-only BICC probe of the live PVO — it catches a renamed source column even when the bronze Delta table still holds the old one. Bronze-table drift (2012) is a
DESCRIBEof the materialized table. Different layers.
| File | Role | Invoked via |
|---|---|---|
drift_classify.py | Classify each columnAlias against the live PVO columns → present / renamed_resolvable (→ bootstrap --refresh) / needs_overlay (→ medallion-author) / missing_literal (→ investigate if it should exist, OR — if legitimately absent for this tenant — relax the requiredColumns assertion via a relaxRequiredColumns overlay through /medallion-author; AIDPF-2062/2063 guard it). | Bash, JSON in/out |
.aidp/diagnostics/<run_id>/AIDPF-2072.json, etc. — it carries the drifted
columns), or note the AIDPF code from the run summary. For AIDPF-4040 / 2012
the route is decided by the code (table above) — skip to step 4.aidp-fusion-autopilot catalog probe-pvo <id> --datastore <PVO> --bicc-schema <Financial|HCM|SCM> ...
(or reuse the diagnostic's observed columns). Gather the pack's
columnAliases (content-pack info <pack> --json) + the profile's resolved
picks for each affected alias.{live, aliases[, required_literals]} and run:
python3 skills/fusion-drift-doctor/drift_classify.py --input drift.json
→ per-alias status + routes.renamed_resolvable → tell the operator to run aidp-fusion-autopilot bootstrap --refresh — a declared candidate still matches; refresh re-pins
the alias to it.needs_overlay → route to /medallion-author: a new column name
the pack never anticipated; draft an overlay extending
columnAliases.<name>.candidates with the observed live column (surfaced in
liveColumns).missing_literal → investigate: a declared literal column vanished
— a pack/source mismatch a human resolves (no mechanical fix)./medallion-author (bronze type-overlay):
a declared bronze outputSchema type differs from the live PVO. The fix is a
non-destructive type-overlay — a bronze/<node> outputSchema block
override (or a same-id bronze file) retyping the column to the live type. The
run persists an AIDPF-4070__<node>.json diagnostic that /medallion-author
drafts the overlay from. (Identity fields stay off-limits — a PVO/key/target
change is still a new node id.)LIMITS.md P-incr-L1 resolved — so the
watermark predicate rendering 1=1 (seed) vs <col> > :watermark_src
(incremental) no longer false-trips 4040. A 4040 today means a real
plan-shape change, not the mode you ran.)
outputSchema /
variation pick / tenant profile / watermark column since the seed) → if
the edit was unintended, revert it. If intended, either re-pin
with a scoped re-seed of just that node's layer: run --mode seed --datasets <node> --layers <layer> (runs over existing bronze/silver —
does NOT re-extract bronze or touch other marts), or pass the hidden
run --mode incremental --repin-plan-hash to repin the new hash and
proceed without a full rebuild (writes a mode='plan_hash_repin' audit
row to fusion_autopilot_state — dev/sandbox only, never in SOX/production).
--repin-plan-hash is the cheap path when you know the change was
deliberate and want a true delta-MERGE on the very next run._build_hash_input
param-exclusion fix, the hash baked in the per-run run_id, so 4040 fired
on every content-pack incremental and re-seeding never helped. If the
cluster wheel predates the fix, rebuild/redeploy, then re-seed once.bootstrap --refresh re-pins the fingerprint (break-glass
--force-fingerprint-skip only for dev)./aidp-fusion-incremental./aidp-fusion-incremental (drift precheck) and usable after any
seed/incremental failure; aidp-fusion-status and aidp-fusion-autopilot can
route here on a gate failure.bootstrap --refresh (mechanical re-pin) and /medallion-author
(Tier-2 overlay for a column the pack didn't anticipate).--force-fingerprint-skip outside dev/break-glass.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/aidpf-error-triageRead-only triage router for Oracle AIDP Fusion Autopilot failures. Use when the user pastes CLI output, a traceback, an `.aidp/diagnostics` path, a run id, or says bootstrap, validate, seed, incremental, dashboard, OAC, or workbook failed. Extract `AIDPF-*` codes, affected run id, dataset, layer, variation point, or diagnostic artifact; explain the failure briefly; route to the correct skill or command such as `/aidp-fusion-config`, `/aidp-fusion-bootstrap`, `/medallion-author`, `/fusion-drift-doctor`, `/aidp-fusion-seed`, `/aidp-fusion-incremental`, `/oac-dataset-setup`, or `/workbook-authoring`. Also triage non-AIDPF OAC MCP disconnect symptoms. Never run destructive seed, never edit profiles or overlays, and never bypass drift gates./aidp-fusion-autopilotEnd-to-end conductor for the Fusion to AIDP to OAC dashboard journey. Takes one high-level goal ('I want a supplier-spend vs GL-balance dashboard from Fusion') and drives the whole chain: configure, connect OAC MCP, bootstrap, seed, advise dataset, author mart if needed, create OAC dataset, author workbook, and optionally enable end-user MCP chat by detecting current state and delegating each step to the right sibling skill/command. Auto-advances on clean steps; pauses for real decisions (destructive seed, variation freeze, OAC dataset creation, ambiguous intent, gaps). Use when the user states a dashboard/analytics goal and wants it driven start-to-finish, OR on first run after installing the plugin: 'I just installed this, what now', 'get me started', 'set me up', 'set up Fusion analytics from scratch / end to end', 'autopilot this', 'take me from nothing to a dashboard'. This is the front door for a fresh install (setup scaffolds the bundle). NOT for a single known step (call that skill directly).Other plugins' skills for the same job
npx claudepluginhub ahmedawan-oracle/claude-code-plugins --plugin oracle-ai-data-platform-fusion-autopilot