# update_task_episodic_gen

> Regression test — episodic auto-gen on status: work-completed. Four tasks in one session (T-1363/1364/1366/1367) transitioned to work-completed (date_finished set, [task-update-agent] Updates entry) yet no episodic was generated. Pins the happy path so any regression surfaces.

**Type:** script | **Subsystem:** tests | **Location:** `tests/unit/update_task_episodic_gen.bats`

**Tags:** `test`, `update-task`, `episodic`, `G-054`, `T-1368`

## What It Does

T-1368: Regression test for episodic auto-gen silent failure.
Four tasks in one session (T-1363, T-1364, T-1366, T-1367) transitioned to
work-completed via update-task.sh (evidenced by date_finished set and the
[task-update-agent] Updates entry), yet no episodic was generated. Sandbox
reproduction with the exact real task files DOES generate the episodic, so
the code path works. This test pins the happy path so any regression in
auto-gen (code-side) surfaces immediately.
Does NOT reproduce the real-world silent failure (environmental, unknown
trigger) — tracked separately in concerns.yaml.

## Dependencies (5)

| Component | Relationship | Description |
|-----------|--------------|-------------|
| [update-task](/docs/generated/agents-task-create-update-task) | calls | Task Update Agent - Status transitions with auto-triggers |
| [context-dispatcher](/docs/generated/context-dispatcher) | calls | Central dispatcher for all context agent commands (init, focus, add-learning, add-pattern, add-decision, status, generate-episodic) |
| [context-dispatcher](/docs/generated/context-dispatcher) | calls | Central dispatcher for all context agent commands (init, focus, add-learning, add-pattern, add-decision, status, generate-episodic) |
| [update-task](/docs/generated/agents-task-create-update-task) | tests | Task Update Agent - Status transitions with auto-triggers |
| [context-dispatcher](/docs/generated/context-dispatcher) | tests | Central dispatcher for all context agent commands (init, focus, add-learning, add-pattern, add-decision, status, generate-episodic) |

---
*Auto-generated from Component Fabric. Card: `tests-unit-update_task_episodic_gen.yaml`*
*Last verified: 2026-04-24*
