diff --git a/scripts/fold_catalogue.py b/scripts/fold_catalogue.py index a848d5696fcf..3848edad3eca 100644 --- a/scripts/fold_catalogue.py +++ b/scripts/fold_catalogue.py @@ -88,6 +88,10 @@ "timeline": "The ordered moments of the session, and how many were dropped", "tools": ("Which tools ran, how often, for how long, how many errored, and what is still open"), "approvals": "What was requested, what was decided, and what is still pending", + "subagents": ( + "Which children this session dispatched, and for each one what happened, how " + "long it ran and what it cost" + ), "class": "What KIND of session this log belongs to, over the log's whole life", "ledger": ( "One workstream's goal, phase and next step, what was tried and rejected, and " diff --git a/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/FOLDS.md b/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/FOLDS.md index 9ec2cc94b55a..9adb2c31f7f1 100644 --- a/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/FOLDS.md +++ b/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/FOLDS.md @@ -29,6 +29,7 @@ slot ran under. | `timeline` | session | The ordered moments of the session, and how many were dropped | | `tools` | session | Which tools ran, how often, for how long, how many errored, and what is still open | | `approvals` | session | What was requested, what was decided, and what is still pending | +| `subagents` | session | Which children this session dispatched, and for each one what happened, how long it ran and what it cost | | `class` *(internal)* | session | What KIND of session this log belongs to, over the log's whole life | | `ledger` | slot | One workstream's goal, phase and next step, what was tried and rejected, and its artifacts | | `radar` | slot | An issue crew's items, counts, phase lines and recorded skips | @@ -141,6 +142,20 @@ Moved by: `approval/decided`, `approval/requested`. | `unidentified_requests` | `int` | no | | `unmatched_decisions` | `int` | no | +## `subagents` + +Which children this session dispatched, and for each one what happened, how long it ran and what it cost. + +Moved by: `subagent/completed`, `subagent/failed`, `subagent/spawned`. + +| Field | Type | Optional | +|---|---|---| +| `by_id` | `dict` | no | +| `omitted` | `int` | no | +| `running` | `int` | no | +| `running_exact` | `bool` | no | +| `totals` | `dict` | no | + ## `class` What KIND of session this log belongs to, over the log's whole life. diff --git a/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/folds.json b/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/folds.json index 5f8eaa5cfab3..c1773a50ab61 100644 --- a/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/folds.json +++ b/src/kiro_crew/builtin_skills/kirocrew-dev/dashboard-template/folds.json @@ -380,6 +380,44 @@ } ] }, + { + "name": "subagents", + "mode": "session", + "advertised": true, + "affects": [ + "subagent/completed", + "subagent/failed", + "subagent/spawned" + ], + "answers": "Which children this session dispatched, and for each one what happened, how long it ran and what it cost", + "fields": [ + { + "name": "by_id", + "type": "dict", + "optional": false + }, + { + "name": "omitted", + "type": "int", + "optional": false + }, + { + "name": "running", + "type": "int", + "optional": false + }, + { + "name": "running_exact", + "type": "bool", + "optional": false + }, + { + "name": "totals", + "type": "dict", + "optional": false + } + ] + }, { "name": "class", "mode": "session", diff --git a/src/kiro_crew/vector_memory_runtime/lessons.py b/src/kiro_crew/vector_memory_runtime/lessons.py index fcbc8f2396bd..8b770394238d 100644 --- a/src/kiro_crew/vector_memory_runtime/lessons.py +++ b/src/kiro_crew/vector_memory_runtime/lessons.py @@ -1203,7 +1203,7 @@ def turn_lessons( if not entries: return [] query_stems = {_stem_one(word) for word in store._lesson_keywords(query_text.lower())} - row_tokens = _row_stem_tokens_for_scan(len(entries)) + row_tokens = _text_scoring._row_stem_tokens_for_scan(len(entries)) shared_by_row, sizes, document_frequency = _shared_lesson_stems( entries, query_stems, row_tokens )