fix(session-ingest): authorize contained subagent sessions - #4813
fix(session-ingest): authorize contained subagent sessions#4813pandemicsyn wants to merge 9 commits into
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe previously flagged non-concurrent Files Reviewed (5 files)
Previous Review Summaries (2 snapshots, latest commit c2f7f69)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c2f7f69)Status: No Issues Found | Recommendation: Merge Executive SummaryThe previously flagged non-concurrent Files Reviewed (5 files)
Previous review (commit a3d696a)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryThe new Overview
Issue Details (click to expand)WARNING
Files Reviewed (38 files)
Reviewed by claude-sonnet-5 · Input: 40 · Output: 11K · Cached: 1.1M Review guidance: REVIEW.md from base branch |
|
Replaced by #4832 after the terminology and persisted identifier cleanup. |
Summary
Fix contained Cloud Agent subagent history by authorizing child-session bootstrap and ingest as a server-managed Cloud Agent family, without introducing new CLI credentials or requiring a CLI rollout.
cloud_agent_family_idto PostgreSQL session ownership and the Session Access Cache Durable Object, with self-healing for existing Cloud Agent roots.Verification
Visual Changes
N/A
Reviewer Notes
kilo_meta.orgIdfrom the sandbox could updatecli_sessions_v2.organization_idafter membership validation. This PR now rejects that update for Cloud Agent roots inservices/session-ingest/src/ingest/metadata.ts.Performance impact: expected low, with family-local burst contention
SessionAccessCacheDO, and no PostgreSQL transaction runs when the ingest DO reports no metadata changes.UPDATE ... RETURNINGfast path for simple title/platform/git metadata while retaining transactions for status, organization, and parent changes.