The best way to control Claude Code, Codex and more from any computer or phone
feat(server): agents read failing CI logs and re-run checks through MCP tools (#26752)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 18, 2026 at 22:16 UTC
f7041fabc8bd657510be26ad33225ef79fc4ef1a
49 files changed
+1445
-41
apps/mobile/src/i18n/translations/de.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {{count} Pull Request zum Mergen eingereiht} other {{count} Pull Requests zum Mergen eingereiht}}",
323
"a742473f42c9a609": "{count, plural, one {{count} Pull Request gemergt} other {{count} Pull Requests gemergt}}",
324
"40e3528651297351": "{merged, plural, one {{merged} Pull Request gemergt, {queued} eingereiht} other {{merged} Pull Requests gemergt, {queued} eingereiht}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {CI-Logs {count}-mal gelesen} other {CI-Logs {count}-mal gelesen}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {{count}-mal versucht, CI-Logs zu lesen} other {{count}-mal versucht, CI-Logs zu lesen}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {{count}-mal versucht, CI erneut auszuführen} other {{count}-mal versucht, CI erneut auszuführen}}",
328
+ "d38466778437bfa9": "Keine fehlgeschlagenen Checks zum erneuten Ausführen gefunden",
329
+ "8982283666c8c3d5": "{count, plural, one {CI {count}-mal erneut ausgeführt} other {CI {count}-mal erneut ausgeführt}}",
330
+ "39949fd3853031e5": "{count, plural, one {{count} Check konnte nicht erneut ausgeführt werden} other {{count} Checks konnten nicht erneut ausgeführt werden}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {{count} Check erneut ausgeführt} other {{count} Checks erneut ausgeführt}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {{rerun} Check erneut ausgeführt, {refused} abgelehnt} other {{rerun} Checks erneut ausgeführt, {refused} abgelehnt}}",
333
"8146ee71f7426683": "{count, plural, one {{count} Pull Request reviewt} other {{count} Pull Requests reviewt}}",
334
"638678077ba2e050": "{count, plural, one {Versucht, {count} Pull Request zu reviewen} other {Versucht, {count} Pull Requests zu reviewen}}",
335
"420bea546d5f8802": "Thread kopiert",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Auf Pull Request antworten",
1075
"4bcd613be5a48aa2": "Pull Request reviewen",
1076
"81b284c3afb54ec6": "Pull Request mergen",
1077
+ "9f0d37a2ec338e59": "CI-Logs lesen",
1078
+ "dcca0dff7324e0f0": "CI erneut ausführen",
1079
"3227c712130a4187": "Issues auflisten",
1080
"3f461f26681450d6": "Ein Issue lesen",
1081
"fff9316cf5e449b4": "Ein Issue erstellen",
apps/mobile/src/i18n/translations/en.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Queued {count} pull request to merge} other {Queued {count} pull requests to merge}}",
323
"a742473f42c9a609": "{count, plural, one {Merged {count} pull request} other {Merged {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Merged {merged} pull request, queued {queued}} other {Merged {merged} pull requests, queued {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Read CI logs {count} time} other {Read CI logs {count} times}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tried to read CI logs {count} time} other {Tried to read CI logs {count} times}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tried to re-run CI {count} time} other {Tried to re-run CI {count} times}}",
328
+ "d38466778437bfa9": "Found no failed checks to re-run",
329
+ "8982283666c8c3d5": "{count, plural, one {Re-ran CI {count} time} other {Re-ran CI {count} times}}",
330
+ "39949fd3853031e5": "{count, plural, one {Could not re-run {count} check} other {Could not re-run {count} checks}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Re-ran {count} check} other {Re-ran {count} checks}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Re-ran {rerun} check, {refused} refused} other {Re-ran {rerun} checks, {refused} refused}}",
333
"8146ee71f7426683": "{count, plural, one {Reviewed {count} pull request} other {Reviewed {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Tried to review {count} pull request} other {Tried to review {count} pull requests}}",
335
"420bea546d5f8802": "Thread copied",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Respond on a pull request",
1075
"4bcd613be5a48aa2": "Review a pull request",
1076
"81b284c3afb54ec6": "Merge a pull request",
1077
+ "9f0d37a2ec338e59": "Read CI logs",
1078
+ "dcca0dff7324e0f0": "Re-run CI",
1079
"3227c712130a4187": "List issues",
1080
"3f461f26681450d6": "Read an issue",
1081
"fff9316cf5e449b4": "File an issue",
apps/mobile/src/i18n/translations/es.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Puso {count} pull request en cola para fusionar} other {Puso {count} pull requests en cola para fusionar}}",
323
"a742473f42c9a609": "{count, plural, one {Fusionó {count} pull request} other {Fusionó {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Fusionó {merged} pull request, {queued} en cola} other {Fusionó {merged} pull requests, {queued} en cola}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Leyó registros de CI {count} vez} other {Leyó registros de CI {count} veces}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Intentó leer registros de CI {count} vez} other {Intentó leer registros de CI {count} veces}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Intentó volver a ejecutar CI {count} vez} other {Intentó volver a ejecutar CI {count} veces}}",
328
+ "d38466778437bfa9": "No encontró checks fallidos para volver a ejecutar",
329
+ "8982283666c8c3d5": "{count, plural, one {Volvió a ejecutar CI {count} vez} other {Volvió a ejecutar CI {count} veces}}",
330
+ "39949fd3853031e5": "{count, plural, one {No pudo volver a ejecutar {count} check} other {No pudo volver a ejecutar {count} checks}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Volvió a ejecutar {count} check} other {Volvió a ejecutar {count} checks}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Volvió a ejecutar {rerun} check, {refused} rechazados} other {Volvió a ejecutar {rerun} checks, {refused} rechazados}}",
333
"8146ee71f7426683": "{count, plural, one {Revisó {count} pull request} other {Revisó {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Intentó revisar {count} pull request} other {Intentó revisar {count} pull requests}}",
335
"420bea546d5f8802": "Hilo copiado",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Responder en una pull request",
1075
"4bcd613be5a48aa2": "Revisar una pull request",
1076
"81b284c3afb54ec6": "Fusionar una pull request",
1077
+ "9f0d37a2ec338e59": "Leer registros de CI",
1078
+ "dcca0dff7324e0f0": "Volver a ejecutar CI",
1079
"3227c712130a4187": "Listar issues",
1080
"3f461f26681450d6": "Leer una issue",
1081
"fff9316cf5e449b4": "Abrir una issue",
apps/mobile/src/i18n/translations/fr.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {{count} pull request mise en file pour fusion} other {{count} pull requests mises en file pour fusion}}",
323
"a742473f42c9a609": "{count, plural, one {{count} pull request fusionnée} other {{count} pull requests fusionnées}}",
324
"40e3528651297351": "{merged, plural, one {{merged} pull request fusionnée, {queued} en file} other {{merged} pull requests fusionnées, {queued} en file}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Journaux CI lus {count} fois} other {Journaux CI lus {count} fois}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tentative de lecture des journaux CI {count} fois} other {Tentatives de lecture des journaux CI {count} fois}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tentative de relance de la CI {count} fois} other {Tentatives de relance de la CI {count} fois}}",
328
+ "d38466778437bfa9": "Aucune vérification en échec à relancer",
329
+ "8982283666c8c3d5": "{count, plural, one {CI relancée {count} fois} other {CI relancée {count} fois}}",
330
+ "39949fd3853031e5": "{count, plural, one {Impossible de relancer {count} vérification} other {Impossible de relancer {count} vérifications}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {{count} vérification relancée} other {{count} vérifications relancées}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {{rerun} vérification relancée, {refused} refusées} other {{rerun} vérifications relancées, {refused} refusées}}",
333
"8146ee71f7426683": "{count, plural, one {{count} pull request relue} other {{count} pull requests relues}}",
334
"638678077ba2e050": "{count, plural, one {Tentative de revue de {count} pull request} other {Tentative de revue de {count} pull requests}}",
335
"420bea546d5f8802": "Fil copié",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Répondre sur une pull request",
1075
"4bcd613be5a48aa2": "Relire une pull request",
1076
"81b284c3afb54ec6": "Fusionner une pull request",
1077
+ "9f0d37a2ec338e59": "Lire les journaux CI",
1078
+ "dcca0dff7324e0f0": "Relancer la CI",
1079
"3227c712130a4187": "Lister les tickets",
1080
"3f461f26681450d6": "Lire un ticket",
1081
"fff9316cf5e449b4": "Ouvrir un ticket",
apps/mobile/src/i18n/translations/ja.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {{count} 件のプルリクエストをマージ待ちにしました}}",
323
"a742473f42c9a609": "{count, plural, other {{count} 件のプルリクエストをマージしました}}",
324
"40e3528651297351": "{merged, plural, other {{merged} 件のプルリクエストをマージし、{queued} 件をマージ待ちにしました}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {CI ログを {count} 回読み取りました}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {CI ログの読み取りを {count} 回試みました}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {CI の再実行を {count} 回試みました}}",
328
+ "d38466778437bfa9": "再実行する失敗したチェックはありませんでした",
329
+ "8982283666c8c3d5": "{count, plural, other {CI を {count} 回再実行しました}}",
330
+ "39949fd3853031e5": "{count, plural, other {{count} 件のチェックを再実行できませんでした}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {{count} 件のチェックを再実行しました}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {{rerun} 件のチェックを再実行し、{refused} 件は拒否されました}}",
333
"8146ee71f7426683": "{count, plural, other {{count} 件のプルリクエストをレビューしました}}",
334
"638678077ba2e050": "{count, plural, other {{count} 件のプルリクエストのレビューを試みました}}",
335
"420bea546d5f8802": "スレッドをコピーしました",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "プルリクエストに返信",
1075
"4bcd613be5a48aa2": "プルリクエストをレビュー",
1076
"81b284c3afb54ec6": "プルリクエストをマージ",
1077
+ "9f0d37a2ec338e59": "CI ログを読む",
1078
+ "dcca0dff7324e0f0": "CI を再実行",
1079
"3227c712130a4187": "Issue を一覧表示",
1080
"3f461f26681450d6": "Issue を読み取る",
1081
"fff9316cf5e449b4": "Issue を作成",
apps/mobile/src/i18n/translations/ko.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {풀 리퀘스트 {count}개를 병합 대기열에 넣음}}",
323
"a742473f42c9a609": "{count, plural, other {풀 리퀘스트 {count}개를 병합함}}",
324
"40e3528651297351": "{merged, plural, other {풀 리퀘스트 {merged}개를 병합하고 {queued}개를 대기열에 넣음}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {CI 로그를 {count}번 읽음}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {CI 로그 읽기를 {count}번 시도함}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {CI 재실행을 {count}번 시도함}}",
328
+ "d38466778437bfa9": "재실행할 실패한 검사가 없음",
329
+ "8982283666c8c3d5": "{count, plural, other {CI를 {count}번 재실행함}}",
330
+ "39949fd3853031e5": "{count, plural, other {검사 {count}개를 재실행하지 못함}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {검사 {count}개를 재실행함}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {검사 {rerun}개를 재실행하고 {refused}개는 거부됨}}",
333
"8146ee71f7426683": "{count, plural, other {풀 리퀘스트 {count}개를 검토함}}",
334
"638678077ba2e050": "{count, plural, other {풀 리퀘스트 {count}개 검토를 시도함}}",
335
"420bea546d5f8802": "스레드 복사됨",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "풀 리퀘스트에 응답",
1075
"4bcd613be5a48aa2": "풀 리퀘스트 검토",
1076
"81b284c3afb54ec6": "풀 리퀘스트 병합",
1077
+ "9f0d37a2ec338e59": "CI 로그 읽기",
1078
+ "dcca0dff7324e0f0": "CI 재실행",
1079
"3227c712130a4187": "이슈 목록 조회",
1080
"3f461f26681450d6": "이슈 읽기",
1081
"fff9316cf5e449b4": "이슈 작성",
apps/mobile/src/i18n/translations/pt-BR.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Enfileirou {count} pull request para mesclar} other {Enfileirou {count} pull requests para mesclar}}",
323
"a742473f42c9a609": "{count, plural, one {Mesclou {count} pull request} other {Mesclou {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Mesclou {merged} pull request, {queued} na fila} other {Mesclou {merged} pull requests, {queued} na fila}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Leu logs de CI {count} vez} other {Leu logs de CI {count} vezes}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tentou ler logs de CI {count} vez} other {Tentou ler logs de CI {count} vezes}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tentou executar CI novamente {count} vez} other {Tentou executar CI novamente {count} vezes}}",
328
+ "d38466778437bfa9": "Nenhuma verificação com falha para executar novamente",
329
+ "8982283666c8c3d5": "{count, plural, one {Executou CI novamente {count} vez} other {Executou CI novamente {count} vezes}}",
330
+ "39949fd3853031e5": "{count, plural, one {Não foi possível executar novamente {count} verificação} other {Não foi possível executar novamente {count} verificações}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Executou novamente {count} verificação} other {Executou novamente {count} verificações}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Executou novamente {rerun} verificação, {refused} recusadas} other {Executou novamente {rerun} verificações, {refused} recusadas}}",
333
"8146ee71f7426683": "{count, plural, one {Revisou {count} pull request} other {Revisou {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Tentou revisar {count} pull request} other {Tentou revisar {count} pull requests}}",
335
"420bea546d5f8802": "Thread copiada",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Responder em um pull request",
1075
"4bcd613be5a48aa2": "Revisar um pull request",
1076
"81b284c3afb54ec6": "Mesclar um pull request",
1077
+ "9f0d37a2ec338e59": "Ler logs de CI",
1078
+ "dcca0dff7324e0f0": "Executar CI novamente",
1079
"3227c712130a4187": "Listar issues",
1080
"3f461f26681450d6": "Ler uma issue",
1081
"fff9316cf5e449b4": "Abrir uma issue",
apps/mobile/src/i18n/translations/ru.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {В очередь на слияние поставлен {count} пул-реквест} few {В очередь на слияние поставлено {count} пул-реквеста} many {В очередь на слияние поставлено {count} пул-реквестов} other {В очередь на слияние поставлено {count} пул-реквеста}}",
323
"a742473f42c9a609": "{count, plural, one {Слито {count} пул-реквест} few {Слито {count} пул-реквеста} many {Слито {count} пул-реквестов} other {Слито {count} пул-реквеста}}",
324
"40e3528651297351": "{merged, plural, one {Слит {merged} пул-реквест, в очереди: {queued}} few {Слито {merged} пул-реквеста, в очереди: {queued}} many {Слито {merged} пул-реквестов, в очереди: {queued}} other {Слито {merged} пул-реквеста, в очереди: {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Логи CI прочитаны {count} раз} few {Логи CI прочитаны {count} раза} many {Логи CI прочитаны {count} раз} other {Логи CI прочитаны {count} раза}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Попытка прочитать логи CI: {count} раз} few {Попытка прочитать логи CI: {count} раза} many {Попытка прочитать логи CI: {count} раз} other {Попытка прочитать логи CI: {count} раза}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Попытка перезапустить CI: {count} раз} few {Попытка перезапустить CI: {count} раза} many {Попытка перезапустить CI: {count} раз} other {Попытка перезапустить CI: {count} раза}}",
328
+ "d38466778437bfa9": "Нет упавших проверок для перезапуска",
329
+ "8982283666c8c3d5": "{count, plural, one {CI перезапущен {count} раз} few {CI перезапущен {count} раза} many {CI перезапущен {count} раз} other {CI перезапущен {count} раза}}",
330
+ "39949fd3853031e5": "{count, plural, one {Не удалось перезапустить {count} проверку} few {Не удалось перезапустить {count} проверки} many {Не удалось перезапустить {count} проверок} other {Не удалось перезапустить {count} проверки}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Перезапущено {count} проверку} few {Перезапущено {count} проверки} many {Перезапущено {count} проверок} other {Перезапущено {count} проверки}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Перезапущено {rerun} проверку, отклонено: {refused}} few {Перезапущено {rerun} проверки, отклонено: {refused}} many {Перезапущено {rerun} проверок, отклонено: {refused}} other {Перезапущено {rerun} проверки, отклонено: {refused}}}",
333
"8146ee71f7426683": "{count, plural, one {Проверено {count} пул-реквест} few {Проверено {count} пул-реквеста} many {Проверено {count} пул-реквестов} other {Проверено {count} пул-реквеста}}",
334
"638678077ba2e050": "{count, plural, one {Не удалось проверить {count} пул-реквест} few {Не удалось проверить {count} пул-реквеста} many {Не удалось проверить {count} пул-реквестов} other {Не удалось проверить {count} пул-реквеста}}",
335
"420bea546d5f8802": "Тред скопирован",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Ответить в пул-реквесте",
1075
"4bcd613be5a48aa2": "Проверить пул-реквест",
1076
"81b284c3afb54ec6": "Слить пул-реквест",
1077
+ "9f0d37a2ec338e59": "Прочитать логи CI",
1078
+ "dcca0dff7324e0f0": "Перезапустить CI",
1079
"3227c712130a4187": "Получить список issue",
1080
"3f461f26681450d6": "Прочитать issue",
1081
"fff9316cf5e449b4": "Создать issue",
apps/mobile/src/i18n/translations/sv.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Köade {count} pull request för merge} other {Köade {count} pull requests för merge}}",
323
"a742473f42c9a609": "{count, plural, one {Mergade {count} pull request} other {Mergade {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Mergade {merged} pull request, köade {queued}} other {Mergade {merged} pull requests, köade {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Läste CI-loggar {count} gång} other {Läste CI-loggar {count} gånger}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Försökte läsa CI-loggar {count} gång} other {Försökte läsa CI-loggar {count} gånger}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Försökte köra om CI {count} gång} other {Försökte köra om CI {count} gånger}}",
328
+ "d38466778437bfa9": "Hittade inga misslyckade kontroller att köra om",
329
+ "8982283666c8c3d5": "{count, plural, one {Körde om CI {count} gång} other {Körde om CI {count} gånger}}",
330
+ "39949fd3853031e5": "{count, plural, one {Kunde inte köra om {count} kontroll} other {Kunde inte köra om {count} kontroller}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Körde om {count} kontroll} other {Körde om {count} kontroller}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Körde om {rerun} kontroll, {refused} nekades} other {Körde om {rerun} kontroller, {refused} nekades}}",
333
"8146ee71f7426683": "{count, plural, one {Granskade {count} pull request} other {Granskade {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Försökte granska {count} pull request} other {Försökte granska {count} pull requests}}",
335
"420bea546d5f8802": "Tråden kopierades",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Svara på en pull request",
1075
"4bcd613be5a48aa2": "Granska en pull request",
1076
"81b284c3afb54ec6": "Merga en pull request",
1077
+ "9f0d37a2ec338e59": "Läs CI-loggar",
1078
+ "dcca0dff7324e0f0": "Kör om CI",
1079
"3227c712130a4187": "Lista ärenden",
1080
"3f461f26681450d6": "Läs ett ärende",
1081
"fff9316cf5e449b4": "Skapa ett ärende",
apps/mobile/src/i18n/translations/zh.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {已将 {count} 个 PR 加入合并队列}}",
323
"a742473f42c9a609": "{count, plural, other {已合并 {count} 个 PR}}",
324
"40e3528651297351": "{merged, plural, other {已合并 {merged} 个 PR,{queued} 个在队列中}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {读取 CI 日志 {count} 次}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {尝试读取 CI 日志 {count} 次}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {尝试重新运行 CI {count} 次}}",
328
+ "d38466778437bfa9": "没有需要重新运行的失败检查",
329
+ "8982283666c8c3d5": "{count, plural, other {重新运行 CI {count} 次}}",
330
+ "39949fd3853031e5": "{count, plural, other {无法重新运行 {count} 项检查}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {已重新运行 {count} 项检查}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {已重新运行 {rerun} 项检查,{refused} 项被拒绝}}",
333
"8146ee71f7426683": "{count, plural, other {已审查 {count} 个 PR}}",
334
"638678077ba2e050": "{count, plural, other {尝试审查 {count} 个 PR}}",
335
"420bea546d5f8802": "已复制会话",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "在 PR 上回复",
1075
"4bcd613be5a48aa2": "审查 PR",
1076
"81b284c3afb54ec6": "合并 PR",
1077
+ "9f0d37a2ec338e59": "读取 CI 日志",
1078
+ "dcca0dff7324e0f0": "重新运行 CI",
1079
"3227c712130a4187": "列出 issue",
1080
"3f461f26681450d6": "读取 issue",
1081
"fff9316cf5e449b4": "提交 issue",
apps/server/src/mcp/McpHttpServer.test.ts
+5
-1
@@ -1865,13 +1865,17 @@ it.effect(
1865
"pull_request_read",
1866
"pull_request_review",
1867
"pull_request_merge",
1868
+ "ci_logs",
1869
+ "ci_rerun",
1870
]),
1871
);
1872
const noForgeTools = yield* listedTools("noForgeToken");
1873
expect(noForgeTools).toEqual(
1874
expect.arrayContaining(["link_pull_request", "watch_pull_request"]),
1875
);
1874
- expect(noForgeTools.filter((name) => name.startsWith("pull_request_"))).toEqual([]);
1876
+ expect(
1877
+ noForgeTools.filter((name) => name.startsWith("pull_request_") || name.startsWith("ci_")),
1878
+ ).toEqual([]);
1879
}),
1880
).pipe(Effect.provide(NodeHttpServer.layerTest)),
1881
);
apps/server/src/mcp/toolkits/pullRequests/handlers.test.ts
+40
@@ -1020,6 +1020,46 @@ describe("source control tools", () => {
1020
}),
1021
);
1022
1023
+ it.effect("re-running checks reopens a watch that saw its checks finish", () =>
1024
+ Effect.gen(function* () {
1025
+ const watch = {
1026
+ startedAt: "2026-08-20T00:00:00.000Z",
1027
+ headSha: "abc123",
1028
+ failedChecks: ["test"],
1029
+ passed: false,
1030
+ passedChecks: [],
1031
+ remarksThrough: "2026-08-20T00:00:00.000Z",
1032
+ remarkIds: [],
1033
+ conflicting: false,
1034
+ wakes: 0,
1035
+ };
1036
+ const rerun = (checksPending: boolean | undefined, reran: boolean) =>
1037
+ Effect.gen(function* () {
1038
+ const harness = yield* makeHarness({
1039
+ thread: {
1040
+ ...branchThread,
1041
+ pullRequests: [
1042
+ makeLink(42, {
1043
+ watch: checksPending === undefined ? watch : { ...watch, checksPending },
1044
+ }),
1045
+ ],
1046
+ },
1047
+ pullRequests: {
1048
+ rerunChecks: () => Effect.succeed([{ name: "test", rerun: reran, detail: null }]),
1049
+ },
1050
+ });
1051
+ yield* harness.call("ci_rerun", {});
1052
+ return yield* Ref.get(harness.commands);
1053
+ });
1054
+ expect(yield* rerun(false, true)).toMatchObject([
1055
+ { type: "thread.pull-request-watch.checks-reopen", threadId: THREAD_ID },
1056
+ ]);
1057
+ // Nothing re-ran, or the watch has no answer to clear.
1058
+ expect(yield* rerun(false, false)).toEqual([]);
1059
+ expect(yield* rerun(undefined, true)).toEqual([]);
1060
+ }),
1061
+ );
1062
+
1063
it.effect("opens a PR from the thread's worktree and links it even if dismissed", () =>
1064
Effect.gen(function* () {
1065
const opened: Array<{ readonly cwd: string; readonly draft: boolean | undefined }> = [];
apps/server/src/mcp/toolkits/pullRequests/handlers.ts
+40
@@ -1145,6 +1145,46 @@ const make = Effect.gen(function* () {
1145
return { ...identityOf(target), state: after.state };
1146
}),
1147
),
1148
+ ci_logs: McpToolAccess.reads((input) =>
1149
+ Effect.gen(function* () {
1150
+ const { target, ref } = yield* locate(input);
1151
+ const checks = yield* pullRequests
1152
+ .checkLogs({
1153
+ ...ref,
1154
+ tailLines: input.tailLines ?? 200,
1155
+ ...(input.check === undefined ? {} : { check: input.check }),
1156
+ })
1157
+ .pipe(Effect.mapError(forgeFailure));
1158
+ return { ...identityOf(target), checks };
1159
+ }),
1160
+ ),
1161
+ ci_rerun: McpToolAccess.writesWithCapability((input) =>
1162
+ Effect.gen(function* () {
1163
+ const { thread, target, ref } = yield* locate(input);
1164
+ const checks = yield* pullRequests
1165
+ .rerunChecks({ ...ref, ...(input.check === undefined ? {} : { check: input.check }) })
1166
+ .pipe(Effect.mapError(forgeFailure));
1167
+ // Like a push, a rerun makes a watch's finished checks stale, so the thread keeps working
1168
+ // until a read sees them run. The rerun already happened, so a failed reopen only logs.
1169
+ if (
1170
+ checks.some((check) => check.rerun) &&
1171
+ threadPullRequestsOf(thread).some((link) => link.watch?.checksPending !== undefined)
1172
+ ) {
1173
+ yield* engine
1174
+ .dispatch({
1175
+ type: "thread.pull-request-watch.checks-reopen",
1176
+ commandId: yield* commandId("mcp-ci-rerun-checks", thread.id),
1177
+ threadId: thread.id,
1178
+ })
1179
+ .pipe(
1180
+ Effect.catchCause((cause) =>
1181
+ Effect.logWarning("reopening a watch's checks after a rerun failed", cause),
1182
+ ),
1183
+ );
1184
+ }
1185
+ return { ...identityOf(target), checks };
1186
+ }),
1187
+ ),
1188
} satisfies McpToolAccess.Handlers<typeof PullRequestsToolkit.tools>;
1189
});
1190
apps/server/src/mcp/toolkits/pullRequests/tools.ts
+68
@@ -779,6 +779,72 @@ const MergePullRequestTool = Tool.make("pull_request_merge", {
779
.annotate(Tool.OpenWorld, true)
780
.annotate(McpSchema.EnabledWhen, McpInvocationContext.hiddenWithoutForge);
781
782
+export const CheckLogsResult = Schema.Struct({
783
+ ...PullRequestIdentity,
784
+ checks: Schema.Array(
785
+ Schema.Struct({
786
+ name: Schema.String,
787
+ url: Schema.NullOr(Schema.String),
788
+ log: Schema.NullOr(Schema.String),
789
+ truncated: Schema.Boolean,
790
+ detail: Schema.NullOr(Schema.String),
791
+ }),
792
+ ),
793
+});
794
+export type CheckLogsResult = typeof CheckLogsResult.Type;
795
+
796
+export const RerunChecksResult = Schema.Struct({
797
+ ...PullRequestIdentity,
798
+ checks: Schema.Array(
799
+ Schema.Struct({
800
+ name: Schema.String,
801
+ rerun: Schema.Boolean,
802
+ detail: Schema.NullOr(Schema.String),
803
+ }),
804
+ ),
805
+});
806
+export type RerunChecksResult = typeof RerunChecksResult.Type;
807
+
808
+const CheckLogsTool = Tool.make("ci_logs", {
809
+ description:
810
+ "Read the tail of a PR's failing check logs, or one named check's. Use instead of gh run view.",
811
+ parameters: Schema.Struct({
812
+ ...ThreadPullRequestInput.fields,
813
+ check: Schema.optional(TrimmedNonEmptyString),
814
+ tailLines: Schema.optional(
815
+ Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 2000 })).annotate({
816
+ description: "Default: 200.",
817
+ }),
818
+ ),
819
+ }),
820
+ success: CheckLogsResult,
821
+ failure: PullRequestToolError,
822
+ dependencies: forgeDependencies,
823
+})
824
+ .annotate(Tool.Title, "Read CI logs")
825
+ .annotate(Tool.Readonly, true)
826
+ .annotate(Tool.Destructive, false)
827
+ .annotate(Tool.Idempotent, true)
828
+ .annotate(Tool.OpenWorld, true)
829
+ .annotate(McpSchema.EnabledWhen, McpInvocationContext.hiddenWithoutForge);
830
+
831
+const RerunChecksTool = Tool.make("ci_rerun", {
832
+ description: "Re-run a PR's failing checks, or one named check.",
833
+ parameters: Schema.Struct({
834
+ ...ThreadPullRequestInput.fields,
835
+ check: Schema.optional(TrimmedNonEmptyString),
836
+ }),
837
+ success: RerunChecksResult,
838
+ failure: PullRequestToolError,
839
+ dependencies: forgeDependencies,
840
+})
841
+ .annotate(Tool.Title, "Re-run CI")
842
+ .annotate(Tool.Readonly, false)
843
+ .annotate(Tool.Destructive, false)
844
+ .annotate(Tool.Idempotent, false)
845
+ .annotate(Tool.OpenWorld, true)
846
+ .annotate(McpSchema.EnabledWhen, McpInvocationContext.hiddenWithoutForge);
847
+
848
export const PullRequestsToolkit = Toolkit.make(
849
LinkPullRequestTool,
850
LinkPullRequestsTool,
@@ -796,4 +862,6 @@ export const PullRequestsToolkit = Toolkit.make(
862
RespondToPullRequestTool,
863
ReviewPullRequestTool,
864
MergePullRequestTool,
865
+ CheckLogsTool,
866
+ RerunChecksTool,
867
);
apps/server/src/orchestration-v2/testkit/fixtures/multi_turn/muse_transcript.ndjson
+6
-6
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6b-707e-7000-9bb5-4079c7772ad0/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:30:11.238412Z","updatedAt":"2026-10-08T07:30:11.238416Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791444611408}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6b-707e-7000-9bb5-4079c7772ad0/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:30:11.238412Z","updatedAt":"2026-10-08T07:30:11.238416Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:1","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"37b19bd1-b212-4532-a0c9-a6677f303e26","sequence":5},"last":{"id":"37b19bd1-b212-4532-a0c9-a6677f303e26","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a11a6b-707e-7001-b2f4-23db74e60097","clientName":"t3_code"},"emittedAtMs":1791444611412}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with exactly: first fixture turn complete"}],"displayText":"Respond with exactly: first fixture turn complete","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with exactly: first fixture turn complete"}],"displayText":"Respond with exactly: first fixture turn complete","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:2","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"2c530748-943b-4467-8473-da8b04c511c3","sequence":16},"last":{"id":"2c530748-943b-4467-8473-da8b04c511c3","sequence":16}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444611661}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","status":"accepted","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","status":"running","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:3"},"emittedAtMs":1791444611674}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:3","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18},"last":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18}},"turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"},"emittedAtMs":1791444611675}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18},"last":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18}},"item":{"itemId":"1b470279-ee8c-4c74-a298-f37184145584","kind":"userMessage","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":1,"status":"completed","recordedAt":"2026-10-08T07:30:11.66263Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: first fixture turn complete","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}},"emittedAtMs":1791444611675}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"31b500d6-40fc-4f4c-b097-6b7be8d77cee","sequence":20},"last":{"id":"31b500d6-40fc-4f4c-b097-6b7be8d77cee","sequence":20}},"item":{"itemId":"1b470279-ee8c-4c74-a298-f37184145584","kind":"userMessage","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":2,"status":"completed","recordedAt":"2026-10-08T07:30:11.680942Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: first fixture turn complete","displayText":"Respond with exactly: first fixture turn complete","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}},"emittedAtMs":1791444611689}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18},"last":{"id":"2be0c9b5-9dc4-48f0-9b86-06aef4de31f3","sequence":18}},"item":{"itemId":"1b470279-ee8c-4c74-a298-f37184145584","kind":"userMessage","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":1,"status":"completed","recordedAt":"2026-10-08T07:30:11.66263Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: first fixture turn complete","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}},"emittedAtMs":1791444611675}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"31b500d6-40fc-4f4c-b097-6b7be8d77cee","sequence":20},"last":{"id":"31b500d6-40fc-4f4c-b097-6b7be8d77cee","sequence":20}},"item":{"itemId":"1b470279-ee8c-4c74-a298-f37184145584","kind":"userMessage","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":2,"status":"completed","recordedAt":"2026-10-08T07:30:11.680942Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: first fixture turn complete","displayText":"Respond with exactly: first fixture turn complete","commandId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4"}},"emittedAtMs":1791444611689}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:6","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"077780ea-0dc9-4d7a-879c-ee368f3adbe0","sequence":37},"last":{"id":"077780ea-0dc9-4d7a-879c-ee368f3adbe0","sequence":37}},"item":{"itemId":"077780ea-0dc9-4d7a-879c-ee368f3adbe0","kind":"reminderChild","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:30:11.790301Z","fallbackText":"Reminder child session","childSessionId":"c13379db-6761-40b4-a974-b0f1a58717aa","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6b-72ac-7972-a1df-b343b7804b38"}},"emittedAtMs":1791444611795}}
18
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:6.1","item":{"itemId":"f99b90e1-9d8b-4bf2-8e7a-e240e1cf9321","kind":"agentMessage","turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","revision":1,"status":"inProgress","text":""}},"emittedAtMs":1791444618068}}
19
{"type":"emit_inbound","label":"item/delta","frame":{"jsonrpc":"2.0","method":"item/delta","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:6.2","itemId":"f99b90e1-9d8b-4bf2-8e7a-e240e1cf9321","field":"text","delta":"first fixture turn complete"},"emittedAtMs":1791444618068}}
@@ -29,12 +29,12 @@
29
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","status":"idle","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:16"},"emittedAtMs":1791444621046}}
30
{"type":"emit_inbound","label":"turn/completed","frame":{"jsonrpc":"2.0","method":"turn/completed","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:16","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"688a69c5-e353-4db9-bd8c-1beb033902ba","sequence":79},"last":{"id":"688a69c5-e353-4db9-bd8c-1beb033902ba","sequence":79}},"turnId":"01a11a6b-722c-7000-a73a-1d49a3a7f4c4","terminal":"completed","durationMs":9378,"timeToFirstTokenMs":6406},"emittedAtMs":1791444621047}}
31
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:17","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"36753b8a-26ce-4935-8127-bc9191cb328b","sequence":80},"last":{"id":"36753b8a-26ce-4935-8127-bc9191cb328b","sequence":80}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444621054}}
32
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":4,"method":"turn/start","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with exactly: second fixture turn complete"}],"displayText":"Respond with exactly: second fixture turn complete","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}}}
32
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":4,"method":"turn/start","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with exactly: second fixture turn complete"}],"displayText":"Respond with exactly: second fixture turn complete","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}}}
33
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":4,"result":{"commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","status":"accepted","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","startedNewTurn":true,"disposition":"started"}}}
34
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","status":"running","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:18"},"emittedAtMs":1791444621333}}
35
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:18","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87},"last":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87}},"turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"},"emittedAtMs":1791444621334}}
36
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:19","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87},"last":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87}},"item":{"itemId":"90719a5d-d2c1-46dc-ad4d-274adda02344","kind":"userMessage","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":1,"status":"completed","recordedAt":"2026-10-08T07:30:21.321391Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: second fixture turn complete","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}},"emittedAtMs":1791444621334}}
37
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:20","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"dc502e2c-d81c-4f0e-ad86-dd11d1368677","sequence":89},"last":{"id":"dc502e2c-d81c-4f0e-ad86-dd11d1368677","sequence":89}},"item":{"itemId":"90719a5d-d2c1-46dc-ad4d-274adda02344","kind":"userMessage","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":2,"status":"completed","recordedAt":"2026-10-08T07:30:21.338944Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: second fixture turn complete","displayText":"Respond with exactly: second fixture turn complete","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}},"emittedAtMs":1791444621347}}
36
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:19","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87},"last":{"id":"4aba96d5-f984-4bc0-bda4-7fb97f527686","sequence":87}},"item":{"itemId":"90719a5d-d2c1-46dc-ad4d-274adda02344","kind":"userMessage","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":1,"status":"completed","recordedAt":"2026-10-08T07:30:21.321391Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: second fixture turn complete","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}},"emittedAtMs":1791444621334}}
37
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:20","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"dc502e2c-d81c-4f0e-ad86-dd11d1368677","sequence":89},"last":{"id":"dc502e2c-d81c-4f0e-ad86-dd11d1368677","sequence":89}},"item":{"itemId":"90719a5d-d2c1-46dc-ad4d-274adda02344","kind":"userMessage","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":2,"status":"completed","recordedAt":"2026-10-08T07:30:21.338944Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with exactly: second fixture turn complete","displayText":"Respond with exactly: second fixture turn complete","commandId":"01a11a6b-97ec-7000-bd1b-d7afbea11045"}},"emittedAtMs":1791444621347}}
38
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:21","sourceRange":{"stream":{"kind":"session","id":"01a11a6b-707e-7000-9bb5-4079c7772ad0"},"first":{"id":"09cb4c2a-03c2-4089-ba12-8d5d31f7ea48","sequence":106},"last":{"id":"09cb4c2a-03c2-4089-ba12-8d5d31f7ea48","sequence":106}},"item":{"itemId":"09cb4c2a-03c2-4089-ba12-8d5d31f7ea48","kind":"reminderChild","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:30:21.446966Z","fallbackText":"Reminder child session","childSessionId":"cd97261a-3ea9-480f-9e54-5e59bb077da2","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6b-9869-7061-a4f3-42daa3e3a8f1"}},"emittedAtMs":1791444621455}}
39
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:21.1","item":{"itemId":"2de26c0d-26b4-4533-8810-918ee44fcd82","kind":"agentMessage","turnId":"01a11a6b-97ec-7000-bd1b-d7afbea11045","revision":1,"status":"inProgress","text":""}},"emittedAtMs":1791444623127}}
40
{"type":"emit_inbound","label":"item/delta","frame":{"jsonrpc":"2.0","method":"item/delta","params":{"sessionId":"01a11a6b-707e-7000-9bb5-4079c7772ad0","viewCursor":"v:01a11a6b-707e-7000-9bb5-4079c7772ad0:21.2","itemId":"2de26c0d-26b4-4533-8810-918ee44fcd82","field":"text","delta":"second fixture turn complete"},"emittedAtMs":1791444623127}}
apps/server/src/orchestration-v2/testkit/fixtures/muse_permission/muse_transcript.ndjson
+6
-6
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6d-39bb-7000-8c93-4594c98e6a11/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:32:08.30084Z","updatedAt":"2026-10-08T07:32:08.300844Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"promptUnmatched","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791444728496}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6d-39bb-7000-8c93-4594c98e6a11/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:32:08.30084Z","updatedAt":"2026-10-08T07:32:08.300844Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"promptUnmatched","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:1","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"b05fb8ec-7b58-4cf7-a369-379938395230","sequence":5},"last":{"id":"b05fb8ec-7b58-4cf7-a369-379938395230","sequence":5}},"mode":"promptUnmatched","source":"approvalReconfigure","commandId":"01a11a6d-39bb-7001-923e-425cc6129ce7","clientName":"t3_code"},"emittedAtMs":1791444728501}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE."}],"displayText":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE."}],"displayText":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:2","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"6159e84a-ae1e-4fae-ae8b-49f41ca34509","sequence":16},"last":{"id":"6159e84a-ae1e-4fae-ae8b-49f41ca34509","sequence":16}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444728769}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","status":"accepted","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","status":"running","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:3"},"emittedAtMs":1791444728783}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:3","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18},"last":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18}},"turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"},"emittedAtMs":1791444728783}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18},"last":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18}},"item":{"itemId":"dde9573b-650f-434b-ab99-60cfc820a0a5","kind":"userMessage","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:08.769894Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}},"emittedAtMs":1791444728784}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"76c57706-1378-4167-8bbf-f76d959804e8","sequence":20},"last":{"id":"76c57706-1378-4167-8bbf-f76d959804e8","sequence":20}},"item":{"itemId":"dde9573b-650f-434b-ab99-60cfc820a0a5","kind":"userMessage","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:08.791728Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","displayText":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}},"emittedAtMs":1791444728800}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18},"last":{"id":"09218c3a-88fd-4bc8-ab45-d1aa69bea95a","sequence":18}},"item":{"itemId":"dde9573b-650f-434b-ab99-60cfc820a0a5","kind":"userMessage","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:08.769894Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}},"emittedAtMs":1791444728784}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"76c57706-1378-4167-8bbf-f76d959804e8","sequence":20},"last":{"id":"76c57706-1378-4167-8bbf-f76d959804e8","sequence":20}},"item":{"itemId":"dde9573b-650f-434b-ab99-60cfc820a0a5","kind":"userMessage","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:08.791728Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","displayText":"Run the shell command `touch muse-approved.txt` with your shell tool, then reply DONE.","commandId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6"}},"emittedAtMs":1791444728800}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:6","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"29180105-84c4-4f9e-8bfd-003392b93b73","sequence":38},"last":{"id":"29180105-84c4-4f9e-8bfd-003392b93b73","sequence":38}},"item":{"itemId":"29180105-84c4-4f9e-8bfd-003392b93b73","kind":"reminderChild","turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:32:08.905989Z","fallbackText":"Reminder child session","childSessionId":"7c9485f9-26aa-4b56-8ca2-f36cb9cfb8c4","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-3c27-73f2-8c27-cd06a3b7dadf"}},"emittedAtMs":1791444728910}}
18
{"type":"emit_inbound","label":"session/tokenUsage","frame":{"jsonrpc":"2.0","method":"session/tokenUsage","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:7","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"b1dab1f5-3c9e-4d92-b955-841a2269c23c","sequence":54},"last":{"id":"b1dab1f5-3c9e-4d92-b955-841a2269c23c","sequence":54}},"turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","modelId":"muse-spark-1.3-contributor","usage":{"inputTokens":32618,"outputTokens":315,"cachedTokens":0,"cacheWriteTokens":0,"cacheReadTokens":0,"reasoningTokens":227},"promptTokens":32618,"totalTokens":32933,"finishReason":"tool_calls","durationMs":2684,"cumulative":{"promptTokens":32618,"outputTokens":315,"totalTokens":32933,"cost":{"usd":0.0033248,"partial":false}}},"emittedAtMs":1791444731684}}
19
{"type":"emit_inbound","label":"session/contextUsage","frame":{"jsonrpc":"2.0","method":"session/contextUsage","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:8","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"b1dab1f5-3c9e-4d92-b955-841a2269c23c","sequence":54},"last":{"id":"b1dab1f5-3c9e-4d92-b955-841a2269c23c","sequence":54}},"windowTokens":1007997,"usedTokens":32933,"pressure":"normal"},"emittedAtMs":1791444731684}}
@@ -42,12 +42,12 @@
42
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","status":"idle","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:23"},"emittedAtMs":1791444747386}}
43
{"type":"emit_inbound","label":"turn/completed","frame":{"jsonrpc":"2.0","method":"turn/completed","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:23","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"7c29ac76-7e09-48c1-a18f-f336126e27d1","sequence":120},"last":{"id":"7c29ac76-7e09-48c1-a18f-f336126e27d1","sequence":120}},"turnId":"01a11a6d-3b9f-7000-b6ad-ab05e6b973b6","terminal":"completed","durationMs":18608,"timeToFirstTokenMs":4791},"emittedAtMs":1791444747387}}
44
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:24","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"1e4afe30-d924-444c-8665-5e763f524e70","sequence":121},"last":{"id":"1e4afe30-d924-444c-8665-5e763f524e70","sequence":121}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444747394}}
45
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":5,"method":"turn/start","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED."}],"displayText":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}}}
45
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":5,"method":"turn/start","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED."}],"displayText":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}}}
46
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":5,"result":{"commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29","status":"accepted","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","startedNewTurn":true,"disposition":"started"}}}
47
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","status":"running","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:25"},"emittedAtMs":1791444747660}}
48
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:25","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128},"last":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128}},"turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"},"emittedAtMs":1791444747660}}
49
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:26","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128},"last":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128}},"item":{"itemId":"27473708-71e0-4d3c-811c-a8bae6bbaa3b","kind":"userMessage","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:27.650913Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}},"emittedAtMs":1791444747660}}
50
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:27","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"4a056a03-469a-4c9f-94a9-78eb815023ad","sequence":130},"last":{"id":"4a056a03-469a-4c9f-94a9-78eb815023ad","sequence":130}},"item":{"itemId":"27473708-71e0-4d3c-811c-a8bae6bbaa3b","kind":"userMessage","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:27.66745Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","displayText":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}},"emittedAtMs":1791444747676}}
49
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:26","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128},"last":{"id":"4a1cf90d-7457-448d-a2b5-d82108636b3b","sequence":128}},"item":{"itemId":"27473708-71e0-4d3c-811c-a8bae6bbaa3b","kind":"userMessage","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:27.650913Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}},"emittedAtMs":1791444747660}}
50
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:27","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"4a056a03-469a-4c9f-94a9-78eb815023ad","sequence":130},"last":{"id":"4a056a03-469a-4c9f-94a9-78eb815023ad","sequence":130}},"item":{"itemId":"27473708-71e0-4d3c-811c-a8bae6bbaa3b","kind":"userMessage","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:27.66745Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","displayText":"Run the shell command `touch muse-declined.txt` with your shell tool once. If it is rejected, do not retry; reply REJECTED.","commandId":"01a11a6d-8566-7000-8ad1-6269ac187a29"}},"emittedAtMs":1791444747676}}
51
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:28","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"3b28955d-a87a-4acb-97e9-14cad87fd41f","sequence":148},"last":{"id":"3b28955d-a87a-4acb-97e9-14cad87fd41f","sequence":148}},"item":{"itemId":"3b28955d-a87a-4acb-97e9-14cad87fd41f","kind":"reminderChild","turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:32:27.787099Z","fallbackText":"Reminder child session","childSessionId":"efd21bf1-4fd1-49a2-9c55-91b7fc099765","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-85ed-7b91-8d91-c4ce76b6dfef"}},"emittedAtMs":1791444747794}}
52
{"type":"emit_inbound","label":"session/tokenUsage","frame":{"jsonrpc":"2.0","method":"session/tokenUsage","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:29","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"b032c01d-eae1-437e-910c-8756aedc6084","sequence":164},"last":{"id":"b032c01d-eae1-437e-910c-8756aedc6084","sequence":164}},"turnId":"01a11a6d-8566-7000-8ad1-6269ac187a29","modelId":"muse-spark-1.3-contributor","usage":{"inputTokens":33401,"outputTokens":201,"cachedTokens":33009,"cacheWriteTokens":0,"cacheReadTokens":33009,"reasoningTokens":108},"promptTokens":33401,"totalTokens":33602,"finishReason":"tool_calls","durationMs":2522,"cumulative":{"promptTokens":99045,"outputTokens":538,"totalTokens":99583,"cacheReadTokens":65506,"cost":{"usd":0.003592512,"partial":false}}},"emittedAtMs":1791444750395}}
53
{"type":"emit_inbound","label":"session/contextUsage","frame":{"jsonrpc":"2.0","method":"session/contextUsage","params":{"sessionId":"01a11a6d-39bb-7000-8c93-4594c98e6a11","viewCursor":"v:01a11a6d-39bb-7000-8c93-4594c98e6a11:30","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-39bb-7000-8c93-4594c98e6a11"},"first":{"id":"b032c01d-eae1-437e-910c-8756aedc6084","sequence":164},"last":{"id":"b032c01d-eae1-437e-910c-8756aedc6084","sequence":164}},"windowTokens":1007997,"usedTokens":33602,"pressure":"normal"},"emittedAtMs":1791444750395}}
apps/server/src/orchestration-v2/testkit/fixtures/muse_subagent_approval/muse_transcript.ndjson
+3
-3
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","path":"~/.local/share/muse/sessions/2026/10/11/01a12d1d-a1b7-7000-9697-d430c2e2afd8/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:37:59.14136Z","updatedAt":"2026-10-11T22:37:59.141364Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"promptUnmatched","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791758279294}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","path":"~/.local/share/muse/sessions/2026/10/11/01a12d1d-a1b7-7000-9697-d430c2e2afd8/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:37:59.14136Z","updatedAt":"2026-10-11T22:37:59.141364Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"promptUnmatched","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:1","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"ed95a9db-eada-4751-a7e6-22ccc9bdabd5","sequence":5},"last":{"id":"ed95a9db-eada-4751-a7e6-22ccc9bdabd5","sequence":5}},"mode":"promptUnmatched","source":"approvalReconfigure","commandId":"01a12d1d-a1b8-7000-8d6c-f1324b724cdb","clientName":"t3_code"},"emittedAtMs":1791758279297}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:2","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"4f170229-d428-4a64-9516-7a355ff3bcdb","sequence":15},"last":{"id":"4f170229-d428-4a64-9516-7a355ff3bcdb","sequence":15}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791758279531}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","status":"accepted","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","status":"running","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:3"},"emittedAtMs":1791758279541}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:3","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17},"last":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17}},"turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"},"emittedAtMs":1791758279542}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:4","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17},"last":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17}},"item":{"itemId":"a4b3de8d-842b-4065-8769-aed18e62e9fc","kind":"userMessage","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":1,"status":"completed","recordedAt":"2026-10-11T22:37:59.531477Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}},"emittedAtMs":1791758279542}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:5","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"5a63e348-5bf6-4262-b37f-d31d307ea6d8","sequence":19},"last":{"id":"5a63e348-5bf6-4262-b37f-d31d307ea6d8","sequence":19}},"item":{"itemId":"a4b3de8d-842b-4065-8769-aed18e62e9fc","kind":"userMessage","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":2,"status":"completed","recordedAt":"2026-10-11T22:37:59.545908Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","displayText":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}},"emittedAtMs":1791758279553}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:4","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17},"last":{"id":"429e8ecf-d532-4b14-a303-b9f832c36a51","sequence":17}},"item":{"itemId":"a4b3de8d-842b-4065-8769-aed18e62e9fc","kind":"userMessage","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":1,"status":"completed","recordedAt":"2026-10-11T22:37:59.531477Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}},"emittedAtMs":1791758279542}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:5","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"5a63e348-5bf6-4262-b37f-d31d307ea6d8","sequence":19},"last":{"id":"5a63e348-5bf6-4262-b37f-d31d307ea6d8","sequence":19}},"item":{"itemId":"a4b3de8d-842b-4065-8769-aed18e62e9fc","kind":"userMessage","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":2,"status":"completed","recordedAt":"2026-10-11T22:37:59.545908Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","displayText":"Do not run any commands yourself. Spawn one subagent whose only task is to run this exact shell command: printf 'subagent approval fixture' > subagent-approval.txt and then reply with exactly: Written. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d1d-a348-7000-ae97-9d27b5f80bce"}},"emittedAtMs":1791758279553}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:6","sourceRange":{"stream":{"kind":"session","id":"01a12d1d-a1b7-7000-9697-d430c2e2afd8"},"first":{"id":"d55286a9-a9e2-4d7b-be97-d44360bcca2b","sequence":37},"last":{"id":"d55286a9-a9e2-4d7b-be97-d44360bcca2b","sequence":37}},"item":{"itemId":"d55286a9-a9e2-4d7b-be97-d44360bcca2b","kind":"reminderChild","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":1,"status":"inProgress","recordedAt":"2026-10-11T22:37:59.660065Z","fallbackText":"Reminder child session","childSessionId":"0779d605-54b8-45dc-90b6-91dc58b9a52c","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a12d1d-a3d4-7712-8b98-26f3c4f9bf38"}},"emittedAtMs":1791758279666}}
18
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:6.1","item":{"itemId":"21b74b34-fe9f-457c-83f0-cf49257b5948","kind":"reasoning","turnId":"01a12d1d-a348-7000-ae97-9d27b5f80bce","revision":1,"status":"inProgress","summary":[""]}},"emittedAtMs":1791758282481}}
19
{"type":"emit_inbound","label":"item/delta","frame":{"jsonrpc":"2.0","method":"item/delta","params":{"sessionId":"01a12d1d-a1b7-7000-9697-d430c2e2afd8","viewCursor":"v:01a12d1d-a1b7-7000-9697-d430c2e2afd8:6.2","itemId":"21b74b34-fe9f-457c-83f0-cf49257b5948","field":"summary.0","delta":"Spawning a subagent via muse_subagent_spawn to run a shell command and return its exact output, while avoiding direct command execution."},"emittedAtMs":1791758282481}}
apps/server/src/orchestration-v2/testkit/fixtures/muse_subagent_interrupt/muse_transcript.ndjson
+3
-3
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","path":"~/.local/share/muse/sessions/2026/10/11/01a12d28-7788-7000-a946-c407f380868e/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:49:49.235205Z","updatedAt":"2026-10-11T22:49:49.235209Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791758989388}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","path":"~/.local/share/muse/sessions/2026/10/11/01a12d28-7788-7000-a946-c407f380868e/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:49:49.235205Z","updatedAt":"2026-10-11T22:49:49.235209Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:1","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"29d4e769-78f7-48fa-90cd-3ac9f8fa04bf","sequence":5},"last":{"id":"29d4e769-78f7-48fa-90cd-3ac9f8fa04bf","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a12d28-7788-7001-a223-c10e52187cdf","clientName":"t3_code"},"emittedAtMs":1791758989391}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:2","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"660e2cfd-318a-4d2d-87bb-0b1375d79fdf","sequence":15},"last":{"id":"660e2cfd-318a-4d2d-87bb-0b1375d79fdf","sequence":15}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791758989619}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a12d28-7912-7000-993a-afd019e6ac5c","status":"accepted","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","status":"running","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:3"},"emittedAtMs":1791758989632}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:3","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17},"last":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17}},"turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"},"emittedAtMs":1791758989632}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:4","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17},"last":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17}},"item":{"itemId":"5e234d9d-0744-4757-9629-761ea4e7f062","kind":"userMessage","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","revision":1,"status":"completed","recordedAt":"2026-10-11T22:49:49.620067Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}},"emittedAtMs":1791758989632}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:5","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"5724636e-9398-4d23-87ac-1e9a2b83ad9f","sequence":19},"last":{"id":"5724636e-9398-4d23-87ac-1e9a2b83ad9f","sequence":19}},"item":{"itemId":"5e234d9d-0744-4757-9629-761ea4e7f062","kind":"userMessage","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","revision":2,"status":"completed","recordedAt":"2026-10-11T22:49:49.635395Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","displayText":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}},"emittedAtMs":1791758989642}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:4","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17},"last":{"id":"5cb199bd-04e5-40d9-a299-8760be80e0a4","sequence":17}},"item":{"itemId":"5e234d9d-0744-4757-9629-761ea4e7f062","kind":"userMessage","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","revision":1,"status":"completed","recordedAt":"2026-10-11T22:49:49.620067Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}},"emittedAtMs":1791758989632}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:5","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"5724636e-9398-4d23-87ac-1e9a2b83ad9f","sequence":19},"last":{"id":"5724636e-9398-4d23-87ac-1e9a2b83ad9f","sequence":19}},"item":{"itemId":"5e234d9d-0744-4757-9629-761ea4e7f062","kind":"userMessage","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","revision":2,"status":"completed","recordedAt":"2026-10-11T22:49:49.635395Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","displayText":"Spawn one subagent whose only task is to run the shell command `sleep 30` and then reply with exactly: Done. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d28-7912-7000-993a-afd019e6ac5c"}},"emittedAtMs":1791758989642}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:6","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"44afb415-d6e4-4d51-9002-4deb196d463a","sequence":36},"last":{"id":"44afb415-d6e4-4d51-9002-4deb196d463a","sequence":36}},"item":{"itemId":"44afb415-d6e4-4d51-9002-4deb196d463a","kind":"reminderChild","turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","revision":1,"status":"inProgress","recordedAt":"2026-10-11T22:49:49.743418Z","fallbackText":"Reminder child session","childSessionId":"4dd3511e-2115-4fbb-a4c4-383cbb383d63","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a12d28-7997-79d0-8a69-8ac0acf92a56"}},"emittedAtMs":1791758989750}}
18
{"type":"emit_inbound","label":"session/tokenUsage","frame":{"jsonrpc":"2.0","method":"session/tokenUsage","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:7","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"c94f5484-20b7-4057-a736-303e97bc097c","sequence":52},"last":{"id":"c94f5484-20b7-4057-a736-303e97bc097c","sequence":52}},"turnId":"01a12d28-7912-7000-993a-afd019e6ac5c","modelId":"muse-spark-1.3-contributor","usage":{"inputTokens":32911,"outputTokens":264,"cachedTokens":0,"cacheWriteTokens":0,"cacheReadTokens":0,"reasoningTokens":143},"promptTokens":32911,"totalTokens":33175,"finishReason":"tool_calls","durationMs":3651,"cumulative":{"promptTokens":32911,"outputTokens":264,"totalTokens":33175,"cost":{"usd":0.0033439000000000003,"partial":false}}},"emittedAtMs":1791758993485}}
19
{"type":"emit_inbound","label":"session/contextUsage","frame":{"jsonrpc":"2.0","method":"session/contextUsage","params":{"sessionId":"01a12d28-7788-7000-a946-c407f380868e","viewCursor":"v:01a12d28-7788-7000-a946-c407f380868e:8","sourceRange":{"stream":{"kind":"session","id":"01a12d28-7788-7000-a946-c407f380868e"},"first":{"id":"c94f5484-20b7-4057-a736-303e97bc097c","sequence":52},"last":{"id":"c94f5484-20b7-4057-a736-303e97bc097c","sequence":52}},"windowTokens":1007997,"usedTokens":33175,"pressure":"normal"},"emittedAtMs":1791758993485}}
apps/server/src/orchestration-v2/testkit/fixtures/muse_workflow/muse_transcript.ndjson
+3
-3
@@ -8,13 +8,13 @@
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","path":"~/.local/share/muse/sessions/2026/10/11/01a12d5d-405f-7000-89a3-5aa62af6ea23/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T23:47:28.587276Z","updatedAt":"2026-10-11T23:47:28.587281Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:2"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:1","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"0c13b14b-877c-4c5b-b05f-8ad250dfd381","sequence":5},"last":{"id":"0c13b14b-877c-4c5b-b05f-8ad250dfd381","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a12d5d-4060-7000-b6cd-aaabe26f80de","clientName":"t3_code"},"emittedAtMs":1791762448807}}
10
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:2","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"28b1f3f4-4448-4a21-a1a0-2df72ad1d326","sequence":6},"last":{"id":"28b1f3f4-4448-4a21-a1a0-2df72ad1d326","sequence":6}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791762448807}}
11
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it."}],"displayText":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}}}
11
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it."}],"displayText":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}}}
12
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:3","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"3f1880e1-81a0-4f21-b536-6b4fa5cf9d12","sequence":16},"last":{"id":"3f1880e1-81a0-4f21-b536-6b4fa5cf9d12","sequence":16}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791762449097}}
13
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","status":"accepted","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","startedNewTurn":true,"disposition":"started"}}}
14
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","status":"running","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:4"},"emittedAtMs":1791762449102}}
15
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:4","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18},"last":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18}},"turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"},"emittedAtMs":1791762449103}}
16
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:5","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18},"last":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18}},"item":{"itemId":"0c1ceda9-41f7-4c3e-990e-4c53873c7ef5","kind":"userMessage","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":1,"status":"completed","recordedAt":"2026-10-11T23:47:29.098117Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}},"emittedAtMs":1791762449103}}
17
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:6","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"0411a5c8-2c8a-4c9e-bb67-25fa3cef21a3","sequence":20},"last":{"id":"0411a5c8-2c8a-4c9e-bb67-25fa3cef21a3","sequence":20}},"item":{"itemId":"0c1ceda9-41f7-4c3e-990e-4c53873c7ef5","kind":"userMessage","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":2,"status":"completed","recordedAt":"2026-10-11T23:47:29.107019Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","displayText":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}},"emittedAtMs":1791762449131}}
16
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:5","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18},"last":{"id":"7a830825-f571-4781-8e4f-a4ef5e085bb7","sequence":18}},"item":{"itemId":"0c1ceda9-41f7-4c3e-990e-4c53873c7ef5","kind":"userMessage","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":1,"status":"completed","recordedAt":"2026-10-11T23:47:29.098117Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}},"emittedAtMs":1791762449103}}
17
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:6","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"0411a5c8-2c8a-4c9e-bb67-25fa3cef21a3","sequence":20},"last":{"id":"0411a5c8-2c8a-4c9e-bb67-25fa3cef21a3","sequence":20}},"item":{"itemId":"0c1ceda9-41f7-4c3e-990e-4c53873c7ef5","kind":"userMessage","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":2,"status":"completed","recordedAt":"2026-10-11T23:47:29.107019Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","displayText":"Use your workflow tool to launch a workflow with exactly TWO agents: one labeled 'ping' that replies with the word PING, and one labeled 'pong' that replies with the word PONG. Launch it and end your turn; do not wait for it.","commandId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5"}},"emittedAtMs":1791762449131}}
18
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:7","sourceRange":{"stream":{"kind":"session","id":"01a12d5d-405f-7000-89a3-5aa62af6ea23"},"first":{"id":"95574bfe-853f-44cc-81f6-88b05d6c8c16","sequence":38},"last":{"id":"95574bfe-853f-44cc-81f6-88b05d6c8c16","sequence":38}},"item":{"itemId":"95574bfe-853f-44cc-81f6-88b05d6c8c16","kind":"reminderChild","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":1,"status":"inProgress","recordedAt":"2026-10-11T23:47:29.328939Z","fallbackText":"Reminder child session","childSessionId":"b16dbb52-7f62-4a5a-84c2-f68d7ea22b18","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a12d5d-4375-7d72-b5b2-4b096d0df507"}},"emittedAtMs":1791762449336}}
19
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:7.1","item":{"itemId":"3ce724bc-dacf-400e-af9a-995104717cb1","kind":"reasoning","turnId":"01a12d5d-42c3-7000-ab94-c7f56ea457e5","revision":1,"status":"inProgress","summary":[""]}},"emittedAtMs":1791762451554}}
20
{"type":"emit_inbound","label":"item/delta","frame":{"jsonrpc":"2.0","method":"item/delta","params":{"sessionId":"01a12d5d-405f-7000-89a3-5aa62af6ea23","viewCursor":"v:01a12d5d-405f-7000-89a3-5aa62af6ea23:7.2","itemId":"3ce724bc-dacf-400e-af9a-995104717cb1","field":"summary.0","delta":"Launching a two-agent ping-pong workflow via the workflow tool while skipping skill reading for a trivial task."},"emittedAtMs":1791762451554}}
apps/server/src/orchestration-v2/testkit/fixtures/simple/muse_transcript.ndjson
+3
-3
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6a-bbb5-7000-ad0b-0c9e728406e5/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:29:25.018803Z","updatedAt":"2026-10-08T07:29:25.018807Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791444565334}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6a-bbb5-7000-ad0b-0c9e728406e5/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:29:25.018803Z","updatedAt":"2026-10-08T07:29:25.018807Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:1","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"cfd043e8-8728-493d-ba28-252ef91e8a80","sequence":5},"last":{"id":"cfd043e8-8728-493d-ba28-252ef91e8a80","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a11a6a-bbb6-7000-b1a4-a01ea59676ef","clientName":"t3_code"},"emittedAtMs":1791444565340}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with the following text: fixture simple ok"}],"displayText":"Respond with the following text: fixture simple ok","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Respond with the following text: fixture simple ok"}],"displayText":"Respond with the following text: fixture simple ok","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:2","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"0f64f4ea-a08c-43e1-af53-cf85cee1a11c","sequence":16},"last":{"id":"0f64f4ea-a08c-43e1-af53-cf85cee1a11c","sequence":16}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444565612}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","status":"accepted","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","status":"running","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:3"},"emittedAtMs":1791444565635}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:3","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18},"last":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18}},"turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"},"emittedAtMs":1791444565635}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18},"last":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18}},"item":{"itemId":"23294b54-8e67-4896-a7f3-681119e1ddbe","kind":"userMessage","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":1,"status":"completed","recordedAt":"2026-10-08T07:29:25.627042Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with the following text: fixture simple ok","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}},"emittedAtMs":1791444565635}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"8c00aa21-7809-4cb2-89f7-b499aaa8746d","sequence":20},"last":{"id":"8c00aa21-7809-4cb2-89f7-b499aaa8746d","sequence":20}},"item":{"itemId":"23294b54-8e67-4896-a7f3-681119e1ddbe","kind":"userMessage","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":2,"status":"completed","recordedAt":"2026-10-08T07:29:25.643029Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with the following text: fixture simple ok","displayText":"Respond with the following text: fixture simple ok","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}},"emittedAtMs":1791444565652}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18},"last":{"id":"1f33a521-7829-4cc3-97db-a3b5a6e7deaf","sequence":18}},"item":{"itemId":"23294b54-8e67-4896-a7f3-681119e1ddbe","kind":"userMessage","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":1,"status":"completed","recordedAt":"2026-10-08T07:29:25.627042Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with the following text: fixture simple ok","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}},"emittedAtMs":1791444565635}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"8c00aa21-7809-4cb2-89f7-b499aaa8746d","sequence":20},"last":{"id":"8c00aa21-7809-4cb2-89f7-b499aaa8746d","sequence":20}},"item":{"itemId":"23294b54-8e67-4896-a7f3-681119e1ddbe","kind":"userMessage","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":2,"status":"completed","recordedAt":"2026-10-08T07:29:25.643029Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Respond with the following text: fixture simple ok","displayText":"Respond with the following text: fixture simple ok","commandId":"01a11a6a-be41-7000-8db9-1d84c1b8be48"}},"emittedAtMs":1791444565652}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:6","sourceRange":{"stream":{"kind":"session","id":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5"},"first":{"id":"ed1680a5-6f99-4b0f-b9ea-d12193f0de1f","sequence":37},"last":{"id":"ed1680a5-6f99-4b0f-b9ea-d12193f0de1f","sequence":37}},"item":{"itemId":"ed1680a5-6f99-4b0f-b9ea-d12193f0de1f","kind":"reminderChild","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:29:25.781511Z","fallbackText":"Reminder child session","childSessionId":"9785bf9d-382d-4781-ab3b-3817c9e6a604","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6a-bef1-7032-974a-059b8765c487"}},"emittedAtMs":1791444565789}}
18
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:6.1","item":{"itemId":"0a68e576-f554-4700-8853-a68ad2b7179b","kind":"agentMessage","turnId":"01a11a6a-be41-7000-8db9-1d84c1b8be48","revision":1,"status":"inProgress","text":""}},"emittedAtMs":1791444567707}}
19
{"type":"emit_inbound","label":"item/delta","frame":{"jsonrpc":"2.0","method":"item/delta","params":{"sessionId":"01a11a6a-bbb5-7000-ad0b-0c9e728406e5","viewCursor":"v:01a11a6a-bbb5-7000-ad0b-0c9e728406e5:6.2","itemId":"0a68e576-f554-4700-8853-a68ad2b7179b","field":"text","delta":"fixture simple ok"},"emittedAtMs":1791444567707}}
apps/server/src/orchestration-v2/testkit/fixtures/subagent_v2/muse_transcript.ndjson
+3
-3
@@ -7,13 +7,13 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","path":"~/.local/share/muse/sessions/2026/10/11/01a12d17-75fa-7000-9157-e8365ce94492/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:31:14.73121Z","updatedAt":"2026-10-11T22:31:14.731214Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791757874894}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","path":"~/.local/share/muse/sessions/2026/10/11/01a12d17-75fa-7000-9157-e8365ce94492/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-11T22:31:14.73121Z","updatedAt":"2026-10-11T22:31:14.731214Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"sideFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:1","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"94d1e1ed-1d3e-4cd5-91bf-a51394fc8a0a","sequence":5},"last":{"id":"94d1e1ed-1d3e-4cd5-91bf-a51394fc8a0a","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a12d17-75fa-7001-a940-79b5d7c648a4","clientName":"t3_code"},"emittedAtMs":1791757874898}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said."}],"displayText":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:2","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"1dc98410-05c3-4618-a431-3638055e20df","sequence":15},"last":{"id":"1dc98410-05c3-4618-a431-3638055e20df","sequence":15}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791757875120}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a12d17-7790-7000-967d-3f2246f38a60","status":"accepted","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","status":"running","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:3"},"emittedAtMs":1791757875131}}
14
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:3","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17},"last":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17}},"turnId":"01a12d17-7790-7000-967d-3f2246f38a60","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"},"emittedAtMs":1791757875132}}
15
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:4","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17},"last":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17}},"item":{"itemId":"95c179c8-e8f8-4629-80df-e28243a234ea","kind":"userMessage","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","revision":1,"status":"completed","recordedAt":"2026-10-11T22:31:15.120499Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}},"emittedAtMs":1791757875132}}
16
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:5","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"dcf03486-5149-4377-b325-dea3e118628a","sequence":19},"last":{"id":"dcf03486-5149-4377-b325-dea3e118628a","sequence":19}},"item":{"itemId":"95c179c8-e8f8-4629-80df-e28243a234ea","kind":"userMessage","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","revision":2,"status":"completed","recordedAt":"2026-10-11T22:31:15.136047Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","displayText":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}},"emittedAtMs":1791757875144}}
15
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:4","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17},"last":{"id":"766cb840-a6f1-41f2-8c7e-8c372d0470cd","sequence":17}},"item":{"itemId":"95c179c8-e8f8-4629-80df-e28243a234ea","kind":"userMessage","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","revision":1,"status":"completed","recordedAt":"2026-10-11T22:31:15.120499Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}},"emittedAtMs":1791757875132}}
16
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:5","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"dcf03486-5149-4377-b325-dea3e118628a","sequence":19},"last":{"id":"dcf03486-5149-4377-b325-dea3e118628a","sequence":19}},"item":{"itemId":"95c179c8-e8f8-4629-80df-e28243a234ea","kind":"userMessage","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","revision":2,"status":"completed","recordedAt":"2026-10-11T22:31:15.136047Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","displayText":"Spawn one subagent whose only task is to reply with exactly: Hello. Wait for it to finish, then reply with exactly what it said.","commandId":"01a12d17-7790-7000-967d-3f2246f38a60"}},"emittedAtMs":1791757875144}}
17
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:6","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"599a220a-d212-4a81-a60d-7284ff290284","sequence":36},"last":{"id":"599a220a-d212-4a81-a60d-7284ff290284","sequence":36}},"item":{"itemId":"599a220a-d212-4a81-a60d-7284ff290284","kind":"reminderChild","turnId":"01a12d17-7790-7000-967d-3f2246f38a60","revision":1,"status":"inProgress","recordedAt":"2026-10-11T22:31:15.249949Z","fallbackText":"Reminder child session","childSessionId":"0b3f4f01-850a-43bd-af36-9b011699354f","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a12d17-7819-7212-8057-3558c2bdd46d"}},"emittedAtMs":1791757875258}}
18
{"type":"emit_inbound","label":"session/tokenUsage","frame":{"jsonrpc":"2.0","method":"session/tokenUsage","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:7","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"9198dd8d-eede-487a-9109-a48d2563c371","sequence":51},"last":{"id":"9198dd8d-eede-487a-9109-a48d2563c371","sequence":51}},"turnId":"01a12d17-7790-7000-967d-3f2246f38a60","modelId":"muse-spark-1.3-contributor","usage":{"inputTokens":32900,"outputTokens":129,"cachedTokens":0,"cacheWriteTokens":0,"cacheReadTokens":0,"reasoningTokens":36},"promptTokens":32900,"totalTokens":33029,"finishReason":"tool_calls","durationMs":2354,"cumulative":{"promptTokens":32900,"outputTokens":129,"totalTokens":33029,"cost":{"usd":0.0033158000000000003,"partial":false}}},"emittedAtMs":1791757877764}}
19
{"type":"emit_inbound","label":"session/contextUsage","frame":{"jsonrpc":"2.0","method":"session/contextUsage","params":{"sessionId":"01a12d17-75fa-7000-9157-e8365ce94492","viewCursor":"v:01a12d17-75fa-7000-9157-e8365ce94492:8","sourceRange":{"stream":{"kind":"session","id":"01a12d17-75fa-7000-9157-e8365ce94492"},"first":{"id":"9198dd8d-eede-487a-9109-a48d2563c371","sequence":51},"last":{"id":"9198dd8d-eede-487a-9109-a48d2563c371","sequence":51}},"windowTokens":1007997,"usedTokens":33029,"pressure":"normal"},"emittedAtMs":1791757877764}}
apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt/muse_transcript.ndjson
+3
-3
@@ -7,14 +7,14 @@
7
{"type":"emit_inbound","label":"session/started","frame":{"jsonrpc":"2.0","method":"session/started","params":{"session":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6d-2d3d-7000-8178-411fdb90bc34/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:32:05.094285Z","updatedAt":"2026-10-08T07:32:05.094289Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"}},"emittedAtMs":1791444725265}}
8
{"type":"emit_inbound","label":"response:session/start","frame":{"jsonrpc":"2.0","id":2,"result":{"session":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","path":"~/.local/share/muse/sessions/2026/10/08/01a11a6d-2d3d-7000-8178-411fdb90bc34/session.jsonl","status":"idle","activeTurnId":null,"createdAt":"2026-10-08T07:32:05.094285Z","updatedAt":"2026-10-08T07:32:05.094289Z","workspaceRoot":"<workspace>","providerId":"meta","modelId":"muse-spark-1.3-contributor","turnCount":0,"forkedFrom":null,"approvalMode":{"mode":"allowAll","source":"startup","lastCommandId":null},"createdByClient":{"name":"t3_code","version":"1"},"kind":"root"},"viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:1"}}}
9
{"type":"emit_inbound","label":"session/approvalModeChanged","frame":{"jsonrpc":"2.0","method":"session/approvalModeChanged","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:1","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"9865268e-0a39-43a0-89d0-251a820ec8a3","sequence":5},"last":{"id":"9865268e-0a39-43a0-89d0-251a820ec8a3","sequence":5}},"mode":"allowAll","source":"approvalReconfigure","commandId":"01a11a6d-2d3e-7000-b0e7-f04c53ee070b","clientName":"t3_code"},"emittedAtMs":1791444725268}}
10
-{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally."}],"displayText":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}}}
10
+{"type":"expect_outbound","label":"turn/start","frame":{"jsonrpc":"2.0","id":3,"method":"turn/start","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","input":[{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>"},{"type":"text","text":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally."}],"displayText":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","workspaceRoots":["<workspace>"],"ifBusy":"queue","reasoningEffort":"high","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}}}
11
{"type":"emit_inbound","label":"session/branchChanged","frame":{"jsonrpc":"2.0","method":"session/branchChanged","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:2","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"531b0e9e-c96d-4fa5-a6dd-5cc7d4569543","sequence":16},"last":{"id":"531b0e9e-c96d-4fa5-a6dd-5cc7d4569543","sequence":16}},"workspaceRoot":"<workspace>","branch":"main","vcs":"git"},"emittedAtMs":1791444725509}}
12
{"type":"emit_inbound","label":"response:turn/start","frame":{"jsonrpc":"2.0","id":3,"result":{"commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","status":"accepted","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","startedNewTurn":true,"disposition":"started"}}}
13
{"type":"expect_outbound","label":"turn/interrupt","frame":{"jsonrpc":"2.0","id":4,"method":"turn/interrupt","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","commandId":"01a11a6d-2f0b-7000-a1d4-359cf54e471a"}}}
14
{"type":"emit_inbound","label":"session/statusChanged","frame":{"jsonrpc":"2.0","method":"session/statusChanged","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","status":"running","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:3"},"emittedAtMs":1791444725522}}
15
{"type":"emit_inbound","label":"turn/started","frame":{"jsonrpc":"2.0","method":"turn/started","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:3","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18},"last":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18}},"turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"},"emittedAtMs":1791444725523}}
16
-{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18},"last":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18}},"item":{"itemId":"cfa989ad-2359-4da2-9fca-562855cc0ae8","kind":"userMessage","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:05.510508Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}},"emittedAtMs":1791444725523}}
17
-{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"5db75d92-0e52-4bce-bb81-40e254b40bc3","sequence":20},"last":{"id":"5db75d92-0e52-4bce-bb81-40e254b40bc3","sequence":20}},"item":{"itemId":"cfa989ad-2359-4da2-9fca-562855cc0ae8","kind":"userMessage","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:05.530992Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","displayText":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}},"emittedAtMs":1791444725539}}
16
+{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:4","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18},"last":{"id":"50d1fd8c-232b-47b9-9bfa-9b543961bbc9","sequence":18}},"item":{"itemId":"cfa989ad-2359-4da2-9fca-562855cc0ae8","kind":"userMessage","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":1,"status":"completed","recordedAt":"2026-10-08T07:32:05.510508Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}},"emittedAtMs":1791444725523}}
17
+{"type":"emit_inbound","label":"item/updated","frame":{"jsonrpc":"2.0","method":"item/updated","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:5","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"5db75d92-0e52-4bce-bb81-40e254b40bc3","sequence":20},"last":{"id":"5db75d92-0e52-4bce-bb81-40e254b40bc3","sequence":20}},"item":{"itemId":"cfa989ad-2359-4da2-9fca-562855cc0ae8","kind":"userMessage","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":2,"status":"completed","recordedAt":"2026-10-08T07:32:05.530992Z","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Muse Code harness, as muse-spark-1.3-contributor with high reasoning effort. No need to mention this otherwise. You can embed images, video, and audio using Markdown image syntax with absolute file paths. Link every other file you cite or produce by its absolute path, as in [http.ts:42](/abs/path/http.ts:42), so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\nLink each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.\nIf available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.\n</pull_request_linking>Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","displayText":"Do not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.","commandId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}},"emittedAtMs":1791444725539}}
18
{"type":"emit_inbound","label":"item/started","frame":{"jsonrpc":"2.0","method":"item/started","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:6","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"ae604001-22b9-479c-a45b-3dcfed45996c","sequence":37},"last":{"id":"ae604001-22b9-479c-a45b-3dcfed45996c","sequence":37}},"item":{"itemId":"ae604001-22b9-479c-a45b-3dcfed45996c","kind":"reminderChild","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":1,"status":"inProgress","recordedAt":"2026-10-08T07:32:05.638142Z","fallbackText":"Reminder child session","childSessionId":"1f58196a-6bf6-42da-9499-8f53a439e6e1","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-2f65-70b1-bb8f-69b33bb4fc62"}},"emittedAtMs":1791444725646}}
19
{"type":"emit_inbound","label":"response:turn/interrupt","frame":{"jsonrpc":"2.0","id":4,"result":{"commandId":"01a11a6d-2f0b-7000-a1d4-359cf54e471a","status":"accepted","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}}}
20
{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:7","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"ae604001-22b9-479c-a45b-3dcfed45996c","sequence":37},"last":{"id":"3962d8d1-4608-4dda-8fdc-39a1804474aa","sequence":50}},"item":{"itemId":"ae604001-22b9-479c-a45b-3dcfed45996c","kind":"reminderChild","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":2,"status":"cancelled","recordedAt":"2026-10-08T07:32:05.727236Z","fallbackText":"Reminder child session","failureReason":"main run cancelled","childSessionId":"1f58196a-6bf6-42da-9499-8f53a439e6e1","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-2f65-70b1-bb8f-69b33bb4fc62"}},"emittedAtMs":1791444725734}}
apps/server/src/provider/agentContextBudget.json
+3
-3
@@ -1,5 +1,5 @@
1
{
2
- "claudeSystemAppendBytes": 6202,
3
- "codexAdditionalContextBytes": 7596,
4
- "mcpToolListJsonBytes": 56461
2
+ "claudeSystemAppendBytes": 6245,
3
+ "codexAdditionalContextBytes": 7639,
4
+ "mcpToolListJsonBytes": 57204
5
}
apps/server/src/pullRequest/PullRequestService.test.ts
+117
@@ -1431,6 +1431,123 @@ it.effect(
1431
}),
1432
);
1433
1434
+it.effect(
1435
+ "reads logs of the failing checks, or of the one named, and names the checks it lacks",
1436
+ () =>
1437
+ Effect.gen(function* () {
1438
+ const asked: Array<ReadonlyArray<string>> = [];
1439
+ let failing = 0;
1440
+ const check = (name: string, status: "success" | "failure" | "cancelled") => ({
1441
+ name,
1442
+ status,
1443
+ description: null,
1444
+ url: `https://github.com/acme/web/runs/${name.length}`,
1445
+ });
1446
+ const service = yield* makeService({
1447
+ projects: [
1448
+ project({ id: "p1", title: "web", workspaceRoot: "/a", repository: "acme/web" }),
1449
+ ],
1450
+ providers: [
1451
+ fakePullRequestProvider(SourceControlProviderKind.make("github"), {
1452
+ getChangeRequestChecks: () =>
1453
+ Effect.succeed({
1454
+ state: "open",
1455
+ checks: [
1456
+ check("Lint", "success"),
1457
+ check("Test", "failure"),
1458
+ check("E2E", "cancelled"),
1459
+ ...Array.from({ length: failing }, (_, index) =>
1460
+ check(`Shard ${index}`, "failure"),
1461
+ ),
1462
+ ],
1463
+ }),
1464
+ getCheckLogs: (input) =>
1465
+ Effect.sync(() => {
1466
+ asked.push(input.checks.map((entry) => entry.name));
1467
+ return input.checks.map((entry) => ({
1468
+ ...entry,
1469
+ log: "boom",
1470
+ truncated: false,
1471
+ detail: null,
1472
+ }));
1473
+ }),
1474
+ }),
1475
+ ],
1476
+ });
1477
+ const reference = { projectId: "p1" as ProjectId, repository: "acme/web", number: 1 };
1478
+ yield* service.checkLogs({ ...reference, tailLines: 50 });
1479
+ yield* service.checkLogs({ ...reference, check: "lint", tailLines: 50 });
1480
+ const missing = yield* Effect.flip(
1481
+ service.checkLogs({ ...reference, check: "Deploy", tailLines: 50 }),
1482
+ );
1483
+ assert.deepStrictEqual(asked, [["Test", "E2E"], ["Lint"]]);
1484
+ assert.include(missing.message, "Lint, Test, E2E");
1485
+
1486
+ failing = 6;
1487
+ asked.length = 0;
1488
+ const many = yield* service.checkLogs({ ...reference, tailLines: 50 });
1489
+ // The host is asked for five; the other three come back unread, by name.
1490
+ assert.lengthOf(asked[0] ?? [], 5);
1491
+ assert.deepStrictEqual(
1492
+ many.map((log) => [log.name, log.log]),
1493
+ [
1494
+ ["Test", "boom"],
1495
+ ["E2E", "boom"],
1496
+ ["Shard 0", "boom"],
1497
+ ["Shard 1", "boom"],
1498
+ ["Shard 2", "boom"],
1499
+ ["Shard 3", null],
1500
+ ["Shard 4", null],
1501
+ ["Shard 5", null],
1502
+ ],
1503
+ );
1504
+ assert.include(many.at(-1)?.detail ?? "", "Ask for this check by name");
1505
+ }),
1506
+);
1507
+
1508
+it.effect.each([false, true])(
1509
+ "re-reads checks after a rerun instead of serving the failed ones (rerun fails: %s)",
1510
+ (failAfterRerun) =>
1511
+ Effect.gen(function* () {
1512
+ let rerun = false;
1513
+ const service = yield* makeService({
1514
+ projects: [
1515
+ project({ id: "p1", title: "web", workspaceRoot: "/a", repository: "acme/web" }),
1516
+ ],
1517
+ providers: [
1518
+ fakePullRequestProvider(SourceControlProviderKind.make("github"), {
1519
+ getChangeRequestChecks: () =>
1520
+ Effect.succeed({
1521
+ state: "open" as const,
1522
+ checks: [
1523
+ {
1524
+ name: "Test",
1525
+ status: rerun ? ("pending" as const) : ("failure" as const),
1526
+ description: null,
1527
+ url: null,
1528
+ },
1529
+ ],
1530
+ }),
1531
+ // A failure can come after one run already restarted.
1532
+ rerunChecks: (input) =>
1533
+ Effect.suspend(() => {
1534
+ rerun = true;
1535
+ return failAfterRerun
1536
+ ? Effect.fail(requestFailed)
1537
+ : Effect.succeed(
1538
+ input.checks.map((check) => ({ ...check, rerun: true, detail: null })),
1539
+ );
1540
+ }),
1541
+ }),
1542
+ ],
1543
+ });
1544
+ const reference = { projectId: "p1" as ProjectId, repository: "acme/web", number: 1 };
1545
+ assert.equal((yield* service.checks(reference))?.checks[0]?.status, "failure");
1546
+ yield* service.rerunChecks(reference).pipe(Effect.ignore);
1547
+ assert.equal((yield* service.checks(reference))?.checks[0]?.status, "pending");
1548
+ }),
1549
+);
1550
+
1551
it.effect("refuses a merge whose head moved past expectedHeadSha and pins the host merge", () =>
1552
Effect.gen(function* () {
1553
const pinned: Array<string | undefined> = [];
apps/server/src/pullRequest/PullRequestService.ts
+123
@@ -89,6 +89,8 @@ import * as SourceControlRateLimit from "@t3tools/source-control-core/server/Sou
89
import {
90
type ProviderChangeRequest,
91
type ProviderChangeRequestDetail,
92
+ type ProviderCheckLog,
93
+ type ProviderCheckRerun,
94
type ProviderDiffFilePaths,
95
type ProviderFilterOptionPage,
96
type ProviderListCursor,
@@ -273,6 +275,14 @@ export class PullRequestService extends Context.Service<
275
readonly runAction: (
276
input: PullRequestActionInput,
277
) => Effect.Effect<PullRequestSummary | undefined, PullRequestError>;
278
+ /** Tails of the failing checks' logs, or only the named check's. */
279
+ readonly checkLogs: (
280
+ input: PullRequestRef & { readonly check?: string; readonly tailLines: number },
281
+ ) => Effect.Effect<ReadonlyArray<ProviderCheckLog>, PullRequestError>;
282
+ /** Re-runs the failing checks, or only the named check. */
283
+ readonly rerunChecks: (
284
+ input: PullRequestRef & { readonly check?: string },
285
+ ) => Effect.Effect<ReadonlyArray<ProviderCheckRerun>, PullRequestError>;
286
readonly update: (input: PullRequestUpdateInput) => Effect.Effect<void, PullRequestError>;
287
readonly comment: (input: PullRequestCommentInput) => Effect.Effect<void, PullRequestError>;
288
readonly updateComment: (
@@ -624,6 +634,12 @@ function withRateLimitBackoff(
634
? {}
635
: { getFileRevisions: wrap("getFileRevisions", api.getFileRevisions) }),
636
runAction: interactive("runAction", api.runAction),
637
+ ...(api.getCheckLogs === undefined
638
+ ? {}
639
+ : { getCheckLogs: interactive("getCheckLogs", api.getCheckLogs) }),
640
+ ...(api.rerunChecks === undefined
641
+ ? {}
642
+ : { rerunChecks: interactive("rerunChecks", api.rerunChecks) }),
643
...(api.updateChangeRequest === undefined
644
? {}
645
: {
@@ -3822,6 +3838,111 @@ export const make = Effect.gen(function* () {
3838
);
3839
yield* SubscriptionRef.set(pullRequestRefreshes, listingsEpoch);
3840
});
3841
+ const selectChecks = Effect.fn("PullRequestService.selectChecks")(function* (
3842
+ project: SupportedProject,
3843
+ input: PullRequestRef & { readonly check?: string },
3844
+ operation: string,
3845
+ ) {
3846
+ const ref = {
3847
+ cwd: project.project.workspaceRoot,
3848
+ repository: project.repository,
3849
+ host: project.host,
3850
+ number: input.number,
3851
+ };
3852
+ const { checks } = yield* (
3853
+ project.api.getChangeRequestChecks === undefined
3854
+ ? project.api.getChangeRequest(ref)
3855
+ : project.api.getChangeRequestChecks(ref)
3856
+ ).pipe(Effect.mapError(toPullRequestError(operation)));
3857
+ const named = input.check?.trim().toLowerCase();
3858
+ if (named === undefined) {
3859
+ return checks
3860
+ .filter((check) => check.status === "failure" || check.status === "cancelled")
3861
+ .map(({ name, url }) => ({ name, url }));
3862
+ }
3863
+ const matches = checks.filter((check) => check.name.toLowerCase() === named);
3864
+ if (matches.length === 0) {
3865
+ return yield* new PullRequestOperationError({
3866
+ operation,
3867
+ detail: `No check is named ${input.check}. Checks: ${checks.map((check) => check.name).join(", ") || "none"}.`,
3868
+ });
3869
+ }
3870
+ return matches.map(({ name, url }) => ({ name, url }));
3871
+ });
3872
+
3873
+ const DEFAULT_CHECK_LOGS = 5;
3874
+ const checkLogs: PullRequestService["Service"]["checkLogs"] = Effect.fn(
3875
+ "PullRequestService.checkLogs",
3876
+ )(function* (input) {
3877
+ const project = yield* requireProject(input);
3878
+ const read = project.api.getCheckLogs;
3879
+ if (read === undefined) {
3880
+ return yield* new PullRequestOperationError({
3881
+ operation: "checkLogs",
3882
+ detail: "This host cannot read check logs.",
3883
+ });
3884
+ }
3885
+ const checks = yield* selectChecks(project, input, "checkLogs");
3886
+ if (checks.length === 0) return [];
3887
+ // Many failing checks would flood the agent's context; the rest stay a name away.
3888
+ const [shown, rest] =
3889
+ input.check === undefined
3890
+ ? [checks.slice(0, DEFAULT_CHECK_LOGS), checks.slice(DEFAULT_CHECK_LOGS)]
3891
+ : [checks, []];
3892
+ const logs = yield* read({
3893
+ cwd: project.project.workspaceRoot,
3894
+ repository: project.repository,
3895
+ host: project.host,
3896
+ checks: shown,
3897
+ tailLines: input.tailLines,
3898
+ }).pipe(Effect.mapError(toPullRequestError("checkLogs")));
3899
+ return [
3900
+ ...logs,
3901
+ ...rest.map((check) => ({
3902
+ ...check,
3903
+ log: null,
3904
+ truncated: false,
3905
+ detail: "Not read, to keep the reply short. Ask for this check by name.",
3906
+ })),
3907
+ ];
3908
+ });
3909
+
3910
+ const rerunChecks: PullRequestService["Service"]["rerunChecks"] = Effect.fn(
3911
+ "PullRequestService.rerunChecks",
3912
+ )(function* (input) {
3913
+ const project = yield* requireProject(input);
3914
+ const rerun = project.api.rerunChecks;
3915
+ if (rerun === undefined) {
3916
+ return yield* new PullRequestOperationError({
3917
+ operation: "rerunChecks",
3918
+ detail: "This host cannot re-run checks.",
3919
+ });
3920
+ }
3921
+ const checks = yield* selectChecks(project, input, "rerunChecks");
3922
+ if (checks.length === 0) return [];
3923
+ const ref = yield* canonicalRef(input);
3924
+ // A failure can follow a run that already restarted, so readers refresh either way.
3925
+ return yield* rerun({
3926
+ cwd: project.project.workspaceRoot,
3927
+ repository: project.repository,
3928
+ host: project.host,
3929
+ checks,
3930
+ }).pipe(
3931
+ Effect.mapError(toPullRequestError("rerunChecks")),
3932
+ Effect.ensuring(
3933
+ readCache.invalidate(refScope(ref)).pipe(
3934
+ Effect.andThen(
3935
+ Effect.suspend(() => {
3936
+ bumpRefEpoch(ref);
3937
+ listingsEpoch = ++epochCounter;
3938
+ return SubscriptionRef.set(pullRequestRefreshes, listingsEpoch);
3939
+ }),
3940
+ ),
3941
+ ),
3942
+ ),
3943
+ );
3944
+ });
3945
+
3946
const runActionAndInvalidate: PullRequestService["Service"]["runAction"] = Effect.fn(
3947
"PullRequestService.runActionAndInvalidate",
3948
)(function* (input) {
@@ -4025,6 +4146,8 @@ export const make = Effect.gen(function* () {
4146
Cache.get(changeBreakdownCache, refCacheKey(input)),
4147
),
4148
runAction: runActionAndInvalidate,
4149
+ checkLogs,
4150
+ rerunChecks,
4151
update: invalidatedByMutation(update),
4152
comment: invalidatedByMutation(comment),
4153
updateComment: invalidatedByMutation(updateComment),
apps/web/src/i18n/translations/de.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {{count} Pull Request zum Mergen eingereiht} other {{count} Pull Requests zum Mergen eingereiht}}",
323
"a742473f42c9a609": "{count, plural, one {{count} Pull Request gemergt} other {{count} Pull Requests gemergt}}",
324
"40e3528651297351": "{merged, plural, one {{merged} Pull Request gemergt, {queued} eingereiht} other {{merged} Pull Requests gemergt, {queued} eingereiht}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {CI-Logs {count}-mal gelesen} other {CI-Logs {count}-mal gelesen}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {{count}-mal versucht, CI-Logs zu lesen} other {{count}-mal versucht, CI-Logs zu lesen}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {{count}-mal versucht, CI erneut auszuführen} other {{count}-mal versucht, CI erneut auszuführen}}",
328
+ "d38466778437bfa9": "Keine fehlgeschlagenen Checks zum erneuten Ausführen gefunden",
329
+ "8982283666c8c3d5": "{count, plural, one {CI {count}-mal erneut ausgeführt} other {CI {count}-mal erneut ausgeführt}}",
330
+ "39949fd3853031e5": "{count, plural, one {{count} Check konnte nicht erneut ausgeführt werden} other {{count} Checks konnten nicht erneut ausgeführt werden}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {{count} Check erneut ausgeführt} other {{count} Checks erneut ausgeführt}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {{rerun} Check erneut ausgeführt, {refused} abgelehnt} other {{rerun} Checks erneut ausgeführt, {refused} abgelehnt}}",
333
"8146ee71f7426683": "{count, plural, one {{count} Pull Request reviewt} other {{count} Pull Requests reviewt}}",
334
"638678077ba2e050": "{count, plural, one {Versucht, {count} Pull Request zu reviewen} other {Versucht, {count} Pull Requests zu reviewen}}",
335
"420bea546d5f8802": "Thread kopiert",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Auf Pull Request antworten",
1075
"4bcd613be5a48aa2": "Pull Request reviewen",
1076
"81b284c3afb54ec6": "Pull Request mergen",
1077
+ "9f0d37a2ec338e59": "CI-Logs lesen",
1078
+ "dcca0dff7324e0f0": "CI erneut ausführen",
1079
"3227c712130a4187": "Issues auflisten",
1080
"3f461f26681450d6": "Ein Issue lesen",
1081
"fff9316cf5e449b4": "Ein Issue erstellen",
apps/web/src/i18n/translations/en.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Queued {count} pull request to merge} other {Queued {count} pull requests to merge}}",
323
"a742473f42c9a609": "{count, plural, one {Merged {count} pull request} other {Merged {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Merged {merged} pull request, queued {queued}} other {Merged {merged} pull requests, queued {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Read CI logs {count} time} other {Read CI logs {count} times}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tried to read CI logs {count} time} other {Tried to read CI logs {count} times}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tried to re-run CI {count} time} other {Tried to re-run CI {count} times}}",
328
+ "d38466778437bfa9": "Found no failed checks to re-run",
329
+ "8982283666c8c3d5": "{count, plural, one {Re-ran CI {count} time} other {Re-ran CI {count} times}}",
330
+ "39949fd3853031e5": "{count, plural, one {Could not re-run {count} check} other {Could not re-run {count} checks}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Re-ran {count} check} other {Re-ran {count} checks}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Re-ran {rerun} check, {refused} refused} other {Re-ran {rerun} checks, {refused} refused}}",
333
"8146ee71f7426683": "{count, plural, one {Reviewed {count} pull request} other {Reviewed {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Tried to review {count} pull request} other {Tried to review {count} pull requests}}",
335
"420bea546d5f8802": "Thread copied",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Respond on a pull request",
1075
"4bcd613be5a48aa2": "Review a pull request",
1076
"81b284c3afb54ec6": "Merge a pull request",
1077
+ "9f0d37a2ec338e59": "Read CI logs",
1078
+ "dcca0dff7324e0f0": "Re-run CI",
1079
"3227c712130a4187": "List issues",
1080
"3f461f26681450d6": "Read an issue",
1081
"fff9316cf5e449b4": "File an issue",
apps/web/src/i18n/translations/es.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Puso {count} pull request en cola para fusionar} other {Puso {count} pull requests en cola para fusionar}}",
323
"a742473f42c9a609": "{count, plural, one {Fusionó {count} pull request} other {Fusionó {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Fusionó {merged} pull request, {queued} en cola} other {Fusionó {merged} pull requests, {queued} en cola}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Leyó registros de CI {count} vez} other {Leyó registros de CI {count} veces}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Intentó leer registros de CI {count} vez} other {Intentó leer registros de CI {count} veces}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Intentó volver a ejecutar CI {count} vez} other {Intentó volver a ejecutar CI {count} veces}}",
328
+ "d38466778437bfa9": "No encontró checks fallidos para volver a ejecutar",
329
+ "8982283666c8c3d5": "{count, plural, one {Volvió a ejecutar CI {count} vez} other {Volvió a ejecutar CI {count} veces}}",
330
+ "39949fd3853031e5": "{count, plural, one {No pudo volver a ejecutar {count} check} other {No pudo volver a ejecutar {count} checks}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Volvió a ejecutar {count} check} other {Volvió a ejecutar {count} checks}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Volvió a ejecutar {rerun} check, {refused} rechazados} other {Volvió a ejecutar {rerun} checks, {refused} rechazados}}",
333
"8146ee71f7426683": "{count, plural, one {Revisó {count} pull request} other {Revisó {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Intentó revisar {count} pull request} other {Intentó revisar {count} pull requests}}",
335
"420bea546d5f8802": "Hilo copiado",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Responder en una pull request",
1075
"4bcd613be5a48aa2": "Revisar una pull request",
1076
"81b284c3afb54ec6": "Fusionar una pull request",
1077
+ "9f0d37a2ec338e59": "Leer registros de CI",
1078
+ "dcca0dff7324e0f0": "Volver a ejecutar CI",
1079
"3227c712130a4187": "Listar issues",
1080
"3f461f26681450d6": "Leer una issue",
1081
"fff9316cf5e449b4": "Abrir una issue",
apps/web/src/i18n/translations/fr.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {{count} pull request mise en file pour fusion} other {{count} pull requests mises en file pour fusion}}",
323
"a742473f42c9a609": "{count, plural, one {{count} pull request fusionnée} other {{count} pull requests fusionnées}}",
324
"40e3528651297351": "{merged, plural, one {{merged} pull request fusionnée, {queued} en file} other {{merged} pull requests fusionnées, {queued} en file}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Journaux CI lus {count} fois} other {Journaux CI lus {count} fois}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tentative de lecture des journaux CI {count} fois} other {Tentatives de lecture des journaux CI {count} fois}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tentative de relance de la CI {count} fois} other {Tentatives de relance de la CI {count} fois}}",
328
+ "d38466778437bfa9": "Aucune vérification en échec à relancer",
329
+ "8982283666c8c3d5": "{count, plural, one {CI relancée {count} fois} other {CI relancée {count} fois}}",
330
+ "39949fd3853031e5": "{count, plural, one {Impossible de relancer {count} vérification} other {Impossible de relancer {count} vérifications}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {{count} vérification relancée} other {{count} vérifications relancées}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {{rerun} vérification relancée, {refused} refusées} other {{rerun} vérifications relancées, {refused} refusées}}",
333
"8146ee71f7426683": "{count, plural, one {{count} pull request relue} other {{count} pull requests relues}}",
334
"638678077ba2e050": "{count, plural, one {Tentative de revue de {count} pull request} other {Tentative de revue de {count} pull requests}}",
335
"420bea546d5f8802": "Fil copié",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Répondre sur une pull request",
1075
"4bcd613be5a48aa2": "Relire une pull request",
1076
"81b284c3afb54ec6": "Fusionner une pull request",
1077
+ "9f0d37a2ec338e59": "Lire les journaux CI",
1078
+ "dcca0dff7324e0f0": "Relancer la CI",
1079
"3227c712130a4187": "Lister les tickets",
1080
"3f461f26681450d6": "Lire un ticket",
1081
"fff9316cf5e449b4": "Ouvrir un ticket",
apps/web/src/i18n/translations/ja.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {{count} 件のプルリクエストをマージ待ちにしました}}",
323
"a742473f42c9a609": "{count, plural, other {{count} 件のプルリクエストをマージしました}}",
324
"40e3528651297351": "{merged, plural, other {{merged} 件のプルリクエストをマージし、{queued} 件をマージ待ちにしました}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {CI ログを {count} 回読み取りました}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {CI ログの読み取りを {count} 回試みました}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {CI の再実行を {count} 回試みました}}",
328
+ "d38466778437bfa9": "再実行する失敗したチェックはありませんでした",
329
+ "8982283666c8c3d5": "{count, plural, other {CI を {count} 回再実行しました}}",
330
+ "39949fd3853031e5": "{count, plural, other {{count} 件のチェックを再実行できませんでした}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {{count} 件のチェックを再実行しました}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {{rerun} 件のチェックを再実行し、{refused} 件は拒否されました}}",
333
"8146ee71f7426683": "{count, plural, other {{count} 件のプルリクエストをレビューしました}}",
334
"638678077ba2e050": "{count, plural, other {{count} 件のプルリクエストのレビューを試みました}}",
335
"420bea546d5f8802": "スレッドをコピーしました",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "プルリクエストに返信",
1075
"4bcd613be5a48aa2": "プルリクエストをレビュー",
1076
"81b284c3afb54ec6": "プルリクエストをマージ",
1077
+ "9f0d37a2ec338e59": "CI ログを読む",
1078
+ "dcca0dff7324e0f0": "CI を再実行",
1079
"3227c712130a4187": "Issue を一覧表示",
1080
"3f461f26681450d6": "Issue を読み取る",
1081
"fff9316cf5e449b4": "Issue を作成",
apps/web/src/i18n/translations/ko.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {풀 리퀘스트 {count}개를 병합 대기열에 넣음}}",
323
"a742473f42c9a609": "{count, plural, other {풀 리퀘스트 {count}개를 병합함}}",
324
"40e3528651297351": "{merged, plural, other {풀 리퀘스트 {merged}개를 병합하고 {queued}개를 대기열에 넣음}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {CI 로그를 {count}번 읽음}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {CI 로그 읽기를 {count}번 시도함}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {CI 재실행을 {count}번 시도함}}",
328
+ "d38466778437bfa9": "재실행할 실패한 검사가 없음",
329
+ "8982283666c8c3d5": "{count, plural, other {CI를 {count}번 재실행함}}",
330
+ "39949fd3853031e5": "{count, plural, other {검사 {count}개를 재실행하지 못함}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {검사 {count}개를 재실행함}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {검사 {rerun}개를 재실행하고 {refused}개는 거부됨}}",
333
"8146ee71f7426683": "{count, plural, other {풀 리퀘스트 {count}개를 검토함}}",
334
"638678077ba2e050": "{count, plural, other {풀 리퀘스트 {count}개 검토를 시도함}}",
335
"420bea546d5f8802": "스레드 복사됨",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "풀 리퀘스트에 응답",
1075
"4bcd613be5a48aa2": "풀 리퀘스트 검토",
1076
"81b284c3afb54ec6": "풀 리퀘스트 병합",
1077
+ "9f0d37a2ec338e59": "CI 로그 읽기",
1078
+ "dcca0dff7324e0f0": "CI 재실행",
1079
"3227c712130a4187": "이슈 목록 조회",
1080
"3f461f26681450d6": "이슈 읽기",
1081
"fff9316cf5e449b4": "이슈 작성",
apps/web/src/i18n/translations/pt-BR.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Enfileirou {count} pull request para mesclar} other {Enfileirou {count} pull requests para mesclar}}",
323
"a742473f42c9a609": "{count, plural, one {Mesclou {count} pull request} other {Mesclou {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Mesclou {merged} pull request, {queued} na fila} other {Mesclou {merged} pull requests, {queued} na fila}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Leu logs de CI {count} vez} other {Leu logs de CI {count} vezes}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Tentou ler logs de CI {count} vez} other {Tentou ler logs de CI {count} vezes}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Tentou executar CI novamente {count} vez} other {Tentou executar CI novamente {count} vezes}}",
328
+ "d38466778437bfa9": "Nenhuma verificação com falha para executar novamente",
329
+ "8982283666c8c3d5": "{count, plural, one {Executou CI novamente {count} vez} other {Executou CI novamente {count} vezes}}",
330
+ "39949fd3853031e5": "{count, plural, one {Não foi possível executar novamente {count} verificação} other {Não foi possível executar novamente {count} verificações}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Executou novamente {count} verificação} other {Executou novamente {count} verificações}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Executou novamente {rerun} verificação, {refused} recusadas} other {Executou novamente {rerun} verificações, {refused} recusadas}}",
333
"8146ee71f7426683": "{count, plural, one {Revisou {count} pull request} other {Revisou {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Tentou revisar {count} pull request} other {Tentou revisar {count} pull requests}}",
335
"420bea546d5f8802": "Thread copiada",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Responder em um pull request",
1075
"4bcd613be5a48aa2": "Revisar um pull request",
1076
"81b284c3afb54ec6": "Mesclar um pull request",
1077
+ "9f0d37a2ec338e59": "Ler logs de CI",
1078
+ "dcca0dff7324e0f0": "Executar CI novamente",
1079
"3227c712130a4187": "Listar issues",
1080
"3f461f26681450d6": "Ler uma issue",
1081
"fff9316cf5e449b4": "Abrir uma issue",
apps/web/src/i18n/translations/ru.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {В очередь на слияние поставлен {count} пул-реквест} few {В очередь на слияние поставлено {count} пул-реквеста} many {В очередь на слияние поставлено {count} пул-реквестов} other {В очередь на слияние поставлено {count} пул-реквеста}}",
323
"a742473f42c9a609": "{count, plural, one {Слито {count} пул-реквест} few {Слито {count} пул-реквеста} many {Слито {count} пул-реквестов} other {Слито {count} пул-реквеста}}",
324
"40e3528651297351": "{merged, plural, one {Слит {merged} пул-реквест, в очереди: {queued}} few {Слито {merged} пул-реквеста, в очереди: {queued}} many {Слито {merged} пул-реквестов, в очереди: {queued}} other {Слито {merged} пул-реквеста, в очереди: {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Логи CI прочитаны {count} раз} few {Логи CI прочитаны {count} раза} many {Логи CI прочитаны {count} раз} other {Логи CI прочитаны {count} раза}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Попытка прочитать логи CI: {count} раз} few {Попытка прочитать логи CI: {count} раза} many {Попытка прочитать логи CI: {count} раз} other {Попытка прочитать логи CI: {count} раза}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Попытка перезапустить CI: {count} раз} few {Попытка перезапустить CI: {count} раза} many {Попытка перезапустить CI: {count} раз} other {Попытка перезапустить CI: {count} раза}}",
328
+ "d38466778437bfa9": "Нет упавших проверок для перезапуска",
329
+ "8982283666c8c3d5": "{count, plural, one {CI перезапущен {count} раз} few {CI перезапущен {count} раза} many {CI перезапущен {count} раз} other {CI перезапущен {count} раза}}",
330
+ "39949fd3853031e5": "{count, plural, one {Не удалось перезапустить {count} проверку} few {Не удалось перезапустить {count} проверки} many {Не удалось перезапустить {count} проверок} other {Не удалось перезапустить {count} проверки}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Перезапущено {count} проверку} few {Перезапущено {count} проверки} many {Перезапущено {count} проверок} other {Перезапущено {count} проверки}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Перезапущено {rerun} проверку, отклонено: {refused}} few {Перезапущено {rerun} проверки, отклонено: {refused}} many {Перезапущено {rerun} проверок, отклонено: {refused}} other {Перезапущено {rerun} проверки, отклонено: {refused}}}",
333
"8146ee71f7426683": "{count, plural, one {Проверено {count} пул-реквест} few {Проверено {count} пул-реквеста} many {Проверено {count} пул-реквестов} other {Проверено {count} пул-реквеста}}",
334
"638678077ba2e050": "{count, plural, one {Не удалось проверить {count} пул-реквест} few {Не удалось проверить {count} пул-реквеста} many {Не удалось проверить {count} пул-реквестов} other {Не удалось проверить {count} пул-реквеста}}",
335
"420bea546d5f8802": "Тред скопирован",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Ответить в пул-реквесте",
1075
"4bcd613be5a48aa2": "Проверить пул-реквест",
1076
"81b284c3afb54ec6": "Слить пул-реквест",
1077
+ "9f0d37a2ec338e59": "Прочитать логи CI",
1078
+ "dcca0dff7324e0f0": "Перезапустить CI",
1079
"3227c712130a4187": "Получить список issue",
1080
"3f461f26681450d6": "Прочитать issue",
1081
"fff9316cf5e449b4": "Создать issue",
apps/web/src/i18n/translations/sv.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, one {Köade {count} pull request för merge} other {Köade {count} pull requests för merge}}",
323
"a742473f42c9a609": "{count, plural, one {Mergade {count} pull request} other {Mergade {count} pull requests}}",
324
"40e3528651297351": "{merged, plural, one {Mergade {merged} pull request, köade {queued}} other {Mergade {merged} pull requests, köade {queued}}}",
325
+ "978e75afd6bcd1b1": "{count, plural, one {Läste CI-loggar {count} gång} other {Läste CI-loggar {count} gånger}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, one {Försökte läsa CI-loggar {count} gång} other {Försökte läsa CI-loggar {count} gånger}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, one {Försökte köra om CI {count} gång} other {Försökte köra om CI {count} gånger}}",
328
+ "d38466778437bfa9": "Hittade inga misslyckade kontroller att köra om",
329
+ "8982283666c8c3d5": "{count, plural, one {Körde om CI {count} gång} other {Körde om CI {count} gånger}}",
330
+ "39949fd3853031e5": "{count, plural, one {Kunde inte köra om {count} kontroll} other {Kunde inte köra om {count} kontroller}}",
331
+ "15d8d7174c79fc23": "{count, plural, one {Körde om {count} kontroll} other {Körde om {count} kontroller}}",
332
+ "24d802debbab31e0": "{rerun, plural, one {Körde om {rerun} kontroll, {refused} nekades} other {Körde om {rerun} kontroller, {refused} nekades}}",
333
"8146ee71f7426683": "{count, plural, one {Granskade {count} pull request} other {Granskade {count} pull requests}}",
334
"638678077ba2e050": "{count, plural, one {Försökte granska {count} pull request} other {Försökte granska {count} pull requests}}",
335
"420bea546d5f8802": "Tråden kopierades",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "Svara på en pull request",
1075
"4bcd613be5a48aa2": "Granska en pull request",
1076
"81b284c3afb54ec6": "Merga en pull request",
1077
+ "9f0d37a2ec338e59": "Läs CI-loggar",
1078
+ "dcca0dff7324e0f0": "Kör om CI",
1079
"3227c712130a4187": "Lista ärenden",
1080
"3f461f26681450d6": "Läs ett ärende",
1081
"fff9316cf5e449b4": "Skapa ett ärende",
apps/web/src/i18n/translations/zh.json
+10
@@ -322,6 +322,14 @@
322
"80e8102a93dc5a75": "{count, plural, other {已将 {count} 个 PR 加入合并队列}}",
323
"a742473f42c9a609": "{count, plural, other {已合并 {count} 个 PR}}",
324
"40e3528651297351": "{merged, plural, other {已合并 {merged} 个 PR,{queued} 个在队列中}}",
325
+ "978e75afd6bcd1b1": "{count, plural, other {读取 CI 日志 {count} 次}}",
326
+ "1cf829d3d6dec9a4": "{count, plural, other {尝试读取 CI 日志 {count} 次}}",
327
+ "9b0b9f9c4bc84265": "{count, plural, other {尝试重新运行 CI {count} 次}}",
328
+ "d38466778437bfa9": "没有需要重新运行的失败检查",
329
+ "8982283666c8c3d5": "{count, plural, other {重新运行 CI {count} 次}}",
330
+ "39949fd3853031e5": "{count, plural, other {无法重新运行 {count} 项检查}}",
331
+ "15d8d7174c79fc23": "{count, plural, other {已重新运行 {count} 项检查}}",
332
+ "24d802debbab31e0": "{rerun, plural, other {已重新运行 {rerun} 项检查,{refused} 项被拒绝}}",
333
"8146ee71f7426683": "{count, plural, other {已审查 {count} 个 PR}}",
334
"638678077ba2e050": "{count, plural, other {尝试审查 {count} 个 PR}}",
335
"420bea546d5f8802": "已复制会话",
@@ -1066,6 +1074,8 @@
1074
"c87d85c418b791a5": "在 PR 上回复",
1075
"4bcd613be5a48aa2": "审查 PR",
1076
"81b284c3afb54ec6": "合并 PR",
1077
+ "9f0d37a2ec338e59": "读取 CI 日志",
1078
+ "dcca0dff7324e0f0": "重新运行 CI",
1079
"3227c712130a4187": "列出 issue",
1080
"3f461f26681450d6": "读取 issue",
1081
"fff9316cf5e449b4": "提交 issue",
evals/mcp-tool-use/cases/pull-requests.ndjson
+3
@@ -53,3 +53,6 @@
53
{"id": "pr-labels-reviewers-through-gh", "area": "pull-requests", "kind": "bad", "pattern": "labels and reviewers set with gh pr edit", "experience": "Before pull_request_update took labels and reviewers, agents needed gh pr edit or cafe pr edit for them.", "rule": "pull_request_update replaces gh and cafe for labels and reviewers", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"pull_request_update": {"host": "github.com", "repository": "acme/app", "number": 124, "url": "https://github.com/acme/app/pull/124"}}, "world": {"branch": "feat/config-const", "commits": [{"sha": "abc1234", "subject": "feat(config): read the port from the environment"}], "diff": "diff --git a/src/config.ts b/src/config.ts\n--- a/src/config.ts\n+++ b/src/config.ts\n@@ -1,3 +1,3 @@\n-let port = 3000;\n+let port = Number(process.env.PORT ?? 3000);\n export default { port };\n", "files": {"src/config.ts": "let port = Number(process.env.PORT ?? 3000);\nexport default { port };\n"}, "prs": [{"number": 124, "title": "feat(config): read the port from the environment", "headRefName": "feat/config-const", "checks": [{"name": "Lint", "state": "pass"}, {"name": "Test", "state": "pass"}]}]}}, "prompt": "Label PR #124 bug and ask octo to review it.", "expect": {"calls": [{"tool": "pull_request_update", "args": {"number": 124, "addLabels": ["bug"], "requestReviewers": ["~octo"]}}], "shellMustNot": ["\\bgh (pr edit|api)\\b", "\\bcafe pr edit\\b"]}, "notes": "Forge usage audit of agent logs on three machines (2026-10-28): agents ran gh and cafe for PR work about 18,000 times in 45 days, which spends the user's own API quota instead of T3's sign-in."}
54
{"id": "pr-close-through-gh", "area": "pull-requests", "kind": "bad", "pattern": "PR closed with gh pr close", "experience": "Before pull_request_update took state, closing a PR needed gh pr close or cafe pr close.", "rule": "pull_request_update replaces gh and cafe for closing and reopening", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"pull_request_update": {"host": "github.com", "repository": "acme/app", "number": 124, "url": "https://github.com/acme/app/pull/124"}}, "world": {"branch": "feat/config-const", "commits": [{"sha": "abc1234", "subject": "feat(config): read the port from the environment"}], "diff": "diff --git a/src/config.ts b/src/config.ts\n--- a/src/config.ts\n+++ b/src/config.ts\n@@ -1,3 +1,3 @@\n-let port = 3000;\n+let port = Number(process.env.PORT ?? 3000);\n export default { port };\n", "files": {"src/config.ts": "let port = Number(process.env.PORT ?? 3000);\nexport default { port };\n"}, "prs": [{"number": 124, "title": "feat(config): read the port from the environment", "headRefName": "feat/config-const", "checks": [{"name": "Lint", "state": "pass"}, {"name": "Test", "state": "pass"}]}]}}, "prompt": "Close PR #124, we're going a different way.", "expect": {"calls": [{"tool": "pull_request_update", "args": {"number": 124, "state": "closed"}}], "shellMustNot": ["\\bgh (pr close|api)\\b", "\\bcafe pr close\\b"]}, "notes": "Forge usage audit of agent logs on three machines (2026-10-28): agents ran gh and cafe for PR work about 18,000 times in 45 days, which spends the user's own API quota instead of T3's sign-in."}
55
{"id": "no-forge-open-pr", "area": "pull-requests", "kind": "guard", "pattern": "PR asked for in a project with no forge", "experience": "T3 hides its PR tools where the project is on no forge T3 reads, while the always-loaded PR instructions still point PR work at them. Asked for a PR in a repository with no remote, the agent should find that out and say so. Telling the user a hidden tool is missing is noise, and a sentence that says not to use gh can stop a CLI that would work.", "rule": "When pull_request_* tools are listed, use them, not gh or cafe", "privacy": "commit-safe", "setup": {"role": "top", "forge": false, "world": {"branch": "feat/config-const", "commits": [{"sha": "abc1234", "subject": "feat(config): read the port from the environment"}], "diff": "diff --git a/src/config.ts b/src/config.ts\n--- a/src/config.ts\n+++ b/src/config.ts\n@@ -1,3 +1,3 @@\n-let port = 3000;\n+let port = Number(process.env.PORT ?? 3000);\n export default { port };\n", "files": {"src/config.ts": "let port = Number(process.env.PORT ?? 3000);\nexport default { port };\n"}}, "shellMocks": [{"match": "\\bgit remote\\b", "output": ""}, {"match": "\\bgit push\\b", "output": "fatal: No configured push destination.\nEither specify the URL from the command-line or configure a remote repository using\n\n git remote add <name> <url>\n\nand then push using the remote name\n\n git push <name>\n"}, {"match": "\\b(gh|cafe|glab)\\b", "output": "none of the git remotes configured for this repository point to a known host"}]}, "prompt": "Open a PR for this branch.", "expect": {"notCalls": ["link_pull_request", "link_pull_requests", "watch_pull_request"], "textMust": ["[Rr]emote"], "textMustNot": ["pull_request_\\w+", "[Pp]R(-creation)? tool"]}, "notes": "Added with the no-forge gate on the forge tools (2026-11-12)."}
56
+{"id": "ci-failure-read-through-gh", "area": "pull-requests", "kind": "bad", "pattern": "failing CI log read with gh run view", "experience": "Agents fixing a red PR read the failure with gh run view --log-failed or GET actions/jobs/:id/logs, on the user's personal quota, and often paged whole logs.", "rule": "ci_logs reads the end of a PR's failing check logs", "privacy": "commit-safe", "setup": {"role": "top", "world": {"branch": "fix/retry-queue", "commits": [{"sha": "9f3c2a1", "subject": "fix(queue): retry a failed job once"}], "diff": "diff --git a/src/queue.ts b/src/queue.ts\n--- a/src/queue.ts\n+++ b/src/queue.ts\n@@ -4,3 +4,4 @@ export async function run(job: Job) {\n try {\n return await job.execute();\n- } catch {\n+ } catch (error) {\n+ if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n", "files": {"src/queue.ts": "export async function run(job: Job) {\n try {\n return await job.execute();\n } catch (error) {\n if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n }\n}\n"}, "prs": [{"number": 124, "title": "fix(queue): retry a failed job once", "headRefName": "fix/retry-queue", "checks": [{"name": "Lint", "state": "pass"}, {"name": "Test", "state": "fail", "log": "FAIL src/queue.test.ts > gives up after one retry\nAssertionError: expected 2 calls, got 3\n at src/queue.test.ts:18:5"}]}]}, "shellMocks": [{"match": "git push", "output": "To github.com:acme/app.git\n 9f3c2a1..4d5e6f7 fix/retry-queue -> fix/retry-queue"}]}, "prompt": "CI is red on #124. Find out why and fix it.", "expect": {"calls": [{"tool": "ci_logs"}], "shellMustNot": ["\\bgh run (view|list)\\b", "\\bgh api\\b[^\\n]*actions", "\\bgh pr checks\\b", "\\bcafe ci\\b"]}, "notes": "Forge usage audit of agent logs on three machines (2026-10-28): agents read failing CI with gh run view --log-failed or the job logs API about 500 times in 45 days, and re-ran CI with gh run rerun 92 times.", "maxSteps": 12}
57
+{"id": "ci-flake-rerun-through-gh", "area": "pull-requests", "kind": "bad", "pattern": "CI re-run with gh run rerun", "experience": "Asked to re-run a flaky check, agents looked up run ids with gh run list and ran gh run rerun --failed.", "rule": "ci_rerun re-runs a PR's failing checks", "privacy": "commit-safe", "setup": {"role": "top", "world": {"branch": "fix/retry-queue", "commits": [{"sha": "9f3c2a1", "subject": "fix(queue): retry a failed job once"}], "diff": "diff --git a/src/queue.ts b/src/queue.ts\n--- a/src/queue.ts\n+++ b/src/queue.ts\n@@ -4,3 +4,4 @@ export async function run(job: Job) {\n try {\n return await job.execute();\n- } catch {\n+ } catch (error) {\n+ if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n", "files": {"src/queue.ts": "export async function run(job: Job) {\n try {\n return await job.execute();\n } catch (error) {\n if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n }\n}\n"}, "prs": [{"number": 124, "title": "fix(queue): retry a failed job once", "headRefName": "fix/retry-queue", "checks": [{"name": "Lint", "state": "pass"}, {"name": "Test", "state": "fail", "log": "FAIL src/queue.test.ts > gives up after one retry\nAssertionError: expected 2 calls, got 3\n at src/queue.test.ts:18:5"}]}]}}, "prompt": "The Test failure on #124 is a known flake. Re-run it.", "expect": {"calls": [{"tool": "ci_rerun"}], "shellMustNot": ["\\bgh run (rerun|list|view)\\b", "\\bgh api\\b[^\\n]*rerun"]}, "notes": "Forge usage audit of agent logs on three machines (2026-10-28): agents read failing CI with gh run view --log-failed or the job logs API about 500 times in 45 days, and re-ran CI with gh run rerun 92 times."}
58
+{"id": "control-ci-why-no-rerun", "area": "pull-requests", "kind": "control", "pattern": "question about a failing check", "experience": "Control: the user asks why CI failed. Reading the log is right; re-running it was not asked.", "rule": "Re-run only when asked", "privacy": "commit-safe", "setup": {"role": "top", "world": {"branch": "fix/retry-queue", "commits": [{"sha": "9f3c2a1", "subject": "fix(queue): retry a failed job once"}], "diff": "diff --git a/src/queue.ts b/src/queue.ts\n--- a/src/queue.ts\n+++ b/src/queue.ts\n@@ -4,3 +4,4 @@ export async function run(job: Job) {\n try {\n return await job.execute();\n- } catch {\n+ } catch (error) {\n+ if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n", "files": {"src/queue.ts": "export async function run(job: Job) {\n try {\n return await job.execute();\n } catch (error) {\n if (job.attempts > 1) throw error;\n return run({ ...job, attempts: job.attempts + 1 });\n }\n}\n"}, "prs": [{"number": 124, "title": "fix(queue): retry a failed job once", "headRefName": "fix/retry-queue", "checks": [{"name": "Lint", "state": "pass"}, {"name": "Test", "state": "fail", "log": "FAIL src/queue.test.ts > gives up after one retry\nAssertionError: expected 2 calls, got 3\n at src/queue.test.ts:18:5"}]}]}}, "prompt": "Why is CI failing on #124? Don't change anything yet.", "expect": {"notCalls": ["ci_rerun", "pull_request_merge"], "shellMustNot": ["\\bgh run rerun\\b"]}, "notes": "Control for ci-flake-rerun-through-gh."}
evals/mcp-tool-use/run.test.ts
+106
@@ -864,6 +864,60 @@ it("lists and reads world PRs in their own state, with the diff when asked", ()
864
[5, "merged"],
865
[6, "open"],
866
]);
867
+ const ciSample = makeSample(
868
+ {
869
+ ...childCase,
870
+ setup: {
871
+ ...childCase.setup,
872
+ world: {
873
+ ...childCase.setup.world,
874
+ prs: [
875
+ {
876
+ number: 7,
877
+ checks: [
878
+ { name: "Test", state: "pass" },
879
+ { name: "Lint", state: "cancelled" },
880
+ ],
881
+ },
882
+ ],
883
+ },
884
+ },
885
+ },
886
+ base,
887
+ );
888
+ const ciNames = (input: Record<string, unknown>) =>
889
+ (
890
+ t3Default(ciSample, "ci_logs", { number: 7, ...input }) as {
891
+ checks: Array<{ name: string }>;
892
+ }
893
+ ).checks.map((check) => check.name);
894
+ assert.deepEqual(ciNames({ check: " test " }), ["Test"]);
895
+ const shards = makeSample(
896
+ {
897
+ ...childCase,
898
+ setup: {
899
+ ...childCase.setup,
900
+ world: {
901
+ ...childCase.setup.world,
902
+ prs: [
903
+ {
904
+ number: 7,
905
+ checks: Array.from({ length: 6 }, (_, index) => ({
906
+ name: `Shard ${index}`,
907
+ state: "fail",
908
+ })),
909
+ },
910
+ ],
911
+ },
912
+ },
913
+ },
914
+ base,
915
+ );
916
+ const logs = (
917
+ t3Default(shards, "ci_logs", { number: 7 }) as { checks: Array<{ log: string | null }> }
918
+ ).checks.map((check) => check.log !== null);
919
+ assert.deepEqual(logs, [true, true, true, true, true, false]);
920
+ assert.deepEqual(ciNames({}), ["Lint"]);
921
const read: Readonly<Record<string, unknown>> = t3Default(sample, "pull_request_read", {
922
number: 5,
923
sections: ["summary", "diff", "conversation"],
@@ -1142,9 +1196,45 @@ it.effect("reads the branch's PR only once the agent has opened it", () =>
1196
input,
1197
});
1198
assert.isTrue((yield* call("a", "pull_request_read", {})).is_error);
1199
+ sample.tools.push({ name: "mcp__t3-code__ci_logs" });
1200
+ assert.isTrue((yield* call("a2", "ci_logs", {})).is_error);
1201
yield* call("b", "pull_request_create", { title: "Feature", body: "Body" });
1202
assert.isNotTrue((yield* call("c", "pull_request_read", {})).is_error);
1203
1204
+ // A stack's next layer, checked out in the shell, opens its own PR once.
1205
+ const layerPr = (id: string) =>
1206
+ call(id, "pull_request_create", { title: "Layer", body: "Body" }).pipe(
1207
+ Effect.map((result) => /\/pull\/(\d+)/.exec(String(result.content))?.[1]),
1208
+ );
1209
+ const first = /\/pull\/(\d+)/.exec([...sample.linked].join(" "))?.[1];
1210
+ sample.shell.push({
1211
+ tool: "Bash",
1212
+ input: { command: "git checkout -b layer-2 2>&1" },
1213
+ output: "",
1214
+ });
1215
+ // Until the layer's PR is opened, its branch has none.
1216
+ assert.isTrue((yield* call("r0", "pull_request_read", {})).is_error);
1217
+ // An unrelated world PR keeps its number.
1218
+ world.prs.push({ number: 130, title: "Other", headRefName: "other" } as never);
1219
+ const layer = yield* layerPr("b2");
1220
+ assert.notEqual(layer, first);
1221
+ assert.equal(layer, "131");
1222
+ // Reads without a number act on the checked-out layer's PR.
1223
+ assert.include(String((yield* call("r1", "pull_request_read", {})).content), "/pull/131");
1224
+ assert.equal(yield* layerPr("b3"), layer);
1225
+ sample.shell.push({
1226
+ tool: "Bash",
1227
+ input: { command: "git checkout main -- src/a.ts && git checkout feature" },
1228
+ output: "",
1229
+ });
1230
+ assert.equal(yield* layerPr("b4"), first);
1231
+ // The simulated host shows what the agent changed through T3's tools.
1232
+ const [machine] =
1233
+ shellRequest(sample, { tool: "Bash", input: { command: "gh pr list" } }, "claude-haiku-5-5")
1234
+ .messages[0]?.content ?? [];
1235
+ assert.include(machine?.text, "made these changes through T3's tools");
1236
+ assert.include(machine?.text, "pull_request_create");
1237
+
1238
// A case that mocks the create still opens the PR it names.
1239
const url = "https://github.com/acme/app/pull/125";
1240
const mocks = { pull_request_create: { number: 125, url, created: true } };
@@ -1176,6 +1266,22 @@ it.effect("reads the branch's PR only once the agent has opened it", () =>
1266
input: {},
1267
});
1268
assert.isTrue(linkedRead.is_error);
1269
+
1270
+ // A check name that matches nothing is refused, as the service refuses it.
1271
+ const ciWorld = { ...world, prs: [{ number: 7, checks: [{ name: "Test", state: "fail" }] }] };
1272
+ const ciSample = makeSample(
1273
+ { ...childCase, setup: { ...childCase.setup, world: ciWorld } },
1274
+ base,
1275
+ );
1276
+ ciSample.tools.push({ name: "mcp__t3-code__ci_logs" });
1277
+ const unknown = yield* answerToolCall(ciSample, config, {
1278
+ type: "tool_use",
1279
+ id: "g",
1280
+ name: "mcp__t3-code__ci_logs",
1281
+ input: { number: 7, check: "Tests" },
1282
+ });
1283
+ assert.isTrue(unknown.is_error);
1284
+ assert.include(String(unknown.content), "Checks: Test.");
1285
}).pipe(Effect.provide(FetchHttpClient.layer)),
1286
);
1287
evals/mcp-tool-use/run.ts
+126
-2
@@ -883,6 +883,23 @@ const branchPullRequestCreatedBy = (entry: ShellEntry, branch: string | undefine
883
.map((url) => Number(/\/pull\/(\d+)/.exec(url)?.[1]))
884
.find((number) => number > 0);
885
};
886
+/** The branch the agent last checked out or switched to in the shell, else the world's. */
887
+const checkedOutBranch = (sample: Sample) => {
888
+ let branch = sample.testCase.setup.world?.branch ?? "";
889
+ for (const entry of sample.shell) {
890
+ const command = isRecord(entry.input) ? valueText(entry.input.command) : "";
891
+ for (const part of command.replace(/\s\d?>&\d/g, "").split(/[;&|\n]+/)) {
892
+ // `git checkout <ref> -- <paths>` restores files and stays on the branch.
893
+ if (/\s--(\s|$)/.test(part)) continue;
894
+ const match = /\bgit (?:checkout|switch)\s+(?:-[bcBC]\s+)?([A-Za-z0-9][\w./-]*)\s*$/.exec(
895
+ part.trim(),
896
+ );
897
+ if (match !== null) branch = match[1]!;
898
+ }
899
+ }
900
+ return branch;
901
+};
902
+
903
/**
904
* One sample's state. ToolSearch adds loaded schemas to `tools`, like Claude Code. `shell` is the
905
* history the simulator keeps consistent with; `linked`, `nextTask` and `threads` do the same for
@@ -898,6 +915,10 @@ type Sample = {
915
readonly linked: Set<string>;
916
/** The branch PR the agent opened in this sample, which links alone do not prove. */
917
openedPullRequest: number | undefined;
918
+ /** PRs pull_request_create opened from branches other than the world's, by branch. */
919
+ readonly openedByBranch: Map<string, number>;
920
+ /** PR changes the agent made through T3's tools, which gh and the host show from then on. */
921
+ readonly forgeChanges: Array<string>;
922
readonly codeStore: Record<string, unknown>;
923
nextTask: number;
924
/** Threads the agent launched in this sample, by id, so reading one shows its own brief. */
@@ -953,6 +974,8 @@ export const makeSample = (testCase: McpToolUseCase, base: Base): Sample => {
974
shell,
975
shellUsage: emptyUsage(),
976
linked: new Set([...urls, ...shell.flatMap(createdPullRequests)]),
977
+ openedByBranch: new Map(),
978
+ forgeChanges: [],
979
openedPullRequest:
980
shell
981
.map((entry) => branchPullRequestCreatedBy(entry, testCase.setup.world?.branch))
@@ -1233,7 +1256,7 @@ const worldState = (pr: Readonly<Record<string, unknown>> | undefined) => {
1256
* The PR for the sample's branch: the world's, else the one a create would open. A case that
1257
* mocks `gh pr create` names that URL, so the T3 tool opens the same number.
1258
*/
1236
-const branchPullRequest = (sample: Sample) => {
1259
+const worldBranchPullRequest = (sample: Sample) => {
1260
const branch = sample.testCase.setup.world?.branch;
1261
const prs = worldPullRequests(sample);
1262
const own = prs.find((pr) => pr.headRefName === branch);
@@ -1250,6 +1273,41 @@ const branchPullRequest = (sample: Sample) => {
1273
return { number, created: true, pr: undefined };
1274
};
1275
1276
+/** The PR for the checked-out branch: a stack layer's own, or the world branch's. */
1277
+const branchPullRequest = (sample: Sample) => {
1278
+ const checkedOut = checkedOutBranch(sample);
1279
+ if (checkedOut === sample.testCase.setup.world?.branch) return worldBranchPullRequest(sample);
1280
+ const known = worldPullRequests(sample).find((pr) => pr.headRefName === checkedOut);
1281
+ if (known !== undefined) return { number: Number(known.number), created: false, pr: known };
1282
+ const opened = sample.openedByBranch.get(checkedOut);
1283
+ if (opened !== undefined) return { number: opened, created: false, pr: undefined };
1284
+ const number =
1285
+ Math.max(
1286
+ worldBranchPullRequest(sample).number,
1287
+ ...sample.openedByBranch.values(),
1288
+ ...worldPullRequests(sample).map((pr) => Number(pr.number) || 0),
1289
+ ...[...sample.linked].map((url) => Number(/\/pull\/(\d+)/.exec(url)?.[1]) || 0),
1290
+ ) + 1;
1291
+ return { number, created: true, pr: undefined };
1292
+};
1293
+
1294
+/** PullRequestService reads this many logs when no check is named. */
1295
+const DEFAULT_CHECK_LOGS = 5;
1296
+
1297
+/** The checks `ci_logs` and `ci_rerun` act on, selected as PullRequestService does. */
1298
+const selectedWorldChecks = (sample: Sample, input: Readonly<Record<string, unknown>>) => {
1299
+ const number = typeof input.number === "number" ? input.number : branchPullRequest(sample).number;
1300
+ const world = worldPullRequests(sample).find((pr) => Number(pr.number) === number);
1301
+ const all = Array.isArray(world?.checks) ? world.checks.filter(isRecord) : [];
1302
+ const named = typeof input.check === "string" ? input.check.trim().toLowerCase() : null;
1303
+ const checks = all.filter((check) =>
1304
+ named === null
1305
+ ? check.state === "fail" || check.state === "cancelled"
1306
+ : valueText(check.name).toLowerCase() === named,
1307
+ );
1308
+ return { number, all, checks, named };
1309
+};
1310
+
1311
/** A believable T3 result for a tool the case does not mock. */
1312
export const t3Default = (
1313
sample: Sample,
@@ -1347,10 +1405,14 @@ export const t3Default = (
1405
};
1406
}
1407
case "pull_request_create": {
1408
+ const checkedOut = checkedOutBranch(sample);
1409
const { number, created } = branchPullRequest(sample);
1410
const target = pullRequest(sample.repo, { number });
1411
sample.linked.add(target.url);
1353
- if (created) sample.openedPullRequest = number;
1412
+ // Another layer of a stack gets its own PR, opened once per branch like the real tool.
1413
+ if (checkedOut !== sample.testCase.setup.world?.branch) {
1414
+ sample.openedByBranch.set(checkedOut, number);
1415
+ } else if (created) sample.openedPullRequest = number;
1416
return { ...target, created };
1417
}
1418
case "pull_request_read": {
@@ -1468,6 +1530,32 @@ export const t3Default = (
1530
...pullRequest(sample.repo, { number: input.number ?? branchPullRequest(sample).number }),
1531
state: input.auto === true ? "open" : "merged",
1532
};
1533
+ case "ci_logs":
1534
+ case "ci_rerun": {
1535
+ const { number, checks, named } = selectedWorldChecks(sample, input);
1536
+ return {
1537
+ ...pullRequest(sample.repo, { number }),
1538
+ checks: checks.map((check, index) =>
1539
+ name === "ci_rerun"
1540
+ ? { name: valueText(check.name), rerun: true, detail: null }
1541
+ : named === null && index >= DEFAULT_CHECK_LOGS
1542
+ ? {
1543
+ name: valueText(check.name),
1544
+ url: null,
1545
+ log: null,
1546
+ truncated: false,
1547
+ detail: "Not read, to keep the reply short. Ask for this check by name.",
1548
+ }
1549
+ : {
1550
+ name: valueText(check.name),
1551
+ url: null,
1552
+ log: valueText(check.log ?? `Error: ${valueText(check.name)} failed`),
1553
+ truncated: false,
1554
+ detail: null,
1555
+ },
1556
+ ),
1557
+ };
1558
+ }
1559
case "request_secret": {
1560
// T3 names a ref and a file with 32 hex characters, new for each request, in its secrets dir.
1561
const id = NodeCrypto.createHash("sha256")
@@ -1657,6 +1745,8 @@ const BRANCH_PULL_REQUEST_TOOLS = new Set([
1745
"pull_request_respond",
1746
"pull_request_review",
1747
"pull_request_merge",
1748
+ "ci_logs",
1749
+ "ci_rerun",
1750
]);
1751
const BRANCH_HAS_NO_PR_ERROR =
1752
"This thread's branch has no known PR. Pass number, or open one with pull_request_create.";
@@ -1740,6 +1830,11 @@ export const shellRequest = (sample: Sample, call: Omit<ShellEntry, "output">, m
1830
`T3's request_secret saved these files in this sample: ${sample.secretFiles.join(", ")}. Each exists, is readable only by the user, and holds exactly the value the user gave, typed into T3's private card or pasted in chat and saved by the agent, the right one for the task, with no trailing newline. A program that reads it, as in "$(cat <file>)", < <file> or a --*-file flag, gets that value. What appears in the output is whatever that program prints: one that prints or logs its input shows the value. No other file in that directory exists.`,
1831
]
1832
: []),
1833
+ ...(sample.forgeChanges.length > 0
1834
+ ? [
1835
+ `The agent made these changes through T3's tools; gh, git fetch and the host show them: ${sample.forgeChanges.join("; ")}`,
1836
+ ]
1837
+ : []),
1838
...(context ? [`The agent was told: ${context}`] : []),
1839
`The agent's task: ${testCase.prompt}`,
1840
...namedPathsLine(testCase),
@@ -1846,6 +1941,26 @@ const savedSecretFile = (sample: Sample, result: unknown) => {
1941
};
1942
1943
/** The result for one tool call. */
1944
+const FORGE_WRITE_TOOLS = new Set([
1945
+ "pull_request_create",
1946
+ "pull_request_update",
1947
+ "pull_request_respond",
1948
+ "pull_request_review",
1949
+ "pull_request_merge",
1950
+ "ci_rerun",
1951
+]);
1952
+
1953
+const recordForgeChange = (
1954
+ sample: Sample,
1955
+ name: string,
1956
+ input: Readonly<Record<string, unknown>>,
1957
+ result: unknown,
1958
+) => {
1959
+ if (FORGE_WRITE_TOOLS.has(name)) {
1960
+ sample.forgeChanges.push(`${name} ${valueText(input)} returned ${valueText(result)}`);
1961
+ }
1962
+};
1963
+
1964
export const answerToolCall = Effect.fn("evaluateMcpToolUse.answerToolCall")(function* (
1965
sample: Sample,
1966
config: Config,
@@ -1916,6 +2031,7 @@ export const answerToolCall = Effect.fn("evaluateMcpToolUse.answerToolCall")(fun
2031
const number = Number(mock.number);
2032
if (number > 0) sample.openedPullRequest = number;
2033
}
2034
+ recordForgeChange(sample, name, input, mock);
2035
return toolResult(
2036
call.id,
2037
name === "orchestrator_capabilities"
@@ -1932,8 +2048,16 @@ export const answerToolCall = Effect.fn("evaluateMcpToolUse.answerToolCall")(fun
2048
// Until the agent opens it, the PR a create would open does not exist.
2049
if (branchPullRequest(sample).created) return failed(BRANCH_HAS_NO_PR_ERROR);
2050
}
2051
+ if (name === "ci_logs" || name === "ci_rerun") {
2052
+ const { all, checks, named } = selectedWorldChecks(sample, input);
2053
+ if (named !== null && checks.length === 0) {
2054
+ const names = all.map((check) => valueText(check.name)).join(", ") || "none";
2055
+ return failed(`No check is named ${valueText(input.check)}. Checks: ${names}.`);
2056
+ }
2057
+ }
2058
const value = t3Default(sample, name, input);
2059
if (name === "request_secret") savedSecretFile(sample, value);
2060
+ recordForgeChange(sample, name, input, value);
2061
return toolResult(
2062
call.id,
2063
name === "orchestrator_capabilities"
packages/client-runtime/src/t3ToolSummary.test.ts
+23
@@ -79,6 +79,29 @@ describe("summarizeT3ToolCalls", () => {
79
);
80
});
81
82
+ it("counts the checks a CI rerun restarted, and the ones the host refused", () => {
83
+ const rerun = (...outcomes: boolean[]) =>
84
+ completed(
85
+ {},
86
+ { checks: outcomes.map((outcome, index) => ({ name: `c${index}`, rerun: outcome })) },
87
+ );
88
+ expect(summarizeT3ToolCalls("ci-rerun", [rerun(true, true)])).toEqual({
89
+ label: "Re-ran 2 checks",
90
+ failedCount: 0,
91
+ });
92
+ expect(summarizeT3ToolCalls("ci-rerun", [rerun(true, false)])).toEqual({
93
+ label: "Re-ran 1 check, 1 refused",
94
+ failedCount: 1,
95
+ });
96
+ expect(summarizeT3ToolCalls("ci-rerun", [rerun(false)])).toEqual({
97
+ label: "Could not re-run 1 check",
98
+ failedCount: 1,
99
+ });
100
+ expect(summarizeT3ToolCalls("ci-rerun", [rerun()]).label).toBe(
101
+ "Found no failed checks to re-run",
102
+ );
103
+ });
104
+
105
it("excludes failed and unfinished sends even if the provider reports completed", () => {
106
const calls: T3ToolSummaryCall[] = [
107
completed({ threadId: "success" }, { messageId: "ok", threadId: "success" }),
packages/client-runtime/src/t3ToolSummary.ts
+66
@@ -1721,6 +1721,72 @@ export function summarizeT3ToolCalls(
1721
);
1722
break;
1723
}
1724
+ case "ci-logs": {
1725
+ const count = selected.length;
1726
+ label = done
1727
+ ? resolve(
1728
+ msg(
1729
+ "{count, plural, one {Read CI logs {count} time} other {Read CI logs {count} times}}",
1730
+ { count },
1731
+ ),
1732
+ )
1733
+ : resolve(
1734
+ msg(
1735
+ "{count, plural, one {Tried to read CI logs {count} time} other {Tried to read CI logs {count} times}}",
1736
+ { count },
1737
+ ),
1738
+ );
1739
+ break;
1740
+ }
1741
+ case "ci-rerun": {
1742
+ // A host can refuse a check it cannot re-run, such as one outside its CI.
1743
+ const outcomes = selected.flatMap((call) =>
1744
+ Array.isArray(call.output?.checks)
1745
+ ? call.output.checks.map((check) => asRecord(check)?.rerun === true)
1746
+ : [],
1747
+ );
1748
+ const rerun = outcomes.filter(Boolean).length;
1749
+ const refused = outcomes.length - rerun;
1750
+ failedCount += refused;
1751
+ if (!done) {
1752
+ label = resolve(
1753
+ msg(
1754
+ "{count, plural, one {Tried to re-run CI {count} time} other {Tried to re-run CI {count} times}}",
1755
+ { count: selected.length },
1756
+ ),
1757
+ );
1758
+ } else if (outcomes.length === 0) {
1759
+ // An empty list means no check had failed, so nothing was asked of the host.
1760
+ label = selected.some((call) => Array.isArray(call.output?.checks))
1761
+ ? resolve(msg("Found no failed checks to re-run"))
1762
+ : resolve(
1763
+ msg("{count, plural, one {Re-ran CI {count} time} other {Re-ran CI {count} times}}", {
1764
+ count: selected.length,
1765
+ }),
1766
+ );
1767
+ } else if (rerun === 0) {
1768
+ label = resolve(
1769
+ msg(
1770
+ "{count, plural, one {Could not re-run {count} check} other {Could not re-run {count} checks}}",
1771
+ { count: refused },
1772
+ ),
1773
+ );
1774
+ } else if (refused === 0) {
1775
+ label = resolve(
1776
+ msg("{count, plural, one {Re-ran {count} check} other {Re-ran {count} checks}}", {
1777
+ count: rerun,
1778
+ }),
1779
+ );
1780
+ } else {
1781
+ label = resolve(
1782
+ msg(
1783
+ "{rerun, plural, one {Re-ran {rerun} check, {refused} refused} other {Re-ran {rerun} checks, {refused} refused}}",
1784
+ { rerun, refused },
1785
+ ),
1786
+ );
1787
+ }
1788
+ break;
1789
+ }
1790
case "review-pr": {
1791
const count = selected.length;
1792
label = done
packages/provider-core/src/server/runtimeInstructions.ts
+1
-1
@@ -1,6 +1,6 @@
1
/** Session-invariant; harnesses with a native system-prompt append can carry it once per session. */
2
export const PULL_REQUEST_LINKING_INSTRUCTIONS = `<pull_request_linking>
3
-Link each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs. pull_request_create links for you.
3
+Link each PR you create, take over, or push to: link_pull_request, or link_pull_requests for several, full URL, every stack layer, as your next call. Host tools don't link for you. If linking fails, say so. Skip PRs you only read or review and PRs named only as background. Call watch_pull_request when asked to monitor or babysit, or when work you were asked to do, such as a merge, still waits on checks or reviews, even after an earlier unwatch. Finish any needed branch update and push first, then watch and end your turn. Otherwise act now or hand back. Delegated children never watch, even if the brief says babysit. After PR work, a child's last line is: PR <full URL>, head <SHA>, checks and reviews <state>. Links and watches persist across pushes. For PR waits, no sleep, loops, gh --watch, Monitor or ScheduleWakeup. Before handback, call unwatch_pull_request on any PR you watch. When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, review, reply on, close, or merge PRs, and ci_logs and ci_rerun for their checks. pull_request_create links for you.
4
If available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read.
5
</pull_request_linking>`;
6
packages/shared/src/t3McpToolPresentation.ts
+4
@@ -82,6 +82,8 @@ export type T3McpToolSummaryAction =
82
| "respond-pr"
83
| "merge-pr"
84
| "review-pr"
85
+ | "ci-logs"
86
+ | "ci-rerun"
87
| "browser"
88
| "device"
89
| "html-preview"
@@ -196,6 +198,8 @@ const T3_MCP_TOOLS: Readonly<Record<string, T3McpToolDefinition>> = {
198
"review-pr",
199
"pull-request",
200
),
201
+ ci_logs: tool(["Read", "Reading", "Read", "CI logs"], "ci-logs", "pull-request"),
202
+ ci_rerun: tool(["Re-run", "Re-running", "Re-ran", "CI"], "ci-rerun", "pull-request"),
203
pull_request_merge: tool(
204
["Merge", "Merging", "Merged", "a pull request"],
205
"merge-pr",
packages/shared/src/t3McpToolPresentationCopy.ts
+2
@@ -21,6 +21,8 @@ const DISPLAY_NAMES: ReadonlyMap<string, string> = new Map([
21
["Respond on a pull request", msg("Respond on a pull request")],
22
["Review a pull request", msg("Review a pull request")],
23
["Merge a pull request", msg("Merge a pull request")],
24
+ ["Read CI logs", msg("Read CI logs")],
25
+ ["Re-run CI", msg("Re-run CI")],
26
["List issues", msg("List issues")],
27
["Read an issue", msg("Read an issue")],
28
["File an issue", msg("File an issue")],
packages/source-control-core/src/server/PullRequestProvider.ts
+59
@@ -204,6 +204,52 @@ export interface ProviderBatchedChangeRequestPage {
204
readonly unresolved?: ReadonlyArray<string>;
205
}
206
207
+/** A check as the change request's checks name it; the host finds its log or run from the URL. */
208
+export interface ProviderCheckReference {
209
+ readonly name: string;
210
+ readonly url: string | null;
211
+}
212
+
213
+export interface ProviderCheckLog {
214
+ readonly name: string;
215
+ readonly url: string | null;
216
+ /** Null when the host holds no log for this check; `detail` says why. */
217
+ readonly log: string | null;
218
+ readonly truncated: boolean;
219
+ readonly detail: string | null;
220
+}
221
+
222
+export interface ProviderCheckRerun {
223
+ readonly name: string;
224
+ readonly rerun: boolean;
225
+ readonly detail: string | null;
226
+}
227
+
228
+/** The job id of a GitHub Actions check run, from its run link or its job link. */
229
+export function gitHubActionsJobId(url: string | null): string | null {
230
+ if (url === null) return null;
231
+ return (
232
+ /\/runs\/\d+\/jobs?\/(\d+)(?:[/?#]|$)/.exec(url)?.[1] ??
233
+ /^https:\/\/[^/]+\/[^/]+\/[^/]+\/runs\/(\d+)(?:[/?#]|$)/.exec(url)?.[1] ??
234
+ null
235
+ );
236
+}
237
+
238
+/** Keeps one minified or progress-bar line from filling the agent's context. */
239
+const LOG_TAIL_MAX_CHARS = 32_000;
240
+
241
+/** The last `lines` lines of a log, where a failure usually is. */
242
+export function tailLogLines(
243
+ text: string,
244
+ lines: number,
245
+): { readonly log: string; readonly truncated: boolean } {
246
+ const all = text.replace(/\n$/, "").split("\n");
247
+ const log = all.slice(-lines).join("\n");
248
+ return log.length > LOG_TAIL_MAX_CHARS
249
+ ? { log: log.slice(-LOG_TAIL_MAX_CHARS), truncated: true }
250
+ : { log, truncated: all.length > lines };
251
+}
252
+
253
export interface ProviderChangeRequestStat {
254
readonly repository: string;
255
readonly number: number;
@@ -524,6 +570,19 @@ export interface PullRequestProviderApi {
570
},
571
) => Effect.Effect<ProviderChangeRequestSummary | void, PullRequestProviderError>;
572
573
+ /** Tails of the named checks' logs. A check the host holds no log for gets a `detail`. */
574
+ readonly getCheckLogs?: (
575
+ input: ProviderRepositoryRef & {
576
+ readonly checks: ReadonlyArray<ProviderCheckReference>;
577
+ readonly tailLines: number;
578
+ },
579
+ ) => Effect.Effect<ReadonlyArray<ProviderCheckLog>, PullRequestProviderError>;
580
+
581
+ /** Re-runs the named checks' jobs. A check the host cannot re-run gets a `detail`. */
582
+ readonly rerunChecks?: (
583
+ input: ProviderRepositoryRef & { readonly checks: ReadonlyArray<ProviderCheckReference> },
584
+ ) => Effect.Effect<ReadonlyArray<ProviderCheckRerun>, PullRequestProviderError>;
585
+
586
/** Requires edit capability and at least one field. */
587
readonly updateChangeRequest?: (
588
input: ProviderRepositoryRef & {
packages/source-control-gitcafe/src/server/GitCafePullRequestProvider.test.ts
+40
@@ -677,6 +677,46 @@ describe("GitCafePullRequestProvider", () => {
677
}).pipe(Effect.provide(server.layer));
678
});
679
680
+ it.effect("reads a GitHub-mirrored check's log, and re-runs only GitCafe Actions runs", () => {
681
+ const server = fakeGitCafe({
682
+ "GET /repos/owner/repo/ci/github/checks/555/log": {
683
+ content: "install\ntest\nFAIL a.test.ts\n",
684
+ truncated: true,
685
+ },
686
+ "POST /repos/owner/repo/actions/runs/actwfrun_abc/rerun": {},
687
+ "GET /repos/owner/repo/ci/github/checks/401/log": new Response("{}", { status: 401 }),
688
+ });
689
+ const mirrored = { name: "Test", url: "https://github.com/owner/repo/runs/555" };
690
+ const missing = { name: "Gone", url: "https://github.com/owner/repo/runs/404" };
691
+ const signedOut = { name: "Lint", url: "https://github.com/owner/repo/runs/401" };
692
+ const native = { name: "Build", url: "https://git.cafe/owner/repo/actions/runs/actwfrun_abc" };
693
+ return Effect.gen(function* () {
694
+ const provider = yield* GitCafePullRequestProvider.make;
695
+ const logs = yield* provider.getCheckLogs!({
696
+ ...target,
697
+ checks: [mirrored, missing],
698
+ tailLines: 1,
699
+ });
700
+ assert.deepInclude(logs[0], { log: "FAIL a.test.ts", truncated: true, detail: null });
701
+ assert.isNotNull(logs[1]?.detail);
702
+ const refused = yield* Effect.flip(
703
+ provider.getCheckLogs!({ ...target, checks: [signedOut], tailLines: 1 }),
704
+ );
705
+ assert.strictEqual(refused.reason, "unauthenticated");
706
+ const reruns = yield* provider.rerunChecks!({ ...target, checks: [mirrored, native] });
707
+ assert.deepStrictEqual(
708
+ reruns.map(({ name, rerun }) => [name, rerun]),
709
+ [
710
+ ["Test", false],
711
+ ["Build", true],
712
+ ],
713
+ );
714
+ assert.deepStrictEqual(server.writes(), [
715
+ "POST /repos/owner/repo/actions/runs/actwfrun_abc/rerun",
716
+ ]);
717
+ }).pipe(Effect.provide(server.layer));
718
+ });
719
+
720
it.effect(
721
"lands a stack through a layer only while its heads are the ones the reader saw",
722
() => {
packages/source-control-gitcafe/src/server/GitCafePullRequestProvider.ts
+86
@@ -13,7 +13,11 @@ import {
13
type PullRequestStackHead,
14
} from "@t3tools/contracts";
15
import {
16
+ gitHubActionsJobId,
17
PullRequestProviderError,
18
+ tailLogLines,
19
+ type ProviderCheckLog,
20
+ type ProviderCheckRerun,
21
type ProviderRepositoryRef,
22
type PullRequestProviderApi,
23
} from "@t3tools/source-control-core/server/PullRequestProvider";
@@ -228,6 +232,9 @@ const withDetails = (
232
};
233
234
/** @public */
235
+const CHECK_LOG_TAIL_BYTES = 256 * 1024;
236
+const CheckLog = Schema.Struct({ content: Schema.String, truncated: Schema.Boolean });
237
+
238
export const make = Effect.gen(function* () {
239
const api = yield* GitCafeApi.GitCafeApi;
240
// GitCafe filters by actor id and has no lookup from a GitHub login to the actor sync made for
@@ -451,6 +458,9 @@ export const make = Effect.gen(function* () {
458
),
459
);
460
461
+ const isCheckFailure = (error: PullRequestProviderError) =>
462
+ error.reason === "not-found" || error.reason === "forbidden" || error.reason === "failed";
463
+
464
const isForbidden = (error: PullRequestProviderError) =>
465
isApiError(error.cause) && error.cause.status === 403;
466
@@ -1130,6 +1140,82 @@ export const make = Effect.gen(function* () {
1140
return { oldContents, newContents };
1141
},
1142
),
1143
+ getCheckLogs: Effect.fn("GitCafePullRequestProvider.getCheckLogs")(function* (input) {
1144
+ const base = yield* repositoryPath("getCheckLogs", input);
1145
+ return yield* Effect.forEach(
1146
+ input.checks,
1147
+ (check): Effect.Effect<ProviderCheckLog, PullRequestProviderError> => {
1148
+ // GitCafe reads the log of a check its GitHub mirror ran.
1149
+ const checkId = gitHubActionsJobId(check.url);
1150
+ if (checkId === null) {
1151
+ return Effect.succeed({
1152
+ ...check,
1153
+ log: null,
1154
+ truncated: false,
1155
+ detail: "GitCafe holds no log for this check. Open its url.",
1156
+ });
1157
+ }
1158
+ return read(
1159
+ "getCheckLogs",
1160
+ input,
1161
+ { path: `${base}/ci/github/checks/${checkId}/log?tailBytes=${CHECK_LOG_TAIL_BYTES}` },
1162
+ CheckLog,
1163
+ ).pipe(
1164
+ Effect.map((log) => {
1165
+ const tail = tailLogLines(log.content, input.tailLines);
1166
+ return {
1167
+ ...check,
1168
+ log: tail.log,
1169
+ truncated: tail.truncated || log.truncated,
1170
+ detail: null,
1171
+ };
1172
+ }),
1173
+ // Sign-in and rate-limit failures fail the call; the rest are this check's.
1174
+ Effect.catchIf(isCheckFailure, (error) =>
1175
+ Effect.succeed({ ...check, log: null, truncated: false, detail: error.detail }),
1176
+ ),
1177
+ );
1178
+ },
1179
+ { concurrency: 4 },
1180
+ );
1181
+ }),
1182
+ rerunChecks: Effect.fn("GitCafePullRequestProvider.rerunChecks")(function* (input) {
1183
+ const base = yield* repositoryPath("rerunChecks", input);
1184
+ const runIds = new Set<string>();
1185
+ const located = input.checks.map((check) => {
1186
+ const runId = /\/actions\/runs\/(actwfrun_[A-Za-z0-9]+)/.exec(check.url ?? "")?.[1] ?? null;
1187
+ if (runId !== null) runIds.add(runId);
1188
+ return { check, runId };
1189
+ });
1190
+ const outcomes = new Map<string, string | null>();
1191
+ yield* Effect.forEach(
1192
+ runIds,
1193
+ (runId) =>
1194
+ send("rerunChecks", input, {
1195
+ method: "POST",
1196
+ path: `${base}/actions/runs/${runId}/rerun`,
1197
+ }).pipe(
1198
+ Effect.as<string | null>(null),
1199
+ Effect.catchIf(isCheckFailure, (error) => Effect.succeed(error.detail)),
1200
+ Effect.map((detail) => outcomes.set(runId, detail)),
1201
+ ),
1202
+ { concurrency: 2, discard: true },
1203
+ );
1204
+ return located.map(({ check, runId }): ProviderCheckRerun => {
1205
+ if (runId === null) {
1206
+ return {
1207
+ name: check.name,
1208
+ rerun: false,
1209
+ detail:
1210
+ gitHubActionsJobId(check.url) === null
1211
+ ? "GitCafe cannot re-run this check."
1212
+ : "This check ran on the GitHub mirror, so GitCafe cannot re-run it. Re-run it on GitHub.",
1213
+ };
1214
+ }
1215
+ const detail = outcomes.get(runId) ?? null;
1216
+ return { name: check.name, rerun: detail === null, detail };
1217
+ });
1218
+ }),
1219
runAction: Effect.fn("GitCafePullRequestProvider.runAction")(function* (input) {
1220
if (input.stackNumber !== undefined)
1221
return yield* runStackAction({ ...input, stackNumber: input.stackNumber });
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
+115
@@ -798,6 +798,121 @@ layer("GitHubPullRequestApi.layer", (it) => {
798
}),
799
);
800
801
+ it.effect("tails Actions job logs and re-runs a run's failed jobs together", () =>
802
+ Effect.gen(function* () {
803
+ const runOf: Record<string, number> = {
804
+ "11": 10,
805
+ "12": 10,
806
+ "21": 20,
807
+ "41": 40,
808
+ "42": 40,
809
+ "51": 50,
810
+ "52": 50,
811
+ };
812
+ const runJobs: Record<string, Array<{ id: number; conclusion: string }>> = {
813
+ "10": [
814
+ { id: 11, conclusion: "failure" },
815
+ { id: 12, conclusion: "cancelled" },
816
+ ],
817
+ // 41 passed and is asked for by name; 43 failed but was not selected.
818
+ "40": [
819
+ { id: 41, conclusion: "success" },
820
+ { id: 42, conclusion: "failure" },
821
+ { id: 43, conclusion: "failure" },
822
+ ],
823
+ "50": [
824
+ { id: 51, conclusion: "failure" },
825
+ { id: 52, conclusion: "failure" },
826
+ ],
827
+ };
828
+ mockedExecute.mockImplementation((call) => {
829
+ if (call.kind !== "rest") return Effect.succeed(output("{}"));
830
+ const log = /actions\/jobs\/(\d+)\/logs$/.exec(call.path);
831
+ if (log?.[1] === "13") return Effect.succeed(output("one long line", true));
832
+ if (log?.[1] === "15") return Effect.succeed(output("x".repeat(100_000)));
833
+ if (log?.[1] === "14") {
834
+ return Effect.fail(
835
+ new GitHubRequestPolicy.GitHubApiAuthenticationError({
836
+ host: "github.com",
837
+ operation: "readCheckLog",
838
+ }),
839
+ );
840
+ }
841
+ if (log) return Effect.succeed(output("setup\nbuild\nError: boom\n"));
842
+ const job = /actions\/jobs\/(\d+)$/.exec(call.path);
843
+ if (job) return Effect.succeed(output(encodeJson({ run_id: runOf[job[1]!] })));
844
+ const run = /actions\/runs\/(\d+)\/jobs\?/.exec(call.path);
845
+ if (run) {
846
+ const jobs = runJobs[run[1]!] ?? [];
847
+ // Run 50 has more jobs than one page shows.
848
+ const total = run[1] === "50" ? 150 : jobs.length;
849
+ return Effect.succeed(output(encodeJson({ total_count: total, jobs })));
850
+ }
851
+ return Effect.succeed(output("{}"));
852
+ });
853
+ const api = yield* GitHubPullRequestApi.GitHubPullRequestApi;
854
+ const job = (id: number, run: number) => ({
855
+ name: `job ${id}`,
856
+ url: `https://github.com/octo/repo/actions/runs/${run}/job/${id}`,
857
+ });
858
+ const external = { name: "Vercel", url: "https://vercel.com/octo/repo/deployments/1" };
859
+ const logs = yield* api.readCheckLogs({
860
+ host: "github.com",
861
+ repository: "octo/repo",
862
+ checks: [job(11, 10), external],
863
+ tailLines: 2,
864
+ });
865
+ expect(logs).toMatchObject([
866
+ { name: "job 11", log: "build\nError: boom", truncated: true, detail: null },
867
+ { name: "Vercel", log: null },
868
+ ]);
869
+ const capped = { host: "github.com", repository: "octo/repo", tailLines: 5 };
870
+ expect(yield* api.readCheckLogs({ ...capped, checks: [job(13, 30)] })).toMatchObject([
871
+ { log: "one long line", truncated: true },
872
+ ]);
873
+ const refused = yield* Effect.flip(api.readCheckLogs({ ...capped, checks: [job(14, 30)] }));
874
+ const [huge] = yield* api.readCheckLogs({ ...capped, checks: [job(15, 30)] });
875
+ expect(huge?.log?.length).toBe(32_000);
876
+ expect(huge?.truncated).toBe(true);
877
+ expect(refused._tag).toBe("GitHubApiAuthenticationError");
878
+
879
+ const reruns = yield* api.rerunChecks({
880
+ host: "github.com",
881
+ repository: "octo/repo",
882
+ checks: [
883
+ job(11, 10),
884
+ job(12, 10),
885
+ { name: "solo", url: "https://github.com/octo/repo/runs/21" },
886
+ external,
887
+ job(41, 40),
888
+ { name: "job 42", url: "https://github.com/octo/repo/actions/runs/40/jobs/42" },
889
+ job(51, 50),
890
+ job(52, 50),
891
+ ],
892
+ });
893
+ expect(reruns.map(({ name, rerun }) => [name, rerun])).toEqual([
894
+ ["job 11", true],
895
+ ["job 12", true],
896
+ ["solo", true],
897
+ ["Vercel", false],
898
+ ["job 41", true],
899
+ ["job 42", false],
900
+ ["job 51", true],
901
+ ["job 52", false],
902
+ ]);
903
+ expect(
904
+ mockedExecute.mock.calls.flatMap(([call]) =>
905
+ call.kind === "rest" && call.method === "POST" ? [call.path] : [],
906
+ ),
907
+ ).toEqual([
908
+ "repos/octo/repo/actions/runs/10/rerun-failed-jobs",
909
+ "repos/octo/repo/actions/jobs/21/rerun",
910
+ "repos/octo/repo/actions/jobs/41/rerun",
911
+ "repos/octo/repo/actions/jobs/51/rerun",
912
+ ]);
913
+ }),
914
+ );
915
+
916
it.effect.each(["mixed", "merges", "unavailable"] as const)(
917
"reads stats only for displayed non-merge commits (%s)",
918
(kind) =>
packages/source-control-github/src/server/GitHubPullRequestApi.ts
+185
-4
@@ -129,10 +129,15 @@ import {
129
type GitHubViewerAccess,
130
IMMEDIATELY_MERGEABLE,
131
} from "./gitHubPullRequestJson.ts";
132
-import type {
133
- ProviderChangeRequestSummary,
134
- ProviderAcrossListCursor,
135
- ProviderListCursor,
132
+import {
133
+ gitHubActionsJobId,
134
+ tailLogLines,
135
+ type ProviderAcrossListCursor,
136
+ type ProviderChangeRequestSummary,
137
+ type ProviderCheckLog,
138
+ type ProviderCheckReference,
139
+ type ProviderCheckRerun,
140
+ type ProviderListCursor,
141
} from "@t3tools/source-control-core/server/PullRequestProvider";
142
143
export class GitHubPullRequestReadError extends Schema.TaggedError<GitHubPullRequestReadError>()(
@@ -765,6 +770,17 @@ export class GitHubPullRequestApi extends Context.Service<
770
readonly applied: boolean;
771
}) => Effect.Effect<void, GitHubPullRequestApiError>;
772
773
+ readonly readCheckLogs: (input: {
774
+ readonly host: string;
775
+ readonly repository: string;
776
+ readonly checks: ReadonlyArray<ProviderCheckReference>;
777
+ readonly tailLines: number;
778
+ }) => Effect.Effect<ReadonlyArray<ProviderCheckLog>, GitHubPullRequestApiError>;
779
+ readonly rerunChecks: (input: {
780
+ readonly host: string;
781
+ readonly repository: string;
782
+ readonly checks: ReadonlyArray<ProviderCheckReference>;
783
+ }) => Effect.Effect<ReadonlyArray<ProviderCheckRerun>, GitHubPullRequestApiError>;
784
readonly runPullRequestAction: (input: {
785
readonly cwd: string;
786
readonly repository: string;
@@ -845,6 +861,32 @@ export class GitHubPullRequestApi extends Context.Service<
861
}
862
>()("@t3tools/source-control-github/server/GitHubPullRequestApi") {}
863
864
+const CHECK_LOG_MAX_BYTES = 16 * 1024 * 1024;
865
+const NOT_A_JOB = "This check is not a GitHub Actions job, so GitHub cannot re-run it.";
866
+const decodeActionsJob = Schema.decodeEffect(
867
+ Schema.fromJsonString(Schema.Struct({ run_id: Schema.Number })),
868
+);
869
+const decodeRunJobs = Schema.decodeEffect(
870
+ Schema.fromJsonString(
871
+ Schema.Struct({
872
+ total_count: Schema.Number,
873
+ jobs: Schema.Array(
874
+ Schema.Struct({ id: Schema.Number, conclusion: Schema.NullOr(Schema.String) }),
875
+ ),
876
+ }),
877
+ ),
878
+);
879
+const FAILED_CONCLUSIONS = new Set(["failure", "cancelled", "timed_out", "startup_failure"]);
880
+const ONE_JOB_AT_A_TIME =
881
+ "GitHub re-runs one job of a run at a time. Re-run this one after the other finishes.";
882
+
883
+interface LocatedCheckJob {
884
+ readonly check: ProviderCheckReference;
885
+ readonly jobId: string | null;
886
+ readonly runId: number | null;
887
+ readonly detail: string | null;
888
+}
889
+
890
function parseRepositorySelector(value: string): {
891
readonly owner: string;
892
readonly name: string;
@@ -2868,6 +2910,145 @@ export const make = Effect.gen(function* () {
2910
);
2911
}),
2912
2913
+ readCheckLogs: Effect.fn("GitHubPullRequestApi.readCheckLogs")(function* (input) {
2914
+ const { owner, name } = parseRepositorySelector(input.repository);
2915
+ return yield* Effect.forEach(
2916
+ input.checks,
2917
+ (check) => {
2918
+ const jobId = gitHubActionsJobId(check.url);
2919
+ if (jobId === null) {
2920
+ return Effect.succeed({
2921
+ ...check,
2922
+ log: null,
2923
+ truncated: false,
2924
+ detail: "This check is not a GitHub Actions job, so GitHub holds no log for it.",
2925
+ });
2926
+ }
2927
+ // The log is a redirect to storage; fetch drops the credential when it leaves GitHub.
2928
+ return api
2929
+ .rest({
2930
+ host: input.host,
2931
+ operation: "readCheckLog",
2932
+ path: `repos/${owner}/${name}/actions/jobs/${jobId}/logs`,
2933
+ maxResponseBytes: CHECK_LOG_MAX_BYTES,
2934
+ timeout: "60 seconds",
2935
+ })
2936
+ .pipe(
2937
+ Effect.map((response) => {
2938
+ const tail = tailLogLines(response.body, input.tailLines);
2939
+ return {
2940
+ ...check,
2941
+ log: tail.log,
2942
+ truncated: tail.truncated || response.truncated,
2943
+ detail: response.truncated
2944
+ ? "The log is too large; this is from its start."
2945
+ : null,
2946
+ };
2947
+ }),
2948
+ // Sign-in and rate-limit failures fail the call; the rest are this check's.
2949
+ Effect.catchTags({
2950
+ GitHubApiNotFoundError: (error) =>
2951
+ Effect.succeed({ ...check, log: null, truncated: false, detail: error.message }),
2952
+ GitHubApiResponseError: (error) =>
2953
+ Effect.succeed({ ...check, log: null, truncated: false, detail: error.message }),
2954
+ }),
2955
+ );
2956
+ },
2957
+ { concurrency: 4 },
2958
+ );
2959
+ }),
2960
+
2961
+ rerunChecks: Effect.fn("GitHubPullRequestApi.rerunChecks")(function* (input) {
2962
+ const { owner, name } = parseRepositorySelector(input.repository);
2963
+ const root = `repos/${owner}/${name}/actions`;
2964
+ const located = yield* Effect.forEach(
2965
+ input.checks,
2966
+ (check): Effect.Effect<LocatedCheckJob, GitHubPullRequestApiError> => {
2967
+ const jobId = gitHubActionsJobId(check.url);
2968
+ if (jobId === null)
2969
+ return Effect.succeed({ check, jobId, runId: null, detail: NOT_A_JOB });
2970
+ return api
2971
+ .rest({ host: input.host, operation: "readCheckJob", path: `${root}/jobs/${jobId}` })
2972
+ .pipe(
2973
+ Effect.flatMap((response) => decodeActionsJob(response.body)),
2974
+ Effect.map((job) => ({ check, jobId, runId: job.run_id, detail: null })),
2975
+ Effect.catchTags({
2976
+ GitHubApiNotFoundError: (error) =>
2977
+ Effect.succeed({ check, jobId, runId: null, detail: error.message }),
2978
+ GitHubApiResponseError: (error) =>
2979
+ Effect.succeed({ check, jobId, runId: null, detail: error.message }),
2980
+ SchemaError: () => Effect.succeed({ check, jobId, runId: null, detail: NOT_A_JOB }),
2981
+ }),
2982
+ );
2983
+ },
2984
+ { concurrency: 4 },
2985
+ );
2986
+ // GitHub refuses a second job re-run while the run re-runs, so a run's jobs go together.
2987
+ const byRun = new Map<number, Array<LocatedCheckJob>>();
2988
+ for (const entry of located) {
2989
+ if (entry.runId === null) continue;
2990
+ byRun.set(entry.runId, [...(byRun.get(entry.runId) ?? []), entry]);
2991
+ }
2992
+ const post = (path: string) =>
2993
+ api.rest({ host: input.host, operation: "rerunChecks", method: "POST", path }).pipe(
2994
+ Effect.as<string | null>(null),
2995
+ Effect.catchTags({
2996
+ GitHubApiNotFoundError: (error) => Effect.succeed(error.message),
2997
+ GitHubApiResponseError: (error) => Effect.succeed(error.message),
2998
+ }),
2999
+ );
3000
+ const failedJobsOf = (runId: number) =>
3001
+ api
3002
+ .rest({
3003
+ host: input.host,
3004
+ operation: "readRunJobs",
3005
+ path: `${root}/runs/${runId}/jobs?filter=latest&per_page=100`,
3006
+ })
3007
+ .pipe(
3008
+ Effect.flatMap((response) => decodeRunJobs(response.body)),
3009
+ // Jobs past the first page are unseen, so such a run counts as unknown.
3010
+ Effect.map(({ total_count, jobs }) =>
3011
+ total_count > jobs.length
3012
+ ? new Set<string>()
3013
+ : new Set(
3014
+ jobs
3015
+ .filter((job) => FAILED_CONCLUSIONS.has(job.conclusion ?? ""))
3016
+ .map((job) => String(job.id)),
3017
+ ),
3018
+ ),
3019
+ Effect.catchTags({
3020
+ GitHubApiNotFoundError: () => Effect.succeed(new Set<string>()),
3021
+ GitHubApiResponseError: () => Effect.succeed(new Set<string>()),
3022
+ SchemaError: () => Effect.succeed(new Set<string>()),
3023
+ }),
3024
+ );
3025
+ const outcomes = new Map<string | null, string | null>();
3026
+ yield* Effect.forEach(
3027
+ byRun,
3028
+ ([runId, jobs]) =>
3029
+ Effect.gen(function* () {
3030
+ const [first, ...rest] = jobs;
3031
+ if (first === undefined) return;
3032
+ if (rest.length > 0) {
3033
+ // Re-running a run's failed jobs fits only when they are exactly the selection.
3034
+ const failed = yield* failedJobsOf(runId);
3035
+ if (failed.size === jobs.length && jobs.every((job) => failed.has(job.jobId ?? ""))) {
3036
+ const detail = yield* post(`${root}/runs/${runId}/rerun-failed-jobs`);
3037
+ for (const job of jobs) outcomes.set(job.jobId, detail);
3038
+ return;
3039
+ }
3040
+ }
3041
+ outcomes.set(first.jobId, yield* post(`${root}/jobs/${first.jobId}/rerun`));
3042
+ for (const job of rest) outcomes.set(job.jobId, ONE_JOB_AT_A_TIME);
3043
+ }),
3044
+ { concurrency: 2, discard: true },
3045
+ );
3046
+ return located.map(({ check, jobId, runId, detail }) => {
3047
+ const outcome = runId === null ? detail : (outcomes.get(jobId) ?? null);
3048
+ return { name: check.name, rerun: runId !== null && outcome === null, detail: outcome };
3049
+ });
3050
+ }),
3051
+
3052
submitReview: Effect.fn("GitHubPullRequestApi.submitReview")(function (input) {
3053
const { owner, name } = parseRepositorySelector(input.repository);
3054
return api
packages/source-control-github/src/server/GitHubPullRequestProvider.ts
+3
@@ -745,6 +745,9 @@ export const make = Effect.gen(function* () {
745
})
746
.pipe(Effect.mapError(fail("runAction"))),
747
748
+ getCheckLogs: (input) => cli.readCheckLogs(input).pipe(Effect.mapError(fail("getCheckLogs"))),
749
+ rerunChecks: (input) => cli.rerunChecks(input).pipe(Effect.mapError(fail("rerunChecks"))),
750
+
751
updateChangeRequest: (input) =>
752
cli
753
.updatePullRequest({