Diagnostics catalogue
Every diagnostic code the generator can produce, with its severity, the message as printed (a value the code fills in at the point marked <value>), what it means and what to do.
API002
Section titled “API002”Severity: error. First seen at pcml-diff/src/main/java/ai/generativearchitects/slay400/diff/Versions.java:37.
It prints:
API <value> has breaking changes but its version goes from <value> to <value>; the <value>major<value>minor<value> version must increase. Breaking changes: <value>;
Meaning: diff found breaking changes between two versions of an API, but the new version number was not raised by a major (or, before 1.0, minor) step. What to do: raise the version by at least a major step, or confirm the changes are not actually breaking.
API003
Section titled “API003”Severity: info. First seen at pcml-diff/src/main/java/ai/generativearchitects/slay400/diff/Versions.java:48.
It prints:
(message built from a value, not literal text)
Meaning: an informational summary of what changed in an API between two versions (added, removed or modified fields and operations), printed by diff alongside any error or warning. What to do: nothing; read it to confirm the change is the one you intended.
API004
Section titled “API004”Severity: error. First seen at pcml-diff/src/main/java/ai/generativearchitects/slay400/diff/Versions.java:25.
It prints:
The version of API <value> is <value>, which is lower than the released version
Meaning: diff found the new version of an API is not actually higher than the released one, or not raised by enough for the kind of change made (lower than the release, unchanged from a released pre-release that changed, or raised by less than a compatible change needs). What to do: raise version in api.yaml to a number higher than the released one, by the step the kind of change needs.
API005
Section titled “API005”Severity: warning. First seen at pcml-diff/src/main/java/ai/generativearchitects/slay400/diff/ApiDiff.java:66.
It prints:
API <value> is in the released repository and not in the current one
Meaning: diff found an API that exists in the released repository but not in the current one – it was removed, which is a breaking change for any caller still using it. What to do: confirm the removal is intentional; if it is not, restore the API’s folder.
API006
Section titled “API006”Severity: info. First seen at pcml-diff/src/main/java/ai/generativearchitects/slay400/diff/ApiDiff.java:56.
It prints:
API <value> is new in version
Meaning: an informational note from diff that this API did not exist in the released repository: it is new in this version. What to do: nothing; read it to confirm the addition is the one you intended.
BDL006
Section titled “BDL006”Severity: error. First seen at pcml-bundle/src/main/java/ai/generativearchitects/slay400/bundle/BundleWriter.java:204.
It prints:
(message built from a value, not literal text)
Meaning: bundle refused to write the bundle: a structural problem with what would be packed (two files at the same path, a file colliding with the manifest or descriptor, too many entries or bytes for the format’s limits, a source file outside the repository or unreadable, or a path the bundle layout does not allow). What to do: read the message for which file and which rule, and fix the repository or the emitted output before bundling again.
CLI001
Section titled “CLI001”Severity: error. First seen at pcml-tasks/src/main/java/ai/generativearchitects/slay400/tasks/Tasks.java:164.
It prints:
The emitter '<value>' named in gateway.yaml is not available
Meaning: gateway.yaml’s emitters list names an emitter that generate or bundle does not know. What to do: use one of descriptor, openapi or mock, or remove the entry.
CLI002
Section titled “CLI002”Severity: error. First seen at pcml-tasks/src/main/java/ai/generativearchitects/slay400/tasks/Tasks.java:178.
It prints:
Two emitted files have the path
Meaning: two emitters wrote a file at the same path under the output folder, so one would silently overwrite the other. What to do: this points at a bug in the emitters named in gateway.yaml, not at the overlay; report it.
CLI003
Section titled “CLI003”Severity: error. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/AnnotateCommand.java:81.
It prints:
The file <value> could not be read:
Meaning: a file annotate, init or generate needed to read or write could not be reached (permissions, a missing folder, a full disk). What to do: fix the underlying filesystem problem the rest of the message names, and run the command again.
CLI004
Section titled “CLI004”Severity: warning. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/InitCommand.java:137.
It prints:
Skipped:
Meaning: init skipped a folder while walking the repository – either it has no PCML file, or it leads outside the repository. What to do: nothing if the folder is not meant to hold an API; otherwise check its location and that it has a .pcml file.
CLI005
Section titled “CLI005”Severity: warning. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/AnnotateCommand.java:92.
It prints:
The file <value> was changed while the questions were asked, so nothing was written to it
Meaning: while annotate was asking its questions for a file, something else changed that same api.yaml on disk, so the answers no longer apply to the current content and were not written. What to do: run annotate again; nothing was lost, the file is exactly as it was before this attempt.
MCK001
Section titled “MCK001”Severity: error. First seen at pcml-mock/src/main/java/ai/generativearchitects/slay400/mock/MockReader.java:72.
It prints:
(message built from a value, not literal text)
Meaning: a mock definition file could not be read: it is not valid JSON/YAML, could not be read from disk, or its structure does not match what a mock file expects. What to do: read the message for the specific reason and fix the mock file.
MCK002
Section titled “MCK002”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/OverlayLoader.java:248.
It prints:
The mock file <value> is not named after an operation of this API: mock files are named <operation id>.yaml, and the operations are
Meaning: a file under mock/ is not named after one of the API’s operation ids, so it cannot be matched to an operation. What to do: rename the file to <operation id>.yaml, or remove it if it is not meant to be a mock.
MCK003
Section titled “MCK003”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/MockCodec.java:119.
It prints:
(message built from a value, not literal text)
Meaning: a mock case’s when names a field that the operation does not have, or the mock file itself does not match the mock schema. What to do: check the field name against the PCML and the overlay, and fix the mock file.
MCK004
Section titled “MCK004”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/MockCodec.java:169.
It prints:
(message built from a value, not literal text)
Meaning: a mock case’s returns sets a field with a value that does not fit the field (too long, the wrong kind, out of range). What to do: fix the value in the mock file to one the real field could actually hold.
MCK005
Section titled “MCK005”Severity: warning. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/MockCodec.java:219.
It prints:
(message built from a value, not literal text)
Meaning: a mock case can never match, because an earlier case in the same file has no when (so it always matches first) or has the exact same when as this one. What to do: reorder the cases so the more specific one comes first, or give this case a when that distinguishes it.
MCK006
Section titled “MCK006”Severity: warning. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/MockCodec.java:173.
It prints:
(message built from a value, not literal text)
Meaning: a mock case gives a count field a value that does not match the number of elements actually given for the array it counts. What to do: set the count field to the real number of elements in the mock case’s array, or remove it and let the count be derived.
OVL001
Section titled “OVL001”Severity: warning. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:408.
It prints:
; treated as 'both'
Meaning: an inputoutput parameter has no direction yet (request, response, both or internal) in api.yaml, and defaults.inputoutput is fail, so the repository cannot be built until it is given one. What to do: run annotate, or add direction to the parameter by hand.
OVL002
Section titled “OVL002”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:635.
It prints:
is not in the PCML of program
Meaning: api.yaml configures a parameter, in inject or parameters, by a name that is not a field of the program in the PCML. What to do: check the spelling against the PCML’s <data name="..."> and fix the key in api.yaml.
OVL003
Section titled “OVL003”Severity: error. First seen at pcml-validation/src/main/java/ai/generativearchitects/slay400/pcml/validation/Validator.java:61.
It prints:
(message built from a value, not literal text)
Meaning: a configuration problem in how an operation’s parameters are set up for encoding – an example, injected value or error mapping that does not fit the field it names (not a valid value for the field’s semantic type, too long, not encodable, or a field kind that cannot carry it). What to do: read the message for the field and the specific mismatch, and fix the overlay’s example, inject or error entry.
OVL004
Section titled “OVL004”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:534.
It prints:
'<value>' is bound to the path but the route has no placeholder {<value>}
Meaning: a parameter is set to in: path, but its name does not appear as a {placeholder} in route. What to do: add the placeholder to route, or change where the parameter is read from.
OVL005
Section titled “OVL005”Severity: warning. First seen at pcml-validation/src/main/java/ai/generativearchitects/slay400/pcml/validation/Validator.java:109.
It prints:
Operation <value>, field <value>: the response array has <value> elements and no trim, so every call returns all of them; set 'trim' (at least <value> elements is large)
Meaning: a response array has no trim and enough elements that every call would return all of them, which can make a response unexpectedly large. What to do: set trim on the field in api.yaml if only part of the array is normally needed, or ignore the warning if returning everything is intended.
OVL006
Section titled “OVL006”Severity: warning. First seen at pcml-validation/src/main/java/ai/generativearchitects/slay400/pcml/validation/Validator.java:75.
It prints:
Operation <value> has no error mapping: a business error reported by the program is returned as a success
Meaning: the operation has no error mapping, so a business error the program reports in its own fields (not a crash) comes back to the caller as if the call succeeded. What to do: add an error block to the operation in api.yaml if the program can report a business error, or ignore the warning if it never does.
OVL010
Section titled “OVL010”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/OverlayLoader.java:400.
It prints:
Cannot read file as UTF-8 text:
Meaning: api.yaml or gateway.yaml is not valid YAML at all (a syntax error), so nothing in it could be read. What to do: fix the YAML syntax at the position the rest of the message names; a YAML-aware editor will usually point at the same spot.
OVL011
Section titled “OVL011”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/YamlReader.java:188.
It prints:
Unknown key '<value>' in <value>; allowed keys: <value>,
Meaning: a key in api.yaml or gateway.yaml is not one the schema for that file allows at that position (a typo, or a key that belongs somewhere else). What to do: check the spelling against the allowed keys the message lists, or against the reference page for the file.
OVL012
Section titled “OVL012”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:113.
It prints:
The default id '<value>' (the program name in lower case) is not a valid id: set 'id'
Meaning: an operation’s id was not given explicitly, and the default (the program name, lower-cased) is not a valid id – often because the program name itself is not a valid identifier, or a route-only form left route without a leading /. What to do: set id explicitly in api.yaml to a valid identifier.
OVL013
Section titled “OVL013”Severity: error. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/InitCommand.java:36.
It prints:
Repository root not found or not a directory
Meaning: a struct field’s type, in the PCML, refers back to the struct itself (directly or through another struct), which cannot be represented as a finite API shape. What to do: this is a shape of the PCML the overlay cannot expose; change the program’s PCML, or mark the field hidden if it does not need to be exposed.
OVL014
Section titled “OVL014”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:559.
It prints:
'<value>' and '<value>' share the exposed name '<value>'
Meaning: two parameters of the same operation were given the same exposed name, so the API would have two fields that collide. What to do: give one of them a different name in api.yaml.
OVL015
Section titled “OVL015”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:253.
It prints:
Parameter '<value>' is a struct or an array and cannot be sent with <value>: use POST, PUT or PATCH
Meaning: a parameter that is a struct or an array is bound to a place (for example a query parameter) that can only carry a simple value, on a method like GET that has no body. What to do: change the operation’s method to one that has a body (POST, PUT or PATCH), or move the parameter so it is carried in the body.
OVL016
Section titled “OVL016”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:433.
It prints:
Direction '<value>' of parameter '<value>' contradicts its PCML usage
Meaning: api.yaml sets a parameter’s direction, but its PCML usage cannot go that way (for example direction: response on a PCML input parameter). What to do: change direction to one the parameter’s PCML usage allows, or fix the PCML if the usage itself is wrong.
OVL017
Section titled “OVL017”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:487.
It prints:
The count field '<value>'
Meaning: a field named as an array’s trim.countField is not a whole number (not int, and not packed or zoned with zero decimal places), so it cannot hold a count. What to do: point countField at a field that is a whole number, or change the PCML field’s type.
OVL018
Section titled “OVL018”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/ApiBuilder.java:288.
It prints:
Parameter '<value>' is configured by both 'inject' and 'parameters'
Meaning: the same parameter is listed under both inject (filled in by the runtime) and parameters (configured for the caller), which contradict each other. What to do: remove the entry from whichever of the two it does not belong in.
OVL019
Section titled “OVL019”Severity: warning. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/OverlayLoader.java:178.
It prints:
This folder has a PCML file but no overlay file (api.yaml)
Meaning: a folder under apis/ has a PCML file but no api.yaml, so that program is not exposed by this repository at all. What to do: run slay400 init to scaffold an overlay for it, or ignore the warning if the program is not meant to be an API.
OVL020
Section titled “OVL020”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/OverlayLoader.java:172.
It prints:
More than one overlay file in this folder:
Meaning: api.yaml has top-level route/method (the single-operation form) and also operations (the several-operations form) at the same time, which the loader cannot reconcile. What to do: choose one form: either route/method at the top level, or a list under operations, not both.
OVL021
Section titled “OVL021”Severity: error. First seen at pcml-overlay/src/main/java/ai/generativearchitects/slay400/pcml/overlay/OverlayParser.java:266.
It prints:
'route' has two placeholders with no text between them, so the split of a segment is ambiguous: '<value>'
Meaning: route has two {placeholders} next to each other with no literal text between them, so splitting the path into segments is ambiguous. What to do: add a literal separator between the two placeholders in route.
OVL022
Section titled “OVL022”Severity: error. First seen at pcml-validation/src/main/java/ai/generativearchitects/slay400/pcml/validation/Validator.java:68.
It prints:
Operation <value>: the response always has at least <value> values, more than the limit of <value>; set 'trim' on a large array on the way, or raise 'defaults.maxResponseValues'
Meaning: even before any per-call trimming, the response’s arrays are guaranteed to add up to more values than defaults.maxResponseValues allows. What to do: set trim on one of the large arrays along the way, or raise defaults.maxResponseValues in gateway.yaml if the response is meant to be this large.
PCML001
Section titled “PCML001”Severity: error. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/InitCommand.java:94.
It prints:
Cannot read source:
Meaning: init found a .pcml file it could not read while scanning the repository. What to do: check the file is valid XML and readable; see the message for the underlying reason.
PCML002
Section titled “PCML002”Severity: error. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:418.
It prints:
Field '<value>' references struct '<value>', which is not defined
Meaning: a field’s struct attribute names a struct that is not defined anywhere the PCML parser can see, from the point where the field is declared. What to do: check the struct’s name for a typo, and that it is declared before it is used.
PCML003
Section titled “PCML003”Severity: error. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:452.
It prints:
The <value> of field '<value>' references '<value>', which does not exist in the same scope
Meaning: a field’s count or length attribute (PCML’s way of saying “this many elements” or “this many bytes, from that field”) names another field that PCML cannot find in the same scope. What to do: check the referenced field’s name and that it is declared in the same struct or program.
PCML004
Section titled “PCML004”Severity: error. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:61.
It prints:
Missing required attribute 'version' on <pcml>
Meaning: the <pcml> root element has no version attribute, which every PCML document must have. What to do: add version="6.0" (or the version the compiler actually wrote) to the <pcml> element.
PCML005
Section titled “PCML005”Severity: error. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:100.
It prints:
Duplicate program '<value>'
Meaning: the same PCML file declares two <program> elements with the same name. What to do: rename one of them, or remove the duplicate; a program name must be unique within its file.
PCML006
Section titled “PCML006”Severity: warning. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:502.
It prints:
Circular struct reference: <value> ->
Meaning: two or more structs refer to each other in a cycle (A contains B, B contains A), which the parser notices but does not refuse by itself. What to do: usually harmless to leave if nothing uses the cycle, but check with OVL013, which the overlay raises as an error if an operation actually tries to expose such a field.
PCML007
Section titled “PCML007”Severity: info. First seen at pcml-parser/src/main/java/ai/generativearchitects/slay400/pcml/parser/ModelBuilder.java:543.
It prints:
Unknown attribute '<value>' on <<value>> is preserved in the attribute map
Meaning: an XML attribute the parser does not model explicitly was found and kept, unchanged, in the element’s attribute map (the parser is lossless: nothing recognised is ever silently dropped). What to do: nothing; this is informational. It usually means the PCML uses an attribute slay400 does not yet give special meaning to.
SCF001
Section titled “SCF001”Severity: warning. First seen at pcml-scaffold/src/main/java/ai/generativearchitects/slay400/pcml/scaffold/OverlayEditor.java:230.
It prints:
Operation '<value>', parameter '<value>' was not edited: <value>; edit it by hand
Meaning: annotate could not apply one of its edits to api.yaml – it left the file as it was, rather than risk a bad edit. What to do: make the change by hand in api.yaml; the message names the operation, parameter and reason.
SCF002
Section titled “SCF002”Severity: error. First seen at pcml-cli/src/main/java/ai/generativearchitects/slay400/cli/AnnotateCommand.java:241.
It prints:
Operation '<value>', parameter '<value>' was not edited: the edited file was refused
Meaning: after annotate edited api.yaml in memory, re-reading the result back failed its own checks, so the edit was discarded rather than written – a safeguard against writing a file annotate cannot parse back. What to do: make the change by hand in api.yaml, since an edit annotate cannot verify is not applied automatically.
SCF003
Section titled “SCF003”Severity: error. First seen at pcml-scaffold/src/main/java/ai/generativearchitects/slay400/pcml/scaffold/OverlayScaffold.java:341.
It prints:
; write the overlay by hand
Meaning: init could not scaffold a first api.yaml for a PCML file – usually a structure it does not know how to generate a default overlay for (for example, a recursive struct). What to do: write the overlay by hand for this program.
SCF004
Section titled “SCF004”Severity: warning. First seen at pcml-scaffold/src/main/java/ai/generativearchitects/slay400/pcml/scaffold/OverlayScaffold.java:131.
It prints:
Operation '<value>': even trimmed everywhere it can be, the response always has at least <value> values, more than the limit of <value>; a count field narrows it further than 'dropBlank' can, or raise 'defaults.maxResponseValues'
Meaning: while scaffolding a first api.yaml, init found that even trimming every large array it can, the response is still guaranteed to exceed defaults.maxResponseValues – the scaffold could not fix this by itself. What to do: add a count field for one of the arrays so trim can narrow it further, or raise defaults.maxResponseValues in gateway.yaml.
VAL001
Section titled “VAL001”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/FieldPlan.java:128.
It prints:
A required field is missing
Meaning: while encoding a request, a field marked required: true (or required by its PCML usage) has no value. What to do: the caller must supply a value for the field the message names.
VAL002
Section titled “VAL002”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/BytesCodec.java:35.
It prints:
The value is not binary
Meaning: a binary field was given a value that is not binary data (for example a JSON string that is not valid base64). What to do: send a correctly base64-encoded value for a binary field.
VAL003
Section titled “VAL003”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/BytesCodec.java:40.
It prints:
The value is too long: at most <value> bytes<value>The value must be exactly <value> bytes
Meaning: a value is too long for its field’s declared byte length, or (for a fixed-length binary field) is not exactly that length. What to do: shorten the value to fit the field, named with its limit in the message.
VAL004
Section titled “VAL004”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/MockCodec.java:380.
It prints:
The text is not
Meaning: a text value does not have the shape its semantic type expects (for example a date field whose text does not match its format). What to do: send a value in the format the field’s type and format (if any) require.
VAL005
Section titled “VAL005”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/FieldPlan.java:138.
It prints:
The list has more elements than the field holds: at most
Meaning: a list sent for an array field has more elements than the field can hold. What to do: send at most as many elements as the PCML array’s declared size, named in the message.
VAL101
Section titled “VAL101”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/BytesCodec.java:60.
It prints:
Bytes were expected
Meaning: while decoding the program’s output, a value does not have the shape the field’s wire type expects (for example text where bytes, a list or a struct was expected). What to do: this is a mismatch between the PCML and what the program actually wrote; check the program and the PCML agree, since the caller cannot fix a program’s own output.
VAL102
Section titled “VAL102”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/NumberCodecs.java:171.
It prints:
The number cannot be read as a whole number
Meaning: while decoding, a wire value (text, packed or zoned) cannot be read as the semantic type the overlay gives it (for example letters where a whole or decimal number was expected). What to do: check that the field’s type in api.yaml actually matches what the program writes there.
VAL103
Section titled “VAL103”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/FieldPlan.java:417.
It prints:
The field that holds the number of elements is not a number
Meaning: an array’s count field (trim.countField) came back negative, not a number, or larger than the array itself, so the array cannot be trimmed to it safely. What to do: this points at the program’s output or the PCML, not at the caller; check that the count field and the array it counts actually agree.
VAL104
Section titled “VAL104”Severity: error. First seen at pcml-codec/src/main/java/ai/generativearchitects/slay400/pcml/codec/FieldPlan.java:330.
It prints:
The response has more values than the limit allows; it is not built beyond that point
Meaning: after trimming every array it can, the response still has more scalar values than defaults.maxResponseValues allows, and decoding stops at that point rather than building an unbounded response. What to do: raise defaults.maxResponseValues in gateway.yaml, or add trim to a large array in the response (see the guide on arrays and counts).