Skip to content

skills evals: trigger cases with negatives, a review of over-literal assertions, and cases that run without a project on disk #34789

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this session's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and on who files this epic's cards: 「你应该负责立卡,对方只是派发处理」. Ruling: #34691 S2 = A. This card is the part of that ruling which #34764 puts out of its scope ("new or edited cases").

Why

The runner of #34764 grades the catalog's cases as they are written. Run as written, a share of the failures say nothing about the skill: the assertion wanted one exact spelling, or the question assumed a project that was not there. And no case at all asks the first question about a skill: was it loaded when it should be, and left alone when it should not.

Who acts: the devx lane for the cases' form, the skills lane where a case's intent has to be read. Reader: the eval seat, and any seat changing a skill's description.

Evidence (objectstack a0326b06; this session ran every case once per arm through claude -p on a subscription login, 416 runs, 2026-11-17; scores are with the maintainer)

  • Of 15 failing with-skill transcripts read: 4 failed on an over-literal assertion, 2 because the prompt needs a project on disk, 4 because the skill was present and not loaded or not read, 5 on a model error, none because the skill does not teach the answer.
  • Over-literal, by case id: objectstack-automation/flows-triggers-approvals#13 requires the token hotcrm.custom, which is absent from that skill; objectstack-i18n/bundles-locales-coverage#10 forbids verdict: {, which a correct answer quotes as the wrong shape.
  • 35 of 416 runs ended on a 10-turn limit, mostly searching for a repository that was not there; 138 no-skill and 98 with-skill answers said a project was missing.
  • In the with-skill arm the Skill tool was invoked in a minority of runs; the model often reached the text by reading files.
  • Directus ships 39 trigger cases, 3 of them negative, graded on whether the skill was loaded, and records 22 of 37 passing before a description change and 33–34 after. Anthropic's skill-creator recommends a 20-query trigger eval run three times.

Scope

  • Review each case's assertions once: a token that is one spelling of a right answer becomes a check any right answer passes; a forbidden token a right answer may quote is narrowed.
  • Each case states the context it needs, or carries the files that make it answerable in an empty directory (the format already has files, empty in every case today).
  • About 40 trigger cases across the six metadata skills, at least one in ten negative, graded on whether the skill was loaded. The runner of qa: a weekly runner for the published skills' existing eval cases (subscription login, with- and no-skill arms), and the eval lane's weekly line #34764 reports them beside the behaviour cases.
  • File surface: skills/*/evals/**; the runner's grading of a trigger case in packages/qa/**.

Done when

Relations

Activity

  1. added
    area:ai
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:skills · pm:queue · 2026-11-17T10:48Z

    ⛔ Not a claim.

  3. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: pm:queue → pm:blocked (Blocked-by #34764) · 2026-11-17T11:01Z

    ⛔ Not a claim. The grade is unchanged (p2).

  5. added
    pm:blocked
    and removed
    pm:queue
    on Nov 17, 2026
  6. added a commit that references this issue on Nov 17, 2026
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock (17:5xZ): the only blocker, #34764 (the skill-evals runner), closed at 17:39Z. Moved pm:blocked → pm:queue. The grade is unchanged (p2 · skills, epic #34659).

  8. added
    pm:queue
    and removed
    pm:blocked
    on Nov 17, 2026
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

    Claim: PM loop round 1 (area o3-J, repo:objectstack#3; seat 3 assigned this epic #34659 p2 card at 21:14Z)
    Session: session_01WGufzfr1xZSFZzCR8HnqXX
    Account: os-support-ai
    Branch: claude/issue-34789-skill-evals-trigger-cases
    Worktree: objectstack-issue-34789
    Domain: domain:skills
    Seat: repo:objectstack#3
    File surface: skills/*/evals/**; the runner's grading of a trigger case in packages/qa/scenarios/src/skill-evals/** and its tests (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no (re-measured from the diff before the PR; @objectstack/scenarios is published, so a new exported shape or CLI flag makes it yes (widening))
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6956231631
    Premise: holds — the blocker #34764 closed at 17:39Z and its runner is on origin/main 2ce9c7f9 (packages/qa/scenarios/src/skill-evals/); the eval files exist under skills/*/evals/
    Serial constraints cleared: #34949 (skill-evals arm directories under the system temp directory, packages/qa/scenarios/src/skill-evals) is in flight; overlap-check before the first push and before every push.
    Pre-claim lane: skills for skills/*/evals/**; the runner half is devx-shaped (packages/qa/scenarios), as the card names it, one surface away.
    Pre-claim deps: Blocked-by #34764 merged (closed 17:39Z).
    Prior rulings read: #34691 S2 = A (this card is the part #34764 left out); card terms → ADR-0033 §10, ADR-0006 D1, D3 (broad-term hits); thread: none.
    Next step: one draft PR. A skills/** change is governed (Tier H) unless check-governed-merges.mjs reads the low-risk arm; the seat holds the record.

  10. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34789,
      "status": "done",
      "branch": "claude/issue-34789-skill-evals-trigger-cases",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35022",
      "head": "8d82dcb937777118cf574ab638b7d62e44fd9c57",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "premise_still_valid": true,
      "summary": "Draft PR #35022 (Part of #34789; the model-round half stays on the card). The skill-evals runner gains trigger cases ({id, prompt, should_trigger, files}, no assertions, with-skill arm only, graded on whether the bundle was loaded: a Skill tool launch of the bundle or a Read under .claude/skills/BUNDLE/) and per-case `files` copied from evals/files/ into both arms' workdirs. The runner reports trigger cases beside the behaviour cases (summary.json triggers block, a Trigger cases markdown section, a turns line that counts both). The reader refuses a bundle whose trigger cases are all one kind. 42 trigger cases were added across the six metadata skills (data, query, ui, automation, formula, i18n): 7 each, 5 positive and 2 negative, so 12 of 42 are negative. The assertion review changed 11 cases conservatively and 30 prompts now state the context they need. hashCase is unchanged for behaviour cases that carry neither new key, so --regrade keeps old rounds valid. The model round was NOT run here: no model credentials in this container, by dispatch.",
      "files_changed": "31: packages/qa/scenarios/src/skill-evals/{cases,arms,run,summary,cli,self-test}.ts; packages/qa/scenarios/test/skill-evals/skill-evals.test.ts; packages/qa/scenarios/README.md; skills/objectstack-{data,query,ui,automation,formula,i18n}/evals/triggers.json (new); skills/objectstack-{data,ui}/evals/README.md; existing eval JSON under skills/objectstack-{ai,api,automation,data,i18n,platform,ui,upgrade,objectui}/evals/; .changeset/34789-skill-evals-trigger-cases.md",
      "cases_changed": [
        "automation/flows-triggers-approvals#13: required hotcrm.custom -> .custom (namespace spelling is the user's, not the skill's)",
        "i18n/bundles-locales-coverage#10: forbidden 'verdict: {' -> 'verdict: { summary: ''' (a right answer quotes the key)",
        "data/hooks-security-seeds-datasources#14: forbidden **** -> '138**** (the right answer quotes the masked form)",
        "data/objects-fields-relationships#10: forbidden 'required: true' -> 'required: true,' and 'required: true }' (prose quoting it was failed)",
        "data/objects-fields-relationships#12: required filter literal -> 'filter:' (value spelling not taught)",
        "data/objects-fields-relationships#14: required value: 'active' -> value: ' (option value is free)",
        "ui/views-apps-actions-pages#16: whole read: { url } token -> the URL alone; seed: [...] token -> 'seed:' and path: 'token'",
        "ai/skills-tools-knowledge#5: forbidden defineAgent( -> defineAgent({ (prose naming the function was failed)",
        "ai/skills-tools-knowledge#6: required pendingActions.list dropped (not taught by the skill)",
        "objectui/testing#2: required 'React Testing Library' -> @testing-library/react",
        "upgrade/protocol-major-upgrade#3: required 'never executed' dropped; forbidden type: 'javascript' -> transform: { type: 'javascript'"
      ],
      "prompts_given_context": "30: ai#1,#4,#5; api#1,#2,#6; automation#5; data objects#1,#9; i18n#2,#4; platform#1,#3,#5,#7,#8,#17,#21; ui views#1,#2,#4, record-page#3; upgrade#1,#2,#3; objectui page-builder#2,#3,#4, project-setup#3, data-integration#3",
      "reviewed_unchanged": "negation-collision candidates left as they are, with reasons in the PR body: data hooks#15, ask#6, ui views#13, api#5, objectui app-composition#3, objectui protocol#3, ai#5 knowledge:, ai#7",
      "trigger_cases": "42 total, 30 should load the bundle, 12 should not (28.6% negative; floor 10%)",
      "clause_2": "no — measured: after the scenarios build, the new symbols (turnsLine, placeCaseFiles, TriggerSummary...) hit 0 files in dist; control subscriptionOnlyEnv hits dist/cli.js and dist/runner.js. skill-evals is not on the package's exports. Metadata-protocol: none.",
      "tests": "head 8d82dcb937. pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts: 35/35 pass (10 new: trigger cases x6, files x4). Full scenarios pnpm test under the lock: 37/39 files at first; the 2 red files needed the package's own dist, and after building scenarios they passed (2 files, 14 tests). Closure build + typecheck under the lock: VERDICT command-exit 0. CLI --self-test: '29 rows pass', exit 0 (floor 21 -> 29). --dry-run exit 0: '217 behaviour case(s) x 2 arms + 42 trigger case(s) x the with-skill arm, x 1 = 476 turn(s)'. Ablation (one-shot, not kept): deleted the read-evidence line in loadEvidence via scripts/ablation-replace.mjs, landing proved by grep -c; 4 tests went red; restore via git checkout HEAD, blob hash equal to HEAD and git diff HEAD empty.",
      "gates": "dispatch-gates --ran: 76 derived, 75 run, 1 NOT MEASURED, 0 unrun. 72 families exit 0 on the first pass. check:skill-examples exit 3 at first (client-react dist missing); after building it, exit 0 (347 examples). check:type-check-debt: an internal lock queue-timeout at first; the re-run exited 0. NOT MEASURED: check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET (needs a full build); CI runs it. ui scripts vitest 171 files / 5077 tests pass. CI on the head when this was written: Governed Surface Queue Guard success; Check Changeset, Check PR Size, Lint x8, Type Check x4, PR-body guards, filter all in_progress; opt-in jobs skipped.",
      "check_governed_merges": "node scripts/pm/check-governed-merges.mjs --pr 35022 -> exit 3, GOVERNED, landing tier H (人合). 22 of 31 paths under skills/**. The low-risk skills arm does not apply: paths outside skills wording; catalog paths name auth or security (endpoints-auth-routes.json, hooks-security-seeds-datasources.json); 6 catalog files added; the changeset releases @objectstack/scenarios. Size 1026 changed lines (+941/-85), under 3000. Not readied, queued or armed; needs os-zhuang approval and a seat hand-over.",
      "overlap_check": "node scripts/pm/overlap-check.mjs before every push: all VERDICT clean exit 0. The last run against origin/main 4443014630 showed #34985, #34970 and #34964 sharing files, each merging cleanly. #34949 merged mid-work and was merged into the branch.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "4 — git push to the branch (several pushes, not REST); fleet-write relay pr_create (draft #35022, run 44197770126, success); post-stamped.mjs comment on #34789 (this report)",
      "deviations": [
        "Narrowed runs while the verify lock was held by a long dogfood battery (queue-timeout exit 99): an unlocked typecheck (exit 0) and the single skill-evals test file (35/35), declared; both were later re-run under the lock.",
        "The changeset and PR body carry 'Clause-②: no' as measured, not a parenthetical arm.",
        "The PR assignee is the claim's Account (os-support-ai) via pr_create; the card assignee was not touched."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34789 · reach limits noted in the PR Acceptance notes, not filed: api#6 sourceField/targetField are taught only by the spec source, not the api skill; automation#16 'notices.' lives in the data skill",
        "dedupe words: skill evals trigger, should_trigger, eval case files, over-literal assertion"
      ],
      "unmet": "The model round (claude -p over 476 turns) and its re-grade were not run here, so the trigger cases have no recorded verdicts yet. Judging #34769 stays on the card. Both are why the PR says Part of #34789."
    }
  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

    Trigger baseline ("before") for #34769 · 2026-11-17T23:59Z

    The first model round of the skill-evals runner with trigger cases (PR #35022), as ordered by seat 3. This is the before baseline each description change in #34769 is measured against.

    • Runner and cases: PR feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill #35022 at 8d82dcb937777118cf574ab638b7d62e44fd9c57, workspace skills/.
    • Driver: Claude Code CLI 2.1.326, subscription login (oauth_token, no API key), served claude-haiku-5-5, effort medium, --max-turns 16, 4 at once, 1 repetition.
    • 476 of 476 turns ran (217 behaviour cases × 2 arms + 42 trigger cases × the with-skill arm); 34.2 min; notional cost the CLI reported $2.2 (nothing billed).
    • Records: /mnt/project-files/issue-34789/round-haiku-2026-11-17/ (round.json, summary.md, summary.github.md, one runs/*.json per turn). Re-grade with skill-evals --regrade DIR.

    Trigger cases, per skill

    skill cases loaded when it should left alone when it should not false loads (case)
    objectstack-automation 7 5/5 2/2 none
    objectstack-data 7 5/5 1/2 triggers#6
    objectstack-formula 7 5/5 1/2 triggers#6
    objectstack-i18n 7 5/5 2/2 none
    objectstack-query 7 5/5 1/2 triggers#7
    objectstack-ui 7 5/5 1/2 triggers#6
    all 42 30/30 (100%) 8/12 (67%) 4
    • No missed load. Of the 30 loads, 24 came through the Skill tool and 6 by reading a file under .claude/skills/BUNDLE/ only.
    • All 4 false loads were by reading only: the model browsed the skill's files on a question the skill should not answer, without launching it. A description change can move launches; whether it moves browsing is part of what skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 should read. With one repetition, each negative is a single turn, so one flip moves a skill's rate by 50 points: compare with --repeats 3 before calling a change.

    Behaviour cases, for reference (same round)

    With-skill 130/215 (60%), no-skill 9/217 (4%), 2 errors out of the denominator. Per bundle: ai 6/8, api 3/7, ask 2/7, automation 17/25, data 25/44, formula 8/12, i18n 8/11, platform 8/23, query 5/8, ui 26/32, upgrade 2/5, objectui 20/33. These are the cases after #35022's assertion review; the per-case table is in summary.md.

  13. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34789,
      "status": "done",
      "round": 2,
      "dev_effort": "high",
      "rounds": 2,
      "branch": "claude/issue-34789-skill-evals-trigger-cases",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35022",
      "head": "c169dc85d571ae167e6dd63d5774a017cb07c987",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "premise_still_valid": true,
      "summary": "Fix round on PR #35022, starting from 8d82dcb937 and adding one commit, c169dc85d5. S1 (L1-e N3, the seat's should-fix): caseFileProblem now refuses any files entry with a .claude segment below evals/files/, at any depth and in any letter case. Every case file reaches both arms, and .claude/ is where Claude Code finds skills, so such a file could hand the no-skill arm a skill without verdictOf calling the turn invalid. .mcp.json is left alone, as directed. There is one new vitest test and one new self-test row (floor 29 -> 30), and the scenarios README states the refusal. PR body nit: the trigger-case paragraph now matches the files. The query negatives are both neighbouring-skill tasks inside ObjectStack (data, ui). The i18n negatives are both near misses outside ObjectStack (react-i18next, Intl.NumberFormat). The other four bundles pair one of each. Body also refreshed for the model round, which ran separately: haiku-5-5, medium, on 8d82dcb937, 476/476 turns; triggers 30/30 loaded and 8/12 left alone, with 4 false loads, all by reading only. The body links the trigger baseline comment 6964639551 and notes that with 1 repetition one flip moves a left-alone rate by 50 points, so #34769 comparisons should use --repeats 3. The text saying the round was not run, or that the container had no model credentials, is gone. The PR stays Part of #34789 because judging #34769 is still owed. N1 and N2 were left alone.",
      "files_changed_this_round": "packages/qa/scenarios/src/skill-evals/cases.ts, packages/qa/scenarios/src/skill-evals/self-test.ts, packages/qa/scenarios/test/skill-evals/skill-evals.test.ts, packages/qa/scenarios/README.md",
      "tests": "On c169dc85d5, all under the lock:\n- Built the scenarios dependency closure.\n- vitest run test/skill-evals/skill-evals.test.ts: 36/36 passed; scenarios typecheck exit 0.\n- After pnpm --filter @objectstack/scenarios build, pnpm --filter @objectstack/scenarios test: 39/39 files, 1096/1096 tests.\n- CLI --self-test: '30 rows pass', exit 0.\n- --dry-run exit 0: 476 turns; 30 should load, 12 should not.\n- Ablation, once, on the committed tree: scripts/ablation-replace.mjs replaced the refusal condition with 'if (false) {' (anchor 1 -> 0, blob e5f089ae1d12 -> 2e9983a9bf81; grep -c of the anchor 0 and of the replacement 1). 3 tests went red: the new reader test and the two '--self-test can fail' tests. Restored with git checkout HEAD; blob equal to HEAD (e5f089ae1d12) and git diff HEAD empty.",
      "gates": "Local, on c169dc85d5:\n- dispatch-gates --commands --repo objectstack-ai/objectstack: 76 families. All run; dispatch-gates --ran: 76 derived, 75 run, 1 NOT MEASURED, 0 unrun, exit 0.\n- check:skill-examples: exit 3 at first; after building @objectstack/client-react, exit 0 (347 examples).\n- ui scripts vitest under the lock: 171 files and 5077 tests passed.\n- NOT MEASURED: check:dual-build-cjs-loads. Reason: exit 3, PREREQUISITE NOT MET (needs every package's dist); CI runs it.\nCI on c169dc85d5 when this was written: succeeded: Auto Label, Check PR Size, Dogfood Regression Gate, Governed Surface Queue Guard, Lint · PM dispatch-gates, PR-body guards, Type Check · workspace, filter. 19 runs were in_progress and 12 skipped.",
      "check_governed_merges": "node scripts/pm/check-governed-merges.mjs --pr 35022 exited 3: GOVERNED, landing tier H (人合). 22 of 31 paths are on the register. Size is 1055 changed lines (+970/-85), under 3000. The PR is still a draft with auto_merge null. Not readied, queued or armed.",
      "overlap_check": "node scripts/pm/overlap-check.mjs before the push: VERDICT clean, exit 0, against origin/main 743308b90c and 8 PR heads (#35044, #35042, #35039, #35031, #35023, #34985, #34970, #34964), each merging cleanly. main was not merged into the branch.",
      "pr_body": "Refreshed through relay issue_patch, run 44207917832, success. The relay read back 22456 bytes sent and 22456 stored, identical.",
      "dogfood_battery": "n/a: the PR title has no ! and there is no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "this round, 2 relay writes: fleet-write issue_patch on #35022 (the PR body) and post-stamped.mjs comment on #34789 (this report). There was also 1 git push, which is not a REST write.",
      "deviations": [
        "The refusal is stricter than a top-level-only check. It refuses a .claude segment at any depth, because Claude Code can also pick up skills from nested .claude/ directories, and in any letter case, because a case-insensitive disk resolves .Claude to the same directory.",
        "check:skill-examples needed a @objectstack/client-react build first: exit 3, then exit 0."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34789 · noted, not filed: the residual for S1 is a files entry naming a directory whose own contents hold a nested .claude/. caseFileProblem judges the entry string only. No catalog case uses files today."
      ],
      "unmet": "Judging #34769 against the trigger baseline (comment 6964639551) stays on the card, so the PR stays Part of #34789."
    }
  14. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

    Landed · #34789 · 2026-11-18T03:15Z

    PR #35022 merged at 2026-11-18T01:24:16Z from head c169dc85d571ae167e6dd63d5774a017cb07c987, merge commit 62da8a3201cd344475ff568b8846e5fc251173c8. The PR body carried no closing keyword, so this closes the card by hand as completed and releases the o3-J lease.

  15. removed
    pm:dispatched
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aidomain:skillspriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions