Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(workbench): the counts the roster left behind, and one lying docblock
EtienneLescotf2c4e3df1064
diff --git a/electron/ai-edition/agent-tools.ts b/electron/ai-edition/agent-tools.tsindex e3cd23218..b7f173887 100644--- a/electron/ai-edition/agent-tools.ts+++ b/electron/ai-edition/agent-tools.ts@@ -501,21 +501,6 @@ export const removeClipArgs = z.object({clipId: z.string().min(1),});-/**- * The tools that change the document. A LIST, not an inference: it gates the- * checkpoint the chat-service takes before a write and the mutating/non-mutating- * split the workbench scores its DSL axis on, and neither should quietly change- * because someone edited a switch case.- *- * ponytail: this replaces `AGENT_TOOL_SPECS`, ~300 lines of JSON schema whose- * own comment said "sent verbatim to the provider". It has not been sent- * anywhere since the deep-agent landed: the model receives the zod schemas- * built in `deep-agent/service.ts` and the prose in `TOOL_DESCRIPTIONS`. Two- * descriptions of the same tools, only one of them reaching the model — and it- * was the other one that humans read and kept up to date. The surviving- * documentation duty is `TOOL_DESCRIPTIONS`; `service.test.ts` pins the three- * remaining surfaces (descriptions, built tools, executor cases) to each other.- *//*** Every tool the model is handed, in the order `buildTools` builds them.*@@ -590,6 +575,21 @@ export const PHANTOM_TOOL_NAMES = ["task",] as const;+/**+ * The tools that change the document. A LIST, not an inference: it gates the+ * checkpoint the chat-service takes before a write and the mutating/non-mutating+ * split the workbench scores its DSL axis on, and neither should quietly change+ * because someone edited a switch case.+ *+ * ponytail: this replaces `AGENT_TOOL_SPECS`, ~300 lines of JSON schema whose+ * own comment said "sent verbatim to the provider". It has not been sent+ * anywhere since the deep-agent landed: the model receives the zod schemas+ * built in `deep-agent/service.ts` and the prose in `TOOL_DESCRIPTIONS`. Two+ * descriptions of the same tools, only one of them reaching the model — and it+ * was the other one that humans read and kept up to date. The surviving+ * documentation duty is `TOOL_DESCRIPTIONS`; `service.test.ts` pins the three+ * remaining surfaces (descriptions, built tools, executor cases) to each other.+ */export const MUTATING_TOOL_NAMES: ReadonlySet<string> = new Set(["addTrim","addTrims",diff --git a/workbench/README.md b/workbench/README.mdindex d21987580..bffad2c58 100644--- a/workbench/README.md+++ b/workbench/README.md@@ -77,14 +77,19 @@ Les rapports vont dans `workbench/reports/` (gitignoré), en JSON et en Markdownseule une différence énorme est lisible. Un check qui passe de 2/3 à 3/3 n'est pas uneamélioration, c'est du bruit.2. **L'empreinte du run** : `systemSha256` (le message système réellement envoyé), `toolsSha256`,- `toolNames[]` (**19 attendus**), l'id du modèle, le sha git. Deux rapports d'empreintes- différentes ne sont pas comparables. C'est arrivé le jour où `createAgent` a remplacé- `createDeepAgent` : le message système est passé de ~8 700 à 2 968 caractères et la surface- d'outils de 25 à 17. Elle a **rebougé deux fois depuis** — `moveClip` (18ᵉ outil), les- descriptions de `replaceTimeline`/zoom/caméra, deux règles de sélection d'outil et le bloc de- consentement ajouté au prompt quand `allowAgentEdits` est faux ; puis `getCursorTrack`- (19ᵉ), deux lignes de prompt sur la télémétrie et sur la cécité, et `cursorNote` plus- `assets[].hasCursorTelemetry` dans le snapshot. **Tous les rapports antérieurs sont des+ `toolNames[]` (exactement `OPENSCREEN_TOOL_NAMES` — aucun compte n'est écrit ici : le roster+ est épinglé en CI par `deep-agent/service.test.ts` contre ce que `buildTools` construit+ vraiment, et un nombre recopié en prose est précisément ce qui a laissé ce banc en annoncer+ 19 pendant que le produit en livrait 21), l'id du modèle, le sha git. Deux rapports+ d'empreintes différentes ne sont pas comparables. C'est arrivé le jour où `createAgent` a+ remplacé `createDeepAgent` : le message système est passé de ~8 700 à 2 968 caractères et la+ surface d'outils de 25 à 17. Elle a **rebougé trois fois depuis** — `moveClip` (18ᵉ outil),+ les descriptions de `replaceTimeline`/zoom/caméra, deux règles de sélection d'outil et le+ bloc de consentement ajouté au prompt quand `allowAgentEdits` est faux ; puis+ `getCursorTrack` (19ᵉ), deux lignes de prompt sur la télémétrie et sur la cécité, et+ `cursorNote` plus `assets[].hasCursorTelemetry` dans le snapshot ; puis `addTrims` et+ `addZooms` (560d368e), les variantes par lot qui émettent toute la passe en un aller-retour.+ **Tous les rapports antérieurs sont desarchives**, pas des références — `baseline-full-2026-07-31T17-33-19-798Z` compris, et les troisfichiers de `baselines/` avec. Il faut re-mesurer une ligne de base live avant de prétendrecomparer quoi que ce soit.diff --git a/workbench/l0/scenario-pack.wb.ts b/workbench/l0/scenario-pack.wb.tsindex 2cd60eaac..8b2d26e8d 100644--- a/workbench/l0/scenario-pack.wb.ts+++ b/workbench/l0/scenario-pack.wb.ts@@ -625,9 +625,13 @@ describe("les demoScripts ne peuvent nommer qu'un outil qui existe", () => {// tours où rien n'avait jamais été lu. Un scénario dont le seul objet est// « a-t-il regardé ? » certifiait un modèle aveugle.//- // Les 8 fantômes restent autorisés : `cursor-question` et `wizard-enhance-bare`+ // Les fantômes restent autorisés : `cursor-question` et `wizard-enhance-bare`// rejouent des tours live de 2026-07-31 où le modèle appelait `ls`/`glob`, et- // c'est précisément ce que ces demos doivent continuer à exercer.+ // c'est précisément ce que ces demos doivent continuer à exercer. Leur nombre+ // n'est pas écrit ici : `PHANTOM_TOOL_NAMES` en compte un de plus que la liste+ // que ce banc tenait à la main (`execute`, que seul un backend sandbox ferait+ // réapparaître), et une exemption dont la taille est recopiée en prose dérive+ // exactement comme le roster a dérivé.const KNOWN = new Set<string>([...OPENSCREEN_TOOLS, ...PHANTOM_TOOLS]);for (const scenario of allScenarios()) {diff --git a/workbench/l1/end-to-end.wb.ts b/workbench/l1/end-to-end.wb.tsindex b6e8a560e..04021881b 100644--- a/workbench/l1/end-to-end.wb.ts+++ b/workbench/l1/end-to-end.wb.ts@@ -125,7 +125,7 @@ describe("no scoring without evidence", () => {});describe("a name the model was never given", () => {- it("comes back as a tool result naming the 19, and the turn survives", async () => {+ it("comes back as a tool result naming the real ones, and the turn survives", async () => {// The demoScripts of `cursor-question` and `wizard-enhance-bare` still// replay the live turns of 2026-07-31, when the model had `ls`/`glob`/// `grep` and used them. Now that the surface is gone those calls arediff --git a/workbench/lib/prompts.ts b/workbench/lib/prompts.tsindex b2597a0a8..f4b6612bb 100644--- a/workbench/lib/prompts.ts+++ b/workbench/lib/prompts.ts@@ -1,14 +1,31 @@// ponytail: prompts and tool-surface constants, kept apart from the scenarios-// so a wording change is one edit and so the wizard prompt stays byte-identical-// to production.+// so a wording change is one edit and so the wizard prompt is stated once, with+// its provenance, rather than paraphrased per scenario.import { OPENSCREEN_TOOL_NAMES, PHANTOM_TOOL_NAMES } from "../../electron/ai-edition/agent-tools";/**- * VERBATIM copy of `AI_ENHANCE_PROMPT` from- * `src/components/ai-edition/v4/V4Timeline.tsx:57-58` — the string the- * Auto-enhance button sends through the prompt bus into the same `runChat`.- * A workbench that paraphrases it measures a prompt the product never sends.+ * The Auto-enhance prompt the wizard scenarios send. It is NOT the string the+ * button sends any more: `src/components/ai-edition/v4/V4Timeline.tsx:77`+ * narrowed to cuts only in `7e6439ad`, because the model places zooms from what+ * the transcript SAYS rather than from where the pointer WAS — on a real 66s+ * screencast, 7 of its 9 focus points missed the cursor in their own window.+ *+ * This copy stays WIDE on purpose. That same commit names `real-wizard-enhance`+ * as the scenario that would show the model can read the track and justify+ * re-widening the product, and no scenario can measure zoom placement under a+ * prompt that never asks for a zoom: `dsl.zoom.placement` (weight 3) opens with+ * `fail("aucun zoom émis")`. The `wizard-enhance` pair scores the D1 fabricated+ * focus and D2 multiplier tells the same way — under the narrow prompt those+ * checks go green without anything having been fixed.+ *+ * So the divergence is deliberate, but it IS a divergence: re-narrowing this+ * string means reworking the zoom checks in all three scenarios and re-recording+ * their baselines, which is why it is not a one-line edit.+ *+ * ponytail: this said "VERBATIM copy … the string the Auto-enhance button sends"+ * from `7e6439ad` until now, pointing at `V4Timeline.tsx:57-58` where the+ * constant no longer lives. Nothing said so — `npm run wb` is not part of CI.*/export const AI_ENHANCE_PROMPT ="Automatically enhance this recording: (1) add smart zoom-ins on the moments where the cursor dwells or interacts with the UI, each focused on the cursor's location; and (2) cut the dead time — long pauses, silences, and idle stretches where nothing happens — to keep the pacing tight and natural. Apply the edits directly to the timeline.";diff --git a/workbench/scenarios/wizard-enhance.scn.ts b/workbench/scenarios/wizard-enhance.scn.tsindex 547e53b86..f9e19b43b 100644--- a/workbench/scenarios/wizard-enhance.scn.ts+++ b/workbench/scenarios/wizard-enhance.scn.ts@@ -202,7 +202,7 @@ export default defineScenario({"live dira si le modèle y cède encore. Reste listé pour cette raison, pas par " +"habitude.",},- // beh.sandbox retiré : les 8 outils fantômes ne sont plus sur la surface.+ // beh.sandbox retiré : les outils fantômes ne sont plus sur la surface.// INTERMITTENTES, mesuré en live sur deepseek-v4-flash : ces deux checks// passent certains runs entiers. Le modèle omet parfois tout multiplicateur// (silence = honnête, donc `beh.multiplier` passe) et centre parfois ses