/fluid:releasing-streaming-productsfrom fluid
Releases changes to running Spark streams by stopping between batches, traces Iceberg commits to releases. Use for deploying streaming products, reading commit stamps, sealing releases with fluid ship, or resolving apply_spark_artifact_mismatch.
Ships in fluid. 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.
None: SKILL.md is the whole skill.
fluid apply replaces a stream whose config changed. It asks the running stream to stop
between two batches, so no batch is cut in half, and the new config resumes from the same
checkpoint.
fluid describe --commands prints every command and flag as JSON. Check a command
or flag there before you use one this skill does not show.
Plan and apply as the deploying-fluid-contracts-safely skill says, and stop for the user's
review. The plan's stateImpact says which running streams would stop between batches;
tell the user before the apply.
When the apply replaces a stream:
stop/<key> beside the build's job config
(_fluid/spark/<product>/<build>/; on runtime: local, under FLUID_SPARK_LOCAL_ROOT).FLUID_SPARK_STOP_GRACE_SECONDS (default 300, at most
3600; 0 cancels at once) is cancelled. The request is removed whatever happens, Ctrl-C
included.These runs are cancelled at once instead of asked:
--mode reconcile only restarts streams that died. It never replaces a config, so it stops
nothing.
properties.stream.checkpoint: the new run starts from startingOffsets unless
the new location already holds a position. The outcome says which one happened.apply_spark_artifact_mismatch: the Spark runs compiled now differ from the plan's (a
plan made before a fluid upgrade, or with other Spark settings in the environment). Plan
again, in the environment the apply runs in.After fluid apply starts a stream's new config over a previous one, it watches the new run for
FLUID_SPARK_RELEASE_PROBATION_SECONDS (default 300, at most 3600; 0 turns the watch off)
before it returns. It watches each changed stream in turn, so an apply of several changed streams
takes that much longer for each. Set 0 where a scheduler's timeout is shorter than the wait.
A run that fails in that time, or that its runtime retries, has failed its probation. The apply
cancels it, starts the previous job config again on its checkpoint, and fails with
spark_release_rolled_back. Its outcome names both runs, both configs and the cause. Tell the
user what it says the output now holds:
properties.stream.checkpoint) and the old config
writes another output, the failed run's output keeps what it wrote, and the old config goes on
writing its own.Only the job config goes back: the rolled-back run keeps the runner and the settings this apply
compiled, so a release that changed only those rolls nothing back and says so. A stream last
started by a fluid that kept no release record cannot go back: the outcome says so and leaves the
failing run as it is. --mode reconcile watches nothing and rolls nothing back.
| Event | What it means | Do |
|---|---|---|
spark_release_rolled_back | the new config failed its probation, and the previous one runs again | tell the user what the output holds; fix the contract, then plan and apply again |
apply_spark_rollback_unsafe | the release moved the checkpoint and the old config writes the same output or dead-letter table, so nothing went back: the failed run is cancelled and the stream is down | ask the user: fix the contract and apply, or apply the previous contract on purpose and expect the records between the two checkpoints twice |
apply_spark_no_known_good_config | the config the release replaced did not end well (its last run failed, was cancelled before the apply, or was lost), and the stream is down | fix the contract and apply; the failed run's outcome names its error |
apply_spark_release_failed_earlier | this config failed its probation on an earlier apply, and its marker (releases/<hash16>/failed beside the build's job config) keeps it from starting | change the contract to fix it; only when the cause was the environment, ask the user to set FLUID_SPARK_ACCEPT_FAILED_RELEASE=1 for one apply |
apply_spark_artifact_read_denied | the identity that runs fluid apply cannot read the build's prefix (_fluid/spark/<product>/<build>/), so nothing was started | grant it s3:GetObject there, and s3:ListBucket scoped to that release prefix: without it S3 answers a missing marker with AccessDenied, and a refused marker cannot be told from a missing one (when only the marker is refused, the user can set FLUID_SPARK_ACCEPT_FAILED_RELEASE=1 for one apply instead; it also skips a real failed-release marker, so it is never set permanently, least of all in a keepalive) |
FLUID_SPARK_ACCEPT_FAILED_RELEASE is the operator's to give: a project .env cannot set it. It skips a failed-release marker whether the marker is real or only unreadable, so it is set for one apply and unset again.
Every commit the runner makes (a batch overwrite, a stream's append, a dead-letter table's
append) carries these keys in its Iceberg snapshot summary. The ones after fluid.job-sha256
are there when fluid apply knows them.
| Key | Value |
|---|---|
fluid.product, fluid.build | the product and the build |
fluid.job-sha256 | the digest of the job config as it ran |
fluid.product-version | the version of the build's output |
fluid.contract-digest | the contract as loaded, before {{ env.* }} is resolved |
fluid.bundle-digest | the bundle of the plan fluid apply verified |
fluid.release-id | FLUID_RELEASE_ID, when the deploy names a release |
fluid.run-id | the pipeline's run id |
fluid.scheduler-job, fluid.scheduler-run-id | the scheduler's job and run, such as Airflow's DAG id and run id |
FLUID_RELEASE_ID where the deploy runs: a tag, a build number, or the release line
fluid runs status shows. It starts with a letter or a digit, holds only letters, digits
and ._:+@/=~-, and is at most 256 characters; any other value refuses the apply
(--mode reconcile leaves it off, with a warning).FLUID_RUN_ID, when set, is the run id. Otherwise, under a scheduler, the run id is
derived from the scheduler's run: FLUID_SCHEDULER_JOB and FLUID_SCHEDULER_RUN_ID, else
Airflow's AIRFLOW_CTX_DAG_ID and AIRFLOW_CTX_DAG_RUN_ID. The DAG fluid generate schedule renders passes Airflow's two to fluid under the FLUID_SCHEDULER_ names.Read them back in Spark SQL:
SELECT committed_at, snapshot_id,
summary['fluid.release-id'] AS release_id,
summary['fluid.bundle-digest'] AS bundle,
summary['fluid.scheduler-run-id'] AS scheduler_run
FROM glue_catalog.curated.orders.snapshots
ORDER BY committed_at DESC
A job that fluid does not run leaves no run record, so seal a release at each deploy, in the
CI that deploys it. --release-dir names a new directory, and the release is written there
only when every stage passes:
fluid ship contract.fluid.yaml --env prod --release-dir releases/<release-id>
For a job another tool deploys, seal it without applying:
fluid ship contract.fluid.yaml --env prod --until validate-artifacts --release-dir releases/<release-id>.
Then ask which release was in force, now or on a UTC day:
fluid runs status <product-id> --release-dir releases/
fluid runs status <product-id> --release-dir releases/ --on 2026-11-20 --env prod --json
--env names): the
release in force, the releases sealed that day, each one's versions, the CI's revision, the
run that sealed it and its bundle. A commit whose fluid.bundle-digest equals a release's
bundle line came from that release's bundle.--on that is not YYYY-MM-DD).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub agenticstiger/forge-cli --plugin fluid7 skills in this plugin
/adopting-existing-pipelinesProposes contracts from running PySpark jobs and Airflow DAGs with fluid import, and takes existing Glue tables over with --adopt-tables. Use when asked to adopt, migrate, onboard or import an existing Spark job, Airflow DAG or data platform, to write a conventions file or an importer plugin, or when a plan or apply fails with table_adoption_requires_flag, table_adoption_mismatch, table_adoption_unavailable or plan_adopt_tables_needs_tofu./authoring-fluid-contractsCreates or changes a FLUID data product contract (contract.fluid.yaml) with the fluid CLI, then runs fluid validate until it is clean. Use when asked to build, scaffold, define, edit, refine or fix a data product, its exposes, column schema, bindings (local files, DuckDB, Snowflake, BigQuery or GCP, AWS), schedule, data quality rules or owner, or its SDP, ADP or CDP (Bronze, Silver or Gold) classification./composing-fluid-data-productsWires FLUID data products together through consumes[] so an ADP or CDP reads the outputs of upstream SDP, ADP or CDP contracts, binds those reads in the build, and validates the chain. Use when a data product joins, aggregates or builds on other data products, for source-aligned to aggregate to consumer-aligned (SDP to ADP to CDP, Bronze to Silver to Gold) pipelines, or when fluid validate reports a composition rule error./deploying-fluid-contracts-safelyRuns the fluid delivery pipeline (validate, bundle, generate artifacts, plan, apply, verify) in the safe order, stops for a human to review the plan, and refuses the flags that skip its safety gates. Use when asked to plan, deploy, apply, ship, release, roll out or publish a FLUID contract, or when apply asks for --allow-data-loss or fails a plan-binding, plan-mode or digest check./publishing-to-data-mesh-managerPublishes FLUID products to Data Mesh Manager (Entropy Data) as draft batches, promotes verified drafts and reports a migration's status. Use when asked to publish, register or catalogue data products in Data Mesh Manager or Entropy Data, to move drafts to active, to check how far a migration has got, or when fluid datamesh-manager fails with a dmm_batch_ or dmm_promote_ error./troubleshooting-fluid-errorsDiagnoses and fixes a failing fluid command from its output, its stable ERR_ error code and the path-level messages of fluid validate. Use when a fluid command exits non-zero or prints an ERR_ code, when validation reports an error such as is not one of, is a required property, Additional properties are not allowed or does not match, or for composition, layer and productType, or plan-binding failures.Other plugins' skills for the same job