Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/fold_catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/kiro_crew/vector_memory_runtime/lessons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
Loading