> For the complete documentation index, see [llms.txt](https://faction-os.gitbook.io/faction-os-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faction-os.gitbook.io/faction-os-docs/.spec_system/archive/sessions/phase22-session07-honesty-regression-tests/tasks.md).

# Task Checklist

**Session ID**: `phase22-session07-honesty-regression-tests` **Total Tasks**: 16 **Estimated Duration**: 2-3 hours **Created**: 2026-07-05

***

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

***

## Setup (3 tasks)

* [x] T001 \[S2207] Verify Session 06 artifacts and current projection persistence helpers (`.spec_system/specs/phase22-session06-persistence-lifecycle/validation.md`, `apps/web/src/store/useGameStore.ts`, `apps/web/src/lib/gameProjection.ts`)
* [x] T002 \[S2207] \[P] Review replay dispatch and store replay-flag patterns (`apps/web/src/lib/replayLink.ts`, `apps/web/tests/replayLink.test.ts`, `apps/web/tests/replayBuffer.test.ts`)
* [x] T003 \[S2207] \[P] Review existing projection reducer and store test fixtures for reusable fixed timestamp/event builders (`apps/web/tests/gameProjection.test.ts`, `apps/web/tests/gameProjectionStore.test.ts`)

***

## Foundation (3 tasks)

* [x] T004 \[S2207] Add or refine projection progress snapshot helpers for XP, essence, banners, wraith kills, titles, and War Tide counters (`apps/web/tests/gameProjection.test.ts`)
* [x] T005 \[S2207] Add store fixture helpers for seeding persisted projection state, flushing projection writes, and normalizing `mockEnabled` per test (`apps/web/tests/gameProjectionStore.test.ts`)
* [x] T006 \[S2207] Add event builders for replayed `mission_complete`, failed `tool_result`, `roster_update`, `mission_state`, and `suggestion_update` cases (`apps/web/tests/gameProjection.test.ts`, `apps/web/tests/gameProjectionStore.test.ts`)

***

## Implementation (6 tasks)

* [x] T007 \[S2207] Add pure reducer regression proving replayed `mission_complete` and failed `tool_result` sequences do not change progress counters when dispatched twice (`apps/web/tests/gameProjection.test.ts`)
* [x] T008 \[S2207] Add pure reducer regression proving reconnect-style `roster_update`, `mission_state`, and `suggestion_update` snapshots preserve seeded progress counters (`apps/web/tests/gameProjection.test.ts`)
* [x] T009 \[S2207] Add store-level regression proving `dispatchReplayEntries()` with the replay flag does not change persisted projection progress after `__flushGameProjectionPersist()` (`apps/web/tests/gameProjectionStore.test.ts`)
* [x] T010 \[S2207] Add mock-mode regression proving `mockEnabled: true` allows the implemented in-memory fold path while leaving `localStorage["factionos-game-v1"]` unchanged (`apps/web/tests/gameProjectionStore.test.ts`)
* [x] T011 \[S2207] Extend serialized projection exclusions for visible hero slots, strike queues, combo stages, sound cues, animation pulses, toast effects, replay entries, and sensitive payload fields (`apps/web/tests/gameProjection.test.ts`)
* [x] T012 \[S2207] Repair projection reducer or store replay/mock/snapshot guards only if the new regressions expose a failing invariant (`apps/web/src/lib/gameProjection.ts`, `apps/web/src/store/useGameStore.ts`)

***

## Testing (4 tasks)

* [x] T013 \[S2207] Run focused projection honesty tests (`npm test -- apps/web/tests/gameProjection.test.ts apps/web/tests/gameProjectionStore.test.ts apps/web/tests/replayPersist.test.ts`)
* [x] T014 \[S2207] Run web package typecheck (`npm --workspace @factionos/web run typecheck`)
* [x] T015 \[S2207] Run changed-file Biome check (`npm exec -- biome check apps/web/src/lib/gameProjection.ts apps/web/src/store/useGameStore.ts apps/web/tests/gameProjection.test.ts apps/web/tests/gameProjectionStore.test.ts apps/web/tests/replayPersist.test.ts`)
* [x] T016 \[S2207] Validate ASCII and LF requirements for session artifacts and changed files (`.spec_system/specs/phase22-session07-honesty-regression-tests`, `apps/web/tests/gameProjection.test.ts`, `apps/web/tests/gameProjectionStore.test.ts`, `apps/web/tests/replayPersist.test.ts`)

***

## 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` (next step in the implement -> creview -> validate sequence)

***

## 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://faction-os.gitbook.io/faction-os-docs/.spec_system/archive/sessions/phase22-session07-honesty-regression-tests/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.
