Skip to content

Asset Record Phase A (v0.4.4): capabilities register with delivery lineage - #45

Merged
SylonZero merged 1 commit into
masterfrom
claude/roadmap-plans-review-8t8gri
Aug 4, 2026
Merged

Asset Record Phase A (v0.4.4): capabilities register with delivery lineage#45
SylonZero merged 1 commit into
masterfrom
claude/roadmap-plans-review-8t8gri

Conversation

@SylonZero

Copy link
Copy Markdown
Owner

Implements Phase A of docs/specs/asset-record-spec.md — the per-asset Record tab: a capabilities register built only from delivered work, never intent.

Schema & data layer

  • asset_capabilities table (PG + SQLite, migration 0015): capability claims with receipts — origin FKs to work item (partial-unique → idempotent graduation), plan, and release (all ON DELETE SET NULL) plus an originSummary text lineage that survives FK nulling. status active/removed — removals are tombstones, never deletes.
  • graduateWorkItem: validates resolved + feature/enhancement + has-asset; composes lineage from the item → its first linked plan → that plan's release stamp (WI: … · Plan: … · Release (version)); idempotent per work item.
  • updateCapability / removeCapability (tombstone; reason appended to the description as **Removed:**).
  • getAssetRecord (org-scope guarded): capabilities incl. tombstones, derived known issues (open bug/ux), debt register (open tech_debt), and graduation candidates.

UI

New Record tab on asset detail: a candidates banner ("N resolved features can join this asset's record" with one-click graduation), capability rows with lineage chips + verification freshness dots + expandable markdown, edit and remove-with-reason dialogs, derived Known issues / Debt register cards, and a struck-through Previously card for tombstones.

MCP & activity

  • get_asset_record (read) and graduate_work_item (write) — 41 tools total.
  • Activity feed presentation for capability_graduated / capability_removed.

Seed, tests, docs

  • Demo seed graduates two resolved features with full lineage (one verified → green dot, one not → gray), backdated to ship dates; still idempotent on re-run.
  • 8 new tests in tests/lib/db/asset-record.test.ts (graduation validation/lineage/idempotency, record composition, org scope, tombstones) — 198 total, all passing; typecheck and production build clean.
  • README roadmap (v0.4.4 checked), app-spec, MCP spec, AI-agents guide, and the docs site synced; package.json → 0.4.4; spec Phase A marked shipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y7FhGxYjnJHJ7m9MpH2dgJ


Generated by Claude Code

…neage

Implements Phase A of docs/specs/asset-record-spec.md — the per-asset
Record tab, built only from delivered work:

- asset_capabilities table (both dialects + migration 0015): claims with
  receipts — origin FKs (work item partial-unique, plan, release, all
  set-null) plus originSummary text that survives FK nulling; tombstone
  status instead of deletes
- graduateWorkItem mutation: validates resolved + feature/enhancement +
  has asset, idempotent per work item, composes lineage from the item's
  first linked plan and that plan's release stamp
- updateCapability / removeCapability (tombstone with reason appended to
  the description)
- getAssetRecord query: capabilities, derived known issues (open bug/ux),
  debt register (open tech_debt), and graduation candidates, org-scoped
- Record tab on asset detail: candidates banner with one-click
  graduation, capability rows with lineage chips and verification
  freshness dots, edit/remove dialogs, derived registers, and a
  struck-through Previously section for tombstones
- MCP tools get_asset_record + graduate_work_item (41 tools total)
- Activity feed entries for capability_graduated / capability_removed
- Demo seed graduates two resolved features with full lineage (one
  verified, one not) and stays idempotent
- 8 new tests (198 total); docs/README/app-spec/site synced; v0.4.4

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7FhGxYjnJHJ7m9MpH2dgJ
@SylonZero
SylonZero merged commit 7000204 into master Aug 4, 2026
1 check passed
@SylonZero
SylonZero deleted the claude/roadmap-plans-review-8t8gri branch August 4, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants