@tangle-network/agent-eval 0.136.0 → 0.137.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -1
- package/README.md +4 -2
- package/dist/{agent-profile-cell-OhuTee9n.js → agent-profile-cell-CbfBm2g6.js} +2 -2
- package/dist/{agent-profile-cell-OhuTee9n.js.map → agent-profile-cell-CbfBm2g6.js.map} +1 -1
- package/dist/{agent-profile-cell-CCm3l2v2.d.ts → agent-profile-cell-Cw0PVwDr.d.ts} +2 -2
- package/dist/{agent-profile-cell-CCm3l2v2.d.ts.map → agent-profile-cell-Cw0PVwDr.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +139 -17
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +606 -4
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-jjCmF8pU.js → analyze-runs-BScZvqMV.js} +6 -6
- package/dist/{analyze-runs-jjCmF8pU.js.map → analyze-runs-BScZvqMV.js.map} +1 -1
- package/dist/{analyze-runs-Cda5Xkj1.d.ts → analyze-runs-PVtnfjvA.d.ts} +6 -6
- package/dist/{analyze-runs-Cda5Xkj1.d.ts.map → analyze-runs-PVtnfjvA.d.ts.map} +1 -1
- package/dist/{baseline-BUeFcgrn.js → baseline-C-GocmIW.js} +2 -2
- package/dist/{baseline-BUeFcgrn.js.map → baseline-C-GocmIW.js.map} +1 -1
- package/dist/benchmark-CHX4orG7.d.ts +184 -0
- package/dist/benchmark-CHX4orG7.d.ts.map +1 -0
- package/dist/benchmark-YDrpumqB.js +414 -0
- package/dist/benchmark-YDrpumqB.js.map +1 -0
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/benchmarks/index.js +1 -1
- package/dist/{benchmarks-Dfgm9ts5.js → benchmarks-DCLkQOmc.js} +3 -3
- package/dist/{benchmarks-Dfgm9ts5.js.map → benchmarks-DCLkQOmc.js.map} +1 -1
- package/dist/builder-eval/index.js +2 -2
- package/dist/campaign/index.d.ts +6 -6
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-Dz8uQnhC.js → campaign-lgObcHFC.js} +212 -78
- package/dist/campaign-lgObcHFC.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/client-C8L6h6Wf.d.ts +202 -0
- package/dist/client-C8L6h6Wf.d.ts.map +1 -0
- package/dist/completion-verifier-DSyRNVzU.d.ts +240 -0
- package/dist/completion-verifier-DSyRNVzU.d.ts.map +1 -0
- package/dist/contract/index.d.ts +10 -9
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +10 -10
- package/dist/control.d.ts +2 -2
- package/dist/control.js +1 -1
- package/dist/{cost-ledger-DHAjwNj7.js → cost-ledger-D-5_-dhi.js} +2 -2
- package/dist/{cost-ledger-DHAjwNj7.js.map → cost-ledger-D-5_-dhi.js.map} +1 -1
- package/dist/{cost-ledger-fGS_u_O1.d.ts → cost-ledger-D2o6JOrL.d.ts} +2 -2
- package/dist/{cost-ledger-fGS_u_O1.d.ts.map → cost-ledger-D2o6JOrL.d.ts.map} +1 -1
- package/dist/{dataset-BvtnC8Dc.d.ts → dataset-v_Y5902-.d.ts} +2 -2
- package/dist/{dataset-BvtnC8Dc.d.ts.map → dataset-v_Y5902-.d.ts.map} +1 -1
- package/dist/{default-registry-CHmdy2An.js → default-registry-CLXbRt0f.js} +119 -38
- package/dist/default-registry-CLXbRt0f.js.map +1 -0
- package/dist/{default-registry-Brxr728w.d.ts → default-registry-Dc5D_Loc.d.ts} +63 -137
- package/dist/default-registry-Dc5D_Loc.d.ts.map +1 -0
- package/dist/{errors-8YnH8WlF.js → errors-D-LKuDhb.js} +8 -2
- package/dist/errors-D-LKuDhb.js.map +1 -0
- package/dist/{errors-CEk209JS.d.ts → errors-DkfjIDvD.d.ts} +9 -3
- package/dist/errors-DkfjIDvD.d.ts.map +1 -0
- package/dist/{eval-campaign-Cc8WZJ6b.js → eval-campaign-CHqfLnff.js} +6 -6
- package/dist/{eval-campaign-Cc8WZJ6b.js.map → eval-campaign-CHqfLnff.js.map} +1 -1
- package/dist/{extract-usage-DIQpN-ww.js → extract-usage-p-56bh8q.js} +3 -3
- package/dist/{extract-usage-DIQpN-ww.js.map → extract-usage-p-56bh8q.js.map} +1 -1
- package/dist/{feedback-trajectory-CVaeREXV.d.ts → feedback-trajectory-N_F0PwHz.d.ts} +90 -3
- package/dist/feedback-trajectory-N_F0PwHz.d.ts.map +1 -0
- package/dist/fuzz.d.ts +1 -1
- package/dist/fuzz.js +2 -2
- package/dist/hosted/index.d.ts +3 -2
- package/dist/hosted/index.d.ts.map +1 -1
- package/dist/index-BipJlj-C.d.ts +316 -0
- package/dist/index-BipJlj-C.d.ts.map +1 -0
- package/dist/{index-CQsJcqch.d.ts → index-BnP1QJUv.d.ts} +5 -5
- package/dist/{index-CQsJcqch.d.ts.map → index-BnP1QJUv.d.ts.map} +1 -1
- package/dist/{index-B4Fjfo5U.d.ts → index-C-Pr4OWg.d.ts} +88 -317
- package/dist/index-C-Pr4OWg.d.ts.map +1 -0
- package/dist/{index-DuhJaaiH.d.ts → index-DEb46kc6.d.ts} +2 -2
- package/dist/{index-DuhJaaiH.d.ts.map → index-DEb46kc6.d.ts.map} +1 -1
- package/dist/{index-C2fkZhv_.d.ts → index-DRNl6g_N.d.ts} +3 -3
- package/dist/{index-C2fkZhv_.d.ts.map → index-DRNl6g_N.d.ts.map} +1 -1
- package/dist/{index-AbhwHp0V.d.ts → index-U3RHOShi.d.ts} +2 -2
- package/dist/{index-AbhwHp0V.d.ts.map → index-U3RHOShi.d.ts.map} +1 -1
- package/dist/index.d.ts +29 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +507 -33
- package/dist/index.js.map +1 -1
- package/dist/{client-DcvgkaZi.d.ts → insight-report-B9ooYH_g.d.ts} +5 -203
- package/dist/insight-report-B9ooYH_g.d.ts.map +1 -0
- package/dist/integrity-CCXTftiL.js +1360 -0
- package/dist/integrity-CCXTftiL.js.map +1 -0
- package/dist/{integrity-rmVhXWA7.d.ts → integrity-CKxosZ5Z.d.ts} +3 -3
- package/dist/{integrity-rmVhXWA7.d.ts.map → integrity-CKxosZ5Z.d.ts.map} +1 -1
- package/dist/{integrity-BzRbCHzi.js → integrity-fdt8XPAv.js} +2 -2
- package/dist/{integrity-BzRbCHzi.js.map → integrity-fdt8XPAv.js.map} +1 -1
- package/dist/ledger-core/index.d.ts +1 -1
- package/dist/ledger-core/index.js +1 -1
- package/dist/{ledger-core-DAKFKRzi.js → ledger-core-t6sItivm.js} +85 -85
- package/dist/{ledger-core-DAKFKRzi.js.map → ledger-core-t6sItivm.js.map} +1 -1
- package/dist/{llm-client-DHx8pzyJ.js → llm-client-DKB25jV8.js} +3 -3
- package/dist/{llm-client-DHx8pzyJ.js.map → llm-client-DKB25jV8.js.map} +1 -1
- package/dist/meta-eval/index.d.ts +2 -2
- package/dist/meta-eval/index.js +3 -3
- package/dist/{mint-DyRUc9k6.js → mint-Ctwk079K.js} +4 -4
- package/dist/{mint-DyRUc9k6.js.map → mint-Ctwk079K.js.map} +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{paired-arms-BbFKrAU-.js → paired-arms-iZ08VFMN.js} +3 -3
- package/dist/{paired-arms-BbFKrAU-.js.map → paired-arms-iZ08VFMN.js.map} +1 -1
- package/dist/pipelines/index.js +2 -2
- package/dist/profile-cell.d.ts +1 -1
- package/dist/profile-cell.js +1 -1
- package/dist/{propose-review-control-SQ-n9-We.js → propose-review-control-DLXz4FCX.js} +2 -2
- package/dist/{propose-review-control-SQ-n9-We.js.map → propose-review-control-DLXz4FCX.js.map} +1 -1
- package/dist/registry-BdM7SuTr.d.ts +124 -0
- package/dist/registry-BdM7SuTr.d.ts.map +1 -0
- package/dist/{release-report-DooPguBc.js → release-report-B5XPBvAU.js} +4 -4
- package/dist/{release-report-DooPguBc.js.map → release-report-B5XPBvAU.js.map} +1 -1
- package/dist/{release-report-DpBxGGI1.d.ts → release-report-CofgVNZt.d.ts} +4 -4
- package/dist/{release-report-DpBxGGI1.d.ts.map → release-report-CofgVNZt.d.ts.map} +1 -1
- package/dist/{replay-C6wRg47C.js → replay-Bju0T8Ls.js} +248 -8
- package/dist/replay-Bju0T8Ls.js.map +1 -0
- package/dist/{replay-BRfMIs81.d.ts → replay-K8FaC0CB.d.ts} +227 -52
- package/dist/replay-K8FaC0CB.d.ts.map +1 -0
- package/dist/reporting.d.ts +4 -4
- package/dist/reporting.js +4 -4
- package/dist/{researcher-Doo95b50.d.ts → researcher-Da0Wj-bt.d.ts} +6 -7
- package/dist/researcher-Da0Wj-bt.d.ts.map +1 -0
- package/dist/{reward-hacking-D-QqXvg-.d.ts → reward-hacking-CQ3hTCO3.d.ts} +2 -2
- package/dist/{reward-hacking-D-QqXvg-.d.ts.map → reward-hacking-CQ3hTCO3.d.ts.map} +1 -1
- package/dist/{reward-hacking-a-kYs0-i.js → reward-hacking-GyN0kMd8.js} +3 -3
- package/dist/{reward-hacking-a-kYs0-i.js.map → reward-hacking-GyN0kMd8.js.map} +1 -1
- package/dist/rl.d.ts +6 -6
- package/dist/rl.js +9 -9
- package/dist/rollout/index.d.ts +1 -1
- package/dist/rollout/index.js +3 -3
- package/dist/{rollout-DLSUIWLu.js → rollout-DQFl0UXA.js} +2 -2
- package/dist/{rollout-DLSUIWLu.js.map → rollout-DQFl0UXA.js.map} +1 -1
- package/dist/{rubric-predictive-validity-BJf-8ejY.js → rubric-predictive-validity-BRR632r1.js} +2 -2
- package/dist/{rubric-predictive-validity-BJf-8ejY.js.map → rubric-predictive-validity-BRR632r1.js.map} +1 -1
- package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts → rubric-predictive-validity-C4sztLR3.d.ts} +2 -2
- package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts.map → rubric-predictive-validity-C4sztLR3.d.ts.map} +1 -1
- package/dist/{run-evidence-DokQtX0-.d.ts → run-evidence-BDIircdA.d.ts} +3 -3
- package/dist/{run-evidence-DokQtX0-.d.ts.map → run-evidence-BDIircdA.d.ts.map} +1 -1
- package/dist/{run-record-DcObtIGh.d.ts → run-record-BPCa2rQ8.d.ts} +4 -4
- package/dist/{run-record-DcObtIGh.d.ts.map → run-record-BPCa2rQ8.d.ts.map} +1 -1
- package/dist/{run-record-BIwU2wdV.js → run-record-vRgqWmJw.js} +3 -3
- package/dist/{run-record-BIwU2wdV.js.map → run-record-vRgqWmJw.js.map} +1 -1
- package/dist/{semantic-concept-judge-Btozx3Vc.js → semantic-concept-judge-Bz64IckK.js} +4 -4
- package/dist/{semantic-concept-judge-Btozx3Vc.js.map → semantic-concept-judge-Bz64IckK.js.map} +1 -1
- package/dist/{server-Bz3WQJs6.js → server-KjXZZUDX.js} +3 -3
- package/dist/{server-Bz3WQJs6.js.map → server-KjXZZUDX.js.map} +1 -1
- package/dist/{skill-usage-BDQVPIG1.d.ts → skill-usage-CFDLLlhF.d.ts} +25 -47
- package/dist/skill-usage-CFDLLlhF.d.ts.map +1 -0
- package/dist/{skillopt-optimization-method-CwSYkv35.d.ts → skillopt-optimization-method-BpbnlvAZ.d.ts} +11 -12
- package/dist/skillopt-optimization-method-BpbnlvAZ.d.ts.map +1 -0
- package/dist/{skillopt-optimization-method-0UmPD6aP.js → skillopt-optimization-method-f4o9sUT4.js} +7 -7
- package/dist/{skillopt-optimization-method-0UmPD6aP.js.map → skillopt-optimization-method-f4o9sUT4.js.map} +1 -1
- package/dist/{statistics-CnGCLLqc.js → statistics-ByxzSiOM.js} +2 -2
- package/dist/{statistics-CnGCLLqc.js.map → statistics-ByxzSiOM.js.map} +1 -1
- package/dist/{statistics-CKOqre5S.d.ts → statistics-_7P642CN.d.ts} +2 -2
- package/dist/{statistics-CKOqre5S.d.ts.map → statistics-_7P642CN.d.ts.map} +1 -1
- package/dist/{summary-report-BEk8OFLs.js → summary-report-9A5y7EsK.js} +4 -4
- package/dist/{summary-report-BEk8OFLs.js.map → summary-report-9A5y7EsK.js.map} +1 -1
- package/dist/{summary-report-CPMINBqs.d.ts → summary-report-DHipz9Kx.d.ts} +3 -3
- package/dist/{summary-report-CPMINBqs.d.ts.map → summary-report-DHipz9Kx.d.ts.map} +1 -1
- package/dist/supervisor-run/index.d.ts +3 -2
- package/dist/supervisor-run/index.js +3 -2
- package/dist/{supervisor-run-Dr5HnTup.js → supervisor-run-B2EWUmQY.js} +28 -454
- package/dist/supervisor-run-B2EWUmQY.js.map +1 -0
- package/dist/{test-graded-scenario-BsqWLmPt.js → test-graded-scenario-JHcKQNpq.js} +2 -2
- package/dist/{test-graded-scenario-BsqWLmPt.js.map → test-graded-scenario-JHcKQNpq.js.map} +1 -1
- package/dist/tools-DZk2Jn64.js +1876 -0
- package/dist/tools-DZk2Jn64.js.map +1 -0
- package/dist/traces.d.ts +6 -7
- package/dist/traces.js +5 -6
- package/dist/{types-DVjczBM9.d.ts → types-CKswbJGO.d.ts} +260 -6
- package/dist/types-CKswbJGO.d.ts.map +1 -0
- package/dist/{types-DiWLru6Z.d.ts → types-CTGbIm57.d.ts} +5 -5
- package/dist/{types-DiWLru6Z.d.ts.map → types-CTGbIm57.d.ts.map} +1 -1
- package/dist/types-CTvKfr5F.d.ts +804 -0
- package/dist/types-CTvKfr5F.d.ts.map +1 -0
- package/dist/{index-CyC1BTmn.d.ts → types-Dea6tiVI.d.ts} +16 -238
- package/dist/types-Dea6tiVI.d.ts.map +1 -0
- package/dist/wire/index.d.ts +3 -3
- package/dist/wire/index.js +1 -1
- package/docs/feedback-trajectories.md +100 -1
- package/docs/trace-analysis.md +374 -58
- package/package.json +5 -1
- package/dist/analyst-BkTS3C58.d.ts +0 -89
- package/dist/analyst-BkTS3C58.d.ts.map +0 -1
- package/dist/analyst-j5je5J7c.js +0 -152
- package/dist/analyst-j5je5J7c.js.map +0 -1
- package/dist/campaign-Dz8uQnhC.js.map +0 -1
- package/dist/client-DcvgkaZi.d.ts.map +0 -1
- package/dist/default-registry-Brxr728w.d.ts.map +0 -1
- package/dist/default-registry-CHmdy2An.js.map +0 -1
- package/dist/errors-8YnH8WlF.js.map +0 -1
- package/dist/errors-CEk209JS.d.ts.map +0 -1
- package/dist/feedback-trajectory-CVaeREXV.d.ts.map +0 -1
- package/dist/index-B4Fjfo5U.d.ts.map +0 -1
- package/dist/index-CyC1BTmn.d.ts.map +0 -1
- package/dist/llm-client-BiK4HW0u.d.ts +0 -290
- package/dist/llm-client-BiK4HW0u.d.ts.map +0 -1
- package/dist/raw-provider-sink-BU29Sh8h.d.ts +0 -134
- package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +0 -1
- package/dist/replay-BRfMIs81.d.ts.map +0 -1
- package/dist/replay-C6wRg47C.js.map +0 -1
- package/dist/researcher-Doo95b50.d.ts.map +0 -1
- package/dist/skill-usage-BDQVPIG1.d.ts.map +0 -1
- package/dist/skillopt-optimization-method-CwSYkv35.d.ts.map +0 -1
- package/dist/store-CxJry_cs.d.ts +0 -229
- package/dist/store-CxJry_cs.d.ts.map +0 -1
- package/dist/supervisor-run-Dr5HnTup.js.map +0 -1
- package/dist/tools-D8yTtNSN.js +0 -1190
- package/dist/tools-D8yTtNSN.js.map +0 -1
- package/dist/types-Cc3qbqzj.d.ts +0 -387
- package/dist/types-Cc3qbqzj.d.ts.map +0 -1
- package/dist/types-DVjczBM9.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CTvKfr5F.d.ts","names":[],"sources":["../src/trace/raw-provider-sink.ts","../src/llm-client.ts","../src/analyst/chat-client.ts","../src/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BY;UAEK;;EAEf;;EAEA;EACA;;;;;;EAMA;EACA;;EAEA;;EAEA;;EAEA;EACA,WAAW;;EAEX;;EAEA;EACA;EACA,iBAAiB;EACjB;EACA,kBAAkB;EAClB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA,YAAY;EACZ;;UAGe;EACf,OAAO,OAAO,mBAAmB;;EAEjC,MAAM,SAAS,wB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B;EACzC;EACA,UAAU,KAAK,aAAa,OAAO,iBAAiB,QAAQ;;;;;;iBAO9C,iBAAiB,MAAM,uBAAuB;;;UCjH7C;EACf;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,gBAAgB;EAChB;;UAGe;EACf;EACA;EACA;EACA;;UAKe;EACf;EAQA;EACA;EACA;EACA;;UAKe;EACf;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA,YAAY;;UAGG;EACf;EACA;EACA;EACA;EACA;;UAKe;EACf;EACA;EACA,OAAO;EACP,iBAAiB;EACjB,aAAa;EACb;EACA;EACA;EACA,WAAW;;EAEX,OAAO;;UAGQ;EACf;EACA;EACA;EACA;EACA;IAAmB;IAAc;;EACjC;EACA;;UAGe;EACf,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf;IAAc;IAAc;;EAC5B;IAAmB;IAAc,QAAQ;;EACzC;IAAc;IAAkB;;EAChC;;UAKe;EACf;EACA;EACA;EACA;EACA,SAAS;EACT,OAAO;EACP;IACE;IACA,WAAW;MAAiB;MAAa;MAAgB;;IACzD,aAAa;MAAiB;MAAa;;IAC3C;MAAW;MAAkB;MAAe;;IAC5C;MAAa;MAAkB;MAAe;;;;UAMjC;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;UAGc;EACf;EACA,QAAQ;;EAER;;UAKe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;IACE;MACE;MACA;MACA;;;EAGJ,OAAO;EACP,gBAAgB;;UAKD;EACf;EACA,QAAQ,OAAO;EACf,YAAY,OAAO;;UAGJ;EACf;EACA;;;;;;;;;;KAWU;UAEK;EACf;EACA;EACA;EACA,oBAAoB;EACpB,mBAAmB;EACnB;EACA;;EAEA,QAAQ;;;;;;;EAOR;;;;;;;EAOA;;;;;;EAMA;;UAGe;EACf;EACA;EACA;IAAa;IAAiB;IAAkB;;EAChD;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;IAAa;IAAiB;IAAkB;;EAChD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;;EAEA;;EAEA;;;;;;EAMA;EACA;EACA,SAAS;EACT,YAAY;EACZ;EACA;EACA;;UAKe;EACf,WAAW;EACX,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;;EAEA,aAAa;;UAGE;EACf,UAAU;EACV,OAAO;EACP,WAAW;;EAEX,aAAa;EACb;EACA,WAAW;EACX,SAAS;;KAGC,WAAW,MAAM,YAAY,OAAO,eAAe,QAAQ;UAItD;EACf;EACA;EACA;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as RolloutLine } from "./schema-Cef2cFmb.js";
|
|
2
2
|
//#region src/supervisor-run/types.d.ts
|
|
3
3
|
/** A metric that could not be computed, with the reason its artifact was missing. */
|
|
4
4
|
interface Unavailable {
|
|
@@ -12,7 +12,10 @@ declare function isUnavailable(v: unknown): v is Unavailable;
|
|
|
12
12
|
declare function showMeasured(v: Measured<number | string | boolean | null>): string;
|
|
13
13
|
/** The two invocation roles a recursive supervision tree can contain. */
|
|
14
14
|
type SupervisorRunNodeRole = 'supervisor' | 'worker';
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* One worker's logs, as read. `null` means the artifact did not exist; `''`
|
|
17
|
+
* means the artifact was captured and contained no rows.
|
|
18
|
+
*/
|
|
16
19
|
interface WorkerLogSource {
|
|
17
20
|
/**
|
|
18
21
|
* Stable journal node id. Readers should set this whenever their source has
|
|
@@ -340,242 +343,17 @@ interface SupervisorRunRollup {
|
|
|
340
343
|
interface SupervisorRunTree {
|
|
341
344
|
readonly rootId: string | null;
|
|
342
345
|
readonly nodes: readonly RolloutLine[];
|
|
343
|
-
/**
|
|
344
|
-
readonly gaps: readonly
|
|
345
|
-
}
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region src/supervisor-run/analyze.d.ts
|
|
348
|
-
interface Tokens {
|
|
349
|
-
input: number;
|
|
350
|
-
output: number;
|
|
351
|
-
cacheRead: number;
|
|
352
|
-
cacheWrite: number;
|
|
353
|
-
/** False when the event carried no cache counters at all — not "zero cached". */
|
|
354
|
-
hasCache: boolean;
|
|
355
|
-
}
|
|
356
|
-
interface SpendLike {
|
|
357
|
-
tokens: Tokens;
|
|
358
|
-
usd: number;
|
|
359
|
-
}
|
|
360
|
-
interface SpawnRow {
|
|
361
|
-
id: string;
|
|
362
|
-
parent: string | null;
|
|
363
|
-
label: string;
|
|
364
|
-
role: SupervisorRunNodeRole;
|
|
365
|
-
at: number | null;
|
|
366
|
-
}
|
|
367
|
-
interface CloseRow {
|
|
368
|
-
id: string;
|
|
369
|
-
kind: 'settled' | 'cancelled';
|
|
370
|
-
status: string | null;
|
|
371
|
-
/** String verdict from legacy journals, or valid/invalid for a structured verdict. */
|
|
372
|
-
verdict: string | null;
|
|
373
|
-
/** Structured verdict validity, when recorded. */
|
|
374
|
-
valid: boolean | null;
|
|
375
|
-
/** Structured verdict score, preserved without boolean coercion. */
|
|
376
|
-
score: number | null;
|
|
377
|
-
/** The verdict exactly as the journal carried it. */
|
|
378
|
-
rawVerdict: unknown | null;
|
|
379
|
-
at: number | null;
|
|
380
|
-
spend: SpendLike;
|
|
381
|
-
/** False when the close event carried no spend object — not "spent nothing". */
|
|
382
|
-
hasSpend: boolean;
|
|
383
|
-
}
|
|
384
|
-
interface WorkerLogFacts {
|
|
385
|
-
started: number | null;
|
|
386
|
-
/** True once a `finished` event was seen — independent of whether its `at` parsed. */
|
|
387
|
-
finished: boolean;
|
|
388
|
-
finishedAt: number | null;
|
|
389
|
-
passed: boolean | null;
|
|
390
|
-
/** Numeric score exactly as the finished event recorded it. */
|
|
391
|
-
score: number | null;
|
|
392
|
-
/** `patchBytes` as reported by the finished event (not the patch file's size). */
|
|
393
|
-
finishedPatchBytes: number | null;
|
|
394
|
-
evidenceBytes: number;
|
|
395
|
-
steersQueued: number;
|
|
396
|
-
steersDelivered: number;
|
|
397
|
-
questions: number;
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* The tree + timeline the report is computed from, exposed because the rollout-row
|
|
401
|
-
* minter needs exactly the same parse (one parser, two consumers).
|
|
402
|
-
*/
|
|
403
|
-
interface SupervisorTreeFacts {
|
|
404
|
-
readonly rootId: string | null;
|
|
405
|
-
readonly spawns: readonly SpawnRow[];
|
|
406
|
-
readonly closes: readonly CloseRow[];
|
|
407
|
-
readonly workerSpawns: readonly SpawnRow[];
|
|
408
|
-
readonly workerCloses: readonly CloseRow[];
|
|
409
|
-
readonly brain: {
|
|
410
|
-
tokensIn: number;
|
|
411
|
-
tokensOut: number;
|
|
412
|
-
cacheRead: number;
|
|
413
|
-
cacheWrite: number;
|
|
414
|
-
/** False when no metered event carried cache counters — not "nothing cached". */
|
|
415
|
-
hasCache: boolean;
|
|
416
|
-
usd: number;
|
|
417
|
-
meteredCount: number;
|
|
418
|
-
};
|
|
419
|
-
readonly workerLogs: ReadonlyMap<string, WorkerLogFacts>;
|
|
420
|
-
readonly startedAt: number | null;
|
|
421
|
-
readonly completedAt: number | null;
|
|
422
|
-
}
|
|
423
|
-
declare function parseSupervisorTree(src: SupervisorRunSources): SupervisorTreeFacts;
|
|
424
|
-
/**
|
|
425
|
-
* Analyze already-read supervisor-run bytes. Pure and synchronous: same bytes
|
|
426
|
-
* in, same report out (modulo `generatedAt`, which `now` pins in tests).
|
|
427
|
-
*/
|
|
428
|
-
declare function analyzeSupervisorRunSources(src: SupervisorRunSources, now?: () => number): SupervisorRunReport;
|
|
429
|
-
/** Unified-diff stats. Counts `+++ b/<path>` targets, body +/- lines, and test-file touches. */
|
|
430
|
-
declare function parsePatch(text: string): PatchStats;
|
|
431
|
-
/**
|
|
432
|
-
* Aggregate many supervisor-run reports. A metric no run could measure stays
|
|
433
|
-
* `unavailable` rather than becoming a 0-valued mean, and cells whose steer
|
|
434
|
-
* count was unavailable are counted separately from cells that measured zero.
|
|
435
|
-
*/
|
|
436
|
-
declare function rollupSupervisorRuns(reports: readonly SupervisorRunReport[]): SupervisorRunRollup;
|
|
437
|
-
//#endregion
|
|
438
|
-
//#region src/supervisor-run/claude-code-reader.d.ts
|
|
439
|
-
/** Tool names that spawn a child agent. `Task` is the older name for `Agent`. */
|
|
440
|
-
declare const DEFAULT_SPAWN_TOOLS: readonly ['Agent', 'Task'];
|
|
441
|
-
/** Tool names that deliver a message to an ALREADY-RUNNING child agent. */
|
|
442
|
-
declare const DEFAULT_STEER_TOOLS: readonly ['SendMessage'];
|
|
443
|
-
/** Tool names that stop a running child agent. */
|
|
444
|
-
declare const DEFAULT_CANCEL_TOOLS: readonly ['TaskStop', 'KillAgent'];
|
|
445
|
-
interface ClaudeCodeReaderOptions {
|
|
446
|
-
/** The main session transcript: `~/.claude/projects/<slug>/<sessionId>.jsonl`. */
|
|
447
|
-
readonly transcriptPath: string;
|
|
448
|
-
/**
|
|
449
|
-
* Directory of child transcripts. Defaults to `<transcript-dir>/<sessionId>/subagents`.
|
|
450
|
-
* `null` skips the join, and every per-worker token count becomes unavailable.
|
|
451
|
-
*/
|
|
452
|
-
readonly subagentsDir?: string | null;
|
|
453
|
-
readonly runRef?: string;
|
|
454
|
-
readonly instanceId?: string | null;
|
|
455
|
-
readonly arm?: string | null;
|
|
456
|
-
readonly spawnTools?: readonly string[];
|
|
457
|
-
readonly steerTools?: readonly string[];
|
|
458
|
-
readonly cancelTools?: readonly string[];
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Read a Claude Code session (plus its subagent transcripts) as supervision-tree
|
|
462
|
-
* source bytes. Never throws on a missing artifact.
|
|
463
|
-
*/
|
|
464
|
-
declare function readClaudeCodeSupervisorRun(opts: ClaudeCodeReaderOptions): Promise<SupervisorRunSources>;
|
|
465
|
-
/** A `SupervisorRunReader` over a Claude Code session — the same contract loops implements. */
|
|
466
|
-
declare function claudeCodeSupervisorRunReader(opts: ClaudeCodeReaderOptions): SupervisorRunReader;
|
|
467
|
-
//#endregion
|
|
468
|
-
//#region src/supervisor-run/loops-reader.d.ts
|
|
469
|
-
/** Locate the (single) supervisor run dir under `<ws>/.loops/supervisor`. */
|
|
470
|
-
declare function findSupervisorRunDirIn(ws: string): Promise<string | null>;
|
|
471
|
-
interface LoopsReaderOptions {
|
|
472
|
-
/** Override the workspace dir (default `<runDir>/ws`). */
|
|
473
|
-
readonly ws?: string;
|
|
474
|
-
/** Delivered patch path (default: `patchPath` from result.json). */
|
|
475
|
-
readonly patchPath?: string;
|
|
476
|
-
/** opencode sqlite store; set to `null` to skip the worker-token join entirely. */
|
|
477
|
-
readonly opencodeDb?: string | null;
|
|
478
|
-
/** Ledger to fall back to when the run has no `judge.json` (matched on iid + arm + runDir). */
|
|
479
|
-
readonly ledgerPath?: string;
|
|
346
|
+
/** Typed reasons a rollout field could not be recovered, in read order. */
|
|
347
|
+
readonly gaps: readonly SupervisorRunTreeGap[];
|
|
480
348
|
}
|
|
481
|
-
/**
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
declare function loopsSupervisorRunReader(runDir: string, opts?: LoopsReaderOptions): SupervisorRunReader;
|
|
489
|
-
/**
|
|
490
|
-
* Analyze a supervisor run. Accepts a run directory (read through the loops
|
|
491
|
-
* reader), any `SupervisorRunReader`, or already-read source bytes — so a
|
|
492
|
-
* caller with its own store never has to touch the filesystem layout.
|
|
493
|
-
*/
|
|
494
|
-
declare function analyzeSupervisorRun(input: string | SupervisorRunReader | SupervisorRunSources, opts?: LoopsReaderOptions): Promise<SupervisorRunReport>;
|
|
495
|
-
interface WriteSupervisorRunOptions extends LoopsReaderOptions {
|
|
496
|
-
/** Append the headline block here (the experiment's run log). */
|
|
497
|
-
readonly appendHeadlineTo?: string;
|
|
498
|
-
/** Also console.log the headline (default true). */
|
|
499
|
-
readonly echo?: boolean;
|
|
500
|
-
/**
|
|
501
|
-
* Write `run-report.{json,md}` here instead of into the run dir. Set when
|
|
502
|
-
* reporting over a run directory that must stay READ-ONLY (a live run, an
|
|
503
|
-
* archived generation).
|
|
504
|
-
*/
|
|
505
|
-
readonly reportDir?: string;
|
|
349
|
+
/** Stable machine-readable reasons emitted while minting a supervisor tree. */
|
|
350
|
+
type SupervisorRunTreeGapCode = 'journal-unavailable' | 'source-row-malformed' | 'root-spawn-unavailable' | 'root-reward-unavailable' | 'child-reward-unavailable' | 'node-schema-invalid';
|
|
351
|
+
interface SupervisorRunTreeGap {
|
|
352
|
+
readonly code: SupervisorRunTreeGapCode;
|
|
353
|
+
readonly message: string;
|
|
354
|
+
readonly nodeId?: string;
|
|
355
|
+
readonly count?: number;
|
|
506
356
|
}
|
|
507
|
-
/**
|
|
508
|
-
* Read a completed run, write `run-report.json` + `run-report.md` beside its
|
|
509
|
-
* artifacts, and append the headline block to the run log. Never throws on a
|
|
510
|
-
* missing artifact — a run that produced nothing still yields a report whose
|
|
511
|
-
* every metric says why.
|
|
512
|
-
*/
|
|
513
|
-
declare function writeSupervisorRunReport(runDir: string, opts?: WriteSupervisorRunOptions): Promise<SupervisorRunReport>;
|
|
514
|
-
/**
|
|
515
|
-
* File stem for out-of-tree reports. Built from the run path's identifying
|
|
516
|
-
* segments — candidate tag (the segment under `arm-runs/`), rep, instance, arm
|
|
517
|
-
* — so two runs of the same instance from different candidates/reps never
|
|
518
|
-
* overwrite each other.
|
|
519
|
-
*/
|
|
520
|
-
declare function supervisorReportStem(runDir: string): string;
|
|
521
|
-
/**
|
|
522
|
-
* Best-effort wrapper for a hot path: a reporting failure must never kill a run
|
|
523
|
-
* that already produced real work. Returns null and logs the reason instead.
|
|
524
|
-
*/
|
|
525
|
-
declare function writeSupervisorRunReportSafe(runDir: string, opts?: WriteSupervisorRunOptions): Promise<SupervisorRunReport | null>;
|
|
526
|
-
/**
|
|
527
|
-
* Report every run under an experiment `outDir` (any depth of
|
|
528
|
-
* `runs/<iid>/<arm>`), write each run's report, and write the rollup at
|
|
529
|
-
* `<outDir>/run-report-round.{json,md}`.
|
|
530
|
-
*/
|
|
531
|
-
declare function reportSupervisorRound(outDir: string, opts?: WriteSupervisorRunOptions & {
|
|
532
|
-
title?: string;
|
|
533
|
-
}): Promise<SupervisorRunRollup>;
|
|
534
|
-
/** Every `<...>/runs/<iid>/<arm>` directory under `root`. */
|
|
535
|
-
declare function findSupervisorRunDirs(root: string): Promise<string[]>;
|
|
536
|
-
//#endregion
|
|
537
|
-
//#region src/supervisor-run/render.d.ts
|
|
538
|
-
/**
|
|
539
|
-
* The block appended to a run log after every run — the answers an operator asks
|
|
540
|
-
* for, in the log tail, with no extra command.
|
|
541
|
-
*/
|
|
542
|
-
declare function renderSupervisorRunHeadline(r: SupervisorRunReport): string;
|
|
543
|
-
declare function renderSupervisorRunMarkdown(r: SupervisorRunReport): string;
|
|
544
|
-
declare function renderSupervisorRollupMarkdown(rollup: SupervisorRunRollup, title?: string): string;
|
|
545
|
-
//#endregion
|
|
546
|
-
//#region src/supervisor-run/rollout-nodes.d.ts
|
|
547
|
-
interface SupervisorRolloutOptions {
|
|
548
|
-
/** Benchmark/suite id for `task.suite`. Defaults to `'supervisor-run'`. */
|
|
549
|
-
readonly suite?: string;
|
|
550
|
-
/** `task.split`. Defaults to `'search'` (the trainable pool). */
|
|
551
|
-
readonly split?: RolloutSplit;
|
|
552
|
-
/** Replicate index. Defaults to 0. */
|
|
553
|
-
readonly rep?: number;
|
|
554
|
-
/** Sampling seed the campaign pinned. Defaults to null (not recorded). */
|
|
555
|
-
readonly seed?: number | null;
|
|
556
|
-
/** `run_id` for every node. Defaults to the supervisor root id, else `runRef`. */
|
|
557
|
-
readonly runId?: string;
|
|
558
|
-
/** Harness that drove the supervisor. */
|
|
559
|
-
readonly supervisorHarness?: string | null;
|
|
560
|
-
/** Harness that drove the workers. */
|
|
561
|
-
readonly workerHarness?: string | null;
|
|
562
|
-
/** Model the supervisor ran on. */
|
|
563
|
-
readonly supervisorModel?: string | null;
|
|
564
|
-
/** Model the workers ran on. */
|
|
565
|
-
readonly workerModel?: string | null;
|
|
566
|
-
readonly experimentId?: string | null;
|
|
567
|
-
readonly candidateId?: string | null;
|
|
568
|
-
readonly generation?: number | null;
|
|
569
|
-
readonly candidateIndex?: number | null;
|
|
570
|
-
/** Pins `provenance.captured_at`; defaults to now. */
|
|
571
|
-
readonly capturedAt?: string;
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* Mint the supervision tree as rollout rows. Returns the rows plus the gaps
|
|
575
|
-
* that made any of them incomplete — same unavailable-vs-zero discipline as
|
|
576
|
-
* the report: a row with no transcript says WHY, it never pretends to be empty.
|
|
577
|
-
*/
|
|
578
|
-
declare function supervisorRunRolloutLines(src: SupervisorRunSources, opts?: SupervisorRolloutOptions): SupervisorRunTree;
|
|
579
357
|
//#endregion
|
|
580
|
-
export {
|
|
581
|
-
//# sourceMappingURL=
|
|
358
|
+
export { Unavailable as C, showMeasured as D, isUnavailable as E, unavailable as O, SupervisorRunTreeGapCode as S, WorkerLogSource as T, SupervisorRunReport as _, OrchestrationMetrics as a, SupervisorRunTree as b, PerWorkerRow as c, SUPERVISOR_RUN_ROLLUP_SCHEMA as d, SUPERVISOR_RUN_SCHEMA as f, SupervisorRunReader as g, SupervisorRunNodeRole as h, NO_SOURCE_LIMITS as i, RoleSpend as l, SteerBreakdown as m, EconomicsMetrics as n, OutcomeMetrics as o, SourceLimits as p, Measured as r, PatchStats as s, DecisionMetrics as t, RollupCellRow as u, SupervisorRunRollup as v, WallDistribution as w, SupervisorRunTreeGap as x, SupervisorRunSources as y };
|
|
359
|
+
//# sourceMappingURL=types-Dea6tiVI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-Dea6tiVI.d.ts","names":[],"sources":["../src/supervisor-run/types.ts"],"mappings":";;;UAiCiB;WACN;;;KAIC,SAAS,KAAK,IAAI;iBAEd,YAAY,iBAAi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B,0BAA0B,SAAS;WACnC,WAAW,kBAAkB;;UAGvB;WACN;WACA;WACA;WACA;;UAGM;WACN,WAAW;WACX,YAAY;WACZ,WAAW;WACX,eAAe;WACf,YAAY;WACZ,aAAa;WACb,YAAY;WACZ,YAAY;WACZ,UAAU;WACV,OAAO,SAAS;;WAEhB;;UAGM;WACN,eAAe;;WAEf;WACA;WACA;WACA,cAAc;WACd;WACA,eAAe;WACf,UAAU;WACV,WAAW;WACX,SAAS;;WAET;;WAEA;;UAGM;WACN;WACA;WACA,QAAQ;WACR,OAAO;WACP,aAAa;WACb,SAAS;WACT,UAAU;WACV,KAAK;;UAGC;WACN,eAAe;WACf;WACA,aAAa;WACb,iBAAiB;WACjB;WACA,WAAW;WACX,mBAAmB;WACnB,iBAAiB;WACjB,aAAa;WACb,qBAAqB;WACrB,eAAe;WACf,UAAU;WACV,eAAe;WACf,kBAAkB;;;;;;;;UASZ;WACN;WACA,gBAAgB;;WAEhB,eAAe;;;KAId;UAQK;WACN,MAAM;WACN;WACA;WACA"}
|
package/dist/wire/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CostLedgerHandle } from "../cost-ledger-
|
|
1
|
+
import { c as CostLedgerHandle } from "../cost-ledger-D2o6JOrL.js";
|
|
2
|
+
import { Z as LlmRouteRequirements, q as LlmClientOptions } from "../types-CTvKfr5F.js";
|
|
2
3
|
import { s as TraceStore } from "../store-CT9YIIve.js";
|
|
3
|
-
import {
|
|
4
|
-
import { h as FeedbackTrajectoryStore } from "../feedback-trajectory-CVaeREXV.js";
|
|
4
|
+
import { _ as FeedbackTrajectoryStore } from "../feedback-trajectory-N_F0PwHz.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { ServerType } from "@hono/node-server";
|
|
7
7
|
import { Hono } from "hono";
|
package/dist/wire/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as TraceEventSchema, C as HealthResponseSchema, D as RubricDimensionSchema, E as ListRubricsResponseSchema, F as hashRubric, M as TracesIngestResponseSchema, N as VersionResponseSchema, O as RubricInfoSchema, P as WIRE_VERSION, S as FeedbackTrajectorySchema, T as JudgeResultSchema, _ as ErrorResponseSchema, a as runRpcBatch, b as FeedbackIngestResponseSchema, c as WireError, d as handleListRubrics, f as handleTracesIngest, g as listBuiltinRubrics, h as getBuiltinRubric, i as dispatchRpc, j as TracesIngestRequestSchema, k as RubricSchema, l as handleFeedbackIngest, m as BUILTIN_RUBRICS, n as startServer, o as runRpcOnce, p as handleVersion, r as startServerAsync, s as buildOpenApi, t as createApp, u as handleJudge, v as FailureModeSchema, w as JudgeRequestSchema, x as FeedbackLabelSchema, y as FeedbackAttemptSchema } from "../server-
|
|
1
|
+
import { A as TraceEventSchema, C as HealthResponseSchema, D as RubricDimensionSchema, E as ListRubricsResponseSchema, F as hashRubric, M as TracesIngestResponseSchema, N as VersionResponseSchema, O as RubricInfoSchema, P as WIRE_VERSION, S as FeedbackTrajectorySchema, T as JudgeResultSchema, _ as ErrorResponseSchema, a as runRpcBatch, b as FeedbackIngestResponseSchema, c as WireError, d as handleListRubrics, f as handleTracesIngest, g as listBuiltinRubrics, h as getBuiltinRubric, i as dispatchRpc, j as TracesIngestRequestSchema, k as RubricSchema, l as handleFeedbackIngest, m as BUILTIN_RUBRICS, n as startServer, o as runRpcOnce, p as handleVersion, r as startServerAsync, s as buildOpenApi, t as createApp, u as handleJudge, v as FailureModeSchema, w as JudgeRequestSchema, x as FeedbackLabelSchema, y as FeedbackAttemptSchema } from "../server-KjXZZUDX.js";
|
|
2
2
|
export { BUILTIN_RUBRICS, ErrorResponseSchema, FailureModeSchema, FeedbackAttemptSchema, FeedbackIngestResponseSchema, FeedbackLabelSchema, FeedbackTrajectorySchema, HealthResponseSchema, JudgeRequestSchema, JudgeResultSchema, ListRubricsResponseSchema, RubricDimensionSchema, RubricInfoSchema, RubricSchema, TraceEventSchema, TracesIngestRequestSchema, TracesIngestResponseSchema, VersionResponseSchema, WIRE_VERSION, WireError, buildOpenApi, createApp, dispatchRpc, getBuiltinRubric, handleFeedbackIngest, handleJudge, handleListRubrics, handleTracesIngest, handleVersion, hashRubric, listBuiltinRubrics, runRpcBatch, runRpcOnce, startServer, startServerAsync };
|
|
@@ -55,7 +55,7 @@ const optimizerRows = feedbackTrajectoriesToOptimizerRows([trajectory])
|
|
|
55
55
|
|
|
56
56
|
## What Belongs In Core
|
|
57
57
|
|
|
58
|
-
`agent-eval` owns the
|
|
58
|
+
`agent-eval` owns the shared data model:
|
|
59
59
|
|
|
60
60
|
- trajectory and label schemas
|
|
61
61
|
- in-memory and JSONL-backed stores
|
|
@@ -74,6 +74,105 @@ Downstream repos own domain adapters:
|
|
|
74
74
|
- which budgets and metrics matter
|
|
75
75
|
- where task-local data is stored
|
|
76
76
|
|
|
77
|
+
## Trace Analyst Bridge
|
|
78
|
+
|
|
79
|
+
Trace findings are hypotheses until another signal confirms them.
|
|
80
|
+
Use `analystRunToReviewRequests()` to populate a review queue.
|
|
81
|
+
Use `analystRunToFeedbackTrajectory()` immediately to archive the run, even when review has not started.
|
|
82
|
+
The archived trajectory cannot become optimizer input until every finding has one independent decision and the run has one independent completeness assessment.
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
import {
|
|
86
|
+
analystRunDigest,
|
|
87
|
+
analystRunToFeedbackTrajectory,
|
|
88
|
+
analystRunToReviewRequests,
|
|
89
|
+
feedbackTrajectoryToOptimizerRow,
|
|
90
|
+
} from '@tangle-network/agent-eval'
|
|
91
|
+
|
|
92
|
+
const runDigest = analystRunDigest(analystRun)
|
|
93
|
+
const requests = analystRunToReviewRequests(analystRun)
|
|
94
|
+
await reviewQueue.add(requests)
|
|
95
|
+
|
|
96
|
+
const archived = analystRunToFeedbackTrajectory(analystRun, {
|
|
97
|
+
task: { intent: 'Explain the failed agent run.' },
|
|
98
|
+
reviewRequests: requests,
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
await trajectoryStore.save(archived)
|
|
102
|
+
|
|
103
|
+
declare const reviewedFindingIds: ReadonlySet<string>
|
|
104
|
+
declare const reviewReasons: ReadonlyMap<string, string>
|
|
105
|
+
declare const missedIssues: Array<{
|
|
106
|
+
id: string
|
|
107
|
+
reason: string
|
|
108
|
+
evidence?: Array<{ kind: 'span'; uri: string }>
|
|
109
|
+
}>
|
|
110
|
+
const requestsByFindingId = new Map(requests.map((request) => [request.findingId, request]))
|
|
111
|
+
|
|
112
|
+
const reviewed = analystRunToFeedbackTrajectory(analystRun, {
|
|
113
|
+
task: { intent: 'Explain the failed agent run.' },
|
|
114
|
+
reviewRequests: requests,
|
|
115
|
+
reviewDecisions: [
|
|
116
|
+
...analystRun.findings.map((finding) => ({
|
|
117
|
+
runDigest,
|
|
118
|
+
findingId: finding.finding_id,
|
|
119
|
+
findingDigest: requestsByFindingId.get(finding.finding_id)!.findingDigest,
|
|
120
|
+
verdict: reviewedFindingIds.has(finding.finding_id) ? 'confirmed' as const : 'rejected' as const,
|
|
121
|
+
source: 'user' as const,
|
|
122
|
+
reviewerId: 'reviewer-42',
|
|
123
|
+
reviewId: 'trace-review-918',
|
|
124
|
+
reason: reviewReasons.get(finding.finding_id) ?? 'Reviewed against the cited evidence.',
|
|
125
|
+
decidedAt: new Date().toISOString(),
|
|
126
|
+
})),
|
|
127
|
+
{
|
|
128
|
+
runDigest,
|
|
129
|
+
verdict: 'completeness_assessed',
|
|
130
|
+
missedIssues,
|
|
131
|
+
source: 'user',
|
|
132
|
+
reviewerId: 'reviewer-42',
|
|
133
|
+
reviewId: 'trace-review-918',
|
|
134
|
+
reason: 'Reviewed the full run for findings the analyst omitted.',
|
|
135
|
+
decidedAt: new Date().toISOString(),
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
const optimizerRow = feedbackTrajectoryToOptimizerRow(reviewed)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Review requests, generic labels, and run-level outcomes do not validate findings.
|
|
144
|
+
Every request id includes the digest of the complete analyst run, so the same finding in two runs produces two request ids.
|
|
145
|
+
Every decision must echo that run digest and cannot be replayed onto another run.
|
|
146
|
+
Each finding decision must name a known finding and echo its full content digest.
|
|
147
|
+
The reviewer identity must differ from every analyst that produced the run.
|
|
148
|
+
The completeness assessment records unique missed issue ids, reasons, and optional evidence.
|
|
149
|
+
Duplicate, unknown, incomplete, mutated, and self-reviewed data throws instead of being filtered.
|
|
150
|
+
The optimizer score is F1 over confirmed findings and independently identified misses.
|
|
151
|
+
A run with no findings and no missed issues scores `1`.
|
|
152
|
+
The run-level outcome remains context and does not replace that score.
|
|
153
|
+
|
|
154
|
+
Every run needs one `completeness_assessed` decision from an independent reviewer or environment check:
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
const cleanRunDigest = analystRunDigest(cleanRun)
|
|
158
|
+
const reviewedCleanRun = analystRunToFeedbackTrajectory(cleanRun, {
|
|
159
|
+
task: { intent: 'Check whether the run has a reportable failure.' },
|
|
160
|
+
reviewDecisions: [{
|
|
161
|
+
runDigest: cleanRunDigest,
|
|
162
|
+
verdict: 'completeness_assessed',
|
|
163
|
+
missedIssues: [],
|
|
164
|
+
source: 'environment',
|
|
165
|
+
reviewerId: 'release-test-suite',
|
|
166
|
+
reviewId: 'release-check-284',
|
|
167
|
+
reason: 'The independent release checks found no omitted reportable failure.',
|
|
168
|
+
decidedAt: new Date().toISOString(),
|
|
169
|
+
}],
|
|
170
|
+
})
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
A raw zero-finding run is still valid archival data.
|
|
174
|
+
It is not learning data until completeness is independently assessed.
|
|
175
|
+
|
|
77
176
|
## Label Sources
|
|
78
177
|
|
|
79
178
|
Labels can come from multiple places:
|