You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5f754fb
Browse filesBrowse the repository at this point in the historyBrowse files
skill-evals: a trigger turn installs the round's selection of bundles, not its own bundle alone
9
+
10
+
A `should_trigger` turn's project now holds every bundle of the round's selection (the `--skills` bundles, or every bundle), so a skill description competes with its neighbours' as it does in a real project. A should-load case passes only when its own bundle loads. Each record lists `installed` and `trigger.othersLoaded`, and the trigger table names the other bundles each case loaded. A turn whose init line misses an installed bundle is `invalid`. `--trigger-field own` installs the case's bundle alone, as rounds recorded before did. `round.json` records `triggerField`, the summary header names it, and `--regrade` keeps it. Under `--triggers-only`, a `--skills` bundle with no trigger case is installed as a competitor instead of being refused, as long as another named bundle has a trigger case.
fix(console): saving a shared view's draft keeps the list on screen, and a second change builds on the first
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
An admin who saved a draft of a shared view (a footer calculation pick, or a view settings change) saw the list redraw on the published view about half a second later, and the change came back only after Publish. A second change before Publish was then built on the published view, so its draft replaced the first: pick Sum, then Latest, then Publish, and only Latest was kept.
11
+
12
+
Every draft save announces itself on the metadata-refresh pulse, so the pending-drafts surfaces re-read, and every mounted metadata provider refetches its loaded types on that pulse. While the refetched view list was on the wire, the route's object scope read as unanswered, so the console dropped the route to its loading skeleton and mounted the list again, on the published view. A type that is refetching over an answer it still holds now counts as answered: the scope stays settled on the views in hand, the route stays mounted, and the list keeps the draft on screen. This holds for every refresh pulse (a publish, a package install, a change noticed in another tab), not only a draft save. On an app with a metadata bundle, the pulse also drops the bundle, and it answers nothing until it is downloaded again; meanwhile the scope's views now come from the bundle that last answered, when it holds every object the route asked for, so the route stays mounted there too. A type the provider drops (an invalidation, an organization switch) still waits for its new answer, and an organization or session switch forgets the last bundle.
13
+
14
+
Publish and Discard in view settings now drop the list's local copy of the draft once the saved views have been read again, so the list then shows what is stored. A reader who is not an admin still sees the published view until Publish. No props, exports or locale keys change.
Copy file name to clipboardExpand all lines: packages/qa/scenarios/README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -895,7 +895,7 @@ wrapper, with no change to the runner.
895
895
Every published skill bundle carries eval cases (`skills/BUNDLE/evals/*.json`: a `prompt`, an `expected_output` and
896
896
`assertions.must_contain` / `must_not_contain`). `skill-evals` sends each case to the local Claude Code login twice,
897
897
once with the bundle installed and once without, and grades each answer by the case's own tokens. A trigger case
898
-
asks instead whether the skill was loaded, and runs with the bundle installed only. It runs from this checkout only. It is not part of the published `bin` or `exports`, not a CI job and not a merge gate. The cases are
898
+
asks instead whether the skill was loaded, and runs with the bundle installed beside its competitors only. It runs from this checkout only. It is not part of the published `bin` or `exports`, not a CI job and not a merge gate. The cases are
899
899
the skill authors' and the runner never edits them.
900
900
901
901
```bash
@@ -907,6 +907,7 @@ pnpm --filter @objectstack/scenarios skill-evals # every case ×
pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-query,objectstack-ask --triggers-only # both installed in every trigger turn
910
911
pnpm --filter @objectstack/scenarios skill-evals --regrade DIR # re-draw a recorded round's verdicts from its records; no model call
911
912
pnpm --filter @objectstack/scenarios skill-evals --self-test # the runner's own fixtures; no model call
912
913
```
@@ -938,10 +939,19 @@ pnpm --filter @objectstack/scenarios skill-evals --self-test # the runner's o
938
939
cases are all positive, or all negative, is refused. The summary reports trigger cases in their own section beside
939
940
the behaviour cases, never inside their pass rates: per bundle, loaded when it should, left alone when it should
940
941
not, the missed loads and the false loads.
942
+
-**The competing set (`--trigger-field`)**: a trigger turn's project holds every bundle of the round's selection
943
+
(the `--skills` bundles, or every bundle of the catalog), so a description competes with its neighbours' as it does
944
+
in a real project. Installed alone, a should-load case sits at the ceiling and a false load is a turn reading the
945
+
only skill in an empty directory. A should-load case passes only when its own bundle loads. Each record lists
946
+
`installed` and `trigger.othersLoaded`, and the trigger table names the other bundles each case loaded. A turn whose
947
+
init line misses an installed bundle is `invalid`. `--trigger-field own` installs the case's bundle alone, as every
948
+
round recorded before did. `round.json` records `triggerField`, the summary header names it, and `--regrade DIR`
949
+
keeps it (the flag is refused there). Behaviour cases keep one bundle, so their two arms still differ only in it.
941
950
-**`--triggers-only`**: the selected bundles' trigger cases alone, on the with-skill arm, for a change that only
942
951
touches when a skill loads (its `description`). The summary is the trigger section alone, and `round.json` records
943
-
`scope.triggersOnly`, so `--regrade DIR` keeps that scope. A bundle `--skills` names with no trigger case is refused
944
-
(a published version before trigger cases has none), and so is the flag beside `--regrade` or `--self-test`.
952
+
`scope.triggersOnly`, so `--regrade DIR` keeps that scope. A bundle `--skills` names with no trigger case is
953
+
installed as a competitor while another named bundle has one; alone, or under `--trigger-field own`, it is refused
954
+
(a published version before trigger cases has none). The flag is refused beside `--regrade` or `--self-test`.
945
955
`--dry-run` prints the reduced plan, and `--skills-from VERSION` runs it on the published bundles.
946
956
-**Case files**: a case's `files` entries are paths under the bundle's `evals/files/` (anything else is refused, and
947
957
so is a path the bundle lacks or one with a `.claude` segment, since `.claude/` is where the runner places the skill). Each is copied, a directory whole, into both arms' directories at its path below
if(unknown.length)thrownewError(`--skills names ${unknown.map((n)=>`\`${n}\``).join(', ')}, not a bundle under ${catalog.root} (bundles: ${catalog.bundles.join(', ')})`);
if(noCases.length&&!(competing&&picked.some((c)=>c.shouldTrigger!==undefined)))thrownewError(`--skills names${noCases.map((n)=>`\`${n}\``).join(', ')}, a bundle with no ${kind} under ${catalog.root}`);
0 commit comments