BuildRiot
Sign in

Article · AI

Dify 1.18 app promotion: Package, dependency and production checks

Dify says version 1.18 makes .ifpkg the default app export. Workflow and Chatflow packages include inline Agents, Skills and files bound to those Agents’ configuration snapshots. This guide explains how to preserve a release artifact, check destination dependencies, test the published app and investigate behavior changes with nested traces.

A sunlit miniature harbour shows an app workflow packed in a lavender-lined case, destination dependency checks, a public test stage, and nested execution traces.
Illustration: BuildRiot (AI-generated)

Key takeaway

A successful import is only one checkpoint in a production release. Keeping the artifact, configuration changes, acceptance results and execution evidence together helps teams diagnose deployment differences and decide when to roll back.

Start with a release artifact

Dify’s October 23, 2026, announcement says version 1.18.0 makes.ifpkg the default app export. According to Dify, Workflow and Chatflow packages include inline Agents, Skills and files bound to those Agents’ configuration snapshots. The company says import recreates resources, remaps references and reports missing resources. These portability features make the exported package a useful starting point for a production release procedure. Sources: Dify on GitHub

Consider a proposed support-triage Chatflow with an inline Agent, a Skill containing a fixture file and a Workflow Tool. The tool would retrieve policy information and call a test ticketing endpoint. Use this example to define what must survive promotion: configuration, resource bindings, file handling and expected tool behavior. Record the source workspace, app identifier, selected version, export time, Dify build and package checksum. Store the exact artifact intended for staging, with a readable configuration export alongside it where available.

The package foundation pull request describes a versioned manifest, bounded archive validation, portable references and content digests. That description does not establish reproducible builds, cryptographic signing or complete runtime capture. Repeated and partial imports, secret inclusion and compatibility across versions remain questions for deployment testing. The procedure below is a proposed validation method, not a tested deployment or a guarantee of repeatable releases. Sources: Dify on GitHub

Choose the transfer mechanism deliberately

Use.ifpkg as the central artifact for this promotion procedure. Dify says icons, Site settings and node plugin dependencies participate in export, and Agent exports can target published versions. The announcement also says YAML remains available. Keep YAML as an inspectable configuration companion without assuming it carries the same resources as a package. The table below separates these exports from the repository’s JSON migration workflow. Sources: Dify on GitHub

Table

Transfer mechanisms and their roles

MechanismDocumented scopeRecommended role
.ifpkg app packageDify says Workflow and Chatflow packages include inline Agents, Skills and files bound to those Agents’ configuration snapshots. Import remaps references.Primary promotion artifact
YAML DSLDify says YAML remains an export optionReadable configuration companion
Cross-environment migration JSONThe guide covers Workflow and Chatflow apps and custom tool dependenciesSeparate migration path with its own controls
Choose the transfer path first, then apply the controls documented for that path.Sources: Dify on GitHub

The JSON migration guide supports one source workspace and Workflow or Chatflow apps, with explicit identity and conflict strategies. Its wizard defaults to preserving identifiers and updating conflicts. Generating new identifiers produces mappings and rewrites references where possible. Review those defaults before using that workflow against an existing production destination. The guide documents these controls for JSON migration; they do not establish how package imports handle existing resources. Sources: Dify on GitHub

Stabilize the destination and map dependencies

Complete the platform upgrade before evaluating app promotion, so a runtime change does not obscure an application regression. Dify’s guidance calls for coordinated API, worker, Agent Backend and runtime upgrades. It also requires a nonempty local-sandbox token and an unchanged password-pepper setting. According to the announcement, older runtimes cannot read composition-v2 snapshots. Plan infrastructure rollback separately from restoring a previous app artifact. Sources: Dify on GitHub

Next, create a destination dependency inventory. For each dependency, record whether it travels with the artifact, needs rebinding or must be provisioned separately. Include the destination mapping while keeping secret values out of the review record. The JSON migration guide illustrates the distinction: built-in and plugin tools remain dependency metadata. In that workflow, custom API credentials need destination-side setup when secrets are excluded. Sources: Dify on GitHub

  • Model and provider configuration, including selected models and parameters.
  • Plugin versions, tool credentials and Model Context Protocol endpoints.
  • Knowledge resources and their destination bindings.
  • Sandbox configuration, file storage and fixture files.
  • App environment variables, access settings and production endpoint mappings.

Import into staging and save the import result, warnings and destination identifiers. Dify says package import reports missing resources and remaps references. Resolve those reports before acceptance testing, then inspect the resulting bindings rather than assuming development identifiers survived. For the support-triage example, verify the policy resource, Skill fixture and ticketing endpoint individually. Sources: Dify on GitHub

Check saved settings and the published entry point

Inspect imported configuration immediately, then compare it again after saving and reloading. Issue #44556 reports upload limits and feature switches resetting during overwrite-import of YAML domain-specific language, or DSL, configuration. The reporter tested Dify 1.17.1 and an upstream commit from October 22, 2026. That report concerns DSL behavior, not a demonstrated defect in released 1.18 packages. Use it to guide checks of prompts, model parameters, tool mappings, upload limits, feature switches, environment variables and access settings after saving. Sources: GitHub

File handling deserves its own acceptance case. A Docker deployment report for Dify 1.14.2 describes a cross-workspace import retaining a workspace-specific default-file reference. The interface then stayed in a running state while the worker reported an invalid upload file. Treat this historical report as a reason to test destination-workspace files, not as evidence of a current package defect. Exercise the published interface or API that production callers will use, including retrieval of returned files. Sources: GitHub

  1. Run a fixed successful fixture and check the selected branch, policy result and ticketing side effect.
  2. Submit missing input and trigger a controlled tool failure to inspect error behavior.
  3. Exercise file input and output using destination-accessible resources.
  4. Test any pause and resume behavior the app uses.
  5. Record pass or fail, latency, side effects and run identifiers for each fixture.

Follow the first divergent tool invocation

When staging behaves differently, compare the same fixture across environments and locate the first meaningful divergence. The trace interface pull request describes navigation into a selected tool invocation from workflow, chat and history views. It also describes refreshing loop, iteration and human-input traces. Match the fixture, invocation and iteration before comparing child results. The table below suggests diagnostic checks rather than a guaranteed set of fields for every node. Sources: Dify on GitHub

Table

Diagnostic checks after app promotion

ObservationRecommended next check
Different answer or branchCompare inputs, prompt, model settings, context and tool result
Outer tool failsInspect the first failing child step, credentials and endpoint
Tool executes repeatedlyMatch invocation and iteration to the fixture
Run pauses or appears stuckInspect child state and human-input history, then correlate logs
File output failsCheck resource mapping and caller access to the file
Console detail is unavailableCheck access to the source applications
These suggested checks use the invocation navigation and authorization behavior described in Dify’s pull requests.Sources: Dify on GitHub

For a controlled demonstration, point staging’s ticketing tool at a test endpoint that returns a different response. Run the same fixture and inspect the child execution to locate where the result changes. Compare inputs, prompt, model configuration, retrieved context and tool output before attributing the difference to the package. This exercise checks whether the team can explain a known deployment difference.

An unavailable drilldown does not prove that a child execution never ran. The backend pull request scopes results to the tenant, workflow run and invocation, and requires access to every source application before returning internal details. Dify says nested usage and step totals may be approximate after a pause or stop. The announcement says external exports omit called Workflow Tool internals and their Agents because viewer authorization is unavailable; console drilldown remains available. Preserve run identifiers and arrange source-app access for incident responders. Sources: Dify on GitHub

Promote the tested artifact and define rollback

Once staging passes, promote the same artifact instead of re-exporting an evolving development draft. Record production-specific credentials and endpoint mappings without copying secret values into the review artifact. Keep the checksum, app identifiers, Dify and plugin versions, configuration changes, fixture revision, acceptance results and run identifiers together. Attach the previous known-good artifact and an app rollback procedure.

Measure promotion reliability separately from execution performance: repeat clean-workspace imports, then run fixed application fixtures. Record warm or cold state, concurrency, model, plugin versions, tracing configuration, repetitions, errors and latency distributions. Define rollback triggers around failed fixtures, unintended side effects, unacceptable latency or unresolved resource mappings before moving callers. After production-specific configuration changes, repeat acceptance checks through the published entry point and retain the resulting run identifiers.

Attribution

Sources

  1. 1Dify on GitHubv1.18.0 — Smarter Agent Routing, Portable Apps, Deeper Workflow VisibilitySource published (UTC)
  2. 2Dify on GitHubfeat(agent): add roster package export foundation
  3. 3Dify on GitHubCross-environment app migration guide
  4. 4Dify on GitHubfeat(workflow): add nested tool trace drilldown
  5. 5Dify on GitHubfeat(workflow): expose authorized nested tool traces
  6. 6GitHubWorkflow DSL round-trip resets feature settings and upload limits
  7. 7GitHubWorkflow stuck in Running forever after cross-workspace import

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on AI

All AI stories
Dify 1.18 app promotion: Package, dependency and production checks · BuildRiot