A Fleet workflow reads the handler source and existing reference as its corpus, drafts human-readable reference updates, and runs a drift review that compares prose to code before a maintainer approves.
genflows:
- name: api-reference
steps:
- {name: update, prompt: "Update the API reference for the endpoints in the corpus: signatures and params from source, prose and examples preserved or improved.", corpus: ["server/routes/**/*.ts", "docs/api/**/*.md"], kind: report, out: reference.md}
- {name: drift, prompt: "Compare every documented signature, param, and status code against the source. Flag mismatches and breaking changes that need a callout.", depends_on: [update], kind: review, out: drift.md}
- {name: maintainer-ok, depends_on: [update, drift], kind: approval, out: decision.md}
Step fingerprinting makes the recurring run cheap: unchanged endpoints skip; the run only re-drafts what the source diff touched. The drift review's breaking-change flags become the maintainer's checklist at the gate.