> For the complete documentation index, see [llms.txt](https://ai-os-and-trend-finder.gitbook.io/ai-os-and-trend-finder-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-os-and-trend-finder.gitbook.io/ai-os-and-trend-finder-docs/.spec_system/archive/sessions/phase27-session11-theme-rollups-and-outlier-ideas/tasks.md).

# Task Checklist

**Session ID**: `phase27-session11-theme-rollups-and-outlier-ideas` **Total Tasks**: 24 **Estimated Duration**: 3-4 hours **Created**: 2026-06-13

***

## Legend

* `[x]` = Completed
* `[ ]` = Pending
* `[P]` = Parallelizable (can run with other \[P] tasks)
* `[SNNMM]` = Session reference (NN=phase number, MM=session number)
* `TNNN` = Task ID

***

## Progress Summary

| Category       | Total  | Done   | Remaining |
| -------------- | ------ | ------ | --------- |
| Setup          | 3      | 3      | 0         |
| Foundation     | 6      | 6      | 0         |
| Implementation | 10     | 10     | 0         |
| Testing        | 5      | 5      | 0         |
| **Total**      | **24** | **24** | **0**     |

***

## Setup (3 tasks)

Initial configuration and environment preparation.

* [x] T001 \[S2711] Verify Session 11 prerequisites, source constraints, and no-embedding-dependency boundary (`.spec_system/PRD/phase_27/session_11_theme_rollups_and_outlier_ideas.md`)
* [x] T002 \[S2711] Confirm current focused test commands, Workbench targets, and cache regression targets (`package.json`)
* [x] T003 \[S2711] Create implementation-notes scaffold for session progress tracking (`.spec_system/specs/phase27-session11-theme-rollups-and-outlier-ideas/implementation-notes.md`)

***

## Foundation (6 tasks)

Core structures and base implementations.

* [x] T004 \[S2711] \[P] Create theme rollup helper for analyst label acceptance, keyword-overlap fallback, stable IDs, and deterministic ordering (`scripts/extensions/trend-finder/theme-rollups.ts`)
* [x] T005 \[S2711] \[P] Create outlier idea helper for top-N source-local outlier selection, fallback text, cache candidates, provenance, and bounds (`scripts/extensions/trend-finder/outlier-ideas.ts`)
* [x] T006 \[S2711] \[P] Extend Trend Finder schema with topic theme metadata and outlier idea fields using additive defaults and reference-safe parsing (`src/extensions/trend-finder/schema.ts`)
* [x] T007 \[S2711] \[P] Extend analyst contract for optional theme labels and outlier idea outputs with schema-validated input and explicit error mapping (`scripts/lib/ai-runtime/trend-analyst.ts`)
* [x] T008 \[S2711] \[P] Extend Workbench model contracts for theme groups, flat/grouped state, outlier idea labels, and deterministic search text (`src/extensions/trend-finder/signal-workbench-model.ts`)
* [x] T009 \[S2711] Create embedding fallback clustering ADR with investigated options and no-runtime-dependency recommendation (`docs/adr/0002-trend-finder-embedding-fallback-clustering.md`)

***

## Implementation (10 tasks)

Main feature implementation.

* [x] T010 \[S2711] Wire deterministic fallback theme labels into fallback topic generation without inventing source, metric, date, or URL references (`scripts/extensions/trend-finder/topics.ts`)
* [x] T011 \[S2711] Apply theme rollups through collector topic assembly with timeout-safe failure-path handling and bounded warning output (`scripts/extensions/trend-finder/collector.ts`)
* [x] T012 \[S2711] Merge analyst theme labels and outlier idea outputs with deterministic fallback and unknown-reference rejection (`scripts/lib/ai-runtime/trend-analyst.ts`)
* [x] T013 \[S2711] Wire top-N outlier idea candidate selection into the collector with bounded ordering and no new source calls (`scripts/extensions/trend-finder/collector.ts`)
* [x] T014 \[S2711] Reuse enrichment cache entries for unchanged outlier ideas with idempotency protection and sanitized summaries (`scripts/extensions/trend-finder/collector.ts`)
* [x] T015 \[S2711] Render Workbench theme group headers and grouped empty states with stable layout and revalidation on filter changes (`src/extensions/trend-finder/views/signal-workbench-view.tsx`)
* [x] T016 \[S2711] Add Workbench grouped/flat view controls with platform-appropriate accessibility labels, focus management, and input support (`src/extensions/trend-finder/components/signal-workbench-controls.tsx`)
* [x] T017 \[S2711] Render outlier idea details in Workbench rows with bounded text, provenance labels, and keyboard-accessible expanded content (`src/extensions/trend-finder/components/signal-workbench-table.tsx`)
* [x] T018 \[S2711] Project theme labels and outlier idea summaries through shared Trend Finder view models with exhaustive state handling (`src/extensions/trend-finder/view-model.ts`)
* [x] T019 \[S2711] Add bounded fixture coverage for theme labels, grouped rows, outlier ideas, and cache summary states (`src/extensions/trend-finder/fixtures.ts`)

***

## Testing (5 tasks)

Verification and quality assurance.

* [x] T020 \[S2711] \[P] Add focused theme helper tests for fallback labels, analyst label validation, stable IDs, deterministic ordering, and caps (`scripts/extensions/trend-finder/__tests__/theme-rollups.test.ts`)
* [x] T021 \[S2711] \[P] Add focused outlier idea and cache regression tests for top-N selection, cache hits, stale/skipped states, sanitized summaries, and bounds (`scripts/extensions/trend-finder/__tests__/outlier-ideas.test.ts`, `scripts/extensions/trend-finder/__tests__/enrichment-cache.test.ts`)
* [x] T022 \[S2711] \[P] Add schema and analyst tests for legacy defaults, invalid references, invented metadata rejection, theme labels, and outlier idea outputs (`src/lib/__tests__/trend-finder-schema.test.ts`, `scripts/lib/ai-runtime/__tests__/trend-analyst.test.ts`)
* [x] T023 \[S2711] \[P] Add collector and Workbench tests for theme publication, cache reuse, grouped/flat rendering, search, empty states, and outlier idea display (`scripts/extensions/trend-finder/__tests__/collector.test.ts`, `src/extensions/trend-finder/__tests__/signal-workbench-model.test.ts`, `src/extensions/trend-finder/components/__tests__/signal-workbench-view.test.tsx`)
* [x] T024 \[S2711] Run focused validation, typechecks, ASCII check, and record results in implementation notes (`.spec_system/specs/phase27-session11-theme-rollups-and-outlier-ideas/implementation-notes.md`)

***

## Completion Checklist

Before marking session complete:

* [x] All tasks marked `[x]`
* [x] All tests passing
* [x] All files ASCII-encoded
* [x] implementation-notes.md updated
* [x] Ready for the validate workflow step

***

## Next Steps

Run the validate workflow step to verify session completeness.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ai-os-and-trend-finder.gitbook.io/ai-os-and-trend-finder-docs/.spec_system/archive/sessions/phase27-session11-theme-rollups-and-outlier-ideas/tasks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
