implements PLN-0061 shell running lifecycle integration

This commit is contained in:
2026-05-15 11:47:26 +01:00
parent d929f8e2f1
commit c2698e6a22
5 changed files with 112 additions and 16 deletions
@@ -2,9 +2,9 @@
id: PLN-0061
ticket: task-owned-shell-windows
title: Plan - Shell Running Lifecycle Integration
status: open
status: done
created: 2026-05-15
completed:
completed: 2026-05-15
ref_decisions: [DEC-0027]
tags: [runtime, os, task, window-manager, shell, lifecycle, firmware, tests]
---
@@ -100,15 +100,15 @@ Included:
## Criterios de Aceite
- [ ] `ShellRunningStep` no longer uses `focused_window_active` as its
- [x] `ShellRunningStep` no longer uses `focused_window_active` as its
continuation contract.
- [ ] `ShellRunningStep` uses
- [x] `ShellRunningStep` uses
`os.windows().focused_window_belongs_to_task(self.task_id)`.
- [ ] A false predicate closes the task through lifecycle before returning
- [x] A false predicate closes the task through lifecycle before returning
`HubHome`.
- [ ] `Hub`, `Overlay`, absent focus, and another task's focused window all
- [x] `Hub`, `Overlay`, absent focus, and another task's focused window all
fail the predicate for the current shell task.
- [ ] Game-running behavior is unchanged and remains outside `WindowManager`.
- [x] Game-running behavior is unchanged and remains outside `WindowManager`.
## Tests / Validacao