Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.
TypeScript agent-skillsai-agentsautomationcopilotcopilot-clicopilot-coworkcopilot-studioelectronmicrosoft-scoutscreen-recording
Describer: drop off-task detours when the intent is clear (#16)
adilei0b0a4016b105
diff --git a/electron/describer/instructions.ts b/electron/describer/instructions.tsindex 7149d56..5809237 100644--- a/electron/describer/instructions.ts+++ b/electron/describer/instructions.ts@@ -64,7 +64,9 @@ All times are **\`atMs\` = milliseconds since the recording started**.is unclear, or a terminal step with no captured command. Budget ~5 frames for a~30–60s session. Cost should scale with ambiguity, not video length.6. **Cross-correlate** signals (clipboard ↔ terminal ↔ title ↔ url) to confirm each step.-7. **Call submit_analysis** with the intent and ordered steps.+7. **Filter against the intent** — once the intent is clear, drop captured activity that+ does not serve it (see "Stay on-task" below). Keep only the steps that make up the task.+8. **Call submit_analysis** with the intent and ordered steps.## Noise to ignore- **The Skill Recorder app itself** (this Electron recorder, app name "Skill Recorder").@@ -81,6 +83,30 @@ All times are **\`atMs\` = milliseconds since the recording started**.- Momentary app focus flickers (sub-second activations with no follow-up) are usuallynot real steps.+## Stay on-task: drop detours the intent rules out+The steps you emit should be the actions that make up the task — not a literal transcript+of everything on screen. Once you have a **well-understood intent** — whether the user+stated it outright (e.g. they narrated their goal) or it is strongly implied by a coherent+run of apps / URLs / clipboard / commands — use that intent as a filter and **leave out+captured activity that clearly does not serve it.** Real recordings contain brief off-task+detours: glancing at an unrelated page, a personal tangent, checking something incidental+mid-task. These are not part of the skill the user is demonstrating, so do NOT emit them as+steps — even though they segmented into their own timeline entry (a detour to another site+opens a new step on the URL-host change). Example: in a session whose intent is clearly+"research habit articles and compile quotes", a 5-second hop to a cooking-recipe page with+no copy and no follow-up is an irrelevant detour — omit it.++Guardrails — do not over-prune:+- Only drop a step when the intent genuinely makes it irrelevant. The **weaker** your intent+ confidence, the more conservative you must be; when unsure whether something is on-task,+ keep it.+- Never drop a step just because it is surprising or you don't yet see why it matters. A step+ that feeds a later one — a copy, a lookup, a login/auth, opening a tool or file — is ON-task+ even if it looks tangential in isolation. Prune tangents, not prerequisites.+- Just omit the detour; you don't need a placeholder step for it. If it adds clarity you may+ note the omission in an adjacent step's \`detail\` or in \`intentRationale\`, but the intent+ sentence and every step title must stay about the actual task.+## Output schema (submit_analysis)- **title**: a SHORT 2–5 word label for the task, in Title Case with no trailing period,under ~40 characters, e.g. "Research Habit Articles", "Extract Invoice Data", "Comparediff --git a/evals/README.md b/evals/README.mdindex a9f97b4..51e4bae 100644--- a/evals/README.md+++ b/evals/README.md@@ -81,6 +81,7 @@ Business, repeatable knowledge-work patterns (`evals/scenarios/`):| `invoice-extract` | Extract invoice rows from a web table into a spreadsheet || `research-compile` | Research two articles and compile quotes into a note || `directory-lookup` | Collect contact details from a directory into a spreadsheet |+| `irrelevant-detour` | Research habit articles with a mid-task off-task recipe detour the intent rules out (Chrome + TextEdit) || `expense-report` | Reconcile card charges against receipts and file an expense report (Chrome + Preview + Expensify) || `release-notes` | Compile release notes from merged PRs, then version + deploy (Terminal + GitHub + editor) || `lead-to-crm` | Qualify inbound leads and enter them into the CRM (Mail + LinkedIn + Salesforce) |@@ -91,9 +92,16 @@ records, mix a native app with the browser and/or terminal, and end in a submitdeploy / commit step — stress-testing segmentation and app attribution beyond thesimple copy→paste flows.+`irrelevant-detour` guards a different judgment: a **confident intent must exclude+off-task activity**. Its stream is a clean habit-research flow with a brief hop to a+cooking-recipe page (a different host, so it segments into its own step) that has no+copy and no follow-up. Because the overall intent is unambiguous, the describer must+recognize the recipe detour as irrelevant and drop it — the rubric fails outright if+`recipe`/`allrecipes`/`cookie`/`chocolate` surfaces as a step title/app or in the intent.+Each also exercises the describer's judgment: **pastes are inferred** (a paste-emits no event), **recorder start/stop bracketing is dropped**, and **tracking-params are merged**.+emits no event), **recorder start/stop bracketing is dropped**, **tracking+params are merged**, and **off-task detours the intent rules out are excluded**.## Add a scenariodiff --git a/evals/scenarios/index.ts b/evals/scenarios/index.tsindex dfeec13..71634ff 100644--- a/evals/scenarios/index.ts+++ b/evals/scenarios/index.ts@@ -2,6 +2,7 @@ import type { Scenario } from "../scenario";import { directoryLookup } from "./directory-lookup";import { expenseReport } from "./expense-report";import { invoiceExtract } from "./invoice-extract";+import { irrelevantDetour } from "./irrelevant-detour";import { leadToCrm } from "./lead-to-crm";import { releaseNotes } from "./release-notes";import { researchCompile } from "./research-compile";@@ -14,6 +15,8 @@ export const scenarios: Scenario[] = [invoiceExtract,researchCompile,directoryLookup,+ // Intent-driven relevance: a confident intent must exclude an off-task detour.+ irrelevantDetour,// Complex, multi-app business processes:expenseReport,releaseNotes,diff --git a/evals/scenarios/irrelevant-detour.ts b/evals/scenarios/irrelevant-detour.tsnew file mode 100644index 0000000..d30fe53--- /dev/null+++ b/evals/scenarios/irrelevant-detour.ts@@ -0,0 +1,82 @@+// Scenario: a well-understood research intent with a mid-task OFF-TASK DETOUR+// that the intent rules out. The user researches habit articles (Google search+// -> two habit articles -> copy a quote from each -> paste into a note), but+// partway through takes a 2-second personal detour to a cooking-recipe page+// (allrecipes.com, no copy, no follow-up) before returning to the research.+//+// The recipe hop segments into its own step (URL-host change), but because the+// overall intent is clear and coherent, the describer must recognize it as an+// irrelevant detour and NOT emit it as a step. This guards the "Stay on-task:+// drop detours the intent rules out" instruction: a confident intent lets us+// exclude captured activity that plainly doesn't serve it.++import { appActivate, clipboard, recorder, visit, type Scenario } from "../scenario";++const CHROME = "Google Chrome";+const EDITOR = "TextEdit";++export const irrelevantDetour: Scenario = {+ id: "irrelevant-detour",+ title: "Research habit articles despite an off-task recipe detour",+ truth:+ "The user searched Google for material on building better habits, opened two articles " ++ "(James Clear's Atomic Habits page and a Zen Habits post) and copied a key sentence from " ++ "each, then switched to TextEdit to paste the quotes into a notes document. Midway through " ++ "they briefly (~2s) glanced at an unrelated chocolate-chip-cookie recipe on Allrecipes — no " ++ "copy, no follow-up — then returned to the research. That recipe hop is an off-task personal " ++ "detour that has nothing to do with the goal (research and compile habit quotes) and should " ++ "NOT appear as a step in the analysis.",+ build: () => [+ recorder(0),+ ...visit(+ 1500,+ CHROME,+ "https://www.google.com/search?q=building+better+habits",+ "building better habits - Google Search",+ ),+ ...visit(4200, CHROME, "https://jamesclear.com/atomic-habits", "Atomic Habits — James Clear"),+ clipboard(+ 7000,+ "You do not rise to the level of your goals. You fall to the level of your systems.",+ ),+ // --- Off-task detour: a quick personal recipe glance, no copy, ~2s. ---+ ...visit(+ 9000,+ CHROME,+ "https://www.allrecipes.com/recipe/10813/best-chocolate-chip-cookies/",+ "Best Chocolate Chip Cookies - Allrecipes",+ ),+ // --- Back on task. ---+ ...visit(11000, CHROME, "https://zenhabits.net/focus/", "The Power of Focus — Zen Habits"),+ clipboard(13800, "Focus on one habit at a time to make it stick."),+ appActivate(16800, EDITOR, "habits-notes.txt — Edited"), // paste both quotes (inferred)+ recorder(19000),+ ],+ rubric: {+ intentKeywordsAny: [+ ["research", "compile", "gather", "collect", "summar", "notes", "quote"],+ ["habit", "habits"],+ ],+ minSteps: 3,+ maxSteps: 7,+ expectedApps: ["chrome", "textedit"],+ orderedActions: [+ ["google", "search"],+ ["article", "atomic", "james clear", "jamesclear", "zen habits", "zenhabits", "read"],+ ["copy", "copied", "quote"],+ ["textedit", "note", "notes", "paste", "document"],+ ],+ mustMentionAny: [["quote", "sentence", "passage", "habit"]],+ // The recipe detour must not surface as a step (title/app) or in the intent.+ // Scoped to step titles/apps + intent, so the agent may still *explain* in a+ // step's detail or the rationale that it skipped an unrelated tangent.+ forbidden: [+ "recipe",+ "allrecipes",+ "cookie",+ "chocolate",+ "skill recorder",+ "usernotificationcenter",+ ],+ },+};