Skip to content

docs(skill): sync CEL function tables to 9.8.0 stdlib + drift-guard#1967

Merged
os-zhuang merged 1 commit into
mainfrom
feat/skill-catalog-9.8
Jun 16, 2026
Merged

docs(skill): sync CEL function tables to 9.8.0 stdlib + drift-guard#1967
os-zhuang merged 1 commit into
mainfrom
feat/skill-catalog-9.8

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Platform follow-up to #1949 — closes the last surface of the catalog/runtime alignment: the AI-facing skill.

Problem

The authoring skills (objectstack-formula / -automation) are what an AI author reads to know which CEL functions exist. They listed ~6 functions and capped with "only the stdlib above", omitting the 14 registered in 9.8.0 (daysBetween, abs, round, min, max, upper, lower, contains, startsWith, endsWith, matches, len, isEmpty, date/datetime). So the AI never reached for daysBetween (days-remaining) and kept hand-rolling.

Changes

  • objectstack-formula: rewrite the stdlib table (grouped Dates/Numbers/Strings/Collections + the CEL built-ins). Fix the daysFromNow/daysAgo note — they keep the wall-clock time, not midnight (the doc previously said today()+n*24h).
  • objectstack-automation: rewrite the "time-relative rule" anti-pattern to the precise one-day window ($gte daysFromNow(N) / $lt daysFromNow(N+1) + $or) instead of the imprecise BETWEEN TODAY and TODAY+N; note the date-equality filter footgun (build warns flow-date-equality-filter); add daysBetween for days-remaining.
  • drift-guard: a test in @objectstack/formula asserts every CEL_STDLIB_FUNCTIONS entry is documented in the skill, so the AI-facing list can't fall behind the runtime catalog again (mirrors the runtime drift-guard in feat(formula): align CEL stdlib catalog with runtime (#1928) #1949).

check:skill-docs green; drift-guard 1/1.

🤖 Generated with Claude Code

The authoring skills under-listed the stdlib (6 functions + "only the above"),
omitting the 14 registered in 9.8.0 (daysBetween/abs/round/min/max/upper/lower/
contains/startsWith/endsWith/matches/len/isEmpty/date/datetime) — so AI authors
never used daysBetween and kept hand-rolling workarounds.

- Rewrite objectstack-formula stdlib table (grouped + CEL built-ins); fix the
  daysFromNow/daysAgo note (keep wall-clock time, not midnight).
- Rewrite objectstack-automation "time-relative rule" anti-pattern to the precise
  one-day window pattern ($gte daysFromNow(N) / $lt daysFromNow(N+1) + $or); add
  daysBetween for days-remaining.
- Add a drift-guard test (packages/formula) pinning skill ↔ CEL_STDLIB_FUNCTIONS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests tooling size/m labels Jun 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/formula.

5 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/concepts/packages.mdx (via @objectstack/formula)
  • content/docs/guides/formula.mdx (via @objectstack/formula)
  • content/docs/guides/metadata/validation.mdx (via @objectstack/formula)
  • content/docs/guides/packages.mdx (via @objectstack/formula)
  • content/docs/protocol/objectui/record-alert.mdx (via @objectstack/formula)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 16, 2026 3:22pm

Request Review

@os-zhuang
os-zhuang merged commit 5881cae into main Jun 16, 2026
13 of 14 checks passed
@os-zhuang
os-zhuang deleted the feat/skill-catalog-9.8 branch June 16, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant