> 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/phase35-session06-simulation-ownership-refactor/tasks.md).

# Task Checklist

**Session ID**: `phase35-session06-simulation-ownership-refactor` **Total Tasks**: 20 **Estimated Duration**: 3-4 hours **Created**: 2026-06-26

***

## Progress Summary

| Metric              | Value   |
| ------------------- | ------- |
| Tasks Completed     | 20 / 20 |
| Estimated Remaining | 0 hours |
| Blockers            | 0       |

***

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

***

## Setup (3 tasks)

* [x] T001 \[S3506] Verify analyzer state, prerequisite sessions, and current source evidence (`.spec_system/PRD/phase_35/session_06_simulation_ownership_refactor.md`)
* [x] T002 \[S3506] Create the implementation evidence ledger (`.spec_system/specs/phase35-session06-simulation-ownership-refactor/implementation-notes.md`)
* [x] T003 \[S3506] Capture baseline simulation size, import graph, fixture hook, and product query-ignore evidence (`src/extensions/ai-rogue/runtime/simulation.ts`)

***

## Foundation (5 tasks)

* [x] T004 \[S3506] \[P] Expand runtime public-barrel and fixture-boundary source-scan tests with production route import assertions (`src/extensions/ai-rogue/runtime/__tests__/runtime-boundary.test.ts`)
* [x] T005 \[S3506] \[P] Add factory-extraction regression cases for same-seed run creation and pre-run turn-zero revalidation (`src/extensions/ai-rogue/runtime/__tests__/pre-run-state.test.ts`)
* [x] T006 \[S3506] Create the run factory module for run options, create-run behavior, and pre-run selected-upgrade/loadout transitions (`src/extensions/ai-rogue/runtime/run-factory.ts`)
* [x] T007 \[S3506] Create the snapshot module for deterministic run snapshot assembly (`src/extensions/ai-rogue/runtime/snapshot.ts`)
* [x] T008 \[S3506] Update the simulation module to import or re-export extracted factory and snapshot helpers while preserving command reducer behavior (`src/extensions/ai-rogue/runtime/simulation.ts`)

***

## Implementation (7 tasks)

* [x] T009 \[S3506] Update renderer imports to use explicit run factory and pre-run helper modules (`src/extensions/ai-rogue/runtime/renderer.ts`)
* [x] T010 \[S3506] Preserve runtime controller selected-upgrade and progression-loadout update paths with state revalidation on re-entry (`src/extensions/ai-rogue/runtime/renderer.ts`)
* [x] T011 \[S3506] Keep the local combat scenario fixture path dev/test-gated and unavailable through product route query parameters (`src/extensions/ai-rogue/views/runtime-canvas.tsx`)
* [x] T012 \[S3506] Move run result and snapshot assembly call sites onto the extracted factory and snapshot modules (`src/extensions/ai-rogue/runtime/simulation.ts`)
* [x] T013 \[S3506] Record the remaining command dispatch, movement, player action, enemy turn, floor progression, and turn finalizer split map (`.spec_system/specs/phase35-session06-simulation-ownership-refactor/implementation-notes.md`)
* [x] T014 \[S3506] Update tests whose intent is run creation or snapshot behavior to import extracted modules directly (`src/extensions/ai-rogue/runtime/__tests__/simulation.test.ts`)
* [x] T015 \[S3506] Strengthen source-scan assertions for allowed fixture imports and mounted runtime imports (`src/extensions/ai-rogue/runtime/__tests__/runtime-boundary.test.ts`)

***

## Testing (5 tasks)

* [x] T016 \[S3506] Run focused boundary, pre-run, and simulation tests (`bun run test -- src/extensions/ai-rogue/runtime/__tests__/runtime-boundary.test.ts src/extensions/ai-rogue/runtime/__tests__/pre-run-state.test.ts src/extensions/ai-rogue/runtime/__tests__/simulation.test.ts`)
* [x] T017 \[S3506] Run focused AI Rogue runtime and bridge tests (`bun run test -- src/extensions/ai-rogue/runtime src/extensions/ai-rogue/__tests__/runtime-canvas.test.tsx src/extensions/ai-rogue/__tests__/client.test.tsx`)
* [x] T018 \[S3506] Run TypeScript and lint gates (`bun run typecheck && bun run lint`)
* [x] T019 \[S3506] Validate ASCII, LF line endings, and whitespace hygiene for changed files (`.spec_system/specs/phase35-session06-simulation-ownership-refactor`)
* [x] T020 \[S3506] Complete runtime verification for local combat hook and product query-ignore behavior (`bunx playwright test tests/e2e/ai-rogue-runtime.spec.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` to continue 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://ai-os-and-trend-finder.gitbook.io/ai-os-and-trend-finder-docs/.spec_system/archive/sessions/phase35-session06-simulation-ownership-refactor/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.
