> 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-session01-brief-movement-groups-and-calibration-metrics/tasks.md).

# Task Checklist

**Session ID**: `phase27-session01-brief-movement-groups-and-calibration-metrics` **Total Tasks**: 20 **Estimated Duration**: 3-4 hours **Created**: 2026-06-12

***

## 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     | 5      | 5      | 0         |
| Implementation | 8      | 8      | 0         |
| Testing        | 5      | 5      | 0         |
| **Total**      | **20** | **20** | **0**     |

***

## Setup (2 tasks)

Initial configuration and environment preparation.

* [x] T001 \[S2701] \[P] Verify analyzer state, Phase 27 Session 01 prerequisites, and existing generated-data boundaries (`.spec_system/PRD/phase_27/session_01_brief_movement_groups_and_calibration_metrics.md`)
* [x] T002 \[S2701] \[P] Inspect Trend Finder fixture, Brief, static export, and retro test baselines before code changes (`src/extensions/trend-finder/fixtures.ts`)

***

## Foundation (5 tasks)

Core structures and base implementations.

* [x] T003 \[S2701] Extend prediction retro calibration schema, defaults, and exported types with additive legacy parsing (`src/extensions/trend-finder/schema.ts`)
* [x] T004 \[S2701] Add retro outcome aggregate and Brier-style calibration helpers with pending exclusion and explicit unavailable state (`scripts/lib/ai-runtime/retros.ts`)
* [x] T005 \[S2701] Add confidence band, movement grouping, today's pick, and calibration view-model helpers with sanitized labels and deterministic ordering (`src/extensions/trend-finder/view-model.ts`)
* [x] T006 \[S2701] Define projected Static Brief fields for movement groups, today's pick, confidence bands, and calibration with privacy-safe bounded schemas (`scripts/extensions/trend-finder/static-brief-export.ts`)
* [x] T007 \[S2701] Update Trend Finder fixtures for filled calibration, empty calibration, and legacy omitted-field coverage (`src/extensions/trend-finder/fixtures.ts`)

***

## Implementation (8 tasks)

Main feature implementation.

* [x] T008 \[S2701] Wire live collector prediction retro summary construction to include calibration with bounded archive parsing and failure-path handling (`scripts/extensions/trend-finder/collector.ts`)
* [x] T009 \[S2701] Wire backtest publish prediction retro summary construction to include calibration without exposing private archives (`scripts/lib/ai-runtime/backtests.ts`)
* [x] T010 \[S2701] Wire backhistory replay prediction retro summary construction to include calibration with legacy snapshot compatibility (`scripts/trend-finder-replay-backhistory.ts`)
* [x] T011 \[S2701] Render today's pick in Brief with selection reason, visibility control integration, and explicit empty state on missing data (`src/extensions/trend-finder/views/brief-view.tsx`)
* [x] T012 \[S2701] Render moved-up, cooled, and emerging Brief groups using existing movement data with stable ordering and no invented signals (`src/extensions/trend-finder/views/brief-view.tsx`)
* [x] T013 \[S2701] Render calibration summary in the Brief prediction/retro section with unavailable and pending-only states (`src/extensions/trend-finder/views/brief-view.tsx`)
* [x] T014 \[S2701] Replace raw confidence percentages on trend cards with shared confidence band labels while preserving numeric context (`src/extensions/trend-finder/components/trend-card.tsx`)
* [x] T015 \[S2701] Render projected Static Brief today's pick, movement groups, confidence bands, and calibration sections with escaped output and existing privacy footer (`scripts/extensions/trend-finder/static-brief-renderer.ts`)

***

## Testing (5 tasks)

Verification and quality assurance.

* [x] T016 \[S2701] \[P] Add retro aggregate tests for hit, partial, miss, pending-only, and empty calibration cases (`scripts/lib/ai-runtime/__tests__/retros.test.ts`)
* [x] T017 \[S2701] \[P] Add view-model tests for confidence bands, movement groups, today's pick reason, and calibration labels (`src/extensions/trend-finder/__tests__/view-model.test.ts`)
* [x] T018 \[S2701] \[P] Add schema regression tests proving legacy payloads parse when calibration is omitted (`src/lib/__tests__/trend-finder-schema.test.ts`)
* [x] T019 \[S2701] \[P] Add Static Brief export and renderer tests for projected movement/calibration sections and unavailable states (`scripts/extensions/trend-finder/__tests__/static-brief-export.test.ts`)
* [x] T020 \[S2701] Run focused Trend Finder tests, typechecks, full test command as feasible, and ASCII validation (`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/phase27-session01-brief-movement-groups-and-calibration-metrics/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.
