From 3264eb75cb0af4bf01b8285bce072b7968458fba Mon Sep 17 00:00:00 2001 From: kirocrew-agent Date: Thu, 1 Oct 2026 06:35:49 +0000 Subject: [PATCH 1/2] fix(crew-log): regenerate the fold catalogue for the subagents fold #15078 added a `subagents` projection fold but did not add its answer sentence to the catalogue generator or regenerate the committed catalogue, so test_fold_catalogue.py reddened on main d5bdff64e0 (shard 4, Linux + Windows): the generator refused to build (no `_ANSWERS` sentence for `subagents`) and the committed folds.json / FOLDS.md no longer matched the registry. Add the `subagents` sentence to `_ANSWERS` and regenerate both artifacts with `python3 scripts/fold_catalogue.py --write`. --- scripts/fold_catalogue.py | 4 ++ .../kirocrew-dev/dashboard-template/FOLDS.md | 15 ++++++++ .../dashboard-template/folds.json | 38 +++++++++++++++++++ 3 files changed, 57 insertions(+) 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", From b6aabf0d64aaeac255f2561d5c422e2550ce9462 Mon Sep 17 00:00:00 2001 From: Sajal Narang Date: Thu, 1 Oct 2026 06:11:42 +0000 Subject: [PATCH 2/2] fix(memory): read turn_lessons' row-token helper through text_scoring #15688 replaced lessons.py's by-name imports from text_scoring with reads through the owner module. #15517, which merged after it, added turn_lessons with one bare _row_stem_tokens_for_scan call, so main raises NameError: name '_row_stem_tokens_for_scan' is not defined on every turn_lessons call (flake8 F821). Read it through _text_scoring like the other callers in the file. --- src/kiro_crew/vector_memory_runtime/lessons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )