/oracle-ai-data-platform-fusion-autopilot:aidp-fusion-seedfrom oracle-ai-data-platform-fusion-autopilot
Turn a natural-language seed request into a correct, guarded `aidp-fusion-autopilot run --mode seed`. Parses intent into scope flags (--datasets / --layers / --strict-scope / --resume), auto-satisfies preconditions (validate + `/aidp-fusion-bootstrap` + cluster), guards the destructive replace-on-silver/gold behaviour with a fail-closed confirmation, then dispatches and offers resume on failure. Use when the user says 'seed', 'seed supplier_spend', 'seed the bronze layer', 'seed the marts', 'resume the seed', 'materialize bronze/silver/gold', or otherwise wants a first-run / re-run of the medallion pipeline. NOT for incremental runs (--mode incremental), bootstrap-only variation resolution (use `/aidp-fusion-bootstrap`), or dashboard install.
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.
This skill turns a loose ask — "seed", "seed supplier_spend", "seed just
bronze", "resume the seed" — into a correct, guarded
aidp-fusion-autopilot run --mode seed invocation. It owns ONLY: intent
parsing, precondition orchestration, the destructive guard, dispatch, and
result presentation. It shells out to the existing CLI for every stateful
action — it never imports the orchestrator and never touches
fusion_autopilot_state directly (CLAUDE.md "the CLI is the contract" +
layering rule).
seed materializes bronze + silver + gold end-to-end and uses replace
strategy on silver/gold (CREATE OR REPLACE TABLE). Re-seeding a populated
tenant overwrites existing marts. That is why the destructive guard below is
fail-closed: it confirms whenever emptiness cannot be proven, not only
when data is seen.
--mode incremental) — that is the planned
aidp-fusion-incremental sibling skill. This skill always runs --mode seed./aidp-fusion-bootstrap, or medallion-author for tier-2 overlay drafting.dashboard command / OAC skills.pytest. Dataset-extract debugging — use the
catalog probe commands.| File | Role | Invoked via |
|---|---|---|
intent.py | Deterministic phrase → run argv parser + resume resolver (tested). | Bash, returns JSON |
preconditions.py | Reusable readiness checker (validate + profile + cluster + config coords). | Bash, returns JSON |
guard.py | Fail-closed destructive-guard decision (confirm vs proceed) over per-target facts. | Bash, returns JSON |
Both are pure Bash-invoked helpers that emit JSON on stdout. Run them with the
plugin's Python (the repo's .venv/bin/python if present, else python3 with
the plugin on PYTHONPATH — preconditions.py self-bootstraps scripts/ onto
sys.path). Use the same interpreter the rest of the plugin's CLI uses.
intent.py)First assemble the set of known pack node ids so the parser can tell a real target from a typo. The union of:
bundle.yaml's datasets[].id;aidp-fusion-autopilot content-pack info <pack> --json (.nodes.silver +
.nodes.gold). Resolve <pack> from bundle.yaml's contentPack.name
(fall back to aidp-fusion-autopilot content-pack list --json if only one is
installed).Then parse:
python3 intent.py "<the user's exact phrase>" \
--known-nodes "<comma-joined known node ids>"
The JSON result tells you what to do next:
ambiguous non-empty → do NOT guess. List each token's candidates
(the matching node ids) and ask the user which they meant. Example: "seed
supplier" is ambiguous across dim_supplier, erp_suppliers,
supplier_spend.unknown_tokens non-empty → the target matches no known node. Show the
full list of pack node ids and ask. Never seed a guessed scope.needs_run_id: true (resume intent, no id given) → you cannot reliably
discover the run_id today (status does not print run_ids, and
.aidp/diagnostics/ is not a complete index). Ask the user for the
explicit run_id. Do NOT scrape status text or guess from diagnostics dirs.
(When aidp-fusion-autopilot status --recent-runs --json ships, feed its output
to intent.resolve_resume_run_id(recent_runs) — it returns a single
resumable run_id, or forces an ask on zero / multiple. Still ask on either.)argv is the resolved run invocation. Show the user the
expanded scope (especially the D-1 dep expansion is made visible by the
--dry-run plan in step 3 before anything destructive happens).preconditions.py)python3 preconditions.py --bundle bundle.yaml --config aidp.config.yaml --env <env>
Returns {ok, missing[], tenant, profile_path, profile_present, dispatch_mode, cluster_state, config_placeholders[], validate_ok, details{}}. Act on
missing — this is the auto-fix ladder:
missing contains "bundle" (validate failed / bundle unloadable) →
stop and tell the user to init / fix. Connectivity (fusion: block,
credentials) is customer policy the CLI cannot safely auto-generate. Surface
details.validate.
missing contains "config" (and config_placeholders is non-empty) →
the dispatch coordinates in aidp.config.yaml are absent or still
*-PLACEHOLDER (workspaceKey / clusterKey / aiDataPlatformId). These
are resolvable from human-friendly names — do NOT dead-end. Tell the user to
run /aidp-fusion-config, or shell out to:
aidp-fusion-autopilot init-config --aidp-id <OCID> --workspace "<name>" --cluster "<name>"
which resolves the keys so they never hand-copy OCIDs. (Still stop-and-ask on
missing fusion: connectivity — init-config cannot supply that.)
missing contains "profile" (no contentPack.profile, or
profiles/<tenant>.yaml absent) → route through /aidp-fusion-bootstrap:
aidp-fusion-autopilot bootstrap --check-iam
⚠️ Bootstrap freezes tenant variation choices (column-alias /
semantic-variant picks) into the profile. Surface what it resolved to the
user — do not let it silently pin choices. If bootstrap hits a multi-match
that needs a human, let it prompt interactively; never pass --non-interactive
for a real operator run.
missing contains "cluster" (cluster_state ≠ ACTIVE) → surface
details.cluster. If STOPPED, offer to start it (via the AIDP UI or the
cluster start action); if unprobed, the coords/auth could not reach the
plane — fix config first. Do not dispatch against a non-ACTIVE cluster.
Requested node lives in an overlay not wired into contentPack (e.g. a
mart mart-author just authored under overlays/<name>/). The orchestrator
only knows nodes in the active contentPack, so a node not in it parses
as unknown. Wire it for the client with the one-command verb:
aidp-fusion-autopilot use-pack overlays/<name> --profile <tenant>
(sets contentPack, aligns dimensions/marts, normalizes the credential
ref — see mart-author step 7), then re-run. For a narrow bundle or a
one-mart override, add --no-align so it keeps the bundle's existing
datasets/gold.marts instead of broadening to every node in the resolved
pack. If the overlay doesn't exist yet, route to /mart-author.
Cluster-side credential gotcha (pre-empt before dispatch). If
bundle.yaml's fusion.password is a placeholder vault OCID, the cluster run
fails with CredentialResolutionError. Set fusion.password: ${FUSION_BICC_PASSWORD} (loaded cluster-side from the AIDP credential store
via biccSecretName), and make sure every ${ENV} ref in bundle.yaml
resolves both client-side (preflight load_bundle) and cluster-side
(literalize tenant values, or set the env var in both places).
Dispatch mode: default cluster REST (no --inline). Switch to
--inline only when the environment is clearly an AIDP notebook session
(Spark + checkpointer + vault present) or the user explicitly asks. When in
doubt, ask.
Re-run preconditions.py after any auto-fix until ok: true.
seed overwrites silver/gold. Before dispatching a real seed you MUST run
both probes and classify the outcome into three buckets — and the bar for
"proceed" is high:
aidp-fusion-autopilot status # informational
aidp-fusion-autopilot run --mode seed <scope flags> --dry-run # resolved plan
--dry-run prints the "Would dispatch" table (every in-scope
dataset_id + layer the seed would CREATE OR REPLACE / MERGE) plus the
extra-plan prerequisites with table paths. That table defines the set of
in-scope target tables.
Classify:
"Proven empty" is a PHYSICAL TARGET-TABLE check, never a state-row check. Two fail-open traps you MUST close:
- State ≠ tables.
aidp-fusion-autopilot statusreadsfusion_autopilot_state(run metadata), NOT the physical silver/gold marts. An empty or stale state table can read "empty" while populateddim_supplier/supplier_spendalready exist. State rows are a hint, never proof.- Unreadable ≠ empty.
statustoday is local-Spark/Rich only, has no JSON mode, and returns exit 0 with just a "pyspark not available" / "cannot read state table" message on the common laptop-to-cluster path. "Could not inspect" is unknown → confirm, never "empty".
Encode the decision with guard.py (do not hand-roll it):
# Today: no per-target facts available -> ALWAYS confirm (fail closed).
python3 guard.py --targets-json '[]'
# Future, once `status --json` emits per-target physical facts:
python3 guard.py --status-json-supported \
--targets-json '[{"target_table":"silver.dim_supplier","target_exists":true,"target_row_count":4213,"readable":true}]'
guard.py returns {decision: "confirm"|"proceed", reason, populated_tables, unprovable_tables}. Honour decision exactly: on "confirm", show the
overwrite warning (use populated_tables / unprovable_tables + the dry-run
target list) and require an explicit "yes"; only "proceed" skips the prompt.
Today, with the current CLI, guard.py returns "confirm" every time —
there is no status --json emitting per-target {target_exists, target_row_count, readable} (so call it WITHOUT --status-json-supported).
You cannot machine-prove a physical target table is empty from the laptop.
Therefore: confirm before every real seed. Present the dry-run "Would
dispatch" target list as the tables about to be created-or-replaced, and get an
explicit "yes" — even on what looks like a fresh tenant.
When the richer CLI ships (status --json with per-resolved-target
target_exists / target_row_count / readable, working in the
cluster-dispatch path): "proven empty" holds only if every resolved
in-scope target is readable: true AND (target_exists: false OR
target_row_count == 0). If any resolved target is readable: false /
missing / errors, classify the whole outcome as unknown → confirm. Never
infer empty from a subset, and never decide off fusion_autopilot_state rows.
Fire the real run (drop --dry-run):
aidp-fusion-autopilot run --mode seed <scope flags> --poll-timeout <N>
--poll-timeout default 3600 (1h). Recommend 14400 (4h) for a
first-time full seed against a slow Fusion pod (cold-cache BICC extracts;
gl_period_balances can be the long pole). Valid range 60–14400.aidp-fusion-autopilot run --mode seed --resume <run_id>
(omit --datasets / --layers unless narrowing). When the failed run wrote a
durable run manifest, --resume replays the manifest (canonical topology,
per-node fingerprints, mode, and identity) rather than re-deriving scope; a bare
--resume never silently flips seed↔incremental. Manifest-present drift guards
(topology AIDPF-1044, node/pack AIDPF-1049, identity/profile/COA-policy
AIDPF-1048, scope AIDPF-1047, mode AIDPF-1046) route to a fresh seed. A
pre-manifest run falls back to the legacy path (scope reconstructed from state
rows). A malformed/unreadable manifest fails closed with AIDPF-4022 — start a
fresh seed.run_id and
offer aidp-fusion-autopilot run --mode seed --resume <run_id>. The original
run_id is preserved end-to-end (medallion _run_id audit invariant).Summarize the CLI's per-step table: dataset / layer / status / row_count /
duration, plus the run_id and success/failed/skipped counters. On failure,
point the user at the diagnostic artifact the CLI wrote at
.aidp/diagnostics/<run_id>/ (e.g. the AIDPF-*.json for gate failures) and
read it back to explain the AIDPF code + remediation.
A successful seed materializes the tables but does not build a dashboard. Close the loop by pointing the user at what comes next — name the gold table(s) just seeded (those are the dashboard-facing ones):
Seeded
gold.<table>(N rows). To turn this into a dashboard:
/oac-dataset-advisor— tell it your dashboard question (e.g. "supplier spend by currency"); it inspects the live gold you just seeded and recommends the exact dataset (tables, columns, join key).- Create that dataset in the OAC UI (dataset creation is an OAC action — the MCP server has no create-dataset tool).
/workbook-authoringto generate the workbook on it.Or run
/aidp-fusion-autopilotwith your goal to drive all of the above end-to-end (it detects what's already seeded and skips ahead).
Keep it to the tables actually seeded this run; don't advertise marts the scope didn't build. This is advice, not an auto-invocation — let the user choose.
This is the first of a planned family — seed / incremental / bootstrap / status — that shares a substrate:
preconditions.py is the reusable contract. Its JSON shape (ok,
missing[], tenant, profile_path, dispatch_mode, cluster_state,
config_placeholders[]) is what the sibling skills consume so each does not
re-derive readiness. New readiness signals get added here, once, with a
default that degrades safely.intent.py is --mode seed-specific today, but its phrase→argv shape
(known-node classification, ambiguous / unknown_tokens / needs_run_id
fail-safes) is the template the incremental sibling will extend with
watermark-aware vocabulary.Both helpers are import-safe and dependency-light precisely so the siblings can reuse them without dragging in the orchestrator.
ambiguous / unknown_tokens → list pack node
ids and ask.fusion: / credentials →
stop and ask. Only the coordinates in aidp.config.yaml are
auto-resolvable (via /aidp-fusion-config)./aidp-fusion-config.preconditions.py calls
the existing AidpRestClient / loaders.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahmedawan-oracle/claude-code-plugins --plugin oracle-ai-data-platform-fusion-autopilot16 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