Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .changeset/38941-eval12.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {"]
}
},
{
Expand Down
Loading