FP802 · contract-outdated
The locked contract no longer matches the workflow — non-breaking changes to its interface or wiring.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP802 | contract-outdated | Contracts | 🔴 error | check, 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:3Why 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):
overrides:
- rule: FP802
target: ".github/actions/notify"
reason: Why it is acceptable here, at least 10 characters.
expires: YYYY-MM-DD # optionaltarget 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:
rules:
FP802: off
# or: contract-outdated: errorExplain it in the terminal:
flowpact explain FP802