:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals): scope scout learned entries and list fleet-wide told notes (#117597)
posthog[bot]3a5d6efe1569
diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.pyindex 302dcf19ac5a..378626427d5d 100644--- a/products/signals/backend/scout_harness/serializers.py+++ b/products/signals/backend/scout_harness/serializers.py@@ -1071,6 +1071,14 @@ class SearchMemoryQuerySerializer(serializers.Serializer):"asked for past the limit."),)+ skill_name = serializers.CharField(+ required=False,+ allow_blank=True,+ help_text=(+ "Return only the entries this writer created, matched against `created_by_skill` "+ "(a scout skill name or a `pipeline:*` identity). Omit to return entries from every writer."+ ),+ )date_from = serializers.DateTimeField(required=False,help_text="ISO-8601 inclusive lower bound on `updated_at`. Omit to skip the lower bound.",diff --git a/products/signals/backend/scout_harness/tools/scratchpad.py b/products/signals/backend/scout_harness/tools/scratchpad.pyindex 5e2793669abb..740400ff4aab 100644--- a/products/signals/backend/scout_harness/tools/scratchpad.py+++ b/products/signals/backend/scout_harness/tools/scratchpad.py@@ -25,6 +25,7 @@ from django.db.models.functions import Leftfrom django.utils import timezonefrom products.signals.backend.models import SignalScoutRun, SignalScratchpad+from products.signals.backend.scout_harness.note_targets import PIPELINE_AUDIENCE_PREFIXfrom products.signals.backend.scout_harness.prompt import FOLLOWUP_KEY_PREFIXfrom products.signals.backend.scout_harness.tools.runs import _build_task_url@@ -89,6 +90,7 @@ def search_scratchpad(team_id: int,text: str | None = None,key: str | None = None,+ skill_name: str | None = None,date_from: datetime | None = None,date_to: datetime | None = None,limit: int = DEFAULT_SCRATCHPAD_SEARCH_LIMIT,@@ -114,6 +116,10 @@ def search_scratchpad(across content *and* key means a key mentioned inside enough other bodies pushes therow you wanted past the limit.+ `skill_name` keeps the entries one writer created, the same writer `created_by_skill` names.+ A per-scout view needs this in SQL, because the newest rows across the fleet can fill the+ limit before one scout's entries appear. See `_creator_filter` for how it stays indexed.+`date_from` / `date_to` are a half-open window on `updated_at` (the entry'ssort key) — `updated_at >= date_from` and `updated_at < date_to`. Pass `date_to`(the `updated_at` of the oldest entry seen) to walk backwards past the result@@ -145,6 +151,8 @@ def search_scratchpad(qs = qs.filter(key=key)if text:qs = qs.filter(Q(content__icontains=text) | Q(key__icontains=text))+ if skill_name:+ qs = qs.filter(_creator_filter(team_id=team_id, skill_name=skill_name))if not include_expired:qs = qs.filter(Q(expires_at__isnull=True) | Q(expires_at__gt=timezone.now()))if date_from is not None:@@ -307,6 +315,20 @@ def _validate_entry(*, key: str, content: str, expires_at: datetime | None) -> N)+def _creator_filter(*, team_id: int, skill_name: str) -> Q:+ """Match one writer through an index rather than a scan of the team's whole history.++ A scout's entries are matched by their creating run: the `(team, skill_name)` run index finds+ the scout's runs, and the `created_by_run` foreign-key index finds their entries. Only a+ report-pipeline stage writes `created_by_identity`, and it has no run, so a `pipeline:*` name+ filters that column instead.+ """+ if skill_name.startswith(PIPELINE_AUDIENCE_PREFIX):+ return Q(created_by_run__isnull=True, created_by_identity=skill_name)+ run_ids = SignalScoutRun.objects.filter(team_id=team_id, skill_name=skill_name).values("id")+ return Q(created_by_run_id__in=run_ids)++def _clamp_search_limit(limit: int) -> int:if limit < 1:return 1diff --git a/products/signals/backend/scout_harness/trial_state.py b/products/signals/backend/scout_harness/trial_state.pyindex 81a2483eb9f6..7a2d57ed9a4e 100644--- a/products/signals/backend/scout_harness/trial_state.py+++ b/products/signals/backend/scout_harness/trial_state.py@@ -196,6 +196,7 @@ class ScoutTrialStore:*,text: str | None = None,key: str | None = None,+ skill_name: str | None = None,date_from: datetime | None = None,date_to: datetime | None = None,limit: int = DEFAULT_SCRATCHPAD_SEARCH_LIMIT,@@ -209,6 +210,8 @@ class ScoutTrialStore:for entry in entries:if key and entry.key != key:continue+ if skill_name and entry.created_by_skill != skill_name:+ continueif text and text.casefold() not in entry.key.casefold() and text.casefold() not in entry.content.casefold():continueif not include_expired and entry.expires_at and datetime.fromisoformat(entry.expires_at) <= now:diff --git a/products/signals/backend/scout_harness/views.py b/products/signals/backend/scout_harness/views.pyindex 3ee7c87849a3..4834e7dc6677 100644--- a/products/signals/backend/scout_harness/views.py+++ b/products/signals/backend/scout_harness/views.py@@ -2018,7 +2018,8 @@ class SignalScratchpadViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):summary="Search the scout scratchpad",description=("Return `SignalScratchpad` entries for this project, newest-first. ILIKE matches on `content` "- "and `key`; pass `key` instead for an exact single-entry lookup. "+ "and `key`; pass `key` instead for an exact single-entry lookup, and `skill_name` to keep the entries "+ "one scout (or `pipeline:*` stage) created. ""`date_from` / `date_to` are a half-open window on `updated_at` (`>= date_from`, ""`< date_to`); pass `date_to` (the `updated_at` of the oldest entry seen) on subsequent calls ""to walk past the cap. Entries whose `expires_at` has passed are excluded unless "@@ -2044,6 +2045,7 @@ class SignalScratchpadViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):**({} if private is not None else {"team_id": _canonical_team_id(self)}),text=text,key=validated.get("key") or None,+ skill_name=validated.get("skill_name") or None,date_from=date_from,date_to=date_to,limit=limit,diff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.pyindex 5b7dd8d7f082..758702d38866 100644--- a/products/signals/backend/test/test_scout_harness_api.py+++ b/products/signals/backend/test/test_scout_harness_api.py@@ -2329,6 +2329,17 @@ class TestScoutHarnessScratchpadAPI(APIBaseTest):assert SignalScratchpad.objects.filter(team=self.team, key="k1").count() == 1assert SignalScratchpad.objects.get(team=self.team, key="k1").content == "v2"+ def test_search_filters_by_creating_skill(self) -> None:+ errors_run = _make_run(self.team, skill_name="signals-scout-errors")+ flags_run = _make_run(self.team, skill_name="signals-scout-flags")+ SignalScratchpad.objects.create(team=self.team, key="errors", content="v", created_by_run=errors_run)+ SignalScratchpad.objects.create(team=self.team, key="flags", content="v", created_by_run=flags_run)++ response = self.client.get(self._list_url(), {"skill_name": "signals-scout-errors"})++ assert response.status_code == status.HTTP_200_OK+ assert [row["key"] for row in response.json()] == ["errors"]+def test_search_returns_team_entries(self) -> None:SignalScratchpad.objects.create(team=self.team, key="active", content="still relevant")SignalScratchpad.objects.create(team=self.team, key="another", content="more memory")diff --git a/products/signals/backend/test/test_scout_harness_tools.py b/products/signals/backend/test/test_scout_harness_tools.pyindex 0d69c319397d..430a3563d233 100644--- a/products/signals/backend/test/test_scout_harness_tools.py+++ b/products/signals/backend/test/test_scout_harness_tools.py@@ -754,6 +754,30 @@ class TestSearchScratchpad(BaseTest):# Matches on both content ('CHECKOUT' in k1) and key ('checkout-key').assert keys == {"k1", "checkout-key"}+ @parameterized.expand(+ [+ ("scout_run", "signals-scout-errors", ["errors"]),+ ("pipeline_identity", PIPELINE_AUDIENCE_REPORT_RESEARCH, ["research"]),+ ]+ )+ def test_skill_name_filter_applies_before_the_limit(self, _name: str, skill_name: str, expected: list[str]) -> None:+ remember(team_id=self.team.id, key="errors", content="v", run_id=str(_create_run(self.team).id))+ remember(+ team_id=self.team.id,+ key="flags",+ content="v",+ run_id=str(_create_run(self.team, skill_name="signals-scout-flags").id),+ )+ remember(team_id=self.team.id, key="research", content="v", identity=PIPELINE_AUDIENCE_REPORT_RESEARCH)+ remember(team_id=self.team.id, key="unattributed", content="v")+ SignalScratchpad.objects.filter(team=self.team, key="errors").update(+ updated_at=timezone.now() - timedelta(days=1)+ )++ results = search_scratchpad(team_id=self.team.id, skill_name=skill_name, limit=1)++ assert [e.key for e in results] == expected+def test_does_not_leak_memories_from_other_teams(self) -> None:from posthog.models import Teamdiff --git a/products/signals/backend/test/test_scout_trials_api.py b/products/signals/backend/test/test_scout_trials_api.pyindex 90f3fc75c012..2b807cae0c40 100644--- a/products/signals/backend/test/test_scout_trials_api.py+++ b/products/signals/backend/test/test_scout_trials_api.py@@ -102,6 +102,16 @@ class TestScoutTrialAPI(APIBaseTest):assert self.client.get(self.memory_url).json() == []assert SignalScratchpad.objects.filter(pk=original.pk).exists()+ def test_memory_search_filters_private_entries_by_creating_skill(self) -> None:+ self._as_trial()+ response = self.client.post(self.memory_url, {"key": "finding:private", "content": "Private value"})+ assert response.status_code == 200, response.data++ for skill_name, expected in ((self.trial_run.skill_name, ["finding:private"]), ("signals-scout-other", [])):+ response = self.client.get(self.memory_url, {"skill_name": skill_name})+ assert response.status_code == 200, response.data+ assert [row["key"] for row in response.json()] == expected+def test_note_search_filters_saved_content_before_preview_and_limit(self) -> None:saved_id = str(uuid4())self.context.notes = [diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 8ce593ec584f..2ad7f66448c6 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -8677,6 +8677,10 @@ export type SignalsScoutScratchpadSearchParams = {* @maximum 1000*/limit?: number+ /**+ * Return only the entries this writer created, matched against `created_by_skill` (a scout skill name or a `pipeline:*` identity). Omit to return entries from every writer.+ */+ skill_name?: string/*** ILIKE substring match against `content`. Omit to return the most recent entries.*/diff --git a/products/signals/frontend/generated/api.ts b/products/signals/frontend/generated/api.tsindex 950226932d63..61b71ac91121 100644--- a/products/signals/frontend/generated/api.ts+++ b/products/signals/frontend/generated/api.ts@@ -2823,7 +2823,7 @@ export const getSignalsScoutScratchpadSearchUrl = (projectId: string, params?: S}/**- * Return `SignalScratchpad` entries for this project, newest-first. ILIKE matches on `content` and `key`; pass `key` instead for an exact single-entry lookup. `date_from` / `date_to` are a half-open window on `updated_at` (`>= date_from`, `< date_to`); pass `date_to` (the `updated_at` of the oldest entry seen) on subsequent calls to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and are hard-deleted by a daily janitor once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan keys without pulling entry bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation scan from returning every entry's full prose. Results capped at 1000.+ * Return `SignalScratchpad` entries for this project, newest-first. ILIKE matches on `content` and `key`; pass `key` instead for an exact single-entry lookup, and `skill_name` to keep the entries one scout (or `pipeline:*` stage) created. `date_from` / `date_to` are a half-open window on `updated_at` (`>= date_from`, `< date_to`); pass `date_to` (the `updated_at` of the oldest entry seen) on subsequent calls to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and are hard-deleted by a daily janitor once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan keys without pulling entry bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation scan from returning every entry's full prose. Results capped at 1000.* @summary Search the scout scratchpad*/export const signalsScoutScratchpadSearch = async (diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.tsxindex 8e8425008812..56b7bf829f0a 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.tsx@@ -46,8 +46,9 @@ function isRailTab(tab: ScoutDetailTab): boolean {export function ScoutDetailView({ skillName }: { skillName: string }): JSX.Element {const { scoutConfigs, scoutConfigsLoading, rollups } = useValues(scoutFleetLogic)const { startRunsPolling, stopRunsPolling, loadScoutConfigs } = useActions(scoutFleetLogic)- const { entries } = useValues(scratchpadLogic)- const { scoutNotes } = useValues(scoutNotesLogic({ skillName }))+ const { scoutEntries } = useValues(scratchpadLogic)+ const { loadScoutEntries } = useActions(scratchpadLogic)+ const { toldCount } = useValues(scoutNotesLogic({ skillName }))const { touchedReports, emissionRows, scoutRunsLoadedOnce } = useValues(scoutDetailLogic({ skillName }))const { scoutDetailTab, isStaff } = useValues(inboxSceneLogic)const { currentTeamId } = useValues(teamLogic)@@ -78,9 +79,13 @@ export function ScoutDetailView({ skillName }: { skillName: string }): JSX.Elemereturn () => stopRunsPolling()}, [startRunsPolling, stopRunsPolling])+ useEffect(() => {+ loadScoutEntries(skillName)+ }, [skillName, loadScoutEntries])+const config = scoutConfigs?.find((c) => c.skill_name === skillName) ?? nullconst rollup = rollups.get(skillName)- const learnedCount = entriesForSkill(entries, skillName).length+ const learnedCount = entriesForSkill(scoutEntries, skillName)?.length ?? 0const reportCount = touchedReports.lengthconst canAccessTrials = isStaff && currentTeamId === 2// Reports leads for a scout that files them, because that is what the scout is for; Runs leads@@ -215,7 +220,7 @@ export function ScoutDetailView({ skillName }: { skillName: string }): JSX.Eleme},]const railTabs = [- { key: 'told' as ScoutDetailTab, label: `Told ${scoutNotes.length}` },+ { key: 'told' as ScoutDetailTab, label: `Told ${toldCount}` },{ key: 'learned' as ScoutDetailTab, label: `Learned ${learnedCount}` },]@@ -235,12 +240,7 @@ export function ScoutDetailView({ skillName }: { skillName: string }): JSX.Elemereturn (<div className="@container flex min-h-0 flex-1 flex-col overflow-auto">- <ScoutDetailHeader- config={config}- rollup={rollup}- noteCount={scoutNotes.length}- learnedCount={learnedCount}- />+ <ScoutDetailHeader config={config} rollup={rollup} noteCount={toldCount} learnedCount={learnedCount} /><ScoutAskAiComposer skillName={skillName} scoutName={scoutDisplayName(config)} /><div className="grid grid-cols-1 items-start gap-4 px-4 py-4 @4xl:grid-cols-[minmax(0,1fr)_20rem]">diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutLearnedPanel.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutLearnedPanel.tsxindex af586603627c..9a60e3eb94e2 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutLearnedPanel.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutLearnedPanel.tsx@@ -17,33 +17,34 @@ const INITIAL_VISIBLE = 3* scout that looks like a cron job and one that visibly gets better at its job.*/export function ScoutLearnedPanel({ skillName }: { skillName: string }): JSX.Element {- const { entries, entriesLoading, loadFailed } = useValues(scratchpadLogic)- const { loadEntries } = useActions(scratchpadLogic)+ const { scoutEntries, scoutEntriesLoadFailed } = useValues(scratchpadLogic)+ const { loadScoutEntries } = useActions(scratchpadLogic)const { setScratchpadOpen } = useActions(inboxSceneLogic)const [showAll, setShowAll] = useState(false)- if (entriesLoading && entries === null) {- return <LemonSkeleton className="h-16 w-full rounded" />- }+ const entries = entriesForSkill(scoutEntries, skillName)// A failed load is not an empty memory: say so, rather than silently showing nothing.- if (loadFailed && entries === null) {+ if (scoutEntriesLoadFailed && entries === null) {return (<div className="flex flex-col items-center gap-2 rounded border border-danger bg-danger-highlight px-4 py-6 text-center text-sm text-danger"><span>Couldn't load what this scout has learned.</span>- <LemonButton size="xsmall" type="secondary" onClick={() => loadEntries()}>+ <LemonButton size="xsmall" type="secondary" onClick={() => loadScoutEntries(skillName)}>Try again</LemonButton></div>)}- const scoutEntries = entriesForSkill(entries, skillName)- const visible = showAll ? scoutEntries : scoutEntries.slice(0, INITIAL_VISIBLE)+ if (entries === null) {+ return <LemonSkeleton className="h-16 w-full rounded" />+ }++ const visible = showAll ? entries : entries.slice(0, INITIAL_VISIBLE)return (<div className="flex flex-col gap-2">- {scoutEntries.length === 0 ? (+ {entries.length === 0 ? (<div className="rounded border border-dashed border-primary bg-surface-primary px-4 py-6 text-center text-sm text-muted">Nothing yet. Scouts write here when they settle on a baseline or rule something out.</div>@@ -52,14 +53,14 @@ export function ScoutLearnedPanel({ skillName }: { skillName: string }): JSX.Ele{visible.map((entry) => (<ScratchpadEntryCard key={entry.key} entry={entry} titled />))}- {scoutEntries.length > visible.length && (+ {entries.length > visible.length && (<LemonButtonsize="xsmall"type="tertiary"className="self-start"onClick={() => setShowAll(true)}>- Show all {pluralize(scoutEntries.length, 'entry', 'entries')}+ Show all {pluralize(entries.length, 'entry', 'entries')}</LemonButton>)}</>diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.test.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.test.tsxindex f4d394cdd588..78afe33860ef 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.test.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.test.tsx@@ -49,6 +49,29 @@ describe('ScoutNotesPanel', () => {expect(getByText(new RegExp(TAIL))).toBeTruthy()})+ it('lists a fleet-wide note under its own label', async () => {+ useMocks({+ get: {+ '/api/projects/:team/signals/scout/notes/': [+ {+ id: 'note-fleet',+ content: 'Ignore traffic from the staging domain.',+ origin: 'human',+ skill_name: '',+ created_by_name: 'Someone',+ created_at: '2026-08-20T10:00:00Z',+ expires_at: null,+ },+ ],+ },+ })++ const { findByText, getByText } = render(<ScoutNotesPanel skillName={SKILL_NAME} />)++ expect(await findByText('Ignore traffic from the staging domain.')).toBeTruthy()+ expect(getByText('For every scout')).toBeTruthy()+ })+it('offers a retry once a load that never settles times out', async () => {useMocks({ get: { '/api/projects/:team/signals/scout/notes/': () => new Promise(() => {}) } })jest.useFakeTimers()diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.tsxindex d123202acddd..35aec44b8122 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutNotesPanel.tsx@@ -139,71 +139,109 @@ export function LeaveScoutNoteButton({*/export function ScoutNotesPanel({ skillName }: { skillName: string }): JSX.Element {const logic = scoutNotesLogic({ skillName })- const { scoutNotes, fleetWideNotes, notesLoading, notesLoadFailed, notesCapped } = useValues(logic)+ const { scoutNotes, fleetWideNotes, toldCount, notesLoading, notesLoadFailed, notesCapped } = useValues(logic)const { deleteNote, loadNotes } = useActions(logic)const { reportRows } = useValues(scoutDetailLogic({ skillName }))- const [showAll, setShowAll] = useState(false)- const visible = showAll ? scoutNotes : scoutNotes.slice(0, 4)- const otherFleetNotes = skillName ? fleetWideNotes.filter((note) => !scoutNotes.includes(note)) : []+ // On the fleet view every note is already in `scoutNotes`.+ const otherFleetNotes = skillName ? fleetWideNotes : []// Reports this scout touched in the window, so a note naming one by id can name it by title.const reportsById = new Map(reportRows.map(({ report }) => [report.id.toLowerCase(), report]))return (<div className="flex flex-col gap-2">- {notesLoading && scoutNotes.length === 0 ? (+ {notesLoading && toldCount === 0 ? (<div className="rounded border border-primary bg-surface-primary px-4 py-6 text-center text-sm text-muted">Loading notes…</div>- ) : notesLoadFailed && scoutNotes.length === 0 ? (+ ) : notesLoadFailed && toldCount === 0 ? (<div className="flex flex-col items-center gap-2 rounded border border-danger bg-danger-highlight px-4 py-6 text-center text-sm text-danger"><span>Couldn't load the notes.</span><LemonButton size="xsmall" type="secondary" onClick={() => loadNotes()}>Try again</LemonButton></div>- ) : scoutNotes.length === 0 ? (+ ) : toldCount === 0 ? (<div className="rounded border border-dashed border-primary bg-surface-primary px-4 py-6 text-center text-sm text-muted">Nothing yet. Leave a note to steer what this scout looks at, or dismiss one of its reports with areason, and that reaches it too.</div>) : (- <div className="flex flex-col rounded border border-primary bg-surface-primary">- {visible.map((note) => (- <ScoutNoteRow- key={note.id}- note={note}- content={linkReportIdsInNote(note.content, reportsById, {- truncateUnmatched: !isDirectScoutNote(note),- })}- onDelete={() => deleteNote(note.id)}+ <>+ {scoutNotes.length > 0 && (+ <ScoutNoteList+ notes={scoutNotes}+ reportsById={reportsById}+ capped={notesCapped}+ onDelete={deleteNote}/>- ))}- {scoutNotes.length > visible.length && (- <div className="border-t border-primary px-3 py-2">- <LemonButton size="xsmall" type="tertiary" onClick={() => setShowAll(true)}>- Show all {pluralize(scoutNotes.length, 'note')}- </LemonButton>- </div>)}- {showAll && notesCapped && (- <span className="border-t border-primary px-3 py-2 text-[11px] text-muted">- Showing the newest {NOTES_FETCH_LIMIT} notes.- </span>+ {/* A note addressed to every scout reaches this one too, but it is not about this+ scout, so it sits under its own label rather than in the list above. */}+ {otherFleetNotes.length > 0 && (+ <div className="flex flex-col gap-1">+ <span className="text-xs font-semibold text-secondary">For every scout</span>+ <ScoutNoteList+ notes={otherFleetNotes}+ reportsById={reportsById}+ capped={notesCapped}+ onDelete={deleteNote}+ />+ </div>)}- </div>+ </>)}<span className="text-xs text-muted">New notes are picked up on the next run and folded into what it has learned. Delete a note once it hasdone its job.- {otherFleetNotes.length > 0 &&- ` ${pluralize(otherFleetNotes.length, 'note')} addressed to every scout applies here too.`}</span></div>)}+function ScoutNoteList({+ notes,+ reportsById,+ capped,+ onDelete,+}: {+ notes: ScoutNoteApi[]+ reportsById: Map<string, { id: string; title: string | null }>+ capped: boolean+ onDelete: (noteId: string) => void+}): JSX.Element {+ const [showAll, setShowAll] = useState(false)+ const visible = showAll ? notes : notes.slice(0, 4)++ return (+ <div className="flex flex-col rounded border border-primary bg-surface-primary">+ {visible.map((note) => (+ <ScoutNoteRow+ key={note.id}+ note={note}+ content={linkReportIdsInNote(note.content, reportsById, {+ truncateUnmatched: !isDirectScoutNote(note),+ })}+ onDelete={() => onDelete(note.id)}+ />+ ))}+ {notes.length > visible.length && (+ <div className="border-t border-primary px-3 py-2">+ <LemonButton size="xsmall" type="tertiary" onClick={() => setShowAll(true)}>+ Show all {pluralize(notes.length, 'note')}+ </LemonButton>+ </div>+ )}+ {showAll && capped && (+ <span className="border-t border-primary px-3 py-2 text-[11px] text-muted">+ Showing the newest {NOTES_FETCH_LIMIT} notes.+ </span>+ )}+ </div>+ )+}+function ScoutNoteRow({note,content,diff --git a/products/signals/frontend/inbox/logics/scoutNotesLogic.ts b/products/signals/frontend/inbox/logics/scoutNotesLogic.tsindex d5f8f3db9b38..93cf418cf11d 100644--- a/products/signals/frontend/inbox/logics/scoutNotesLogic.ts+++ b/products/signals/frontend/inbox/logics/scoutNotesLogic.ts@@ -63,6 +63,7 @@ export interface scoutNotesLogicValues {retiredNoteIds: string[]savingNote: booleanscoutNotes: ScoutNoteApi[]+ toldCount: number}// Generated by kea-typegen. Update if you're an agent, ignore if you're human.@@ -108,6 +109,7 @@ export interface scoutNotesLogicMeta {scoutNotes: (activeNotes: ScoutNoteApi[], arg: any) => ScoutNoteApi[]fleetWideNotes: (activeNotes: ScoutNoteApi[]) => ScoutNoteApi[]directNotes: (activeNotes: ScoutNoteApi[]) => ScoutNoteApi[]+ toldCount: (scoutNotes: ScoutNoteApi[], fleetWideNotes: ScoutNoteApi[], arg: any) => number}}@@ -230,6 +232,13 @@ export const scoutNotesLogic = kea<scoutNotesLogicType>([(s) => [s.activeNotes],(activeNotes: ScoutNoteApi[]): ScoutNoteApi[] => activeNotes.filter(isDirectScoutNote),],+ // Every note this scout reads on its next run: its own plus the fleet-wide ones. The Told+ // tab and the health strip both show this number, so it matches what the panel lists.+ toldCount: [+ (s) => [s.scoutNotes, s.fleetWideNotes, (_, props) => props],+ (scoutNotes: ScoutNoteApi[], fleetWideNotes: ScoutNoteApi[], props: ScoutNotesLogicProps): number =>+ props.skillName ? scoutNotes.length + fleetWideNotes.length : scoutNotes.length,+ ],}),listeners(({ actions, props }) => ({diff --git a/products/signals/frontend/inbox/logics/scratchpadLogic.test.ts b/products/signals/frontend/inbox/logics/scratchpadLogic.test.tsindex e46a2405155f..0cc50512ffcc 100644--- a/products/signals/frontend/inbox/logics/scratchpadLogic.test.ts+++ b/products/signals/frontend/inbox/logics/scratchpadLogic.test.ts@@ -16,6 +16,7 @@ import {SCRATCHPAD_FETCH_LIMIT,SCRATCHPAD_PREVIEW_CHARS,describeLoadedSpan,+ entriesForSkill,scratchpadLogic,} from './scratchpadLogic'@@ -35,6 +36,9 @@ const TRUNCATED = entry('pattern:long', 'x'.repeat(SCRATCHPAD_PREVIEW_CHARS))const ALSO_TRUNCATED = entry('pattern:also-long', 'y'.repeat(SCRATCHPAD_PREVIEW_CHARS))const WHOLE = entry('pattern:short', 'a short note')const fullBodyFor = (key: string): string => `${key} full body, tail included`+const SCOUT = 'signals-scout-daily-digest'+// Only the per-scout read returns this entry, as on a busy project where it sits outside the window.+const SCOUT_ONLY = entry('pattern:scout-only', 'z'.repeat(SCRATCHPAD_PREVIEW_CHARS))describe('scratchpadLogic', () => {let logic: ReturnType<typeof scratchpadLogic.build>@@ -52,6 +56,9 @@ describe('scratchpadLogic', () => {if (key) {return [200, [entry(key, fullBodyFor(key))]]}+ if (params.get('skill_name')) {+ return [200, [SCOUT_ONLY]]+ }return [200, [TRUNCATED, ALSO_TRUNCATED, WHOLE]]},},@@ -78,6 +85,20 @@ describe('scratchpadLogic', () => {expect(searchRequests[0].get('content_max_chars')).toEqual(String(SCRATCHPAD_PREVIEW_CHARS))})+ it('reads one scout from the server and expands an entry the shared window does not hold', async () => {+ logic.actions.loadScoutEntries(SCOUT)+ await expectLogic(logic).toFinishAllListeners()++ expect(searchRequests[0].get('skill_name')).toEqual(SCOUT)+ expect(entriesForSkill(logic.values.scoutEntries, SCOUT)).toEqual([SCOUT_ONLY])+ expect(entriesForSkill(logic.values.scoutEntries, 'signals-scout-other')).toBeNull()++ logic.actions.toggleEntry(SCOUT_ONLY.key)+ await expectLogic(logic).toFinishAllListeners()++ expect(logic.values.fullContentByKey[SCOUT_ONLY.key]).toEqual(fullBodyFor(SCOUT_ONLY.key))+ })+it('fetches the full body by exact key when a truncated entry is expanded', async () => {logic.actions.toggleEntry(TRUNCATED.key)await expectLogic(logic).toFinishAllListeners()@@ -129,8 +150,8 @@ describe('scratchpadLogic', () => {expect(logic.values.expandedKeys).toEqual([TRUNCATED.key])})- // The roster's "learned" count and the scout page's memory panel read `entries`; a fleet search- // must land somewhere else or it silently shrinks a scout's memory until the next reload.+ // The roster's "learned" count reads `entries`; a fleet search must land somewhere else or it+ // silently shrinks that count until the next reload.it('keeps the unfiltered window intact while a search runs', async () => {useMocks({get: {@@ -179,9 +200,8 @@ describe('scratchpadLogic', () => {expect(logic.values.recentlyLearnedCountCapped).toBe(false)})- // Ledger filters narrow what is listed and nothing else. The roster's "learned" count and the- // scout page's memory panel read `entries`, so a filter that reached them would silently shrink- // numbers the reader never asked about.+ // Ledger filters narrow what is listed and nothing else. The roster's "learned" count reads+ // `entries`, so a filter that reached it would silently shrink a number the reader never asked about.it('combines the client-side filters and leaves the loaded window intact', async () => {const rows = [{ ...entry('pattern:apm:p95', 'note'), created_by_skill: 'signals-scout-apm' },diff --git a/products/signals/frontend/inbox/logics/scratchpadLogic.ts b/products/signals/frontend/inbox/logics/scratchpadLogic.tsindex 6de40b8ec7ff..ce99d60e1996 100644--- a/products/signals/frontend/inbox/logics/scratchpadLogic.ts+++ b/products/signals/frontend/inbox/logics/scratchpadLogic.ts@@ -73,14 +73,23 @@ export function isPreviewTruncated(content: string | null | undefined): booleanreturn (content?.length ?? 0) >= SCRATCHPAD_PREVIEW_CHARS}+/** One scout's own entries, tagged with the scout they were read for. */+export interface ScoutScratchpadEntries {+ skillName: string+ entries: ScratchpadEntryApi[]+}+/**- * The notes one scout wrote, newest first. The search endpoint has no per-scout filter, but every- * entry carries the skill that created it, so the scout page narrows the already-loaded project- * window rather than issuing a second read. Always fed the unfiltered `entries`, never search- * results: a scout's memory shouldn't shrink because someone typed in the fleet search box.+ * The entries one scout wrote, newest first, or null until a read for that scout has landed. The+ * server filters on the writer, because on a busy project the newest rows across the fleet can+ * fill the shared window before one scout's entries appear. The tag keeps a read for the previous+ * scout from answering for this one.*/-export function entriesForSkill(entries: ScratchpadEntryApi[] | null, skillName: string): ScratchpadEntryApi[] {- return (entries ?? []).filter((entry) => entry.created_by_skill === skillName)+export function entriesForSkill(+ scoutEntries: ScoutScratchpadEntries | null,+ skillName: string+): ScratchpadEntryApi[] | null {+ return scoutEntries?.skillName === skillName ? scoutEntries.entries : null}/**@@ -166,6 +175,9 @@ export interface scratchpadLogicValues {recentlyLearnedCount: numberrecentlyLearnedCountCapped: booleanreportTitles: Record<string, string | null>+ scoutEntries: ScoutScratchpadEntries | null+ scoutEntriesLoadFailed: boolean+ scoutEntriesLoading: booleanscoutFacets: ScratchpadFacet[]scoutFilter: string[]searchFailed: boolean@@ -224,6 +236,27 @@ export interface scratchpadLogicActions {}loadOlderEntries: () => {}loadOlderEntriesFailure: () => {}+ loadScoutEntries: (skillName: string) => string+ loadScoutEntriesFailure: (+ error: string,+ errorObject?: any+ ) => {+ error: string+ errorObject?: any+ }+ loadScoutEntriesSuccess: (+ scoutEntries: {+ entries: ScratchpadEntryApi[]+ skillName: string+ },+ payload?: string+ ) => {+ scoutEntries: {+ entries: ScratchpadEntryApi[]+ skillName: string+ }+ payload?: string+ }loadSearchResults: (_payload: void) => voidloadSearchResultsFailure: (error: string,@@ -333,10 +366,10 @@ export type scratchpadLogicType = MakeLogicType<* There is no write surface on purpose — humans inspect this memory; only the harness* (internal-scope) writes it.*- * `entries` is always the unfiltered first page: the roster's "learned" headline and the scout- * page's memory panel read it, and neither a search nor a ledger filter may shrink those. A- * search lands in `searchResults`, older pages land in `olderEntries`, and the ledger reads- * `filteredEntries` on top of whichever applies.+ * `entries` is always the unfiltered first page: the roster's "learned" headline reads it, and+ * neither a search nor a ledger filter may shrink it. A search lands in `searchResults`, older+ * pages land in `olderEntries`, and the ledger reads `filteredEntries` on top of whichever applies.+ * The scout page reads its own scout's entries from `scoutEntries`.*/export const scratchpadLogic = kea<scratchpadLogicType>([path(['scenes', 'inbox', 'logics', 'scratchpadLogic']),@@ -393,6 +426,34 @@ export const scratchpadLogic = kea<scratchpadLogicType>([},},],+ scoutEntries: [+ null as ScoutScratchpadEntries | null,+ {+ loadScoutEntries: async (skillName: string, breakpoint) => {+ const teamId = teamLogic.values.currentTeamId+ if (!teamId) {+ return { skillName, entries: [] }+ }+ const entries = await withPanelLoadTimeout('scout_memory', (options) =>+ signalsScoutScratchpadSearch(+ String(teamId),+ {+ skill_name: skillName,+ limit: SCRATCHPAD_FETCH_LIMIT,+ content_max_chars: SCRATCHPAD_PREVIEW_CHARS,+ },+ options+ )+ ).catch((error: unknown) => {+ breakpoint()+ throw error+ })+ // Drop a stale response if the reader opened another scout while this was in flight.+ breakpoint()+ return { skillName, entries }+ },+ },+ ],searchResults: [null as ScratchpadEntryApi[] | null,{@@ -448,6 +509,14 @@ export const scratchpadLogic = kea<scratchpadLogicType>([loadEntriesFailure: () => true,},],+ scoutEntriesLoadFailed: [+ false,+ {+ loadScoutEntries: () => false,+ loadScoutEntriesSuccess: () => false,+ loadScoutEntriesFailure: () => true,+ },+ ],searchFailed: [false,{@@ -810,9 +879,13 @@ export const scratchpadLogic = kea<scratchpadLogicType>([if (Object.hasOwn(values.fullContentByKey, key) || values.loadingContentKeys.includes(key)) {return}- // A row can sit in either list (the scout page renders from the window while a search- // may still be typed in the panel), so look in both.- const entry = [...(values.windowEntries ?? []), ...(values.searchResults ?? [])].find((e) => e.key === key)+ // A row can sit in any of these lists (the scout page renders its own read while a+ // search may still be typed in the panel), so look in all of them.+ const entry = [+ ...(values.windowEntries ?? []),+ ...(values.searchResults ?? []),+ ...(values.scoutEntries?.entries ?? []),+ ].find((e) => e.key === key)if (entry && isPreviewTruncated(entry.content)) {actions.loadFullContent(key)}diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex 4af51dcf2dc7..62bf8136b107 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -1425,7 +1425,8 @@ tools:your own key prefix. Each result carries `created_by_skill`, naming the entry's original creator — a scout'sskill name or a pipeline stage (`pipeline:report-research`, `pipeline:implementation`); an upsert keeps thecreator, so the last writer can differ. Pass `text` for a case-insensitive substring match on the entry's- `content` and `key`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on+ `content` and `key`. Pass `skill_name` to keep only the entries one creator wrote, matched against+ `created_by_skill`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on`updated_at`) to scope to a window — set `date_to` to the `updated_at` of the oldest entry from the priorpage to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`,and a daily janitor hard-deletes them once their expiry is more than two weeks in the past. Passdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 64a29d2efb96..35aaf63cec99 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -11713,7 +11713,7 @@}},"scout-scratchpad-search": {- "description": "Return `SignalScratchpad` entries for this project, newest first. The keyspace is shared by every agent that runs here — the scouts and the report pipeline's research and implementation stages — so search the identity of the thing you care about (an error id, a flag key, a page path, a file path, an event name) and not only your own key prefix. Each result carries `created_by_skill`, naming the entry's original creator — a scout's skill name or a pipeline stage (`pipeline:report-research`, `pipeline:implementation`); an upsert keeps the creator, so the last writer can differ. Pass `text` for a case-insensitive substring match on the entry's `content` and `key`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `updated_at`) to scope to a window — set `date_to` to the `updated_at` of the oldest entry from the prior page to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and a daily janitor hard-deletes them once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan which memories exist without pulling their (potentially large) bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation/dedupe scan from returning every entry's full prose. Results capped at 1000.",+ "description": "Return `SignalScratchpad` entries for this project, newest first. The keyspace is shared by every agent that runs here — the scouts and the report pipeline's research and implementation stages — so search the identity of the thing you care about (an error id, a flag key, a page path, a file path, an event name) and not only your own key prefix. Each result carries `created_by_skill`, naming the entry's original creator — a scout's skill name or a pipeline stage (`pipeline:report-research`, `pipeline:implementation`); an upsert keeps the creator, so the last writer can differ. Pass `text` for a case-insensitive substring match on the entry's `content` and `key`. Pass `skill_name` to keep only the entries one creator wrote, matched against `created_by_skill`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `updated_at`) to scope to a window — set `date_to` to the `updated_at` of the oldest entry from the prior page to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and a daily janitor hard-deletes them once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan which memories exist without pulling their (potentially large) bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation/dedupe scan from returning every entry's full prose. Results capped at 1000.","category": "Signals","feature": "signals","summary": "Search the fleet scratchpad",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 2abb6cce0fe6..e211bbcd8401 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -12315,7 +12315,7 @@}},"scout-scratchpad-search": {- "description": "Return `SignalScratchpad` entries for this project, newest first. The keyspace is shared by every agent that runs here — the scouts and the report pipeline's research and implementation stages — so search the identity of the thing you care about (an error id, a flag key, a page path, a file path, an event name) and not only your own key prefix. Each result carries `created_by_skill`, naming the entry's original creator — a scout's skill name or a pipeline stage (`pipeline:report-research`, `pipeline:implementation`); an upsert keeps the creator, so the last writer can differ. Pass `text` for a case-insensitive substring match on the entry's `content` and `key`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `updated_at`) to scope to a window — set `date_to` to the `updated_at` of the oldest entry from the prior page to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and a daily janitor hard-deletes them once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan which memories exist without pulling their (potentially large) bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation/dedupe scan from returning every entry's full prose. Results capped at 1000.",+ "description": "Return `SignalScratchpad` entries for this project, newest first. The keyspace is shared by every agent that runs here — the scouts and the report pipeline's research and implementation stages — so search the identity of the thing you care about (an error id, a flag key, a page path, a file path, an event name) and not only your own key prefix. Each result carries `created_by_skill`, naming the entry's original creator — a scout's skill name or a pipeline stage (`pipeline:report-research`, `pipeline:implementation`); an upsert keeps the creator, so the last writer can differ. Pass `text` for a case-insensitive substring match on the entry's `content` and `key`. Pass `skill_name` to keep only the entries one creator wrote, matched against `created_by_skill`. Pass `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `updated_at`) to scope to a window — set `date_to` to the `updated_at` of the oldest entry from the prior page to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and a daily janitor hard-deletes them once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan which memories exist without pulling their (potentially large) bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation/dedupe scan from returning every entry's full prose. Results capped at 1000.","category": "Signals","feature": "signals","summary": "Search the fleet scratchpad",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 6e69ff4823b5..ebbdcd217c16 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -132139,6 +132139,10 @@ export namespace Schemas {* @maximum 1000*/limit?: number;+ /**+ * Return only the entries this writer created, matched against `created_by_skill` (a scout skill name or a `pipeline:*` identity). Omit to return entries from every writer.+ */+ skill_name?: string;/*** ILIKE substring match against `content`. Omit to return the most recent entries.*/diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex d1d9ac061a01..17aa958e7dce 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -3781,7 +3781,7 @@ export const SignalsScoutReportCheckListQueryParams = () => zod.object({})/**- * Return `SignalScratchpad` entries for this project, newest-first. ILIKE matches on `content` and `key`; pass `key` instead for an exact single-entry lookup. `date_from` / `date_to` are a half-open window on `updated_at` (`>= date_from`, `< date_to`); pass `date_to` (the `updated_at` of the oldest entry seen) on subsequent calls to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and are hard-deleted by a daily janitor once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan keys without pulling entry bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation scan from returning every entry's full prose. Results capped at 1000.+ * Return `SignalScratchpad` entries for this project, newest-first. ILIKE matches on `content` and `key`; pass `key` instead for an exact single-entry lookup, and `skill_name` to keep the entries one scout (or `pipeline:*` stage) created. `date_from` / `date_to` are a half-open window on `updated_at` (`>= date_from`, `< date_to`); pass `date_to` (the `updated_at` of the oldest entry seen) on subsequent calls to walk past the cap. Entries whose `expires_at` has passed are excluded unless `include_expired=true`, and are hard-deleted by a daily janitor once their expiry is more than two weeks in the past. Pass `keys_only=true` to scan keys without pulling entry bodies, or `content_max_chars` to cap each `content` to a preview — both keep a wide orientation scan from returning every entry's full prose. Results capped at 1000.* @summary Search the scout scratchpad*/export const SignalsScoutScratchpadSearchParams = () => zod.object({@@ -3840,6 +3840,12 @@ export const SignalsScoutScratchpadSearchQueryParams = () => zod.object({.max(signalsScoutScratchpadSearchQueryLimitMax).optional().describe('Max rows to return (default 20, hard cap 1000).'),+ skill_name: zod+ .string()+ .optional()+ .describe(+ 'Return only the entries this writer created, matched against `created_by_skill` (a scout skill name or a `pipeline:\*` identity). Omit to return entries from every writer.'+ ),text: zod.string().optional()diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.tsindex 61cf32ae61cb..a303584380f8 100644--- a/services/mcp/src/tools/generated/signals.ts+++ b/services/mcp/src/tools/generated/signals.ts@@ -2160,6 +2160,7 @@ const scoutScratchpadSearch = (): ToolBase<key: params.key,keys_only: params.keys_only,limit: params.limit,+ skill_name: params.skill_name,text: params.text,},})@@ -3187,6 +3188,7 @@ const signalsScoutScratchpadSearch = (): ToolBase<key: params.key,keys_only: params.keys_only,limit: params.limit,+ skill_name: params.skill_name,text: params.text,},})diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-scratchpad-search.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-scratchpad-search.jsonindex b1213b292ba5..9a3e178ed206 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-scratchpad-search.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-scratchpad-search.json@@ -38,6 +38,10 @@"minimum": 1,"type": "number"},+ "skill_name": {+ "description": "Return only the entries this writer created, matched against `created_by_skill` (a scout skill name or a `pipeline:*` identity). Omit to return entries from every writer.",+ "type": "string"+ },"text": {"description": "ILIKE substring match against `content`. Omit to return the most recent entries.","type": "string"diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.jsonindex b1213b292ba5..9a3e178ed206 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json@@ -38,6 +38,10 @@"minimum": 1,"type": "number"},+ "skill_name": {+ "description": "Return only the entries this writer created, matched against `created_by_skill` (a scout skill name or a `pipeline:*` identity). Omit to return entries from every writer.",+ "type": "string"+ },"text": {"description": "ILIKE substring match against `content`. Omit to return the most recent entries.","type": "string"