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.
2.3 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level |
|---|---|---|---|---|---|---|---|
| clarify-session-spec-details | Clarify Sessions Spec — Part Types, Slug, Indexing, Nesting | completed | narrow | trivial | component | implementation |
Description
Five closely related documentation gaps in sessions.md that affect implementers:
-
S07:
FilePartData[]is referenced in ToolState (sessions.md:132) but never defined. Clarify whether it's the same as thefilepart type's data shape. -
S08: The AI SDK UIMessage part type mapping (
sessions.md:145-152) covers 6 types but omitsstep-finish,patch,snapshot,compaction,agent. Document whether these are excluded from the UIMessage view or add mappings. -
S09:
sessions.sluggeneration strategy is undocumented. Is it human-provided, auto-generated, or random? This matters for API design and uniqueness enforcement. -
S10: A composite index
(session_id, type)on parts would support queries like "all tool-call parts in session X." Document whether this index is needed or whether existing indexes suffice. -
S11: The
agentpart type implies sub-agent delegation which might need nesting, but parts have noparentId. Document whether parts are flat or nesting might be needed.
Acceptance Criteria
FilePartDatatype defined or cross-referenced in sessions.md- Omitted AI SDK part types (
step-finish,patch,snapshot,compaction,agent) explicitly documented as excluded or mapped sessions.sluggeneration strategy documented (human-provided vs auto-generated)- Parts
(session_id, type)index considered and either added or documented as unnecessary - Flat vs nested parts semantics documented — if nesting may be needed, note it as a future concern
- All changes in
sessions.md;table-reference.mdupdated if indexes change
References
- docs/reviews/storage-architecture-review-2026-04-21.md#S07
- docs/reviews/storage-architecture-review-2026-04-21.md#S08
- docs/reviews/storage-architecture-review-2026-04-21.md#S09
- docs/reviews/storage-architecture-review-2026-04-21.md#S10
- docs/reviews/storage-architecture-review-2026-04-21.md#S11
- docs/architecture/storage/sessions.md
Notes
To be filled by implementation agent
Summary
To be filled on completion