Skip to content

fix(dify): decouple generated contract from whole OpenAPI hash - #1908

Merged
Teingi merged 1 commit into
masterfrom
codex/fix-1904-dify-contract-drift
Oct 9, 2026
Merged

Teingi merged 1 commit into
masterfrom
codex/fix-1904-dify-contract-drift

Conversation

@PsiACE

@PsiACE PsiACE commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Which issue or RFC does this PR close?

Closes #1904.

Rationale for this change

An unused whole-file hash causes unrelated OpenAPI edits to change Dify artifacts and create merge conflicts.

What changes are included in this PR?

Remove openapi_sha256 while retaining complete contract and tool declaration comparisons in --check. Add regressions for unchanged outputs after unrelated edits, drift after consumed schema changes, and modified generated artifacts.

Are there any user-facing changes?

Tool behavior is unchanged. The generated runtime contract remains checked in.

How was this change tested?

Validation covers make check, Dify generation checks, Ruff/ty, SDK tests, and real HTTP/SQLite tests. Actual Dify host tests were not configured; those cases were skipped.

AI usage statement

OpenAI Codex (GPT-6) assisted implementation, tests, and review. Maintainer review remains required.

Refs #1904. Preserve complete artifact drift checks and cover unrelated OpenAPI changes and consumed schema changes.
@PsiACE
PsiACE marked this pull request as ready for review October 9, 2026 09:56
@Teingi
Teingi merged commit de1f2b1 into master Oct 9, 2026
40 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(dify): remove coupling to the whole OpenAPI fingerprint

2 participants