Skip to content

Commit ff8171f

Browse files
committed
docs(validating-metadata): a flow draft read carries its publish's advisories
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
1 parent 762fafa commit ff8171f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎content/docs/deployment/validating-metadata.mdx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,14 @@ refusal to a loud log for a migration window, so rows written before the gate
698698
existed stay re-savable; it converts refusals, and never promotes them into
699699
`advisories`.
700700

701+
A flow draft can be read before it is published. That read (`GET /api/v1/meta/flow/:name?state=draft`)
702+
runs the publish's own judgement, so its `_diagnostics` say what the publish would answer. A refusal is
703+
listed in `errors`. Each advisory is listed in `warnings`, at the flow-relative path of the step it is
704+
about (`nodes.1`), as the finding's sentence for the builder in the language the request states
705+
(`Accept-Language`, else the workspace default, else English). `valid` is not changed by an advisory.
706+
The flow designer's Problems tab and the pending-changes drawer read these warnings, so an author sees
707+
the publish checks before pressing Publish. A draft of any other type carries no advisories in its read.
708+
701709
So `os validate` is the fast inner-loop check (no artifact), `os build` is what
702710
you run when you need the deployable artifact, and `os lint` adds its own style
703711
rubric on top. **Any rule that can fail a build runs on all three**, so a green

0 commit comments

Comments
 (0)