Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

Description

@os-litant

Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

Audit summary

SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

Top findings

idspanproposalΔ
FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
FRM-B-05:514-526MERGE-INTO :269-285−81
FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
FRM-D-07:84-88DELETE "you do not learn three languages"−72
FRM-D-02:90-95DELETE M9.7 roadmap−69
FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

Flight scope

IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

Flight constraints (binding)

  • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
  • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
  • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
  • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
  • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
  • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

Refs: #14292 · #14296 · #13658.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
     blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
    }
    } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
    })();
    (function(){
    try {
    var __m = "github.com";
    var __re = new RegExp('^' + "github\\.com" + '
    
    Skip to content

    Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

    Description

    @os-litant

    Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

    Audit summary

    SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

    Top findings

    idspanproposalΔ
    FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
    FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
    FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
    FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
    FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
    FRM-B-05:514-526MERGE-INTO :269-285−81
    FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
    FRM-D-07:84-88DELETE "you do not learn three languages"−72
    FRM-D-02:90-95DELETE M9.7 roadmap−69
    FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
    FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
    FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
    FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
    FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
    FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

    Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

    Flight scope

    IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

    ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

    DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

    Flight constraints (binding)

    • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
    • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
    • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
    • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
    • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
    • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

    Refs: #14292 · #14296 · #13658.

    Metadata

    Metadata

    Assignees

    Labels

    documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
      Skip to content

      Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

      Description

      @os-litant

      Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

      Audit summary

      SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

      Top findings

      idspanproposalΔ
      FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
      FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
      FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
      FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
      FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
      FRM-B-05:514-526MERGE-INTO :269-285−81
      FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
      FRM-D-07:84-88DELETE "you do not learn three languages"−72
      FRM-D-02:90-95DELETE M9.7 roadmap−69
      FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
      FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
      FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
      FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
      FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
      FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

      Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

      Flight scope

      IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

      ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

      DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

      Flight constraints (binding)

      • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
      • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
      • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
      • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
      • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
      • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

      Refs: #14292 · #14296 · #13658.

      Metadata

      Metadata

      Assignees

      Labels

      documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

      Type

      No type

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
        Skip to content

        Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

        Description

        @os-litant

        Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

        Audit summary

        SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

        Top findings

        idspanproposalΔ
        FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
        FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
        FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
        FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
        FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
        FRM-B-05:514-526MERGE-INTO :269-285−81
        FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
        FRM-D-07:84-88DELETE "you do not learn three languages"−72
        FRM-D-02:90-95DELETE M9.7 roadmap−69
        FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
        FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
        FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
        FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
        FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
        FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

        Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

        Flight scope

        IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

        ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

        DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

        Flight constraints (binding)

        • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
        • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
        • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
        • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
        • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
        • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

        Refs: #14292 · #14296 · #13658.

        Metadata

        Metadata

        Assignees

        Labels

        documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

        Type

        No type

        Projects

        No projects

          Milestone

          No milestone

          Relationships

          None yet

          Development

          No branches or pull requests

          Issue actions

          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
          Skip to content

          Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

          Description

          @os-litant

          Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

          Audit summary

          SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

          Top findings

          idspanproposalΔ
          FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
          FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
          FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
          FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
          FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
          FRM-B-05:514-526MERGE-INTO :269-285−81
          FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
          FRM-D-07:84-88DELETE "you do not learn three languages"−72
          FRM-D-02:90-95DELETE M9.7 roadmap−69
          FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
          FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
          FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
          FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
          FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
          FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

          Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

          Flight scope

          IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

          ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

          DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

          Flight constraints (binding)

          • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
          • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
          • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
          • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
          • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
          • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

          Refs: #14292 · #14296 · #13658.

          Metadata

          Metadata

          Assignees

          Labels

          documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

          Type

          No type

          Projects

          No projects

            Milestone

            No milestone

            Relationships

            None yet

            Development

            No branches or pull requests

            Issue actions

            , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
            Skip to content

            Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

            Description

            @os-litant

            Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

            Audit summary

            SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

            Top findings

            idspanproposalΔ
            FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
            FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
            FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
            FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
            FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
            FRM-B-05:514-526MERGE-INTO :269-285−81
            FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
            FRM-D-07:84-88DELETE "you do not learn three languages"−72
            FRM-D-02:90-95DELETE M9.7 roadmap−69
            FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
            FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
            FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
            FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
            FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
            FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

            Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

            Flight scope

            IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

            ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

            DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

            Flight constraints (binding)

            • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
            • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
            • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
            • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
            • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
            • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

            Refs: #14292 · #14296 · #13658.

            Metadata

            Metadata

            Assignees

            Labels

            documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

            Type

            No type

            Projects

            No projects

              Milestone

              No milestone

              Relationships

              None yet

              Development

              No branches or pull requests

              Issue actions

              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
              Skip to content

              Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

              Description

              @os-litant

              Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

              Audit summary

              SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

              Top findings

              idspanproposalΔ
              FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
              FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
              FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
              FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
              FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
              FRM-B-05:514-526MERGE-INTO :269-285−81
              FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
              FRM-D-07:84-88DELETE "you do not learn three languages"−72
              FRM-D-02:90-95DELETE M9.7 roadmap−69
              FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
              FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
              FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
              FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
              FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
              FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

              Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

              Flight scope

              IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

              ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

              DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

              Flight constraints (binding)

              • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
              • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
              • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
              • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
              • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
              • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

              Refs: #14292 · #14296 · #13658.

              Metadata

              Metadata

              Assignees

              Labels

              documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

              Type

              No type

              Projects

              No projects

                Milestone

                No milestone

                Relationships

                None yet

                Development

                No branches or pull requests

                Issue actions

                , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
                Skip to content

                Skills optimization flight — skills/objectstack-formula: DIET (≈ −1,265 tok, −21%) — 21% of the file on previous vs record, cron/template surfaces the frontmatter routes away (0 corpus usages), and the one decision the package exists for (formula fields are virtual: where/orderBy on one = 400) taught nowhere #14316

                Description

                @os-litant

                Member card of the skills catalog optimization program #14292 (maintainer mandate 2026-09-02, verbatim: 「审核所有的 skills,进行全面的优化。」). Filed by the skills lane seat (session session_01LraLgQVGq8egUwfYZpbYt1). Read-only audit at objectstack origin/maina59f78d. The auditor's harness refused to write a findings file; the full findings are recorded in this card and in the audit-record comment the dev posts at claim time (copy of the seat's audit message, provided in the dispatch brief).

                Audit summary

                SKILL.md 551 lines / 6,002 tok (headroom 0) + generated _index.md 302; no rules/, no evals/ (the only domain package without one). Heaviest sections: §5 previous vs record:286-375 = 1,241 tok (20.7%); stdlib :153-216 = 913; template surfaces + quickref = 511; cron surfaces + quickref = 228. Real usage: P\`` 37 · cel`85 ·F`0 ·cron`0 ·tmpl`0; top-5 tasks: seed dynamic dates (76, well covered), field conditional rules (63, roots incomplete), validation predicates (10, well covered), flow/trigger conditions (5, scope taught WRONG), date-macro filter tokens (21, zero mention).type: 'formula' fields: 0 live usages (the only hits are a removal test). Stdlib: 35 documented = 35 implemented (CEL_STDLIB_FUNCTIONS`), pinned one direction only. Verdict DIET (net −1,265 = −21.1%; structure sound).

                Top findings

                idspanproposalΔ
                FRM-F-06 / A-01:432-445,:446-481,:482-497,:498-513cron + template surfaces: frontmatter :9 says "Do not use for cron"; 0 corpus usages of cron\``/cronExpression/tmpl``/any formatter → ONE schema-pointing row each (live surfaces: never delete the last mention), delete the quickrefs−435
                FRM-D-05:328-330,:342-348,:350-358,:370-372REWRITE-AS-CONSTRUCT — :350-358 restates table row :311 at 165 tok; the rest is cost narration−310
                FRM-D-04:317-326DELETE pre-17 logger.warn history; rule complete at :313-317−144
                FRM-B-06:38-45MERGE-INTO :535-547; ADR-0032 stated 3× and :536 cross-refs itself−119
                FRM-F-01:414 (gap)ADD — a formula field has no column; where/orderBy/searchableFields on one = 400 INVALID_FIELD (17.engine-find-formula-filter-refused.ts:20-45; examples/app-todo/test/derived-flag-removal.test.ts)+90
                FRM-B-05:514-526MERGE-INTO :269-285−81
                FRM-D-01 / B-07:27-31DELETE "Strategic context"−74
                FRM-D-07:84-88DELETE "you do not learn three languages"−72
                FRM-D-02:90-95DELETE M9.7 roadmap−69
                FRM-B-03:364-368MERGE-INTO :117-144has()-on-declared-field rule stated twice−68
                FRM-F-03:415-416 (gap)ADD — form-view visibleWhen is client-side only and faults OPEN (view.zod.ts:2353; form-predicate-root-policy.ts:14-19); the package teaches the opposite globally at :41-42, :313+60
                FRM-D-03 / G-03:527-534DELETE "Open questions"; CelExprSchema exists nowhere in the repo−55
                FRM-G-05:421,:472,:508-510DELETE visibleOn/visibility row + dedupe titleFormat notes−44
                FRM-B-02:548-551pointer at node_modules/@objectstack/formula/ which ships dist only (:154-155 itself calls it unreadable)−48
                FRM-F-02 + F-04:100-113, :382ADD roots parent (field.zod.ts:800-801; 4 usages in invoice.object.ts) and data (form-predicate-root-policy.ts:181-189); flow conditions bind bare identifiers (service-automation/src/engine.ts:7150-7156; 5 showcase flows) — the translation table implicitly forbids it+60

                Also: FRM-A-02 (+18: say this is the companion package four hosts load alongside) · FRM-B-01 (+30: link references/_index.md — the only domain package that does not) · FRM-B-04 ("no js dialect" 3×, −36) · FRM-D-09 (:64-71 transcribes expression.zod.ts:75-90, −41) · FRM-E-01 (mark one "Mandatory pattern" block os:check, +45) · FRM-E-03 (:241 teaches * 100.0, a workaround stdlib.ts:246-275 closed) · FRM-F-07 (:429-430 forbids CEL in view filters without naming the date-macro alternative → pointer to objectstack-query) · FRM-G-01 (objectstack build 5× vs os build 5× — siblings use os) · FRM-G-02 (frontmatter 17.x while the body says 7.6, M9.5, M9.7, M9.8) · FRM-G-04 (:105 "single quotes (always)" vs the corpus writing "…" inside P\`` 10+ times). Incidental: skills/README.md:100"LegacyOLD/NEWevaluate tonull since M9.5" is stale — current truth is a build failure (validate.ts:342-352`) — "follow-up for skills/README.md".

                Flight scope

                IMPLEMENT (same-file, shrink-only): every row above; the three funded additions (F-01 paid by D-01 + D-03; F-03 paid by A-01's deleted quickrefs; F-02 + F-04 paid by D-05); FRM-A-02, B-01, E-01, E-03, F-07, G-01, G-02, G-04.

                ANCHOR RULINGS: this package is the CEL anchor; host packages (automation :41-43,:943-946; data :1111-1118) restate the stdlib beside pointers here — record under "follow-up for objectstack-automation / objectstack-data" (⛔ do not edit them). Date-macro filter tokens → objectstack-query (pointer only).

                DEFER: FRM-H-01 (a new evals/README.md needs a ceiling row → #14296 item 2 / a later ruling); FRM-C-05 (generator SKILL_MAP maps date-macros.zod.ts here, contradicting :36-37 → out-of-scope card for the spec lane); FRM-D-06 (moving the 10,000-row limit to a host package → follow-up); FRM-I-01 ceiling re-lock (Phase 3 style, not this PR).

                Flight constraints (binding)

                • ONE draft PR, first line Fixes #<this card>; governed ⇒ stays draft; review requests are the seat's step.
                • Token ratchet: SKILL.md may not grow; additions paid by deletions in the same file; ⛔ re-wrap is not payment; ⛔ no ceiling raise; ⛔ no new files; ⛔ do not touch the ratchet script.
                • ⛔ Never edit another package's files or skills/README.md prose; follow-ups in the PR body. Generated files untouched.
                • Live surface with zero measured usage ⇒ one row pointing at its schema; retired/tombstoned ⇒ delete. A false claim matching a spec .describe() string ⇒ spec-side twin card.
                • Gates: node scripts/check-skills-token-ratchet.mjs, pnpm --filter @objectstack/spec check:skill-examples, pnpm check:skill-compatibility, pnpm check:skill-identifier-liveness, pnpm --filter @objectstack/spec check:skill-docs, plus node scripts/pm/dispatch-gates.mjs --commands skills/objectstack-formula/SKILL.md; record the head sha. Note: packages/formula pins the stdlib catalog ↔ skill in cel-stdlib-drift.test.ts and skill-catalog-sync.test.ts — run them.
                • PR body: per-item 落点 | before | after keyed by finding id; token delta; needs:contract-review on both carriers (F-01, F-03, F-04 are contract-semantics claims).

                Refs: #14292 · #14296 · #13658.

                Metadata

                Metadata

                Assignees

                Labels

                documentationImprovements or additions to documentationdomain:skillspriority:p1High: required for production / M2

                Type

                No type

                Projects

                No projects

                  Milestone

                  No milestone

                  Relationships

                  None yet

                  Development

                  No branches or pull requests

                  Issue actions