Skip to Content
flowpact

FP802 · contract-outdated

The locked contract no longer matches the workflow — non-breaking changes to its interface or wiring.

CodeNameCategoryDefault severityReported by
FP802contract-outdatedContracts🔴 errorcheck, the action's mode: check, the editor with contracts

What you see

In the contracts-drift fixture:

✖  ERROR  FP802 contract-outdated
  Contract .github/flowpact/contracts/actions/notify.contract.yml is outdated: input "emoji" was added
  ▶ .github/actions/notify/action.yml:11:3

Why it matters

The contract is the reviewed record of what flows in and out. When it drifts silently, the next reviewer compares against stale information.

How to fix

Run flowpact generate and commit the updated contracts. In CI, the flowpact action (check mode) attaches the regenerated contracts and a git apply-able patch to the run — see its job summary.

Example

# .github/actions/notify/action.yml gained an input that its contract does not list yet
inputs:
  emoji:
    description: Emoji prefix for the message
    default: ':rocket:'

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 comes back when the date passes (overrides):

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP802
    target: ".github/actions/notify"
    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 == "FP802") | .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:
  FP802: off
  # or: contract-outdated: error

Explain it in the terminal:

flowpact explain FP802
  • FP801 contract-missing: A workflow or local action has no contract in .github/flowpact/ (check mode).
  • FP803 breaking-interface-change: A change breaks the locked contract: an input became required, an input/secret/output was removed, or a type changed.
  • Contracts

On this page