> 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/phase33-session04-harden-dream-projection/tasks.md).

# Task Checklist

**Session ID**: `phase33-session04-harden-dream-projection` **Total Tasks**: 18 **Estimated Duration**: 3-4 hours **Created**: 2026-06-25

***

Legend: `[x]` completed; `[ ]` pending; `[P]` parallelizable; `[SNNMM]` session ref; `TNNN` task ID.

***

## Progress Summary

| Metric          | Value   |
| --------------- | ------- |
| Tasks Completed | 18 / 18 |
| Remaining Tasks | 0       |
| Blockers        | 0       |

***

## Setup (3 tasks)

* [x] T001 \[S3304] Verify Phase 33 Session 01 through Session 03 completion evidence and the current Dream fixture gap (`.spec_system/PRD/phase_33/PRD_phase_33.md`)
* [x] T002 \[S3304] Inspect Dream contracts, validation, live-data validation, home transforms, and the snapshot exporter (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T003 \[S3304] Run a baseline Dream count and field-key review without printing raw Dream bodies (`src/data/live-data.json`)

***

## Foundation (5 tasks)

* [x] T004 \[S3304] Add Dream projection constants, bounded limits, and allowlisted field helpers (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T005 \[S3304] Implement safe Dream string, number, tag, evidence, command, and impact field projectors with privacy scan counting (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T006 \[S3304] Implement a bounded prescription projector with schema-validated input and explicit error mapping (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T007 \[S3304] Implement the top-level Dream projector that preserves safe timestamps and drops model/provider/runtime/private metadata (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T008 \[S3304] Add transform compatibility assertions for projected Dream data through `deriveDreamData()` (`scripts/lib/__tests__/pages-demo-snapshot.test.ts`)

***

## Implementation (5 tasks)

* [x] T009 \[S3304] Wire the Dream projector into `projectLiveDataForPublicDemo()` with unavailable fallback for missing or empty Dream input (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T010 \[S3304] Update Dream snapshot count summaries for prescriptions, evidence lines, tags, impact fields, and generated timestamp presence (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T011 \[S3304] Update Dream field policy metadata to report allowlisted frozen demo data when exported (`scripts/lib/pages-demo-snapshot.ts`)
* [x] T012 \[S3304] Regenerate committed public demo fixtures after Dream projection hardening (`bun run demo:snapshot`)
* [x] T013 \[S3304] Record Dream count deltas, projection decisions, and verification commands without raw private Dream content (`.spec_system/specs/phase33-session04-harden-dream-projection/implementation-notes.md`)

***

## Testing (5 tasks)

* [x] T014 \[S3304] \[P] Add positive exporter tests for safe Dream titles, summaries, rationales, next actions, priorities, tags, evidence, commands, and impact fields (`scripts/lib/__tests__/pages-demo-snapshot.test.ts`)
* [x] T015 \[S3304] \[P] Add negative exporter tests for private Dream fields, local paths, raw prompts, raw logs, provider/model metadata, bridge URLs, credentials, and token-like strings (`scripts/lib/__tests__/pages-demo-snapshot.test.ts`)
* [x] T016 \[S3304] \[P] Add missing, empty, and unsafe Dream fallback tests that keep the public snapshot unavailable instead of leaking private output (`scripts/lib/__tests__/pages-demo-snapshot.test.ts`)
* [x] T017 \[S3304] Run focused snapshot, privacy, and Dream transform tests (`bun run test -- scripts/lib/__tests__/pages-demo-snapshot.test.ts scripts/lib/__tests__/pages-demo-privacy-scan.test.ts src/lib/__tests__/home-transforms.test.ts`)
* [x] T018 \[S3304] Run snapshot dry-run, fixture scan, JSON parse, ASCII, and LF verification (`bun run demo:snapshot --dry-run --json`)

***

## Completion Checklist

* [x] All tasks marked `[x]`
* [x] All tests and checks passing
* [x] All files ASCII-encoded with LF line endings
* [x] implementation-notes.md updated
* [x] Ready for `creview` to start review and repair before validate

***

## Next Steps

Run the `creview` workflow step.


---

# 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/phase33-session04-harden-dream-projection/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.
