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
10 changes: 10 additions & 0 deletions .changeset/35095-eval-forbidden-mention.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@objectstack/skills': patch
---

docs(skills): sixteen eval cases forbid the wrong code spelling, not a mention of its name

Clause-②: no
Metadata-protocol: none

A `must_not_contain` entry is matched as a literal substring, so a bare identifier also fails a correct answer that names it as the thing to avoid: `objectstack-ui` `analytics-inline-vs-dataset` case 5 failed an answer saying an ad-hoc react-page chart "doesn't need a `defineDataset`". Sixteen cases whose bundle or reference answer states such a negative now forbid the spelling a wrong answer writes: a call with its paren (`defineDataset(` in that case and `objectstack-data` `hooks-security-seeds-datasources` 4, `definePage(` in `record-page` 2, `getAppBundle(` / `loadAppBundle(` in `objectstack-i18n` `bundles-locales-coverage` 4), a key with its colon or dot (`categoryField:` in `analytics-inline-vs-dataset` 1; `sourceView:`, `disabledMessage:` / `disabledTooltip:` in `views-apps-actions-pages` 5 and 9; `readonlyWhen:`, `assigned_to:` in the data file's 5 and 8; `subDays:` in `objectstack-query` `filters-pagination-search` 6; `permissionSets:` / `permissionSets.` in the i18n file's 6; `pageName:` / `viewName:`, bare and JSON-quoted, in `objectui` `app-composition` 2 and 4) and a quoted literal (`type: 'record_detail'` in the views file's 4; `'admin_full_access'` and a quote-opened `@objectstack/adapter-` in `objectstack-platform` `config-plugins-ops` 7 and 4). Each of the sixteen 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. No prompt, reference answer, `must_contain` entry or skill text changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"files": [],
"assertions": {
"must_contain": ["defineSeed", "externalId", "upsert", "env:", "daysFromNow", "applyOn: 'create'"],
"must_not_contain": ["new Date(", "defineDataset", "externalId: 'id'"]
"must_not_contain": ["new Date(", "defineDataset(", "externalId: 'id'"]
}
},
{
Expand Down Expand Up @@ -68,7 +68,7 @@
"files": [],
"assertions": {
"must_contain": ["when:", "editable: false", "readable: true", "clm_contract.governing_law"],
"must_not_contain": ["validations:", "readonlyWhen"]
"must_not_contain": ["validations:", "readonlyWhen:"]
}
},
{
Expand Down Expand Up @@ -98,7 +98,7 @@
"files": [],
"assertions": {
"must_contain": ["defineQueue", "type: 'position'", "type: 'queue'", "CONCURRENT_UPDATE"],
"must_not_contain": ["assigned_to", "beforeInsert"]
"must_not_contain": ["assigned_to:", "beforeInsert"]
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions skills/objectstack-i18n/evals/bundles-locales-coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"files": [],
"assertions": {
"must_contain": ["defineTranslationBundle", "withSourceFallback", "loadTranslations", "kernel:ready"],
"must_not_contain": ["getAppBundle", "loadAppBundle"]
"must_not_contain": ["getAppBundle(", "loadAppBundle("]
}
},
{
Expand All @@ -58,7 +58,7 @@
"files": [],
"assertions": {
"must_contain": ["reports", "permissions", "positions", "picklists"],
"must_not_contain": ["permissionSets", "report: {"]
"must_not_contain": ["permissionSets:", "permissionSets.", "report: {"]
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions skills/objectstack-platform/evals/config-plugins-ops.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"LiteKernel"
],
"must_not_contain": [
"@objectstack/adapter-",
"'@objectstack/adapter-", "\"@objectstack/adapter-",
"HonoServerPlugin("
]
}
Expand Down Expand Up @@ -123,7 +123,7 @@
],
"must_not_contain": [
"role:",
"admin_full_access"
"'admin_full_access'", "\"admin_full_access\""
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"files": [],
"assertions": {
"must_contain": ["$now: true", "addDays", "$field: 'grace_days_offset'", "$lt"],
"must_not_contain": ["subDays", "type: 'formula'"]
"must_not_contain": ["subDays:", "type: 'formula'"]
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions skills/objectstack-ui/evals/analytics-inline-vs-dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"files": [],
"assertions": {
"must_contain": ["defineDataset", "dataset", "dimensions", "values"],
"must_not_contain": ["valueField:", "categoryField"]
"must_not_contain": ["valueField:", "categoryField:"]
}
},
{
Expand Down Expand Up @@ -50,7 +50,7 @@
"files": [],
"assertions": {
"must_contain": ["ObjectChart", "aggregate", "groupBy"],
"must_not_contain": ["defineDataset"]
"must_not_contain": ["defineDataset("]
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion skills/objectstack-ui/evals/record-page.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"mode: 'split'",
"mode: 'modal'",
"mode: 'popover'",
"definePage"
"definePage("
]
}
},
Expand Down
6 changes: 3 additions & 3 deletions skills/objectstack-ui/evals/views-apps-actions-pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"files": [],
"assertions": {
"must_contain": ["definePage", "type: 'record'", "regions", "page:header", "record:path", "src/docs/", "type: 'doc'"],
"must_not_contain": ["record_detail", ".mdx", "type: 'url'"]
"must_not_contain": ["type: 'record_detail'", ".mdx", "type: 'url'"]
}
},
{
Expand All @@ -48,7 +48,7 @@
"files": [],
"assertions": {
"must_contain": ["definePage", "interfaceConfig", "columns", "allowedVisualizations", "summary", "dataset"],
"must_not_contain": ["sourceView", "type: 'chart'"]
"must_not_contain": ["sourceView:", "type: 'chart'"]
}
},
{
Expand Down Expand Up @@ -88,7 +88,7 @@
"files": [],
"assertions": {
"must_contain": ["disabled:", "disabledReason"],
"must_not_contain": ["description:", "disabledMessage", "disabledTooltip", "visible:"]
"must_not_contain": ["description:", "disabledMessage:", "disabledTooltip:", "visible:"]
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions skills/objectui/evals/app-composition.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"view"
],
"must_not_contain": [
"pageName",
"pageName:", "\"pageName\":",
"\"path\":"
]
}
Expand Down Expand Up @@ -65,8 +65,8 @@
"objectName"
],
"must_not_contain": [
"pageName",
"viewName"
"pageName:", "\"pageName\":",
"viewName:", "\"viewName\":"
]
}
}
Expand Down
Loading