diff --git a/.changeset/38941-eval12.md b/.changeset/38941-eval12.md new file mode 100644 index 00000000000..1b1ab9f9908 --- /dev/null +++ b/.changeset/38941-eval12.md @@ -0,0 +1,24 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): objectstack-i18n eval 12 no longer fails an answer for naming the nested-object shape it warns against + +Clause-②: no +Metadata-protocol: none + +A `must_not_contain` entry is matched as a literal substring, so a bare literal also fails a correct answer that names it as the thing to avoid. `skills/objectstack-i18n/evals/bundles-locales-coverage.json`, eval 12 (table column headers on an action's result dialog) forbade the bare `error: {`. Its `assertions` change; no prompt, reference answer or skill text does. + +`error: {` becomes the written key, the literal where an object holds it: + +- after a previous entry: `, error: {` or `,error: {`; +- first in its object: `{ error: {` or `{error: {`; +- at the start of a line: flush left, or indented by a tab, by one space, or by two spaces or more. + +An answer that names the shape on its own still passes: `error: { message: … }` in backticks, in a sentence or in a list item. The reference answer writes only `'error.message'` and passes. + +An answer that nests `error: { message: … }` in the `rows` columns still fails in each of those positions. No literal separates such an answer from one that shows the same object as the thing not to write, in a "don't" code sample or inline with its braces, nor from one that shows the data row the path reads (`{ email: …, error: { message: … } }`): those fail, as they did before. + +Not graded, before or after: a nested key written in quotes (`"error": {` or `'error': {`) or with no space before the brace (`error:{`). + +Every entry contains the old literal, so every answer that passed before still passes. The case has a new case hash, so `skill-evals --regrade` sets it apart from a round recorded before this change: compare it across rounds only after a re-run. diff --git a/skills/objectstack-i18n/evals/bundles-locales-coverage.json b/skills/objectstack-i18n/evals/bundles-locales-coverage.json index f4729af601d..5cf24350f40 100644 --- a/skills/objectstack-i18n/evals/bundles-locales-coverage.json +++ b/skills/objectstack-i18n/evals/bundles-locales-coverage.json @@ -128,7 +128,7 @@ "files": [], "assertions": { "must_contain": ["_actions", "import_leads", "resultDialog.columns.rows", "error.message"], - "must_not_contain": ["error: {"] + "must_not_contain": [", error: {", ",error: {", "{ error: {", "{error: {", " error: {", "\n error: {", "\nerror: {", "\terror: {"] } }, {