> 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/phase28-session02-signal-quality-score-and-collection-health/tasks.md).

# Task Checklist

**Session ID**: `phase28-session02-signal-quality-score-and-collection-health` **Total Tasks**: 24 **Estimated Duration**: 3-4 hours **Created**: 2026-06-14

***

## 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 \[S2802] Verify Session 01 dedup, syndication, and validation outputs before consuming duplicate counters (`.spec_system/specs/phase28-session01-cross-source-signal-identity-and-dedup/validation.md`)
* [x] T002 \[S2802] Verify Trends-Finderz quality-score and scan-health reference behavior for bounded local adaptation (`EXAMPLES/trends-finderz/lib/signals/signal-fingerprint.ts`)
* [x] T003 \[S2802] Inspect current Trend Finder source quality, collector, scoring, schema, Sources view, and Engine Replay baselines before editing (`scripts/extensions/trend-finder/sources/source-quality.ts`)

***

## Foundation (6 tasks)

Core structures and base implementations.

* [x] T004 \[S2802] \[P] Extend evidence quality score types, component weights, clamps, and deterministic ordering helpers (`scripts/extensions/trend-finder/sources/source-quality.ts`)
* [x] T005 \[S2802] \[P] Create source-quality tests for component scoring, missing-field fallbacks, and deterministic ordering (`scripts/extensions/trend-finder/sources/__tests__/source-quality.test.ts`)
* [x] T006 \[S2802] Define additive collection-health schema defaults and bounded evidence quality fields with legacy parsing preserved (`src/extensions/trend-finder/schema.ts`)
* [x] T007 \[S2802] Extend analyst evidence contracts with optional quality score metadata and exhaustive fallback handling (`scripts/lib/ai-runtime/trend-analyst.ts`)
* [x] T008 \[S2802] Add collection-health and evidence-quality view-model labels with unavailable, warning, and healthy states (`src/extensions/trend-finder/view-model.ts`)
* [x] T009 \[S2802] Define sanitized Engine Replay collection-health counter defaults and parser mappings (`src/extensions/trend-finder/engine-trace.ts`)

***

## Implementation (10 tasks)

Main feature implementation.

* [x] T010 \[S2802] Apply quality scores to browser and analyst evidence after identity metadata with schema-validated input and explicit error mapping (`scripts/extensions/trend-finder/collector.ts`)
* [x] T011 \[S2802] Build collection-health rollups from duplicate summary, source summaries, and accepted evidence counts with deterministic ordering (`scripts/extensions/trend-finder/collector.ts`)
* [x] T012 \[S2802] Use shared quality score in evidence selection while retaining source quality caps and syndication grouping (`scripts/extensions/trend-finder/sources/source-quality.ts`)
* [x] T013 \[S2802] Feed quality score into evidence-strength scoring while preserving per-source relevance as a bounded component (`scripts/lib/ai-runtime/scoring.ts`)
* [x] T014 \[S2802] Persist additive evidence quality and collection-health fields in parsed payload output with defaulted legacy behavior (`src/extensions/trend-finder/schema.ts`)
* [x] T015 \[S2802] Render Sources header and health tiles for duplicate rate and N-of-M source coverage with explicit empty, degraded, warning, and offline states (`src/extensions/trend-finder/views/sources-view.tsx`)
* [x] T016 \[S2802] Render Engine Replay source-stage quality and collection-health counters with sanitized aggregate fields (`src/extensions/trend-finder/components/engine-source-rail.tsx`)
* [x] T017 \[S2802] Add Signal Workbench quality score values and stable sort key without resizing existing rows (`src/extensions/trend-finder/signal-workbench-model.ts`)
* [x] T018 \[S2802] Render optional Signal Workbench quality pill or column with accessible labels and deterministic sort affordance (`src/extensions/trend-finder/components/signal-workbench-table.tsx`)
* [x] T019 \[S2802] Map collector collection-health trace events into Engine Replay builders with private-path and raw URL leak checks (`scripts/extensions/trend-finder/engine-trace.ts`)

***

## Testing (5 tasks)

Verification and quality assurance.

* [x] T020 \[S2802] Add collector tests for quality propagation, duplicate-rate rollup, high-duplicate warning state, degraded coverage, and browser-safe output (`scripts/extensions/trend-finder/__tests__/collector.test.ts`)
* [x] T021 \[S2802] Add scoring tests proving quality-selected evidence affects evidence strength without changing six-factor weights or syndication grouping (`scripts/lib/ai-runtime/__tests__/scoring.test.ts`)
* [x] T022 \[S2802] Add schema and view-model tests for legacy payload defaults, quality labels, duplicate-rate labels, and coverage labels (`src/extensions/trend-finder/__tests__/view-model.test.ts`)
* [x] T023 \[S2802] Add Engine Replay component tests for duplicate pressure and source-coverage rendering (`src/extensions/trend-finder/components/__tests__/engine-source-rail.test.tsx`)
* [x] T024 \[S2802] Run focused Vitest suites, script typecheck, and ASCII/LF validation for all session artifacts (`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 implement workflow step to begin AI-led implementation.


---

# 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/phase28-session02-signal-quality-score-and-collection-health/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.
