> 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/phase29-session02-attention-pattern-and-polarity-grid/tasks.md).

# Task Checklist

**Session ID**: `phase29-session02-attention-pattern-and-polarity-grid` **Total Tasks**: 25 **Estimated Duration**: 4 hours **Created**: 2026-06-19

***

## 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          | 2      | 2      | 0         |
| Foundation     | 6      | 6      | 0         |
| Implementation | 9      | 9      | 0         |
| Testing        | 8      | 8      | 0         |
| **Total**      | **25** | **25** | **0**     |

***

## Setup (2 tasks)

Initial configuration and environment preparation.

* [x] T001 \[S2902] Verify Session 01 title-heuristic exports, source-breakdown role-share anchors, and fixture topic shapes before editing (`scripts/lib/ai-runtime/source-breakdown.ts`)
* [x] T002 \[S2902] Verify Trends header, static Brief projection, static renderer, and payload measurement anchors before editing (`src/extensions/trend-finder/views/trends-view.tsx`)

***

## Foundation (6 tasks)

Core structures and base implementations.

* [x] T003 \[S2902] \[P] Define `TREND_ATTENTION_PATTERNS`, `TrendAttentionPattern`, and `DEFAULT_TREND_ATTENTION_PATTERN` with legacy default parsing (`src/extensions/trend-finder/schema.ts`)
* [x] T004 \[S2902] \[P] Define deterministic attention derivation helper and precedence table from role shares plus Session 01 title heuristics (`scripts/lib/ai-runtime/source-breakdown.ts`)
* [x] T005 \[S2902] \[P] Define attention labels, tones, and reserved reception grid column projection (`src/extensions/trend-finder/view-model.ts`)
* [x] T006 \[S2902] \[P] Create reusable polarity/attention grid component with accessibility labels, bounded rows, and mobile-safe dimensions (`src/extensions/trend-finder/components/polarity-attention-grid.tsx`)
* [x] T007 \[S2902] \[P] Add fixture topics covering adoption, creator-hype, announcement, discourse, and unavailable states (`src/extensions/trend-finder/fixtures.ts`)
* [x] T008 \[S2902] \[P] Add static Brief report schema fields for the projected grid without exposing raw topic payload rows (`scripts/extensions/trend-finder/static-brief-export.ts`)

***

## Implementation (9 tasks)

Main feature implementation.

* [x] T009 \[S2902] Wire `attentionPattern` into topic derivation after role shares are computed with schema-validated input and explicit unavailable mapping (`scripts/lib/ai-runtime/source-breakdown.ts`)
* [x] T010 \[S2902] Add the `attentionPattern` field to `TrendTopicSchema` and `TrendTopic` typing with exhaustive enum handling (`src/extensions/trend-finder/schema.ts`)
* [x] T011 \[S2902] Project per-topic grid rows from movement, action verdict, attention pattern, and reserved reception state with deterministic ordering (`src/extensions/trend-finder/view-model.ts`)
* [x] T012 \[S2902] Render the polarity/attention grid in the Trends header with explicit loading, empty, error, and offline states (`src/extensions/trend-finder/views/trends-view.tsx`)
* [x] T013 \[S2902] Project static Brief grid rows from sanitized view-model fields with private-string redaction and bounded row counts (`scripts/extensions/trend-finder/static-brief-export.ts`)
* [x] T014 \[S2902] Render the static Brief grid HTML with escaped labels, no remote scripts, and no raw payload leakage (`scripts/extensions/trend-finder/static-brief-renderer.ts`)
* [x] T015 \[S2902] Include `attentionPattern` in payload pressure reporting and confirm the 1 MB extension payload boundary remains explicit (`scripts/extensions/trend-finder/measure-payload-size.ts`)
* [x] T016 \[S2902] Document attention-pattern derivation and distinction from action verdicts while keeping Session 03 reception explicitly deferred (`docs/extensions/trend-finder-scoring.md`)
* [x] T017 \[S2902] Document the Trends and static Brief polarity/attention grid with reserved reception behavior (`docs/extensions/trend-finder-ui-surfaces.md`)

***

## Testing (8 tasks)

Verification and quality assurance.

* [x] T018 \[S2902] \[P] Add source-breakdown tests for all states, role/title precedence, and unavailable fallback (`scripts/lib/ai-runtime/__tests__/source-breakdown.test.ts`)
* [x] T019 \[S2902] \[P] Add view-model tests for legacy defaults, labels, tones, ordering, and reserved reception (`src/extensions/trend-finder/__tests__/view-model.test.ts`)
* [x] T020 \[S2902] \[P] Add component tests for grid accessibility, empty state, long labels, and mobile-safe wrapping (`src/extensions/trend-finder/components/__tests__/polarity-attention-grid.test.tsx`)
* [x] T021 \[S2902] \[P] Add static Brief export tests for sanitized projected grid rows and privacy scan coverage (`scripts/extensions/trend-finder/__tests__/static-brief-export.test.ts`)
* [x] T022 \[S2902] \[P] Add static Brief renderer tests for escaped grid HTML, landmarks, bounded rows, and no private strings (`scripts/extensions/trend-finder/__tests__/static-brief-renderer.test.ts`)
* [x] T023 \[S2902] Add Playwright guard for the live Trends grid with desktop and mobile overflow checks (`tests/e2e/trend-finder.spec.ts`)
* [x] T024 \[S2902] Add Playwright guard for the exported static Brief grid and existing private-string checks (`tests/e2e/trend-finder-static-brief.spec.ts`)
* [x] T025 \[S2902] Run focused unit, e2e, payload-size, and ASCII checks for the session changes (`package.json`)

***

## 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/phase29-session02-attention-pattern-and-polarity-grid/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.
