feat(workflows): drop the patterns list and model delegation flow

Neither panel drove a decision: the detected-pattern ranking restated what
the orchestration DAG already shows, and the delegation flow's main→subagent
model pairing is visible in the per-session drill-in. Removes both components
and their i18n blocks, promotes the error-propagation map to full width, and
renumbers the remaining sections 4-7.
This commit is contained in:
2026-09-08 11:10:32 +07:00
parent 47a8726e27
commit fe45644b31
6 changed files with 46 additions and 1353 deletions
-79
View File
@@ -68,16 +68,6 @@
"howToRead": "One row per node. The bar is scaled against the busiest node, split into green (passed with evidence), amber (passed but only claimed) and red (failed). The number on the right is passes / entries and the pass rate.",
"why": "A node with a long amber bar is a stage everyone declares and nobody proves; a node that is never reached is a stage your pipeline does not really use."
},
"patterns": {
"what": "A ranked list of recurring agent-orchestration sequences detected from session traces, plus a callout for solo sessions that ran without subagents.",
"howToRead": "Each row is a step sequence (main → sub → sub …). The right side shows how many sessions matched it and what percentage of all sessions that represents. Click a pattern to highlight it.",
"why": "Reveals the standard 'shapes' of work in your project. Frequent patterns are good candidates to formalize as named workflows or skills."
},
"modelDelegation": {
"what": "A two-column flow showing which main models delegate to which subagent models, plus per-node agent counts and total tokens.",
"howToRead": "Left column = main models for sessions; right column = models used inside subagents. Lines indicate observed main → subagent pairings. Hover a node for share-of-all-agents, sessions, total tokens, and a description of the model family (Opus / Sonnet / Haiku).",
"why": "Helps you confirm cost/latency tiering - e.g. main on Sonnet, subagents on Haiku - and catch unintended escalations to Opus."
},
"errorPropagation": {
"what": "Where errors cluster across the agent hierarchy: by depth (session/main vs direct subagent vs nested), by agent type, and by API/session-level error category.",
"howToRead": "The top banner gives the session-level error rate. The depth bars show how many errors occurred at each nesting level. The error-prone types list ranks subagent types by error count. The bottom block surfaces API/session error summaries.",
@@ -258,75 +248,6 @@
"empty": "No lane has recorded a stage yet. Create one with",
"emptyLane": "This lane has not recorded a stage yet."
},
"patterns": {
"title": "Detected Workflow Patterns",
"subtitle": "Common agent orchestration sequences",
"noData": "No patterns detected yet",
"noDataDesc": "Patterns appear once multiple sessions share the same agent sequence.",
"solo": "solo (no subagents)",
"label": "Workflow Patterns",
"detail": {
"clickHint": "Click for details",
"stepsHeading": "Full step sequence",
"statsHeading": "Stats",
"stepsCount_one": "{{count}} step",
"stepsCount_other": "{{count}} steps",
"uniqueAgents": "Unique agent types",
"occurrences": "Sessions matching this pattern",
"shareOfSessions": "Share of all sessions",
"narrativeHeading": "What this means",
"suggestionHeading": "Suggestion",
"narrative": {
"soloFmt": "Sessions that ran with only {{first}} - no delegation to other agent types.",
"twoStepFmt": "A two-step hand-off: {{first}} delegates straight to {{last}}, with no further branching.",
"shortFmt": "A {{count}}-step chain that starts at {{first}} and ends at {{last}}.",
"longFmt": "A long {{count}}-step chain - begins at {{first}}, threads through several agents, and lands at {{last}}.",
"loopHintFmt": " {{agent}} appears more than once in this sequence - typical of a verification or revision loop.",
"dominant": " This is the dominant workflow in your project - more than half of sessions follow it.",
"common": " This is a common workflow, accounting for roughly a quarter of sessions.",
"regular": " A recognised workflow, but not the majority pattern.",
"niche": " A niche pattern that only surfaces occasionally."
},
"suggestion": {
"solo": "Solo run - would a code-reviewer or test-runner subagent raise the quality of these sessions?",
"shortChain": "Short chain. If it keeps recurring, name it as a slash command, skill, or named workflow so it's easy to reproduce.",
"mediumChain": "Frequent enough to formalise. A named workflow or template would make this pattern reusable.",
"longChain": "Long chain - review whether every hop is necessary, or whether some agents could be merged or skipped.",
"loop": "Loop detected. Confirm the repeated step is intentional verification rather than a silent retry of a failing call."
}
}
},
"modelDelegation": {
"title": "Model Delegation Flow",
"subtitle": "How models route through agent hierarchies",
"mainModels": "MAIN MODELS",
"subagentModels": "SUBAGENT MODELS",
"noData": "No model delegation data available",
"agentsCount_one": "{{count}} agent",
"agentsCount_other": "{{count}} agents",
"tokensCount": "{{tokens}} tokens",
"sessionsCount_one": "{{count}} session",
"sessionsCount_other": "{{count}} sessions",
"ariaLabel": "Model delegation flow diagram",
"tooltip": {
"mainModel": "Main model",
"subagentModel": "Subagent model",
"agentRuns": "Agent runs",
"shareOfAll": "Share of all agents",
"sessionsOnModel": "Sessions on this model",
"totalTokens": "Total tokens",
"family": {
"opus": "Opus - highest-capability tier; best for complex reasoning, longest context, costliest per token.",
"sonnet": "Sonnet - balanced tier; good default for most coding and tool-use workflows.",
"haiku": "Haiku - fastest, cheapest tier; ideal for short, latency-sensitive subagents.",
"other": "Non-Anthropic or unrecognized model - falls outside the standard Opus/Sonnet/Haiku families."
},
"lines": {
"main": "Lines on the right show subagent models this main model delegated work to.",
"sub": "Lines on the left show main models that delegated work to this subagent model."
}
}
},
"errorPropagation": {
"title": "Error Propagation Map",
"subtitle": "Where errors cluster in agent hierarchy depth",
-79
View File
@@ -68,16 +68,6 @@
"howToRead": "Mỗi node một dòng. Thanh bar so tỉ lệ với node bận nhất, chia ba màu: xanh lá (pass có bằng chứng), vàng (pass nhưng chỉ khai báo), đỏ (thất bại). Số bên phải là pass / số lần vào và tỉ lệ pass.",
"why": "Node có dải vàng dài là giai đoạn ai cũng khai báo nhưng không ai chứng minh; node chưa bao giờ tới là giai đoạn pipeline của bạn thực tế không dùng."
},
"patterns": {
"what": "Danh sách xếp hạng các chuỗi điều phối Agent lặp lại được phát hiện từ trace phiên, kèm thẻ riêng cho phiên đơn lẻ không có Subagent.",
"howToRead": "Mỗi dòng là một chuỗi bước (main → sub → sub …). Bên phải hiển thị số phiên khớp và tỷ lệ trên tổng phiên. Bấm vào một mẫu để làm nổi bật.",
"why": "Cho thấy các 'hình dáng' công việc tiêu chuẩn trong dự án. Mẫu phổ biến là ứng viên tốt để chuẩn hóa thành workflow hoặc skill có tên gọi."
},
"modelDelegation": {
"what": "Sơ đồ luồng hai cột cho thấy mô hình chính nào ủy quyền cho mô hình Subagent nào, kèm số Agent và tổng token theo node.",
"howToRead": "Cột trái = mô hình chính của phiên; cột phải = mô hình dùng bên trong Subagent. Đường nối chỉ các cặp main → Subagent quan sát được. Hover một node để xem tỷ trọng trên tổng Agent, số phiên, tổng token và mô tả họ mô hình (Opus / Sonnet / Haiku).",
"why": "Giúp xác nhận phân tầng chi phí/độ trễ - ví dụ main trên Sonnet, Subagent trên Haiku - và phát hiện các trường hợp bị đẩy lên Opus ngoài ý muốn."
},
"errorPropagation": {
"what": "Lỗi tập trung ở đâu trong phân cấp Agent: theo độ sâu (phiên/main vs Subagent trực tiếp vs lồng nhau), theo loại Agent, và theo nhóm lỗi API / phiên.",
"howToRead": "Banner trên đầu cho biết tỷ lệ lỗi cấp phiên. Các thanh độ sâu cho biết bao nhiêu lỗi xảy ra ở từng cấp lồng. Danh sách 'loại dễ lỗi' xếp Subagent theo số lỗi. Khối dưới hiển thị tóm tắt lỗi API/phiên.",
@@ -258,75 +248,6 @@
"empty": "Chưa lane nào ghi nhận giai đoạn. Tạo lane bằng",
"emptyLane": "Lane này chưa ghi nhận giai đoạn nào."
},
"patterns": {
"title": "Mẫu quy trình phát hiện được",
"subtitle": "Chuỗi điều phối Agent thường gặp",
"noData": "Chưa phát hiện mẫu nào",
"noDataDesc": "Mẫu sẽ xuất hiện khi nhiều phiên có cùng chuỗi Agent.",
"solo": "đơn lẻ (không có Subagent)",
"label": "Mẫu quy trình",
"detail": {
"clickHint": "Bấm để xem chi tiết",
"stepsHeading": "Chuỗi bước đầy đủ",
"statsHeading": "Thống kê",
"stepsCount_one": "{{count}} bước",
"stepsCount_other": "{{count}} bước",
"uniqueAgents": "Số loại Agent khác nhau",
"occurrences": "Số phiên khớp mẫu này",
"shareOfSessions": "Tỷ trọng trên tổng phiên",
"narrativeHeading": "Ý nghĩa của mẫu này",
"suggestionHeading": "Gợi ý",
"narrative": {
"soloFmt": "Phiên chỉ chạy {{first}} - không ủy quyền cho loại Agent nào khác.",
"twoStepFmt": "Hand-off hai bước: {{first}} ủy quyền thẳng cho {{last}}, không có nhánh nào khác.",
"shortFmt": "Chuỗi {{count}} bước, bắt đầu ở {{first}} và kết thúc ở {{last}}.",
"longFmt": "Chuỗi dài {{count}} bước - bắt đầu ở {{first}}, đi qua nhiều Agent, rồi dừng ở {{last}}.",
"loopHintFmt": " {{agent}} xuất hiện nhiều lần trong chuỗi này - điển hình cho vòng lặp kiểm tra hoặc sửa lại.",
"dominant": " Đây là quy trình chủ đạo trong dự án - hơn một nửa số phiên đi theo.",
"common": " Là quy trình phổ biến, chiếm khoảng một phần tư số phiên.",
"regular": " Là quy trình được nhận diện, nhưng chưa phải đa số.",
"niche": " Là mẫu hiếm, chỉ thi thoảng mới xuất hiện."
},
"suggestion": {
"solo": "Phiên đơn lẻ - liệu thêm code-reviewer hay test-runner Subagent có cải thiện chất lượng không?",
"shortChain": "Chuỗi ngắn. Nếu lặp lại nhiều, hãy đặt tên thành slash command, skill hoặc workflow để dễ tái sử dụng.",
"mediumChain": "Đủ phổ biến để chuẩn hóa. Một workflow/template có tên sẽ giúp tái sử dụng dễ dàng.",
"longChain": "Chuỗi dài - xem xét liệu mọi bước có thực sự cần thiết, hay có thể gộp/bỏ bớt một số Agent.",
"loop": "Phát hiện vòng lặp. Hãy xác nhận bước lặp là kiểm tra có chủ đích, không phải retry âm thầm một lệnh đang lỗi."
}
}
},
"modelDelegation": {
"title": "Luồng ủy quyền mô hình",
"subtitle": "Cách các mô hình đi qua phân cấp Agent",
"mainModels": "MÔ HÌNH CHÍNH",
"subagentModels": "MÔ HÌNH TÁC TỬ PHỤ",
"noData": "Chưa có dữ liệu ủy quyền mô hình",
"agentsCount_one": "{{count}} Agent",
"agentsCount_other": "{{count}} Agent",
"tokensCount": "{{tokens}} token",
"sessionsCount_one": "{{count}} phiên",
"sessionsCount_other": "{{count}} phiên",
"ariaLabel": "Sơ đồ luồng ủy quyền mô hình",
"tooltip": {
"mainModel": "Mô hình chính",
"subagentModel": "Mô hình Subagent",
"agentRuns": "Lượt chạy Agent",
"shareOfAll": "Tỷ trọng trên tổng Agent",
"sessionsOnModel": "Phiên dùng mô hình này",
"totalTokens": "Tổng token",
"family": {
"opus": "Opus - bậc khả năng cao nhất; tốt cho lý luận phức tạp, ngữ cảnh dài nhất, đắt nhất theo token.",
"sonnet": "Sonnet - bậc cân bằng; mặc định tốt cho hầu hết quy trình code và dùng tool.",
"haiku": "Haiku - bậc nhanh nhất, rẻ nhất; phù hợp cho Subagent ngắn, nhạy cảm độ trễ.",
"other": "Mô hình ngoài Anthropic hoặc không nhận dạng được - không thuộc bộ Opus/Sonnet/Haiku tiêu chuẩn."
},
"lines": {
"main": "Các đường bên phải cho thấy mô hình Subagent mà mô hình chính này đã ủy quyền.",
"sub": "Các đường bên trái cho thấy mô hình chính nào đã ủy quyền cho mô hình Subagent này."
}
}
},
"errorPropagation": {
"title": "Bản đồ lan truyền lỗi",
"subtitle": "Điểm tập trung lỗi theo độ sâu phân cấp Agent",