Files
hub/tasks/architecture/storage/document-cross-table-status-mapping.md
glm-5.1 2b63cda1c7 Setup repo: migrate architecture specs, code stubs, and tasks from alkhub_ts
Copy architecture docs, ADRs, storage domain specs, research, reviews,
and 56 storage architecture tasks from the alkhub_ts monorepo. Adapt for
standalone @alkdev/hub repo structure (src/ not packages/hub/).

Sanitize all sensitive information:
- Replace private IPs (10.0.0.1) with localhost defaults
- Remove internal server hostnames (dev1, ns528096)
- Replace /workspace/ private paths with npm package references
- Remove hardcoded credentials from examples
- Rewrite infrastructure.md without private network details

Add Deno project scaffolding: deno.json (pinned deps), .gitignore,
AGENTS.md, entry point. Migrate existing code stubs (crypto, config
types, logger) with updated import paths.
2026-05-25 10:56:32 +00:00

39 lines
1.6 KiB
Markdown

---
id: document-cross-table-status-mapping
name: Document Cross-Table Status Enum Disambiguation
status: completed
depends_on: []
scope: moderate
risk: medium
impact: phase
level: implementation
---
## Description
W11: Three tables have `status` with overlapping values (`completed`, `failed`, `aborted` appear on `mappings`, `call_graph_nodes`, and `tasks`), but the meanings differ (e.g., `mappings.completed``tasks.completed`). `table-reference.md` only contrasts `mappings.active` vs `call_graph_nodes.pending/running` — it doesn't contrast `tasks` statuses with the others.
Add cross-table state mapping documentation. When a task goes `in-progress`, there should be an active mapping; when a task is `completed`, the mapping becomes `completed`. Document valid combinations and the semantic differences between same-named statuses in different tables.
## Acceptance Criteria
- [ ] `table-reference.md` has a cross-table status mapping section (table or diagram)
- [ ] Each shared status value (`completed`, `failed`, `aborted`) has per-table semantic definition
- [ ] Valid cross-table status combinations documented (e.g., task `in-progress` ⟹ mapping `active`)
- [ ] `tasks.status` lifecycle contrasted with `mappings.status` lifecycle
- [ ] Note that `mappings.completed` and `tasks.completed` have different semantic scope
## References
- docs/reviews/storage-architecture-review-2026-04-21.md#W11
- docs/architecture/storage/table-reference.md:147-164
- docs/architecture/storage/coordination.md:23
- docs/architecture/storage/tasks.md:84-86
## Notes
> To be filled by implementation agent
## Summary
> To be filled on completion