> 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/phase36-session03-enemy-and-boss-sfx-pack/tasks.md).

# Task Checklist

**Session ID**: `phase36-session03-enemy-and-boss-sfx-pack` **Total Tasks**: 23 **Estimated Duration**: 3-4 hours **Created**: 2026-06-28

***

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

***

## Progress Summary

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

***

## Setup (3 tasks)

* [x] T001 \[S3603] Verify Session 02 metadata artifacts, `ffmpeg`, `ffprobe`, `ELEVENLABS_API_KEY`, and SFX asset paths before media generation (`.spec_system/specs/phase36-session02-enemy-audio-metadata/implementation-notes.md`)
* [x] T002 \[S3603] Inventory current SFX filenames, cue IDs, and provenance indexes to confirm files 46-57 are the next runtime asset slots (`src/assets/ai-rogue/audio/sfx/provenance.json`)
* [x] T003 \[S3603] Create implementation notes for generation, routing, test, and browser-verification evidence (`.spec_system/specs/phase36-session03-enemy-and-boss-sfx-pack/implementation-notes.md`)

***

## Foundation (6 tasks)

* [x] T004 \[S3603] \[P] Add enemy and boss cue prompt definitions for files 46-57 to the existing SFX generator (`scripts/generate-ai-rogue-audio-sfx.ts`)
* [x] T005 \[S3603] \[P] Extend the simulation audio cue union with enemy-family and boss cue IDs (`src/extensions/ai-rogue/runtime/types-simulation.ts`)
* [x] T006 \[S3603] Add SFX basename mappings for the new cue IDs with safe missing-asset behavior (`src/extensions/ai-rogue/runtime/audio.ts`)
* [x] T007 \[S3603] Define explicit enemy-kind-to-audio-family helpers for fast, thief, corruption, sentry, boss, and generic fallback groups (`src/extensions/ai-rogue/runtime/audio.ts`)
* [x] T008 \[S3603] Update combat event construction so known enemy attacks emit family-specific explicit cues while shield absorb and shield break cues keep precedence (`src/extensions/ai-rogue/runtime/combat.ts`)
* [x] T009 \[S3603] Record planned cue names, routing groups, and fallback decisions in implementation notes (`.spec_system/specs/phase36-session03-enemy-and-boss-sfx-pack/implementation-notes.md`)

***

## Implementation (8 tasks)

* [x] T010 \[S3603] Generate raw masters and optimized Ogg Opus outputs for the 12 selected enemy/boss cues (`tmp/elevenlabs/ai-rogue-sfx/latest-generation-report.json`)
* [x] T011 \[S3603] Inspect generated render metadata and reject or regenerate cues that are oversized, stereo, wrong sample rate, too long, or noisy (`tmp/elevenlabs/ai-rogue-sfx/latest-generation-report.json`)
* [x] T012 \[S3603] Commit optimized runtime SFX assets for files 46-57 (`src/assets/ai-rogue/audio/sfx/46_enemy_fast_attack.ogg`)
* [x] T013 \[S3603] Merge prompt, request, render, and raw-response metadata for files 46-57 into SFX provenance (`src/assets/ai-rogue/audio/sfx/provenance.json`)
* [x] T014 \[S3603] Implement metadata-based cue selection for fast, thief, corruption, sentry, and boss hit/defeated paths with explicit error mapping to safe fallback or no-op (`src/extensions/ai-rogue/runtime/audio.ts`)
* [x] T015 \[S3603] Preserve autoplay unlock, mute, SFX volume, lazy decode, and Web Audio unavailable fallback while adding new cue routes (`src/extensions/ai-rogue/runtime/audio.ts`)
* [x] T016 \[S3603] Update durable AI Rogue audio docs for the new SFX count, family identity routing, and remaining human-listening caveats (`docs/extensions/ai-rogue/game-feel.md`)
* [x] T017 \[S3603] Update implementation baseline docs so current asset inventory matches the committed enemy/boss SFX pack (`docs/extensions/ai-rogue/implementation-baseline.md`)

***

## Testing (6 tasks)

* [x] T018 \[S3603] \[P] Write focused audio tests for family/boss metadata dispatch, explicit precedence, missing/unknown metadata fallback, and stable variants (`src/extensions/ai-rogue/runtime/__tests__/audio.test.ts`)
* [x] T019 \[S3603] \[P] Write focused combat tests for fast, thief, corruption, sentry, boss, shield, and generic fallback cue emission (`src/extensions/ai-rogue/runtime/__tests__/combat.test.ts`)
* [x] T020 \[S3603] Run focused AI Rogue audio/combat/protocol tests and record command evidence (`src/extensions/ai-rogue/runtime/__tests__/audio.test.ts`)
* [x] T021 \[S3603] Run TypeScript validation for the expanded audio cue contract (`tsconfig.json`)
* [x] T022 \[S3603] Run committed asset-size validation and confirm every new SFX remains under the 200 KB cap (`scripts/check-asset-sizes.sh`)
* [x] T023 \[S3603] Complete desktop and mobile browser verification for real AI Rogue enemy/boss encounter audio, mute/volume behavior, and silent fallback (`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 `implement` to start 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://ai-os-and-trend-finder.gitbook.io/ai-os-and-trend-finder-docs/.spec_system/archive/sessions/phase36-session03-enemy-and-boss-sfx-pack/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.
