fix: workflow-authoring flat schema, bootstrap PATH guidance
CI / check (pull_request) Successful in 2m18s
CI / check (pull_request) Successful in 2m18s
- #110.3: flat schema example uses enum: [done] instead of bare const (bare const fails validate-semantic hasStatusEnum check) - #110.4: bootstrap adds 'which hermes' PATH check and venv guidance - #110.1: already fixed in rc.1 (inline hello.yaml) - #110.2: already fixed in rc.1 (capabilities: [] present) Fixes #110
This commit is contained in:
@@ -92,16 +92,21 @@ Add any fields you need for data passing between roles. These are available in e
|
||||
|
||||
### Flat Schema (Single Status)
|
||||
|
||||
When a role has only one outcome:
|
||||
When a role has only one outcome, use \`enum\` with a single value:
|
||||
|
||||
\`\`\`yaml
|
||||
frontmatter:
|
||||
type: object
|
||||
properties:
|
||||
$status: { const: "done" }
|
||||
$status:
|
||||
type: string
|
||||
enum: [done]
|
||||
summary: { type: string }
|
||||
required: [$status, summary]
|
||||
\`\`\`
|
||||
|
||||
Note: \`$status: { const: "done" }\` is **not** valid in flat schemas — the validator requires \`enum\` or \`oneOf\` with \`const\`. Use \`const\` only inside \`oneOf\` variants.
|
||||
|
||||
## Graph Routing
|
||||
|
||||
The graph maps each role's \`$status\` values to the next role:
|
||||
|
||||
Reference in New Issue
Block a user