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.
1.5 KiB
1.5 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level |
|---|---|---|---|---|---|---|---|
| fix-parts-timestamps-spec | Fix Parts Table Timestamp NOT NULL and onUpdate Spec | completed | narrow | low | isolated | implementation |
Description
W22: The parts table defines its own id, metadata, createdAt, updatedAt instead of using commonCols, but the spec only says "defaults to now()" without specifying NOT NULL or $onUpdate. If the Drizzle implementation omits $onUpdate, parts rows never have updatedAt updated on modification. If timestamps are not NOT NULL, they can become NULL.
The parts table spec must explicitly state that createdAt and updatedAt are NOT NULL and that updatedAt includes $onUpdate(() => new Date()). Either replicate these details from commonCols with an explicit override note for id, or reference commonCols with the id exception documented.
Acceptance Criteria
sessions.mdparts table:createdAtandupdatedAtspecified asNOT NULLupdatedAtspecified with$onUpdate(() => new Date())- Note added explaining why
partsuses custom columns instead ofcommonCols(sortable ID vs UUIDv4) idcolumn exception documented (sortable ID, not UUIDv4 from commonCols)
References
- docs/reviews/storage-architecture-review-2026-04-21.md#W22
- docs/architecture/storage/sessions.md:99-107
- docs/architecture/storage/README.md:69-82
Notes
To be filled by implementation agent
Summary
To be filled on completion