Skip to content

Commit f853185

Browse files
committed
docs(skills): objectstack-formula eval case 4 names the refused date forms without spelling its own must_not_contain strings
Case 4's expected_output carried both strings its own must_not_contain refuses (`new Date(` and `today() + `), so a reference-grade answer was graded wrong. The reference now says "never a JS `Date` / `Date.now()`" and "never date arithmetic on `today()` (it faults)"; every assertion and fact stays, the file keeps its 5407 bytes, and a per-case cross-check of all seven cases reports 0 failures. Patch changeset for @objectstack/skills. Claude-Session: https://claude.ai/code/session_01ADHkmPQ8p3cVKear7Mchi2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 912076f commit f853185

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-formula eval case 4's reference answer names the refused date forms without spelling its own `must_not_contain` strings
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** Case 4 of `skills/objectstack-formula/evals/cel-predicates-formulas.json` refuses `new Date(` and `today() + ` in an answer, yet its own `expected_output` spelled both (`` `new Date()` `` and `` `today() + 45` ``), so a reference-grade answer was graded wrong.
11+
- **Now.** The reference answer says "never a JS `Date` / `Date.now()`" and "never date arithmetic on `today()` (it faults)", as case 7 names "the `label` macro". Every assertion and every fact stays: the CEL envelope seed, the determinism gate, `daysBetween(today(), record.close_date)`, the `{}` duration trap. A per-case cross-check (no `must_not_contain` string inside its own `expected_output`, every `must_contain` string present) reports 0 failures over all 7 cases; the file keeps its byte size, so its token-ratchet row does not move.
12+
- No schema, key or behaviour changes.

‎skills/objectstack-formula/evals/cel-predicates-formulas.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"id": 4,
3636
"prompt": "Demo opportunities should close 45 days after the package is installed, and a formula should show how many days remain until close.",
37-
"expected_output": "Seed value as a CEL envelope, `close_date: cel`daysFromNow(45)``, never `new Date()` / `Date.now()` (the determinism gate: two `os build` runs must be byte-identical). Days remaining is `daysBetween(today(), record.close_date)` — never `record.close_date - today()` (a duration stored as `{}`) and never `today() + 45` (date arithmetic faults).",
37+
"expected_output": "Seed value as a CEL envelope, `close_date: cel`daysFromNow(45)``, never a JS `Date` / `Date.now()` (the determinism gate: two `os build` runs must be byte-identical). Days remaining is `daysBetween(today(), record.close_date)` — never `record.close_date - today()` (a duration stored as `{}`) and never date arithmetic on `today()` (it faults).",
3838
"files": [],
3939
"assertions": {
4040
"must_contain": ["cel`", "daysFromNow(", "daysBetween("],

0 commit comments

Comments
 (0)