Asset ownership — code owners for assets (v0.3.24)#27
Merged
Conversation
Assets can now have one or more declared owners. Unlike plan assignees (derived from task assignment), ownership is explicit: it is a durable responsibility with no activity to derive it from. - New asset_owners join table (both dialects + migrations; the postgres one hand-written per house convention). - setAssetOwners mutation + setAssetOwnersAction; ownersByAsset query helper feeding getProduct assets and getAssetDebtInfo; new getOwnedAssets for per-owner rollups. - Owner picker in the asset edit sheet; OwnerAvatars stacks on asset cards and Tech Debt Register groups. - "Assets I Own" section on My Work: health, effective debt score, and open-item count per owned asset. - MCP: ownerEmails on create_asset/update_asset (replaces the full owner set), resolved via the same shared-workspace email check as other owner/assignee params. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Base automatically changed from
feat/work-items-filters-debt-register-view-persist
to
master
July 16, 2026 03:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Assets can now have one or more declared owners — like code owners. Ownership is routing and visibility, not an ACL: no approval gates or edit permissions. Unlike plan assignees (derived from task assignment), ownership is explicit — a durable responsibility with no activity to derive it from.
asset_ownersjoin table, both dialects. The postgres migration is hand-written per house convention (postgres has no drizzle snapshots past 0000); sqlite generated.setAssetOwnersmutation +setAssetOwnersAction(with product-access check),ownersByAssetquery helper feedinggetProductandgetAssetDebtInfo, newgetOwnedAssetsrollup.OwnerAvatarsstacks on asset cards and Tech Debt Register groups.ownerEmailsoncreate_asset/update_asset(replaces the full owner set;[]clears), resolved via the shared-workspace email check.Verification (drove the running app, sqlite)
db:migrate; set owners through the real server-action surface → owner rows land, product page renders avatar stack (title="Owned by Alex Chen, Sarah Kim", fallbacks AC/SK), My Work shows "Assets I Own (1)" with debt score + health, work-items payload carries owners for the debt register.[]→ rows removed, My Work section disappears.Notes
updateAssetAction/deleteAssetActionhave the same missing-access-check pattern this PR fixed for owners — worth a small hardening pass (happy to file it as a CodePlans work item).🤖 Generated with Claude Code