> 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/specs/phase24-session07-honesty-and-persistence-boundaries/tasks.md).

# Task Checklist

**Session ID**: `phase24-session07-honesty-and-persistence-boundaries` **Total Tasks**: 16 **Estimated Duration**: 3-4 hours **Created**: 2026-07-08

***

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

***

## Setup (2 tasks)

* [x] T001 \[S2407] Verify Session 02/04 prerequisites, package scripts, and active Phase 24 honesty boundary (`.spec_system/PRD/phase_24/PRD_phase_24.md`)
* [x] T002 \[S2407] Audit the existing raw-prompt persistence expectation before changing the privacy boundary (`apps/web/tests/questBoardStore.test.ts`)

***

## Foundation (4 tasks)

* [x] T003 \[S2407] Add a projection persistence scrub path that removes prompt-bearing pending links before storage while preserving runtime pending-link matching (`apps/web/src/lib/gameProjection.ts`)
* [x] T004 \[S2407] Add legacy persisted pending-link normalization so old raw prompt snapshots load as aggregate-only projection state (`apps/web/src/lib/gameProjection.ts`)
* [x] T005 \[S2407] \[P] Add reducer test helpers and fixtures for linked missions, verification events, live enemy events, reconnect snapshots, and sensitive sentinels (`apps/web/tests/gameProjection.test.ts`)
* [x] T006 \[S2407] \[P] Add store and erasure fixtures for replay dispatch, mock mode, Phase 24 aggregate payloads, and storage-key inventory checks (`apps/web/tests/gameProjectionStore.test.ts`)

***

## Implementation (6 tasks)

* [x] T007 \[S2407] Update Quest Board accept and assign tests so runtime pending links keep prompt matching but `factionos-game-v1` excludes raw prompts (`apps/web/tests/questBoardStore.test.ts`)
* [x] T008 \[S2407] Add reducer replay regressions for linked `mission_start`, `mission_update`, `task_verification`, `tool_result`, `test_failure`, `build_error`, `ts_errors`, `lint_error`, and stall events without durable progress (`apps/web/tests/gameProjection.test.ts`)
* [x] T009 \[S2407] Add reconnect and snapshot regressions that prevent accumulated kills, wraith stacks, camp links, counters, and raw prompt strings (`apps/web/tests/gameProjection.test.ts`)
* [x] T010 \[S2407] Add serialization privacy tests for aggregate-only root keys, safe live enemy labels, camp-link ids, pending-link scrubbing, and forbidden raw values (`apps/web/tests/gameProjection.test.ts`)
* [x] T011 \[S2407] Add store-level `dispatchReplayEntries` regressions that leave projection storage unchanged and clean up the replaying flag (`apps/web/tests/gameProjectionStore.test.ts`)
* [x] T012 \[S2407] Add mock-mode store regressions proving pending links and live-tier drills fold in memory but persist nothing new (`apps/web/tests/gameProjectionStore.test.ts`)

***

## Testing (4 tasks)

* [x] T013 \[S2407] Extend browser erasure tests for Phase 24 aggregate projection payloads, duplicate idempotency summaries, and no new game storage key (`apps/web/tests/localErasure.test.ts`)
* [x] T014 \[S2407] \[P] Run focused reducer coverage (`npm test -- --run apps/web/tests/gameProjection.test.ts`)
* [x] T015 \[S2407] \[P] Run focused store, Quest Board, and erasure coverage (`npm test -- --run apps/web/tests/gameProjectionStore.test.ts apps/web/tests/questBoardStore.test.ts apps/web/tests/localErasure.test.ts`)
* [x] T016 \[S2407] Run web typecheck plus ASCII and LF validation over modified files (`npm --workspace apps/web run typecheck`)

***

## 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 `implement` 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/specs/phase24-session07-honesty-and-persistence-boundaries/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.
