Skip to Content
flowpact

FP803 · breaking-interface-change

A change breaks the locked contract: an input became required, an input/secret/output was removed, or a type changed.

CodeNameCategoryDefault severityReported by
FP803breaking-interface-changeContracts🔴 errorcheck, the action's mode: check, the editor with contracts

What you see

In the contracts-drift fixture:

✖  ERROR  FP803 breaking-interface-change
  Breaking change to .github/workflows/deploy.yml: output "deployed-version" was removed — consumers reading it get an empty value
  ▶ .github/workflows/deploy.yml:3:3

Why it matters

Callers written against the locked interface will fail (unknown or missing input) or silently read empty outputs. In large pipelines those callers may live in other repositories or rarely-run branches.

How to fix

Update every caller first (flowpact lists the known consumers), then regenerate the contract. If the change is intended, flowpact generate records it and the diff makes the break explicit in review.

Example

# contract: input "channel" optional
on:
  workflow_call:
    inputs:
      channel: { type: string, required: true }   # now required

Accept one finding

When a finding is intended, accept it with a reason rather than turning the rule off. It is listed apart from the other findings, and does not fail the build.

On its line, with an ignore comment alone on the line above it (the editor's quick fix adds it there) or at the end of the line, after any other comment such as a version (# v4.3.0 # flowpact: ignore[FP803] why):

.github/workflows/deploy.yml
# flowpact: ignore[FP803] why it is acceptable here
workflow_call:

In the config, with an override, which can expire:

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP803
    target: ".github/workflows/deploy.yml#outputs.deployed-version"
    reason: Why it is acceptable here, at least 10 characters.
    expires: YYYY-MM-DD   # optional

target is the symbol the finding is about; to list them:

flowpact lint --format json | jq -r '.findings[] | select(.code == "FP803") | .symbol'

* matches within a path segment and ** across segments, so one entry accepts every finding whose symbol matches: target: '**#inputs.app-id' is that input in every workflow and action.

Change the severity

Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:

.github/flowpact/flowpact.config.yml
rules:
  FP803: off
  # or: breaking-interface-change: error

Explain it in the terminal:

flowpact explain FP803
  • FP802 contract-outdated: The locked contract no longer matches the workflow — non-breaking changes to its interface or wiring.
  • FP810 impact-under-declared: The changes to published workflows or actions need a bigger release than the pull request declares.
  • Contracts

On this page