Commit bf05fa7
The @example on HookSchema.condition ("status = 'active' AND amount > 1000")
was SQL where the slot is canonical CEL (ADR-0058 D1) -- it does not compile,
uses bare `status`/`amount` refs instead of the `record` namespace, and
contradicts the .describe() one line below, which already spells the correct
form. Fixed the @example to match the .describe()'s own illustration
(`record.status == 'closed' && record.amount > 1000`), picking `closed` over
the issue's `active` for consistency with the .describe().
Also deletes the now-unnecessary HookSchema.condition entry from
EXEMPT_EXAMPLES in packages/lint/scripts/check-doc-formula-expressions.mjs --
the gate treats an exemption sitting over a now-clean example as an error, so
leaving it would go red. Cross-surface waiver for this touch: domain:spec-tooling
seat, issue #7175 comment at 2026-08-10T02:03Z.
Fixes #7175
Claude-Session: https://claude.ai/code/session_016R9de1FqP7NvwKvqXi92Gh
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1f6ed16 commit bf05fa7
2 files changed
Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
509 | 496 | | |
510 | 497 | | |
511 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
0 commit comments