> 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-session08-world-types-and-fixture-cleanup/tasks.md).

# Task Checklist

**Session ID**: `phase35-session08-world-types-and-fixture-cleanup` **Total Tasks**: 19 **Estimated Duration**: 3-4 hours **Created**: 2026-06-27

***

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

***

## Progress Summary

| Metric          | Value   |
| --------------- | ------- |
| Tasks Completed | 19 / 19 |
| Tasks Remaining | 0       |
| Current Task    | none    |

***

## Setup (2 tasks)

* [x] T001 \[S3508] Verify completed Session 06 and Session 07 dependency evidence before changing world/type ownership (`.spec_system/PRD/phase_35/PRD_phase_35.md`)
* [x] T002 \[S3508] Inventory current `world.ts` and `types.ts` imports so moved symbols keep behavior and compile coverage (`src/extensions/ai-rogue/runtime/world.ts`)

***

## Foundation (5 tasks)

* [x] T003 \[S3508] \[P] Create geometry and tile helper modules for coordinate keys, sorting, neighbors, passability, sight, and tile snapshots (`src/extensions/ai-rogue/runtime/world-geometry.ts`, `src/extensions/ai-rogue/runtime/world-tiles.ts`)
* [x] T004 \[S3508] \[P] Create render asset and world type modules with unions and world contracts matching declared runtime assets (`src/extensions/ai-rogue/runtime/types-assets.ts`, `src/extensions/ai-rogue/runtime/types-world.ts`)
* [x] T005 \[S3508] \[P] Create entity and progression type modules with type-only imports and schema bridge exports preserved (`src/extensions/ai-rogue/runtime/types-entities.ts`, `src/extensions/ai-rogue/runtime/types-progression.ts`)
* [x] T006 \[S3508] \[P] Create simulation and runtime controller type modules with exhaustive command, event, and status unions (`src/extensions/ai-rogue/runtime/types-simulation.ts`, `src/extensions/ai-rogue/runtime/types-runtime.ts`)
* [x] T007 \[S3508] Convert the broad type surface into explicit compatibility re-exports from the new owner modules (`src/extensions/ai-rogue/runtime/types.ts`)

***

## Implementation (8 tasks)

* [x] T008 \[S3508] Extract fixture row parsing into a testing-oriented module with validated row shape and explicit parser errors (`src/extensions/ai-rogue/runtime/world-fixtures.ts`)
* [x] T009 \[S3508] Extract prefab, exit-guard, vault, terminal, and open-position placement helpers with deterministic ordering and connectivity preservation (`src/extensions/ai-rogue/runtime/world-placement.ts`)
* [x] T010 \[S3508] Move the deterministic generated-world pipeline into its owning module while preserving placement order and generation defaults (`src/extensions/ai-rogue/runtime/world-generator.ts`)
* [x] T011 \[S3508] Convert the old world surface into explicit public compatibility exports without exposing fixture-only internals to production imports (`src/extensions/ai-rogue/runtime/world.ts`)
* [x] T012 \[S3508] Update core runtime world imports for run creation, simulation, FOV, snapshots, and entities to use focused owners where practical (`src/extensions/ai-rogue/runtime/simulation.ts`, `src/extensions/ai-rogue/runtime/fov.ts`, `src/extensions/ai-rogue/runtime/snapshot.ts`, `src/extensions/ai-rogue/runtime/entities.ts`, `src/extensions/ai-rogue/runtime/run-factory.ts`)
* [x] T013 \[S3508] Update renderer, mount, input, effects, protocol, and terminal type imports to use focused type owners where practical (`src/extensions/ai-rogue/runtime/renderer.ts`, `src/extensions/ai-rogue/runtime/mount.ts`, `src/extensions/ai-rogue/runtime/input.ts`, `src/extensions/ai-rogue/runtime/effects.ts`, `src/extensions/ai-rogue/runtime/protocols.ts`, `src/extensions/ai-rogue/runtime/terminals.ts`)
* [x] T014 \[S3508] Route testing fixtures through explicit fixture/generator modules while keeping production route code free of fixture imports (`src/extensions/ai-rogue/runtime/simulation-fixtures.ts`)
* [x] T015 \[S3508] Refresh boundary and runtime characterization tests for public barrel, fixture isolation, deterministic generation, compile coverage, vaults, terminals, and prefabs (`src/extensions/ai-rogue/runtime/__tests__/runtime-boundary.test.ts`, `src/extensions/ai-rogue/runtime/__tests__/world.test.ts`, `src/extensions/ai-rogue/runtime/__tests__/compile.test.ts`, `src/extensions/ai-rogue/runtime/__tests__/prefabs.test.ts`, `src/extensions/ai-rogue/runtime/__tests__/vault.test.ts`, `src/extensions/ai-rogue/runtime/__tests__/terminals.test.ts`)

***

## Testing (4 tasks)

* [x] T016 \[S3508] \[P] Run focused world and placement tests after extraction (`bun run test -- src/extensions/ai-rogue/runtime/__tests__/world.test.ts src/extensions/ai-rogue/runtime/__tests__/prefabs.test.ts src/extensions/ai-rogue/runtime/__tests__/vault.test.ts src/extensions/ai-rogue/runtime/__tests__/terminals.test.ts`)
* [x] T017 \[S3508] \[P] Run focused boundary and compile tests for import boundaries and split type contracts (`bun run test -- src/extensions/ai-rogue/runtime/__tests__/runtime-boundary.test.ts src/extensions/ai-rogue/runtime/__tests__/compile.test.ts`)
* [x] T018 \[S3508] Run broad AI Rogue runtime tests to catch import, simulation, render-model, and fixture regressions (`bun run test -- src/extensions/ai-rogue/runtime src/extensions/ai-rogue/__tests__/runtime-canvas.test.tsx`)
* [x] T019 \[S3508] Run static and hygiene gates for TypeScript, lint, ASCII/LF, and whitespace (`bun run typecheck && bun run lint && git diff --check HEAD`)

***

## 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 `implement` to hand off to `creview`

***

## 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-session08-world-types-and-fixture-cleanup/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.
