W-005: ecs-prefab spec (v0)¶
Type: design · Size: S · Epic: E-prefab-v0 · Target: docs/specs/ecs-prefab.md · Breaking: no
Depends: W-003 (the brief decides what demo-dnd needs)
Refs: concept §6, reference/flecs/docs/PrefabsManual.md, reference/bitecs/src/core/Component.ts (IsA copy)
Goal¶
Specify the v0 of ecs-prefab with SpecWriter:
- a Prefab tag, kept out of normal queries;
- instantiate(prefab, overrides), which copies traits and adds an IsA pair;
- variants that copy along the IsA chain.
Shared storage is out of scope (see concept §4). When the spec is approved, Triage creates one feature item per requirement group.
Steps¶
- S1: research flecs prefabs and bitECS IsA, and check which koota APIs to use (Explorer); files: –
- S2: write the spec; files: docs/specs/ecs-prefab.md
- S3: user approves the spec
Log¶
- 2026-10-30 created (Triage)
- 2026-10-30 split: scope reduced to the spec; scaffold is W-012 (Triage)
- 2026-11-01 started (Triage)
- 2026-11-01 spec approved by user; spec Status line still says draft, to be set to approved outside Triage scope (Triage)
- 2026-11-01 follow-up items created: W-038 to W-043, one per requirement group (Triage)
- 2026-11-01 done (Triage)