agentic-qe 3.15.8 → 3.15.9
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/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +183 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/agents/claim-verifier/claim-verifier-service.js +13 -8
- package/dist/bridge/captured-experience-bridge.js +12 -13
- package/dist/cli/bundle.js +6 -6
- package/dist/cli/chunks/adapter-R2Q4QGXQ.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-W3V5P7LE.js → agent-booster-wasm-427FRKWG.js} +2 -2
- package/dist/cli/chunks/{agent-handler-2NQFHAWE.js → agent-handler-RIYHTHVZ.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-457ECHHK.js → agent-memory-branch-WSUCUHOO.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-3RENLQWP.js +2 -0
- package/dist/cli/chunks/{arena-JV3WSEHU.js → arena-KRIBMIXX.js} +2 -2
- package/dist/cli/chunks/{arena-IYBQ3GPY.js → arena-YAJZX6MC.js} +4 -4
- package/dist/cli/chunks/{audit-5OS3T3K6.js → audit-7ZNOXWP3.js} +3 -3
- package/dist/cli/chunks/base-67DXSAYM.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-IQKBFVAO.js → better-sqlite3-ZQAT4I6H.js} +2 -2
- package/dist/cli/chunks/{brain-handler-KA3SGAFM.js → brain-handler-452WCPZC.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-QZDU2VOQ.js → branch-enumerator-IJFXJRPN.js} +2 -2
- package/dist/cli/chunks/{browser-ZL7OLKJQ.js → browser-CT3MTV6G.js} +2 -2
- package/dist/cli/chunks/browser-workflow-NDXRROWZ.js +2 -0
- package/dist/cli/chunks/{chunk-IJSFZO7P.js → chunk-2BA45H64.js} +2 -2
- package/dist/cli/chunks/{chunk-6GIC2263.js → chunk-2HL3UM5P.js} +2 -2
- package/dist/cli/chunks/{chunk-KVMKYUOE.js → chunk-2I2UPJS7.js} +2 -2
- package/dist/cli/chunks/{chunk-22DOS3PM.js → chunk-2TDIS6YK.js} +2 -2
- package/dist/cli/chunks/{chunk-5MBNRTT5.js → chunk-2URBI52G.js} +2 -2
- package/dist/cli/chunks/{chunk-A6GCO6ZU.js → chunk-2XITOPYV.js} +2 -2
- package/dist/cli/chunks/{chunk-I77D65X5.js → chunk-2YH62JCN.js} +2 -2
- package/dist/cli/chunks/{chunk-2JCLACCS.js → chunk-32UTLDNY.js} +2 -2
- package/dist/cli/chunks/{chunk-UTNKMPTC.js → chunk-37BIGMJI.js} +1 -1
- package/dist/cli/chunks/{chunk-767SR7WH.js → chunk-3CJCROMW.js} +2 -2
- package/dist/cli/chunks/{chunk-LVHZK7GW.js → chunk-3LYU7BLY.js} +2 -2
- package/dist/cli/chunks/{chunk-5DZDLOY6.js → chunk-47TYABPD.js} +3 -3
- package/dist/cli/chunks/{chunk-SWY6KGMF.js → chunk-47V7FQGX.js} +2 -2
- package/dist/cli/chunks/{chunk-KMZW2P3R.js → chunk-4JCY45KV.js} +2 -2
- package/dist/cli/chunks/{chunk-D4IBIMWI.js → chunk-4SUOVLJ6.js} +2 -2
- package/dist/cli/chunks/{chunk-J7RCI25Q.js → chunk-4URT6JO2.js} +1 -1
- package/dist/cli/chunks/{chunk-SHEVM5PF.js → chunk-4V27J6YN.js} +2 -2
- package/dist/cli/chunks/{chunk-JWPYMRIX.js → chunk-4W4DYVSH.js} +1 -1
- package/dist/cli/chunks/chunk-55HRSNGN.js +2 -0
- package/dist/cli/chunks/{chunk-R2NHGESM.js → chunk-5D2I7JUP.js} +2 -2
- package/dist/cli/chunks/{chunk-GGSTLKY5.js → chunk-5JWGCIQW.js} +1 -1
- package/dist/cli/chunks/chunk-5LAAZLUC.js +4 -0
- package/dist/cli/chunks/{chunk-YNQPHRUZ.js → chunk-5NS3USRW.js} +1 -1
- package/dist/cli/chunks/{chunk-4YUBWU3E.js → chunk-6EPHNJTL.js} +1 -1
- package/dist/cli/chunks/{chunk-ZBI7PJFX.js → chunk-6OOYIO3W.js} +2 -2
- package/dist/cli/chunks/{chunk-ST7ASEJO.js → chunk-6PXA2BQJ.js} +58 -58
- package/dist/cli/chunks/{chunk-LPSMVBB3.js → chunk-6YL6JOQB.js} +2 -2
- package/dist/cli/chunks/{chunk-DY37YMMQ.js → chunk-72AMFDC7.js} +1 -1
- package/dist/cli/chunks/{chunk-OWBFVAEH.js → chunk-763SUL4B.js} +2 -2
- package/dist/cli/chunks/{chunk-4GYFONJB.js → chunk-7DMA5NYL.js} +1 -1
- package/dist/cli/chunks/{chunk-4GUVVGJX.js → chunk-7JKB3Q7O.js} +1 -1
- package/dist/cli/chunks/{chunk-DN3AKAPY.js → chunk-7KII4CQG.js} +2 -2
- package/dist/cli/chunks/{chunk-VKFVJCIH.js → chunk-7QGYJ5OY.js} +1 -1
- package/dist/cli/chunks/{chunk-HNGNRIZZ.js → chunk-7QTB5VJZ.js} +2 -2
- package/dist/cli/chunks/{chunk-GSOK4M6V.js → chunk-7X2Y727E.js} +1 -1
- package/dist/cli/chunks/{chunk-PZ7FJ4UG.js → chunk-A4RU67VX.js} +2 -2
- package/dist/cli/chunks/{chunk-VWSGWYRB.js → chunk-A6YIH4C4.js} +2 -2
- package/dist/cli/chunks/{chunk-4I35ARWW.js → chunk-ABFDB4X3.js} +1 -1
- package/dist/cli/chunks/{chunk-NQDYOF35.js → chunk-AJ4YDSOI.js} +2 -2
- package/dist/cli/chunks/{chunk-CDLG3Q2O.js → chunk-AOFO4N32.js} +2 -2
- package/dist/cli/chunks/{chunk-WAWKAYPY.js → chunk-AQTVVLNP.js} +1 -1
- package/dist/cli/chunks/chunk-AR2E4B7K.js +6 -0
- package/dist/cli/chunks/{chunk-HXCGV5UJ.js → chunk-AVB5QY2Q.js} +2 -2
- package/dist/cli/chunks/{chunk-JFWQFB3S.js → chunk-BHKXMIWX.js} +2 -2
- package/dist/cli/chunks/{chunk-BEVWCF3Q.js → chunk-BXO536GT.js} +3 -3
- package/dist/cli/chunks/{chunk-IMSRWNWF.js → chunk-C6RTMTEH.js} +1 -1
- package/dist/cli/chunks/{chunk-UKKFZJME.js → chunk-CTZJUV5I.js} +1 -1
- package/dist/cli/chunks/{chunk-MV4S3TEC.js → chunk-D6XVGFTI.js} +2 -2
- package/dist/cli/chunks/{chunk-5YOO5QSE.js → chunk-DDPPSSHW.js} +1 -1
- package/dist/cli/chunks/{chunk-NHOMVBCI.js → chunk-DGTLJNJH.js} +2 -2
- package/dist/cli/chunks/{chunk-NWFBF3KT.js → chunk-DINZR5CF.js} +1 -1
- package/dist/cli/chunks/{chunk-RG42LDOB.js → chunk-EFBLP43U.js} +2 -2
- package/dist/cli/chunks/chunk-ETG7O5E5.js +5 -0
- package/dist/cli/chunks/{chunk-KNHLOANK.js → chunk-F2SQPP6U.js} +2 -2
- package/dist/cli/chunks/{chunk-62T7U25U.js → chunk-F3PQZX44.js} +1 -1
- package/dist/cli/chunks/{chunk-X3HM7SV4.js → chunk-F4JYIRW2.js} +2 -2
- package/dist/cli/chunks/{chunk-NZATJ2C6.js → chunk-FJ4VTLLK.js} +2 -2
- package/dist/cli/chunks/{chunk-TMNEK7TP.js → chunk-FL3OYGCS.js} +2 -2
- package/dist/cli/chunks/{chunk-HI6OBDDY.js → chunk-FLASM2XB.js} +2 -2
- package/dist/cli/chunks/{chunk-GENNJRNK.js → chunk-FV3NHVC7.js} +22 -22
- package/dist/cli/chunks/{chunk-PICEGWGB.js → chunk-FV7VAG74.js} +1 -1
- package/dist/cli/chunks/{chunk-PWA6XBW4.js → chunk-G3BKZNFL.js} +5 -5
- package/dist/cli/chunks/{chunk-T2TDTBFV.js → chunk-GBUIG3FS.js} +1 -1
- package/dist/cli/chunks/{chunk-QFYUZYRA.js → chunk-GCWSX2NY.js} +4 -4
- package/dist/cli/chunks/{chunk-KJNUETCB.js → chunk-GII5WVAK.js} +1 -1
- package/dist/cli/chunks/{chunk-YVWMJZ6O.js → chunk-GKPQ2GRR.js} +2 -2
- package/dist/cli/chunks/chunk-GR3JYE5A.js +2 -0
- package/dist/cli/chunks/{chunk-CQ5G64EA.js → chunk-H3KBIWTO.js} +2 -2
- package/dist/cli/chunks/{chunk-V4QJ3MMT.js → chunk-HAROIAJE.js} +1 -1
- package/dist/cli/chunks/{chunk-OJWEZYLR.js → chunk-HCYQHWI2.js} +2 -2
- package/dist/cli/chunks/{chunk-FAYXES7R.js → chunk-HGTWAZWU.js} +2 -2
- package/dist/cli/chunks/{chunk-LHRVSK44.js → chunk-HTZJSQ3C.js} +2 -2
- package/dist/cli/chunks/{chunk-DAFMHM64.js → chunk-HWK5L7IJ.js} +2 -2
- package/dist/cli/chunks/{chunk-K5R3WUJP.js → chunk-HZ5NC6U5.js} +1 -1
- package/dist/cli/chunks/{chunk-Y5ZBF7MA.js → chunk-I6S35FRO.js} +2 -2
- package/dist/cli/chunks/{chunk-UDCYQLTD.js → chunk-ICP2ORGI.js} +2 -2
- package/dist/cli/chunks/{chunk-KMVFBYJO.js → chunk-IFEIY3NQ.js} +2 -2
- package/dist/cli/chunks/{chunk-NW7HTOSN.js → chunk-J3DTDJDT.js} +2 -2
- package/dist/cli/chunks/chunk-J3WGK22W.js +2 -0
- package/dist/cli/chunks/{chunk-5ONJ7AV6.js → chunk-J5KNRVXR.js} +1 -1
- package/dist/cli/chunks/{chunk-G77Q22EN.js → chunk-JAV5WPSY.js} +2 -2
- package/dist/cli/chunks/{chunk-VVK4ECVJ.js → chunk-JEP4ULR6.js} +2 -2
- package/dist/cli/chunks/{chunk-TC52M542.js → chunk-JK2ME6IT.js} +2 -2
- package/dist/cli/chunks/chunk-JNNZK7KH.js +2 -0
- package/dist/cli/chunks/{chunk-NLYUC63R.js → chunk-JP4P3P3D.js} +2 -2
- package/dist/cli/chunks/{chunk-BTMEOZYY.js → chunk-JUVHZG7I.js} +1 -1
- package/dist/cli/chunks/{chunk-PUYQ6EKC.js → chunk-JWGRWMZP.js} +2 -2
- package/dist/cli/chunks/{chunk-OCLAMZJG.js → chunk-K5DJXMAA.js} +2 -2
- package/dist/cli/chunks/{chunk-X7ZQIFES.js → chunk-KFUUIAR4.js} +2 -2
- package/dist/cli/chunks/chunk-KHSRIPBP.js +180 -0
- package/dist/cli/chunks/{chunk-U3BWBP6B.js → chunk-KIKWJM6J.js} +2 -2
- package/dist/cli/chunks/{chunk-MUDBF2JC.js → chunk-KIXYKUCI.js} +1 -1
- package/dist/cli/chunks/{chunk-P4UT4LBE.js → chunk-KLGYIEJK.js} +3 -3
- package/dist/cli/chunks/{chunk-G6CLO74Q.js → chunk-KR3M44CF.js} +3 -3
- package/dist/cli/chunks/chunk-KTSLTZSG.js +2 -0
- package/dist/cli/chunks/{chunk-FJAO4UX2.js → chunk-KVBEGOJE.js} +2 -2
- package/dist/cli/chunks/{chunk-BLZEOGQE.js → chunk-L42JPFCC.js} +2 -2
- package/dist/cli/chunks/{chunk-ZOVAZTXE.js → chunk-LCJTEUDC.js} +370 -370
- package/dist/cli/chunks/{chunk-JLTGO5BB.js → chunk-LEAKYZ37.js} +2 -2
- package/dist/cli/chunks/{chunk-RSMPJWQH.js → chunk-LMU5DUDK.js} +1 -1
- package/dist/cli/chunks/{chunk-FEN2DHFM.js → chunk-MZS32SYS.js} +1 -1
- package/dist/cli/chunks/{chunk-J7FLNP5L.js → chunk-N3KEY4XJ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZG7UKWBB.js → chunk-N3NP6PTT.js} +2 -2
- package/dist/cli/chunks/{chunk-2DPHFCMW.js → chunk-N5PDFGCQ.js} +2 -2
- package/dist/cli/chunks/{chunk-BQUIZ5QT.js → chunk-NDKLQW6N.js} +2 -2
- package/dist/cli/chunks/{chunk-52YRSWPS.js → chunk-NHZIWIQZ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZOHS32SI.js → chunk-NTAD5UX4.js} +2 -2
- package/dist/cli/chunks/{chunk-7H3GNRNA.js → chunk-O3JLOVZX.js} +2 -2
- package/dist/cli/chunks/{chunk-7XGM7Q2N.js → chunk-OCESWNAZ.js} +3 -3
- package/dist/cli/chunks/{chunk-7SLEUVPZ.js → chunk-OG2UI6A3.js} +2 -2
- package/dist/cli/chunks/{chunk-4TZLZRZ4.js → chunk-OXTFSIGN.js} +1 -1
- package/dist/cli/chunks/{chunk-2QRGIEQV.js → chunk-OXZLKP6C.js} +1 -1
- package/dist/cli/chunks/{chunk-FEPFXXI7.js → chunk-P2CXVNKK.js} +2 -2
- package/dist/cli/chunks/{chunk-P2EA62YS.js → chunk-P73W2K7T.js} +1 -1
- package/dist/cli/chunks/{chunk-V7VZSNDK.js → chunk-PBZI2ZPV.js} +3 -3
- package/dist/cli/chunks/{chunk-MMY52Y6R.js → chunk-PMCRCEW5.js} +2 -2
- package/dist/cli/chunks/{chunk-FWXNFPLS.js → chunk-PVIA2FPD.js} +2 -2
- package/dist/cli/chunks/{chunk-NF63NHJH.js → chunk-PX2B5TS2.js} +2 -2
- package/dist/cli/chunks/{chunk-SFPGLUXS.js → chunk-Q3JVJRVJ.js} +1 -1
- package/dist/cli/chunks/{chunk-XOOBLZXR.js → chunk-QQ5SZH4D.js} +2 -2
- package/dist/cli/chunks/{chunk-KITKQUBX.js → chunk-QTVWUQTB.js} +1 -1
- package/dist/cli/chunks/{chunk-2UN4JOTN.js → chunk-REUFWGMA.js} +2 -2
- package/dist/cli/chunks/{chunk-CQ3SBRDP.js → chunk-SNBYYO6F.js} +2 -2
- package/dist/cli/chunks/{chunk-A2UGPKCS.js → chunk-SVHUYVUR.js} +2 -2
- package/dist/cli/chunks/{chunk-PIEKGKW6.js → chunk-THAY7WHO.js} +2 -2
- package/dist/cli/chunks/{chunk-WLXGUQOZ.js → chunk-TNMQVG4A.js} +2 -2
- package/dist/cli/chunks/{chunk-2GSAAUW3.js → chunk-TSYQDRNK.js} +1 -1
- package/dist/cli/chunks/{chunk-7DHSHD5B.js → chunk-TUYJ53V4.js} +2 -2
- package/dist/cli/chunks/{chunk-U7CIY3YR.js → chunk-UNUTC6TX.js} +2 -2
- package/dist/cli/chunks/{chunk-CRUQ6RXU.js → chunk-UOJBR4J3.js} +2 -2
- package/dist/cli/chunks/{chunk-3LFLO2WK.js → chunk-UOWHE77F.js} +2 -2
- package/dist/cli/chunks/{chunk-O4RRVTXN.js → chunk-UYLYMWV5.js} +2 -2
- package/dist/cli/chunks/{chunk-D4O3TJI7.js → chunk-V5PXQSFS.js} +2 -2
- package/dist/cli/chunks/{chunk-VQRBBR27.js → chunk-VCMINU7K.js} +2 -2
- package/dist/cli/chunks/{chunk-3N627QRU.js → chunk-VQHVHVSF.js} +2 -2
- package/dist/cli/chunks/{chunk-J6LL25QJ.js → chunk-VRGCKBF7.js} +2 -2
- package/dist/cli/chunks/{chunk-VWRNG3UK.js → chunk-VU2EL424.js} +1 -1
- package/dist/cli/chunks/{chunk-KNQUHGNY.js → chunk-VXZJOKOX.js} +2 -2
- package/dist/cli/chunks/{chunk-EUVSSIGR.js → chunk-VYLM2YV5.js} +3 -3
- package/dist/cli/chunks/{chunk-PJGQ2TKN.js → chunk-W32YU3VI.js} +2 -2
- package/dist/cli/chunks/{chunk-YRH7KMTU.js → chunk-W5VJRDDG.js} +2 -2
- package/dist/cli/chunks/{chunk-PPIM7B5G.js → chunk-WGDR2KIR.js} +2 -2
- package/dist/cli/chunks/{chunk-2ZRNXEVI.js → chunk-WRRCQ2UE.js} +1 -1
- package/dist/cli/chunks/{chunk-7C6FMLQR.js → chunk-XDBD4GXO.js} +2 -2
- package/dist/cli/chunks/{chunk-W5A36V3Z.js → chunk-XOLDMK23.js} +2 -2
- package/dist/cli/chunks/{chunk-DCYUHCPK.js → chunk-XOVNZT7F.js} +1 -1
- package/dist/cli/chunks/{chunk-4C7KE2EL.js → chunk-XQ3DDY7X.js} +2 -2
- package/dist/cli/chunks/{chunk-K4N2MBCE.js → chunk-XUIA5KMS.js} +2 -2
- package/dist/cli/chunks/{chunk-YUP3APSN.js → chunk-XWIUFYM3.js} +1 -1
- package/dist/cli/chunks/{chunk-SJMZZMHP.js → chunk-XYCKHYBM.js} +2 -2
- package/dist/cli/chunks/{chunk-4NTLGGXO.js → chunk-XZJ2O3VC.js} +1 -1
- package/dist/cli/chunks/{chunk-UQLAN5TX.js → chunk-YRBBBUJX.js} +5 -5
- package/dist/cli/chunks/{chunk-XZQVC3GD.js → chunk-YZGSJG34.js} +1 -1
- package/dist/cli/chunks/{chunk-7CVMT64N.js → chunk-YZYDTABJ.js} +1 -1
- package/dist/cli/chunks/{chunk-4C3RYBTT.js → chunk-ZANDSVCK.js} +2 -2
- package/dist/cli/chunks/{chunk-6E7EOHMN.js → chunk-ZBDRLF43.js} +2 -2
- package/dist/cli/chunks/{chunk-UTFMMZ57.js → chunk-ZVSLCEVC.js} +3 -3
- package/dist/cli/chunks/{chunk-DKFSCJEF.js → chunk-ZXBCCO2H.js} +2 -2
- package/dist/cli/chunks/{ci-7NUCRGWO.js → ci-7SGRCFPS.js} +2 -2
- package/dist/cli/chunks/{ci-config-VQVECCFI.js → ci-config-MX3URPZA.js} +2 -2
- package/dist/cli/chunks/{ci-output-P7GQ6TKF.js → ci-output-M47NJY6D.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-5YP6N6HE.js → circuit-breaker-5GAK45SW.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-W5H7CMU6.js → claude-flow-setup-YXYSRH4Y.js} +2 -2
- package/dist/cli/chunks/client-ZP3CTVRF.js +2 -0
- package/dist/cli/chunks/{cline-installer-OYANSZ54.js → cline-installer-DLJ5QD5N.js} +2 -2
- package/dist/cli/chunks/{code-OMT4UEZI.js → code-ONKLMVQ2.js} +25 -24
- package/dist/cli/chunks/{code-index-extractor-M2JEWKNF.js → code-index-extractor-2232LGZN.js} +2 -2
- package/dist/cli/chunks/{codex-installer-YBS6N5O3.js → codex-installer-UOWLYCMH.js} +2 -2
- package/dist/cli/chunks/{completions-U7GS5RG6.js → completions-MHX7GCC7.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-QSXPIUIU.js → complexity-analyzer-43ZUJKZU.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-W5TTT743.js → continuedev-installer-6Q5JR4FF.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-KC2RT24C.js → copilot-installer-CZUMVHSI.js} +2 -2
- package/dist/cli/chunks/core-handlers-JSRXQWPE.js +2 -0
- package/dist/cli/chunks/{cost-tracker-OQPVR6V4.js → cost-tracker-VS5ZW3XN.js} +2 -2
- package/dist/cli/chunks/{coverage-TCO2A2NX.js → coverage-VWKTWZ6D.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-7UKODQWG.js +2 -0
- package/dist/cli/chunks/{cursor-installer-MH7GWD4L.js → cursor-installer-YIFEMORH.js} +2 -2
- package/dist/cli/chunks/{daemon-UJEARJZ2.js → daemon-SHWJSJW5.js} +7 -7
- package/dist/cli/chunks/daemon-YIFT46FH.js +34 -0
- package/dist/cli/chunks/{dag-attention-scheduler-F3SUJU5O.js → dag-attention-scheduler-TCC2WM46.js} +2 -2
- package/dist/cli/chunks/{detect-5QTCRB32.js → detect-IGTWSQMA.js} +2 -2
- package/dist/cli/chunks/{dist-node-XKZPHDBO.js → dist-node-TCOTJVQX.js} +2 -2
- package/dist/cli/chunks/{domain-handler-V3UEADKW.js → domain-handler-55ZVYODR.js} +2 -2
- package/dist/cli/chunks/{domain-plugins-7PES4UHZ.js → domain-plugins-GJRWOHQP.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-NF7UJW7B.js → domain-transfer-6EF75EKU.js} +2 -2
- package/dist/cli/chunks/dream-UDLM6M55.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-D2HWORHF.js → embed-and-insert-pattern-XAMNIKQL.js} +2 -2
- package/dist/cli/chunks/{eval-UF2UBAUC.js → eval-GO22R4OZ.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-2OUCEHHM.js → experience-capture-middleware-F2BRMJ3Y.js} +3 -3
- package/dist/cli/chunks/{fast-paths-KV5DKKHC.js → fast-paths-6RGPYALD.js} +2 -2
- package/dist/cli/chunks/{feature-flags-6YWMTNO5.js → feature-flags-MIWQIOHU.js} +2 -2
- package/dist/cli/chunks/{feature-flags-MTW6NMR3.js → feature-flags-ZGS3KLPH.js} +2 -2
- package/dist/cli/chunks/file-discovery-THWOUQ7Z.js +2 -0
- package/dist/cli/chunks/fleet-ADL57COA.js +44 -0
- package/dist/cli/chunks/{gnn-wrapper-52V6ANOY.js → gnn-wrapper-ALBJVW6T.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-X7NHNRC7.js → heartbeat-handler-ZMM53NDY.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-HGOC5KH3.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-EPSA6AP7.js +2 -0
- package/dist/cli/chunks/hnsw-index-RMFOPYGY.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-DZBE3KMK.js → hnsw-legacy-bridge-RYUJPA7B.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-2AWWUJAZ.js → hnswlib-node-XM6XF3YV.js} +2 -2
- package/dist/cli/chunks/{hooks-XLPVROL3.js → hooks-X62O7TJO.js} +10 -10
- package/dist/cli/chunks/hybrid-backend-NZ3G4WBX.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-6TI7YP6P.js → hypergraph-engine-ZBWUPTVD.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-DBIBBOXS.js → hypergraph-handler-DUMF6SJV.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-WZC6NHFP.js +2 -0
- package/dist/cli/chunks/{init-guard-OSO6MIDD.js → init-guard-S4I2R46S.js} +2 -2
- package/dist/cli/chunks/{init-handler-7S7IHMUF.js → init-handler-L4KJHVWS.js} +6 -6
- package/dist/cli/chunks/init-wizard-422UZYQ5.js +2 -0
- package/dist/cli/chunks/kernel-N7PJ6FCE.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-2KBRFXMA.js → kilocode-installer-GNNB5FCZ.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-5VFR4OQZ.js → kiro-installer-HR6ZAH7T.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-SZCVQF37.js +2 -0
- package/dist/cli/chunks/{learning-G5NHL3DV.js → learning-4IEEOHJS.js} +3 -3
- package/dist/cli/chunks/{llm-router-4EAPPMHS.js → llm-router-ZFMORP36.js} +4 -4
- package/dist/cli/chunks/llm-router-service-4DE5WDUZ.js +2 -0
- package/dist/cli/chunks/{load-UYMZPEY6.js → load-ZM43WGDO.js} +2 -2
- package/dist/cli/chunks/load-test-POMIF4Q4.js +2 -0
- package/dist/cli/chunks/{mcp-NOTDZBW5.js → mcp-CRZKZE37.js} +2 -2
- package/dist/cli/chunks/{memory-QL53YIHP.js → memory-W5FZGVAD.js} +5 -5
- package/dist/cli/chunks/memory-backend-4P6AHSOY.js +2 -0
- package/dist/cli/chunks/memory-handlers-NK6NV3GE.js +2 -0
- package/dist/cli/chunks/{multi-model-executor-PDDDXF2B.js → multi-model-executor-SXXGAQ2G.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-75D2SKOT.js → opencode-installer-PIRBUAB5.js} +2 -2
- package/dist/cli/chunks/{orchestrator-3WIZBV4T.js → orchestrator-H5SQCQTB.js} +11 -10
- package/dist/cli/chunks/pattern-null-store-CCHQHGQG.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-TEX2JGHA.js → pattern-usage-recorder-XZTWDI2T.js} +2 -2
- package/dist/cli/chunks/{pipeline-7ATPA6LU.js → pipeline-5LMLBIJ7.js} +2 -2
- package/dist/cli/chunks/{platform-WPSKRJE7.js → platform-KJDABL5C.js} +2 -2
- package/dist/cli/chunks/{plugin-UUFOVVMU.js → plugin-V4KSBVVM.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-PDFSYWKZ.js → prime-radiant-advanced-wasm-JDHTKQAT.js} +2 -2
- package/dist/cli/chunks/project-root-X72FSM2F.js +2 -0
- package/dist/cli/chunks/protocol-executor-QW6XN6QN.js +2 -0
- package/dist/cli/chunks/{protocol-handler-3VRYRIQB.js → protocol-handler-BNRONTQV.js} +2 -2
- package/dist/cli/chunks/{prove-2NAUROGF.js → prove-ELLL6XMX.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-ZD3WF647.js +2 -0
- package/dist/cli/chunks/{quality-ZIEI2WGA.js → quality-NH2QA4D4.js} +2 -2
- package/dist/cli/chunks/{quality-gate-KWJO4SWQ.js → quality-gate-JTKLF7GW.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-S4U4MKK2.js +2 -0
- package/dist/cli/chunks/{real-embeddings-TSZ4UIAE.js → real-embeddings-J3KCKLPB.js} +2 -2
- package/dist/cli/chunks/{ref-validation-DWFFRETJ.js → ref-validation-HNXQRP4F.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-XTZHLUBO.js → roocode-installer-COJ6CX6S.js} +2 -2
- package/dist/cli/chunks/router-CXZKOOTR.js +2 -0
- package/dist/cli/chunks/routing-feedback-IYFANYY5.js +2 -0
- package/dist/cli/chunks/{routing-handler-GG525TDM.js → routing-handler-WM33ZILE.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-QKRJDM7Z.js → ruvector-commands-BBLXEA7A.js} +2 -2
- package/dist/cli/chunks/rvf-dual-writer-HCLQ5WUQ.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-XCLUWOO3.js +2 -0
- package/dist/cli/chunks/{rvf-migration-coordinator-FF52OS6Q.js → rvf-migration-coordinator-P7H6HCAG.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-MRT5H3IP.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-M6DXTAZ4.js → rvf-store-integrity-R5SPVRFP.js} +2 -2
- package/dist/cli/chunks/safe-db-WFODRGVZ.js +2 -0
- package/dist/cli/chunks/schedule-RO55OQXG.js +2 -0
- package/dist/cli/chunks/scheduler-XXMJCH24.js +2 -0
- package/dist/cli/chunks/{security-EHXSW22U.js → security-AUDTRX3I.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-6EH7UVJL.js → shared-rvf-adapter-PVDGBGI2.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-WML274E7.js → shared-rvf-dual-writer-LZ2GMSS2.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-AWRIS4MK.js +2 -0
- package/dist/cli/chunks/{standalone-memory-C7QKAXS4.js → standalone-memory-XNOAI4G4.js} +2 -2
- package/dist/cli/chunks/{status-handler-VLI7MRLM.js → status-handler-K72XZE4T.js} +2 -2
- package/dist/cli/chunks/{structural-health-3LPG6MQN.js → structural-health-NF3YY7U5.js} +2 -2
- package/dist/cli/chunks/{sync-4IMMQEPT.js → sync-UVXA6CT2.js} +2 -2
- package/dist/cli/chunks/{sync-JFJEJBVK.js → sync-VBD5Y3E2.js} +2 -2
- package/dist/cli/chunks/{task-handler-IED3K6E4.js → task-handler-24S3WFVJ.js} +13 -7
- package/dist/cli/chunks/task-handlers-GUYW2EPJ.js +9 -0
- package/dist/cli/chunks/{test-GPKT3CKZ.js → test-XFSGQELD.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-Z42XXZP6.js → test-scheduling-VYUQ4CDE.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-HMM3AHXM.js → token-bootstrap-EDK6FNQ3.js} +2 -2
- package/dist/cli/chunks/{token-usage-6Y2ERYIY.js → token-usage-VLQ6WO2L.js} +2 -2
- package/dist/cli/chunks/{transformers-MB63T2XO.js → transformers-TOFMWWNM.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-56GDQCMR.js → tree-sitter-wasm-parser-MI3NZKUD.js} +2 -2
- package/dist/cli/chunks/{types-J4J6QV3I.js → types-JTWLBAZJ.js} +2 -2
- package/dist/cli/chunks/unified-memory-6JWHV6EF.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-4UANU6NU.js +2 -0
- package/dist/cli/chunks/unified-persistence-KGGNA46H.js +2 -0
- package/dist/cli/chunks/{upgrade-U4XU7LFM.js → upgrade-4ABM72T4.js} +2 -2
- package/dist/cli/chunks/{validate-B57HA4YK.js → validate-UDJCWKXI.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-UPPA4M6T.js → validate-swarm-TODOUWNN.js} +2 -2
- package/dist/cli/chunks/visual-security-6VZNQLH7.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-GDZMUKOZ.js → web-tree-sitter-WBMAJPM5.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-VJRWCHXP.js → windsurf-installer-BTT53TUL.js} +2 -2
- package/dist/cli/chunks/witness-chain-AKKHWEWU.js +2 -0
- package/dist/cli/chunks/{witness-chain-LFASSMZK.js → witness-chain-TATPXQRK.js} +2 -2
- package/dist/cli/chunks/{witness-chain-repair-TPHN4DXN.js → witness-chain-repair-2HGJGE7O.js} +2 -2
- package/dist/cli/chunks/{witness-chain-verifier-Z23FVABW.js → witness-chain-verifier-FRY3LMGH.js} +2 -2
- package/dist/cli/chunks/{witness-key-manager-745MJ7WO.js → witness-key-manager-X7QHQQWL.js} +2 -2
- package/dist/cli/chunks/{workflow-T245QNQM.js → workflow-QMZPAWQW.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-4GAW7HNZ.js +2 -0
- package/dist/cli/chunks/{wrappers-WCAYIQUX.js → wrappers-ZD5NBHYI.js} +2 -2
- package/dist/cli/commands/code.js +8 -0
- package/dist/cli/commands/daemon.js +8 -0
- package/dist/cli/commands/fleet.js +14 -9
- package/dist/cli/handlers/task-handler.js +21 -1
- package/dist/coordination/handlers/code-intelligence-handlers.js +14 -2
- package/dist/coordination/handlers/coverage-collection.js +9 -10
- package/dist/coordination/handlers/coverage-handlers.js +21 -3
- package/dist/coordination/handlers/coverage-runner.d.ts +2 -1
- package/dist/coordination/handlers/coverage-runner.js +9 -2
- package/dist/coordination/handlers/coverage-target.d.ts +13 -3
- package/dist/coordination/handlers/coverage-target.js +224 -7
- package/dist/coordination/handlers/handler-types.d.ts +2 -0
- package/dist/coordination/handlers/test-execution-handlers.js +32 -5
- package/dist/coordination/index.d.ts +2 -2
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/protocols/learning-consolidation-archive.d.ts +39 -0
- package/dist/coordination/protocols/learning-consolidation-archive.js +57 -0
- package/dist/coordination/protocols/learning-consolidation.d.ts +38 -3
- package/dist/coordination/protocols/learning-consolidation.js +128 -50
- package/dist/coordination/queen-coordinator.d.ts +12 -1
- package/dist/coordination/queen-coordinator.js +24 -1
- package/dist/coordination/queen-event-handlers.js +2 -1
- package/dist/coordination/queen-lifecycle.js +9 -0
- package/dist/coordination/queen-task-management.js +113 -40
- package/dist/coordination/queen-types.d.ts +10 -0
- package/dist/coordination/queen-types.js +8 -0
- package/dist/coordination/task-dag/dag-algorithms.d.ts +33 -0
- package/dist/coordination/task-dag/dag-algorithms.js +162 -0
- package/dist/coordination/task-dag/dag-obligations.d.ts +21 -0
- package/dist/coordination/task-dag/dag-obligations.js +83 -0
- package/dist/coordination/task-dag/dag.d.ts +69 -19
- package/dist/coordination/task-dag/dag.js +215 -269
- package/dist/coordination/task-dag/index.d.ts +12 -4
- package/dist/coordination/task-dag/index.js +11 -3
- package/dist/coordination/task-dag/prerequisite-ledger.d.ts +84 -0
- package/dist/coordination/task-dag/prerequisite-ledger.js +252 -0
- package/dist/coordination/task-dag/scheduler.d.ts +19 -9
- package/dist/coordination/task-dag/scheduler.js +36 -12
- package/dist/coordination/task-dag/types.d.ts +160 -1
- package/dist/coordination/task-dag/types.js +2 -1
- package/dist/coordination/task-executability.d.ts +18 -0
- package/dist/coordination/task-executability.js +31 -0
- package/dist/coordination/task-executor.d.ts +1 -0
- package/dist/coordination/task-executor.js +5 -0
- package/dist/domains/code-intelligence/coordinator.js +35 -9
- package/dist/domains/code-intelligence/index-path-guard.d.ts +49 -0
- package/dist/domains/code-intelligence/index-path-guard.js +125 -0
- package/dist/domains/code-intelligence/interfaces.d.ts +12 -0
- package/dist/domains/code-intelligence/services/knowledge-graph.d.ts +6 -0
- package/dist/domains/code-intelligence/services/knowledge-graph.js +42 -5
- package/dist/domains/contract-testing/coordinator.js +3 -1
- package/dist/domains/defect-intelligence/services/defect-predictor.js +4 -2
- package/dist/domains/learning-optimization/active-patterns.d.ts +12 -12
- package/dist/domains/learning-optimization/active-patterns.js +15 -12
- package/dist/domains/learning-optimization/coordinator-helpers.js +2 -3
- package/dist/domains/learning-optimization/coordinator.d.ts +0 -3
- package/dist/domains/learning-optimization/coordinator.js +43 -102
- package/dist/domains/learning-optimization/index.d.ts +1 -1
- package/dist/domains/learning-optimization/interfaces.d.ts +56 -4
- package/dist/domains/learning-optimization/plugin.js +11 -1
- package/dist/domains/learning-optimization/reward-source.d.ts +37 -0
- package/dist/domains/learning-optimization/reward-source.js +58 -0
- package/dist/domains/learning-optimization/services/learning-coordinator.d.ts +4 -4
- package/dist/domains/learning-optimization/services/learning-coordinator.js +59 -23
- package/dist/domains/learning-optimization/services/metrics-optimizer.d.ts +14 -4
- package/dist/domains/learning-optimization/services/metrics-optimizer.js +129 -63
- package/dist/domains/learning-optimization/services/transfer-specialist.js +25 -15
- package/dist/domains/test-execution/interfaces.d.ts +16 -0
- package/dist/domains/test-execution/services/runner-test-cases.d.ts +21 -0
- package/dist/domains/test-execution/services/runner-test-cases.js +69 -0
- package/dist/domains/test-execution/services/test-executor.d.ts +5 -0
- package/dist/domains/test-execution/services/test-executor.js +24 -2
- package/dist/init/fleet-integration.js +2 -0
- package/dist/init/init-wizard-steps.js +2 -0
- package/dist/init/phases/06-code-intelligence.js +2 -0
- package/dist/init/phases/10-workers.js +2 -1
- package/dist/kernel/anti-drift-middleware.d.ts +44 -5
- package/dist/kernel/anti-drift-middleware.js +147 -11
- package/dist/kernel/interfaces.d.ts +5 -0
- package/dist/learning/dream/dream-insights-pruner.d.ts +18 -4
- package/dist/learning/dream/dream-insights-pruner.js +99 -11
- package/dist/learning/skill-validation-learner.d.ts +2 -0
- package/dist/learning/skill-validation-learner.js +29 -21
- package/dist/mcp/background-workers.js +8 -2
- package/dist/mcp/bundle.js +507 -483
- package/dist/mcp/handlers/domain-handler-configs.d.ts +14 -0
- package/dist/mcp/handlers/domain-handler-configs.js +68 -30
- package/dist/mcp/handlers/handler-factory.js +1 -0
- package/dist/mcp/handlers/task-handlers.js +37 -1
- package/dist/mcp/metrics/metrics-collector.d.ts +11 -9
- package/dist/mcp/metrics/metrics-collector.js +13 -26
- package/dist/mcp/protocol-server.js +8 -3
- package/dist/mcp/tools/learning-optimization/optimize.d.ts +34 -3
- package/dist/mcp/tools/learning-optimization/optimize.js +106 -70
- package/dist/memory/crdt/lww-register.js +11 -1
- package/dist/routing/calibration/ema-calibrator.js +3 -1
- package/dist/shared/base-domain-plugin.d.ts +4 -0
- package/dist/shared/base-domain-plugin.js +6 -0
- package/dist/shared/llm/cache.js +4 -1
- package/dist/shared/security/compliance-patterns.js +3 -1
- package/dist/shared/test-runner-process.d.ts +26 -0
- package/dist/shared/test-runner-process.js +91 -0
- package/dist/shared/types/index.d.ts +9 -0
- package/dist/shared/types/index.js +13 -0
- package/dist/shared/utils/namespaced-search.d.ts +42 -0
- package/dist/shared/utils/namespaced-search.js +53 -0
- package/dist/strange-loop/infra-healing/infra-action-executor.js +7 -3
- package/dist/strange-loop/infra-healing/infra-healing-orchestrator.js +10 -9
- package/dist/workers/daemon.d.ts +2 -0
- package/dist/workers/daemon.js +10 -5
- package/dist/workers/namespaced-keys.d.ts +4 -7
- package/dist/workers/namespaced-keys.js +4 -15
- package/dist/workers/quality-daemon/ci-monitor.js +9 -5
- package/dist/workers/worker-env.d.ts +16 -8
- package/dist/workers/worker-env.js +25 -12
- package/dist/workers/worker-manager.js +4 -0
- package/dist/workers/workers/learning-consolidation.d.ts +1 -1
- package/dist/workers/workers/learning-consolidation.js +11 -8
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-FC4EY447.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-AUAL6UBL.js +0 -2
- package/dist/cli/chunks/base-2XML4WH7.js +0 -2
- package/dist/cli/chunks/browser-workflow-2IFEUAAK.js +0 -2
- package/dist/cli/chunks/chunk-6CKTLVYV.js +0 -2
- package/dist/cli/chunks/chunk-I4U7YCXG.js +0 -180
- package/dist/cli/chunks/chunk-LZWBUVCK.js +0 -5
- package/dist/cli/chunks/chunk-X6VYQVUM.js +0 -2
- package/dist/cli/chunks/chunk-YTYS2XSY.js +0 -2
- package/dist/cli/chunks/chunk-Z3LDUPLQ.js +0 -6
- package/dist/cli/chunks/chunk-ZWMFKZEQ.js +0 -3
- package/dist/cli/chunks/client-RFUSQRUZ.js +0 -2
- package/dist/cli/chunks/core-handlers-ZC7QB432.js +0 -2
- package/dist/cli/chunks/cross-domain-router-GRBK7YFZ.js +0 -2
- package/dist/cli/chunks/daemon-JER6HE2J.js +0 -12
- package/dist/cli/chunks/dream-VALD726W.js +0 -2
- package/dist/cli/chunks/file-discovery-VL73ASNI.js +0 -2
- package/dist/cli/chunks/fleet-GJ66QFXK.js +0 -43
- package/dist/cli/chunks/heartbeat-scheduler-FSX7A3ZA.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-UX2QT6RL.js +0 -2
- package/dist/cli/chunks/hnsw-index-WRDDAMXH.js +0 -2
- package/dist/cli/chunks/hybrid-backend-O67NGIB5.js +0 -2
- package/dist/cli/chunks/impact-analyzer-6VXWWYWM.js +0 -2
- package/dist/cli/chunks/init-wizard-VH34J4TL.js +0 -2
- package/dist/cli/chunks/kernel-KJD24NO7.js +0 -2
- package/dist/cli/chunks/knowledge-graph-343O2HEZ.js +0 -2
- package/dist/cli/chunks/llm-router-service-2M4BT2AO.js +0 -2
- package/dist/cli/chunks/load-test-OTQ2JQ5F.js +0 -2
- package/dist/cli/chunks/memory-backend-4QSNRRV6.js +0 -2
- package/dist/cli/chunks/memory-handlers-YFFYRSM6.js +0 -2
- package/dist/cli/chunks/pattern-null-store-5USH5MNR.js +0 -2
- package/dist/cli/chunks/project-root-SRTA6TBL.js +0 -2
- package/dist/cli/chunks/protocol-executor-4WYPCNBS.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-I4D6SFS4.js +0 -2
- package/dist/cli/chunks/queen-coordinator-24UMTZTE.js +0 -2
- package/dist/cli/chunks/router-AUD4GATI.js +0 -2
- package/dist/cli/chunks/routing-feedback-2FE6SIKQ.js +0 -2
- package/dist/cli/chunks/rvf-dual-writer-P5LEUF25.js +0 -2
- package/dist/cli/chunks/rvf-migration-adapter-ZCYD5YJS.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-QGV6BW2W.js +0 -2
- package/dist/cli/chunks/safe-db-Q6JUKG2A.js +0 -2
- package/dist/cli/chunks/schedule-44OSMGE5.js +0 -2
- package/dist/cli/chunks/scheduler-V3HO2QQT.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-N5T7DWMR.js +0 -2
- package/dist/cli/chunks/task-handlers-FH6DNTHW.js +0 -9
- package/dist/cli/chunks/unified-memory-RQ3Q4CU3.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-ZOP5FEYX.js +0 -2
- package/dist/cli/chunks/unified-persistence-72OCJJKK.js +0 -2
- package/dist/cli/chunks/visual-security-7F5UV23J.js +0 -2
- package/dist/cli/chunks/witness-chain-KZ57QUFE.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-ZNWEUYBN.js +0 -2
|
@@ -17,6 +17,7 @@ import { secureRandom, secureRandomInt } from '../../../shared/utils/crypto-rand
|
|
|
17
17
|
import { writeTestRunEvidence } from '../../quality-assessment/quality-evidence.js';
|
|
18
18
|
import { istanbulLineHits } from '../../../coordination/handlers/handler-utils.js';
|
|
19
19
|
import { fileCoverageKey } from '../../coverage-analysis/collected-metrics.js';
|
|
20
|
+
import { mergeTestCases, testCasesFromRunnerReport } from './runner-test-cases.js';
|
|
20
21
|
import { getTestRunnerExecutionError, TestRunnerExecutionError } from '../../../shared/test-runner-verdict.js';
|
|
21
22
|
import { createVitestJsonReport } from '../../../shared/vitest-json-report.js';
|
|
22
23
|
import { jestExactPathPattern, runnerFilePath } from '../../../shared/test-runner-args.js';
|
|
@@ -76,6 +77,7 @@ export class TestExecutorService {
|
|
|
76
77
|
skipped: results.skipped,
|
|
77
78
|
duration,
|
|
78
79
|
failedTests: results.failedTests,
|
|
80
|
+
...(results.testCases ? { testCases: results.testCases } : {}),
|
|
79
81
|
coverage: results.coverage,
|
|
80
82
|
fileCoverages: results.fileCoverages,
|
|
81
83
|
};
|
|
@@ -131,6 +133,7 @@ export class TestExecutorService {
|
|
|
131
133
|
skipped: aggregated.skipped,
|
|
132
134
|
duration,
|
|
133
135
|
failedTests: aggregated.failedTests,
|
|
136
|
+
...(aggregated.testCases ? { testCases: aggregated.testCases } : {}),
|
|
134
137
|
coverage: aggregated.coverage,
|
|
135
138
|
fileCoverages: aggregated.fileCoverages,
|
|
136
139
|
};
|
|
@@ -331,12 +334,14 @@ Provide:
|
|
|
331
334
|
? this.mergeSequentialCoverage(executionResults)
|
|
332
335
|
: undefined;
|
|
333
336
|
const separateRuns = testFiles.length > 1 && !this.config.simulateForTesting;
|
|
337
|
+
const testCases = mergeTestCases(executionResults);
|
|
334
338
|
return {
|
|
335
339
|
total: passed + failed + skipped,
|
|
336
340
|
passed,
|
|
337
341
|
failed,
|
|
338
342
|
skipped,
|
|
339
343
|
failedTests,
|
|
344
|
+
...(testCases ? { testCases } : {}),
|
|
340
345
|
coverage: separateRuns ? merged?.summary : this.aggregateCoverage(coverages),
|
|
341
346
|
fileCoverages: separateRuns ? merged?.perFile
|
|
342
347
|
: allFileCoverages.length > 0 ? allFileCoverages : undefined,
|
|
@@ -502,7 +507,7 @@ Provide:
|
|
|
502
507
|
return;
|
|
503
508
|
}
|
|
504
509
|
if (reportText === undefined) {
|
|
505
|
-
finish(err(new
|
|
510
|
+
finish(err(new TestRunnerExecutionError(`The current Vitest JSON report is missing for ${fileLabel}.`)));
|
|
506
511
|
return;
|
|
507
512
|
}
|
|
508
513
|
const parseResult = this.parseTestOutput(reportText, stderr, fileLabel, framework, code);
|
|
@@ -702,12 +707,14 @@ Provide:
|
|
|
702
707
|
if (executionError)
|
|
703
708
|
return err(executionError);
|
|
704
709
|
const covData = this.extractCoverageFromJson(json);
|
|
710
|
+
const testCases = this.reportedTestCases(json, file, passed + failed + skipped);
|
|
705
711
|
return ok({
|
|
706
712
|
total: passed + failed + skipped,
|
|
707
713
|
passed,
|
|
708
714
|
failed,
|
|
709
715
|
skipped,
|
|
710
716
|
failedTests,
|
|
717
|
+
...(testCases ? { testCases } : {}),
|
|
711
718
|
coverage: covData.summary,
|
|
712
719
|
fileCoverages: covData.perFile.length > 0 ? covData.perFile : undefined,
|
|
713
720
|
rawCoverageMap: isRecord(json.coverageMap) && !json.coverageMap.total ? json.coverageMap : undefined,
|
|
@@ -721,6 +728,14 @@ Provide:
|
|
|
721
728
|
// Example: "Tests 5 passed | 1 failed | 1 skipped (7)"
|
|
722
729
|
return this.parseTestSummaryLine(stdout, stderr, file, exitCode);
|
|
723
730
|
}
|
|
731
|
+
/**
|
|
732
|
+
* #1110: the report's per-test entries, kept only when they account for
|
|
733
|
+
* every counted test; a partial list would misstate the run.
|
|
734
|
+
*/
|
|
735
|
+
reportedTestCases(json, file, total) {
|
|
736
|
+
const cases = testCasesFromRunnerReport(json, file);
|
|
737
|
+
return cases && cases.length === total ? cases : undefined;
|
|
738
|
+
}
|
|
724
739
|
/**
|
|
725
740
|
* Parse jest JSON output
|
|
726
741
|
*/
|
|
@@ -757,12 +772,14 @@ Provide:
|
|
|
757
772
|
if (executionError)
|
|
758
773
|
return err(executionError);
|
|
759
774
|
const covData = this.extractCoverageFromJson(json);
|
|
775
|
+
const testCases = this.reportedTestCases(json, file, passed + failed + skipped);
|
|
760
776
|
return ok({
|
|
761
777
|
total: passed + failed + skipped,
|
|
762
778
|
passed,
|
|
763
779
|
failed,
|
|
764
780
|
skipped,
|
|
765
781
|
failedTests,
|
|
782
|
+
...(testCases ? { testCases } : {}),
|
|
766
783
|
coverage: covData.summary,
|
|
767
784
|
fileCoverages: covData.perFile.length > 0 ? covData.perFile : undefined,
|
|
768
785
|
rawCoverageMap: isRecord(json.coverageMap) && !json.coverageMap.total ? json.coverageMap : undefined,
|
|
@@ -991,6 +1008,9 @@ Provide:
|
|
|
991
1008
|
aggregated.skipped += result.skipped;
|
|
992
1009
|
aggregated.failedTests.push(...result.failedTests);
|
|
993
1010
|
}
|
|
1011
|
+
const testCases = mergeTestCases(results);
|
|
1012
|
+
if (testCases)
|
|
1013
|
+
aggregated.testCases = testCases;
|
|
994
1014
|
aggregated.coverage = this.aggregateCoverage(results.map(r => r.coverage).filter((c) => c !== undefined));
|
|
995
1015
|
// Collect per-file coverages from all worker results
|
|
996
1016
|
const allFileCoverages = results.flatMap(r => r.fileCoverages ?? []);
|
|
@@ -1182,7 +1202,9 @@ Provide:
|
|
|
1182
1202
|
// #1028 N1: the record names the test files it ran, so per-test duration
|
|
1183
1203
|
// is compared only between runs of the same test set.
|
|
1184
1204
|
const files = testFiles && testFiles.length > 0 ? [...new Set(testFiles)].sort() : undefined;
|
|
1185
|
-
|
|
1205
|
+
// Per-test entries are returned to the caller, not persisted with the run record.
|
|
1206
|
+
const { testCases: _testCases, ...record } = result;
|
|
1207
|
+
await this.memory.set(`test-run:${runId}`, files ? { ...record, testFiles: files } : record, {
|
|
1186
1208
|
namespace: 'test-execution',
|
|
1187
1209
|
persist: true,
|
|
1188
1210
|
});
|
|
@@ -120,6 +120,8 @@ export class FleetInitEnhancer {
|
|
|
120
120
|
const kgService = new KnowledgeGraphService(memory, {
|
|
121
121
|
namespace: 'code-intelligence:kg',
|
|
122
122
|
enableVectorEmbeddings: true,
|
|
123
|
+
// #1096: indexing is confined to the project being initialized.
|
|
124
|
+
projectRoot: this.projectRoot,
|
|
123
125
|
});
|
|
124
126
|
// Find all source files
|
|
125
127
|
const { glob } = await import('tinyglobby');
|
|
@@ -199,6 +199,8 @@ export async function runCodeIntelligenceScan(projectPath) {
|
|
|
199
199
|
const kgService = new KnowledgeGraphService(memory, {
|
|
200
200
|
namespace: 'code-intelligence:kg',
|
|
201
201
|
enableVectorEmbeddings: true,
|
|
202
|
+
// #1096: indexing is confined to the project being initialized.
|
|
203
|
+
projectRoot: projectPath,
|
|
202
204
|
});
|
|
203
205
|
const { glob } = await import('tinyglobby');
|
|
204
206
|
const files = await glob([
|
|
@@ -223,6 +223,8 @@ export class CodeIntelligencePhase extends BasePhase {
|
|
|
223
223
|
const kgService = new KnowledgeGraphService(memory, {
|
|
224
224
|
namespace: 'code-intelligence:kg',
|
|
225
225
|
enableVectorEmbeddings: true,
|
|
226
|
+
// #1096: indexing is confined to the project being initialized.
|
|
227
|
+
projectRoot,
|
|
226
228
|
});
|
|
227
229
|
try {
|
|
228
230
|
let filesToIndex;
|
|
@@ -204,7 +204,8 @@ if (binCandidate && binCandidate.endsWith('bundle.js')) {
|
|
|
204
204
|
|
|
205
205
|
appendFileSync(logFile, '[' + ts + '] Using: ' + mcpCmd + ' ' + mcpArgs.join(' ') + '\\n');
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
// #1066: keep a user's AQE_WORKERS_ENABLED (for example false) instead of forcing it on.
|
|
208
|
+
const env = { ...process.env, AQE_STORAGE_PATH: '.agentic-qe', AQE_LEARNING_ENABLED: 'true', AQE_WORKERS_ENABLED: process.env.AQE_WORKERS_ENABLED ?? 'true', AQE_HTTP_PORT: '0' };
|
|
208
209
|
const child = spawn(mcpCmd, mcpArgs, { cwd: projectRoot, env, detached: true, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
209
210
|
child.stdout.on('data', d => appendFileSync(logFile, d));
|
|
210
211
|
child.stderr.on('data', d => appendFileSync(logFile, d));
|
|
@@ -110,7 +110,11 @@ export interface AntiDriftStats {
|
|
|
110
110
|
readonly totalChecked: number;
|
|
111
111
|
readonly driftCount: number;
|
|
112
112
|
readonly averageSimilarity: number;
|
|
113
|
+
/** Events delivered without verification because the embedder failed. */
|
|
114
|
+
readonly unverifiedCount: number;
|
|
113
115
|
}
|
|
116
|
+
/** True when the event type is a lifecycle / control-plane event that must never be dropped. */
|
|
117
|
+
export declare function isControlPlaneEvent(eventType: string): boolean;
|
|
114
118
|
/**
|
|
115
119
|
* Middleware enforcing semantic stability of domain events across agent-hop
|
|
116
120
|
* boundaries. `onEmit` computes an embedding and attaches a SemanticFingerprint;
|
|
@@ -124,6 +128,15 @@ export declare class SemanticAntiDriftMiddleware implements EventMiddleware {
|
|
|
124
128
|
private totalChecked;
|
|
125
129
|
private driftCount;
|
|
126
130
|
private similaritySum;
|
|
131
|
+
private unverifiedCount;
|
|
132
|
+
/** Suppressed drift warnings of keys evicted from the rate limiter, reported on the next warning. */
|
|
133
|
+
private evictedSuppressedWarnings;
|
|
134
|
+
/** Rate limit for drift warnings, keyed by event type and source. */
|
|
135
|
+
private readonly driftWarnings;
|
|
136
|
+
/** Payload text each fingerprint was computed from (same-process events only). */
|
|
137
|
+
private readonly emittedPayloadText;
|
|
138
|
+
private embeddingWarningAt;
|
|
139
|
+
private suppressedEmbeddingWarnings;
|
|
127
140
|
constructor(config?: Partial<AntiDriftConfig>);
|
|
128
141
|
/**
|
|
129
142
|
* Compute the semantic embedding of the event payload and attach a
|
|
@@ -134,11 +147,13 @@ export declare class SemanticAntiDriftMiddleware implements EventMiddleware {
|
|
|
134
147
|
onEmit(event: DomainEvent): Promise<DomainEvent>;
|
|
135
148
|
/**
|
|
136
149
|
* Re-embed the payload and compare with the original fingerprint.
|
|
137
|
-
* If drift exceeds threshold
|
|
138
|
-
*
|
|
139
|
-
*
|
|
150
|
+
* If drift exceeds threshold a warning is logged, a SemanticDriftDetectedEvent
|
|
151
|
+
* is emitted, and a data event is dropped (returns null). Control-plane
|
|
152
|
+
* events (see {@link isControlPlaneEvent}) are delivered anyway: dropping a
|
|
153
|
+
* lifecycle event leaks Queen slots (#1070, #1077). Events without a
|
|
154
|
+
* fingerprint pass through unchanged.
|
|
140
155
|
* @param event - The incoming domain event.
|
|
141
|
-
* @returns The event with incremented hopCount, or null if drifted.
|
|
156
|
+
* @returns The event with incremented hopCount, or null if a drifted data event.
|
|
142
157
|
*/
|
|
143
158
|
onReceive(event: DomainEvent): Promise<DomainEvent | null>;
|
|
144
159
|
/** Returns recent drift check results (bounded by maxHistorySize). */
|
|
@@ -150,10 +165,34 @@ export declare class SemanticAntiDriftMiddleware implements EventMiddleware {
|
|
|
150
165
|
* @returns ok(void) if valid, err(Error) otherwise.
|
|
151
166
|
*/
|
|
152
167
|
validateConfig(): Result<void, Error>;
|
|
153
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Compute embedding, preferring transformer pipeline with hash fallback.
|
|
170
|
+
* The transformer returns a zero vector for text it treats as non-semantic
|
|
171
|
+
* (JSON with a "metrics" key, raw arrays, mostly numeric strings). A zero
|
|
172
|
+
* vector has no direction, so the cosine check read it as total drift and
|
|
173
|
+
* silently dropped the event, e.g. every quality_assess TaskCompleted (#1070).
|
|
174
|
+
* Such text gets a hash embedding of the same length instead, which still
|
|
175
|
+
* detects a mutated payload.
|
|
176
|
+
*/
|
|
154
177
|
private embed;
|
|
178
|
+
/**
|
|
179
|
+
* Fingerprinting is advisory infrastructure, not an event-delivery dependency.
|
|
180
|
+
* A transformer can fail after its cached availability probe succeeded. Do not
|
|
181
|
+
* switch vector spaces mid-event: an old semantic vector and a new hash vector
|
|
182
|
+
* cannot be compared. Deliver this event without claiming a completed check;
|
|
183
|
+
* later events still try the transformer normally.
|
|
184
|
+
*/
|
|
185
|
+
private embedForEvent;
|
|
155
186
|
/** Map event type to threshold category via substring matching. */
|
|
156
187
|
private resolveCategory;
|
|
188
|
+
/**
|
|
189
|
+
* Log a drift detection to stderr (via the structured logger). Never logs
|
|
190
|
+
* payload contents. Rate limited per event type and source so a flood of
|
|
191
|
+
* drifted events produces one line per window plus a suppressed count.
|
|
192
|
+
*/
|
|
193
|
+
private warnDrift;
|
|
194
|
+
/** Drop the least recently warned key, carrying its suppressed count forward. */
|
|
195
|
+
private evictOldestDriftWarning;
|
|
157
196
|
/** Fire a SemanticDriftDetectedEvent via the configured callback. */
|
|
158
197
|
private emitDriftEvent;
|
|
159
198
|
}
|
|
@@ -166,6 +166,26 @@ const DEFAULT_CONFIG = {
|
|
|
166
166
|
maxHistorySize: 200,
|
|
167
167
|
fallbackDimension: 64,
|
|
168
168
|
};
|
|
169
|
+
/**
|
|
170
|
+
* Control-plane (task/agent/workflow lifecycle) events, matched on the last
|
|
171
|
+
* dot-separated segment of the event type:
|
|
172
|
+
* - every `Queen*` event (QueenCoordinator prefixes all of its events),
|
|
173
|
+
* - `Task*`, `Agent*`, `Workflow*`, `Step*`, `Protocol*` and `Action*` events
|
|
174
|
+
* (TaskCompleted, TaskFailed, workflow.StepCompleted, coordination.ProtocolFailed, ...).
|
|
175
|
+
* The Queen, the workflow orchestrator and the protocol executor count slots
|
|
176
|
+
* and advance state machines on these events, so losing one leaks a slot or
|
|
177
|
+
* hangs a run (#1070, #1077).
|
|
178
|
+
*/
|
|
179
|
+
const CONTROL_PLANE_EVENT_RE = /^(?:Queen[A-Z]|(?:Task|Agent|Workflow|Step|Protocol|Action)[A-Z])/;
|
|
180
|
+
/** True when the event type is a lifecycle / control-plane event that must never be dropped. */
|
|
181
|
+
export function isControlPlaneEvent(eventType) {
|
|
182
|
+
const name = eventType.slice(eventType.lastIndexOf('.') + 1);
|
|
183
|
+
return CONTROL_PLANE_EVENT_RE.test(name);
|
|
184
|
+
}
|
|
185
|
+
/** One warning per event type and source per window; later drops in the window are counted. */
|
|
186
|
+
const DRIFT_WARN_WINDOW_MS = 60_000;
|
|
187
|
+
/** Bound on distinct (type, source) keys tracked for warning rate limiting. */
|
|
188
|
+
const DRIFT_WARN_MAX_KEYS = 256;
|
|
169
189
|
/**
|
|
170
190
|
* Deterministic pseudo-embedding via FNV-1a-inspired hash spread.
|
|
171
191
|
* Not semantically meaningful but sufficient for detecting payload mutations.
|
|
@@ -241,6 +261,15 @@ export class SemanticAntiDriftMiddleware {
|
|
|
241
261
|
totalChecked = 0;
|
|
242
262
|
driftCount = 0;
|
|
243
263
|
similaritySum = 0;
|
|
264
|
+
unverifiedCount = 0;
|
|
265
|
+
/** Suppressed drift warnings of keys evicted from the rate limiter, reported on the next warning. */
|
|
266
|
+
evictedSuppressedWarnings = 0;
|
|
267
|
+
/** Rate limit for drift warnings, keyed by event type and source. */
|
|
268
|
+
driftWarnings = new Map();
|
|
269
|
+
/** Payload text each fingerprint was computed from (same-process events only). */
|
|
270
|
+
emittedPayloadText = new WeakMap();
|
|
271
|
+
embeddingWarningAt = -Infinity;
|
|
272
|
+
suppressedEmbeddingWarnings = 0;
|
|
244
273
|
constructor(config) {
|
|
245
274
|
this.config = {
|
|
246
275
|
...DEFAULT_CONFIG,
|
|
@@ -256,7 +285,9 @@ export class SemanticAntiDriftMiddleware {
|
|
|
256
285
|
*/
|
|
257
286
|
async onEmit(event) {
|
|
258
287
|
const payloadText = JSON.stringify(event.payload);
|
|
259
|
-
const embedding = await this.
|
|
288
|
+
const embedding = await this.embedForEvent(payloadText, event, 'emit');
|
|
289
|
+
if (embedding === null)
|
|
290
|
+
return event;
|
|
260
291
|
const category = this.resolveCategory(event.type);
|
|
261
292
|
const threshold = this.config.thresholds[category] ?? this.config.thresholds['default'];
|
|
262
293
|
const fingerprint = {
|
|
@@ -266,23 +297,38 @@ export class SemanticAntiDriftMiddleware {
|
|
|
266
297
|
hopCount: 0,
|
|
267
298
|
emittedAt: Date.now(),
|
|
268
299
|
};
|
|
300
|
+
this.emittedPayloadText.set(fingerprint, payloadText);
|
|
269
301
|
return { ...event, semanticFingerprint: fingerprint };
|
|
270
302
|
}
|
|
271
303
|
/**
|
|
272
304
|
* Re-embed the payload and compare with the original fingerprint.
|
|
273
|
-
* If drift exceeds threshold
|
|
274
|
-
*
|
|
275
|
-
*
|
|
305
|
+
* If drift exceeds threshold a warning is logged, a SemanticDriftDetectedEvent
|
|
306
|
+
* is emitted, and a data event is dropped (returns null). Control-plane
|
|
307
|
+
* events (see {@link isControlPlaneEvent}) are delivered anyway: dropping a
|
|
308
|
+
* lifecycle event leaks Queen slots (#1070, #1077). Events without a
|
|
309
|
+
* fingerprint pass through unchanged.
|
|
276
310
|
* @param event - The incoming domain event.
|
|
277
|
-
* @returns The event with incremented hopCount, or null if drifted.
|
|
311
|
+
* @returns The event with incremented hopCount, or null if a drifted data event.
|
|
278
312
|
*/
|
|
279
313
|
async onReceive(event) {
|
|
280
314
|
const fp = event.semanticFingerprint;
|
|
281
315
|
if (!fp)
|
|
282
316
|
return event;
|
|
283
317
|
const payloadText = JSON.stringify(event.payload);
|
|
284
|
-
|
|
285
|
-
|
|
318
|
+
// A payload whose text is byte-identical to the text this instance
|
|
319
|
+
// fingerprinted at emit time has similarity 1 by construction; skip the
|
|
320
|
+
// second model inference (#1077).
|
|
321
|
+
let similarity = 1;
|
|
322
|
+
const emittedText = this.emittedPayloadText.get(fp);
|
|
323
|
+
// Release the cached text now: bus history keeps the emitted fingerprint
|
|
324
|
+
// alive for up to 10k events.
|
|
325
|
+
this.emittedPayloadText.delete(fp);
|
|
326
|
+
if (emittedText !== payloadText) {
|
|
327
|
+
const currentEmbedding = await this.embedForEvent(payloadText, event, 'receive');
|
|
328
|
+
if (currentEmbedding === null)
|
|
329
|
+
return event;
|
|
330
|
+
similarity = cosineSimilarity(currentEmbedding, fp.embedding);
|
|
331
|
+
}
|
|
286
332
|
const distance = 1 - similarity;
|
|
287
333
|
const drifted = distance > fp.driftThreshold;
|
|
288
334
|
this.totalChecked++;
|
|
@@ -300,8 +346,11 @@ export class SemanticAntiDriftMiddleware {
|
|
|
300
346
|
this.history.shift();
|
|
301
347
|
if (drifted) {
|
|
302
348
|
this.driftCount++;
|
|
349
|
+
const deliver = isControlPlaneEvent(event.type);
|
|
350
|
+
this.warnDrift(event, checkResult, deliver);
|
|
303
351
|
await this.emitDriftEvent(event, checkResult);
|
|
304
|
-
|
|
352
|
+
if (!deliver)
|
|
353
|
+
return null;
|
|
305
354
|
}
|
|
306
355
|
const updatedFingerprint = { ...fp, hopCount: fp.hopCount + 1 };
|
|
307
356
|
return { ...event, semanticFingerprint: updatedFingerprint };
|
|
@@ -316,6 +365,7 @@ export class SemanticAntiDriftMiddleware {
|
|
|
316
365
|
totalChecked: this.totalChecked,
|
|
317
366
|
driftCount: this.driftCount,
|
|
318
367
|
averageSimilarity: this.totalChecked > 0 ? this.similaritySum / this.totalChecked : 0,
|
|
368
|
+
unverifiedCount: this.unverifiedCount,
|
|
319
369
|
};
|
|
320
370
|
}
|
|
321
371
|
/**
|
|
@@ -334,13 +384,57 @@ export class SemanticAntiDriftMiddleware {
|
|
|
334
384
|
return err(new Error('fallbackDimension must be positive'));
|
|
335
385
|
return ok(undefined);
|
|
336
386
|
}
|
|
337
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* Compute embedding, preferring transformer pipeline with hash fallback.
|
|
389
|
+
* The transformer returns a zero vector for text it treats as non-semantic
|
|
390
|
+
* (JSON with a "metrics" key, raw arrays, mostly numeric strings). A zero
|
|
391
|
+
* vector has no direction, so the cosine check read it as total drift and
|
|
392
|
+
* silently dropped the event, e.g. every quality_assess TaskCompleted (#1070).
|
|
393
|
+
* Such text gets a hash embedding of the same length instead, which still
|
|
394
|
+
* detects a mutated payload.
|
|
395
|
+
*/
|
|
338
396
|
async embed(text) {
|
|
339
397
|
const hasTransformer = await probeTransformer();
|
|
340
|
-
if (hasTransformer && _computeRealEmbedding)
|
|
341
|
-
|
|
398
|
+
if (hasTransformer && _computeRealEmbedding) {
|
|
399
|
+
const embedding = await _computeRealEmbedding(text);
|
|
400
|
+
if (embedding.some(v => v !== 0))
|
|
401
|
+
return embedding;
|
|
402
|
+
return hashBasedEmbedding(text, embedding.length || this.config.fallbackDimension);
|
|
403
|
+
}
|
|
342
404
|
return hashBasedEmbedding(text, this.config.fallbackDimension);
|
|
343
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Fingerprinting is advisory infrastructure, not an event-delivery dependency.
|
|
408
|
+
* A transformer can fail after its cached availability probe succeeded. Do not
|
|
409
|
+
* switch vector spaces mid-event: an old semantic vector and a new hash vector
|
|
410
|
+
* cannot be compared. Deliver this event without claiming a completed check;
|
|
411
|
+
* later events still try the transformer normally.
|
|
412
|
+
*/
|
|
413
|
+
async embedForEvent(text, event, stage) {
|
|
414
|
+
try {
|
|
415
|
+
return await this.embed(text);
|
|
416
|
+
}
|
|
417
|
+
catch {
|
|
418
|
+
// Counted even when the warning below is rate limited, so an outage
|
|
419
|
+
// stays visible in getStats().
|
|
420
|
+
this.unverifiedCount++;
|
|
421
|
+
const now = Date.now();
|
|
422
|
+
if (now - this.embeddingWarningAt < DRIFT_WARN_WINDOW_MS) {
|
|
423
|
+
this.suppressedEmbeddingWarnings++;
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
logger.warn('Anti-drift embedding unavailable; event delivered without verification', {
|
|
427
|
+
eventType: event.type, source: event.source, stage,
|
|
428
|
+
suppressedSinceLastWarning: this.suppressedEmbeddingWarnings,
|
|
429
|
+
});
|
|
430
|
+
this.embeddingWarningAt = now;
|
|
431
|
+
this.suppressedEmbeddingWarnings = 0;
|
|
432
|
+
}
|
|
433
|
+
// Never log the payload or provider's error text (it may contain input or
|
|
434
|
+
// credentials), and never count an unavailable check as successful/drifted.
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
344
438
|
/** Map event type to threshold category via substring matching. */
|
|
345
439
|
resolveCategory(eventType) {
|
|
346
440
|
const lower = eventType.toLowerCase();
|
|
@@ -350,6 +444,48 @@ export class SemanticAntiDriftMiddleware {
|
|
|
350
444
|
}
|
|
351
445
|
return 'default';
|
|
352
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Log a drift detection to stderr (via the structured logger). Never logs
|
|
449
|
+
* payload contents. Rate limited per event type and source so a flood of
|
|
450
|
+
* drifted events produces one line per window plus a suppressed count.
|
|
451
|
+
*/
|
|
452
|
+
warnDrift(event, check, delivered) {
|
|
453
|
+
const key = `${event.type}|${String(event.source)}`;
|
|
454
|
+
const now = Date.now();
|
|
455
|
+
const entry = this.driftWarnings.get(key);
|
|
456
|
+
if (entry && now - entry.lastAt < DRIFT_WARN_WINDOW_MS) {
|
|
457
|
+
entry.suppressed++;
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
if (!entry && this.driftWarnings.size >= DRIFT_WARN_MAX_KEYS)
|
|
461
|
+
this.evictOldestDriftWarning();
|
|
462
|
+
const suppressed = entry?.suppressed ?? 0;
|
|
463
|
+
const evictedSuppressed = this.evictedSuppressedWarnings;
|
|
464
|
+
this.evictedSuppressedWarnings = 0;
|
|
465
|
+
// Re-insert so Map order tracks lastAt and the first key is the oldest.
|
|
466
|
+
this.driftWarnings.delete(key);
|
|
467
|
+
this.driftWarnings.set(key, { lastAt: now, suppressed: 0 });
|
|
468
|
+
logger.warn(delivered
|
|
469
|
+
? 'Semantic drift detected on a control-plane event; delivered anyway'
|
|
470
|
+
: 'Semantic drift detected; event dropped', {
|
|
471
|
+
eventType: event.type,
|
|
472
|
+
source: event.source,
|
|
473
|
+
cosineSimilarity: Number(check.cosineSimilarity.toFixed(4)),
|
|
474
|
+
cosineDistance: Number((1 - check.cosineSimilarity).toFixed(4)),
|
|
475
|
+
threshold: check.threshold,
|
|
476
|
+
hopCount: check.hopCount,
|
|
477
|
+
...(suppressed > 0 ? { suppressedSinceLastWarning: suppressed } : {}),
|
|
478
|
+
...(evictedSuppressed > 0 ? { suppressedForEvictedKeys: evictedSuppressed } : {}),
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
/** Drop the least recently warned key, carrying its suppressed count forward. */
|
|
482
|
+
evictOldestDriftWarning() {
|
|
483
|
+
const oldest = this.driftWarnings.keys().next();
|
|
484
|
+
if (oldest.done)
|
|
485
|
+
return;
|
|
486
|
+
this.evictedSuppressedWarnings += this.driftWarnings.get(oldest.value)?.suppressed ?? 0;
|
|
487
|
+
this.driftWarnings.delete(oldest.value);
|
|
488
|
+
}
|
|
353
489
|
/** Fire a SemanticDriftDetectedEvent via the configured callback. */
|
|
354
490
|
async emitDriftEvent(originalEvent, check) {
|
|
355
491
|
if (!this.config.onDriftDetected)
|
|
@@ -33,6 +33,11 @@ export interface DomainPlugin extends Initializable, Disposable {
|
|
|
33
33
|
* @returns true if domain can handle the task type
|
|
34
34
|
*/
|
|
35
35
|
canHandleTask?(taskType: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Task types this domain executes through `executeTask` (#1075).
|
|
38
|
+
* Optional - used to tell callers which types a domain accepts.
|
|
39
|
+
*/
|
|
40
|
+
getSupportedTaskTypes?(): string[];
|
|
36
41
|
}
|
|
37
42
|
export interface DomainHealth {
|
|
38
43
|
/**
|
|
@@ -14,10 +14,18 @@
|
|
|
14
14
|
* `getPendingInsights` target and vector embeddings (if attached) grow
|
|
15
15
|
* unbounded.
|
|
16
16
|
*
|
|
17
|
-
* Strategy:
|
|
17
|
+
* Strategy: move out of `dream_insights` only insights that:
|
|
18
18
|
* - have never been applied (`applied = 0`), AND
|
|
19
19
|
* - are older than the retention window (default 30 days)
|
|
20
20
|
*
|
|
21
|
+
* #1066: rows are archived, not lost. In one write transaction (BEGIN
|
|
22
|
+
* IMMEDIATE, so it waits on busy_timeout instead of failing on lock upgrade)
|
|
23
|
+
* each qualifying row is copied to `dream_insights_archive`, the copies are
|
|
24
|
+
* read back, and only rows whose copy is present are deleted. If the
|
|
25
|
+
* read-back does not match, the transaction rolls back and nothing is
|
|
26
|
+
* deleted. The archive has its own key, so an insight swept twice keeps both
|
|
27
|
+
* copies.
|
|
28
|
+
*
|
|
21
29
|
* Applied insights stay forever — they're part of the audit trail for
|
|
22
30
|
* pattern changes. Recently-created insights stay regardless of applied
|
|
23
31
|
* state — they might still be picked up by a future `applyInsight` pass.
|
|
@@ -38,12 +46,18 @@ export interface PruneStaleDreamInsightsOptions {
|
|
|
38
46
|
export interface PruneResult {
|
|
39
47
|
/** Number of rows deleted. Zero if the table is empty or no rows qualify. */
|
|
40
48
|
pruned: number;
|
|
49
|
+
/** Number of rows copied to `dream_insights_archive` before the delete. */
|
|
50
|
+
archived: number;
|
|
41
51
|
}
|
|
52
|
+
/** Table that keeps every insight the sweep removes from `dream_insights`. */
|
|
53
|
+
export declare const DREAM_INSIGHTS_ARCHIVE_TABLE = "dream_insights_archive";
|
|
42
54
|
/**
|
|
43
|
-
*
|
|
55
|
+
* Archive, then delete, stale unapplied insights. Idempotent — safe to call
|
|
56
|
+
* on every tick.
|
|
44
57
|
*
|
|
45
|
-
* Returns `{ pruned: 0 }` if the table doesn't exist (init hasn't
|
|
46
|
-
* the dream schema yet) or if no rows qualify.
|
|
58
|
+
* Returns `{ pruned: 0, archived: 0 }` if the table doesn't exist (init hasn't
|
|
59
|
+
* created the dream schema yet) or if no rows qualify. Throws, with nothing
|
|
60
|
+
* deleted, if the archive copy cannot be verified.
|
|
47
61
|
*/
|
|
48
62
|
export declare function pruneStaleDreamInsights(db: DatabaseType, options?: PruneStaleDreamInsightsOptions): PruneResult;
|
|
49
63
|
//# sourceMappingURL=dream-insights-pruner.d.ts.map
|
|
@@ -14,10 +14,18 @@
|
|
|
14
14
|
* `getPendingInsights` target and vector embeddings (if attached) grow
|
|
15
15
|
* unbounded.
|
|
16
16
|
*
|
|
17
|
-
* Strategy:
|
|
17
|
+
* Strategy: move out of `dream_insights` only insights that:
|
|
18
18
|
* - have never been applied (`applied = 0`), AND
|
|
19
19
|
* - are older than the retention window (default 30 days)
|
|
20
20
|
*
|
|
21
|
+
* #1066: rows are archived, not lost. In one write transaction (BEGIN
|
|
22
|
+
* IMMEDIATE, so it waits on busy_timeout instead of failing on lock upgrade)
|
|
23
|
+
* each qualifying row is copied to `dream_insights_archive`, the copies are
|
|
24
|
+
* read back, and only rows whose copy is present are deleted. If the
|
|
25
|
+
* read-back does not match, the transaction rolls back and nothing is
|
|
26
|
+
* deleted. The archive has its own key, so an insight swept twice keeps both
|
|
27
|
+
* copies.
|
|
28
|
+
*
|
|
21
29
|
* Applied insights stay forever — they're part of the audit trail for
|
|
22
30
|
* pattern changes. Recently-created insights stay regardless of applied
|
|
23
31
|
* state — they might still be picked up by a future `applyInsight` pass.
|
|
@@ -27,11 +35,40 @@
|
|
|
27
35
|
* with the rest of its lifecycle work.
|
|
28
36
|
*/
|
|
29
37
|
const DEFAULT_RETENTION_DAYS = 30;
|
|
38
|
+
/** Table that keeps every insight the sweep removes from `dream_insights`. */
|
|
39
|
+
export const DREAM_INSIGHTS_ARCHIVE_TABLE = 'dream_insights_archive';
|
|
40
|
+
// Same columns as dream_insights plus archive_id and archived_at. `id` is not
|
|
41
|
+
// unique here: an insight that comes back (for example from a brain import)
|
|
42
|
+
// and is swept again gets a second row instead of replacing the first. No
|
|
43
|
+
// foreign key, so deleting a dream cycle does not cascade into the archive.
|
|
44
|
+
const CREATE_ARCHIVE_SQL = `
|
|
45
|
+
CREATE TABLE IF NOT EXISTS ${DREAM_INSIGHTS_ARCHIVE_TABLE} (
|
|
46
|
+
archive_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
47
|
+
id TEXT NOT NULL,
|
|
48
|
+
cycle_id TEXT,
|
|
49
|
+
insight_type TEXT,
|
|
50
|
+
source_concepts TEXT,
|
|
51
|
+
description TEXT,
|
|
52
|
+
novelty_score REAL,
|
|
53
|
+
confidence_score REAL,
|
|
54
|
+
actionable INTEGER,
|
|
55
|
+
applied INTEGER,
|
|
56
|
+
suggested_action TEXT,
|
|
57
|
+
pattern_id TEXT,
|
|
58
|
+
created_at TEXT,
|
|
59
|
+
archived_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
60
|
+
)
|
|
61
|
+
`;
|
|
62
|
+
function columnNames(db, table) {
|
|
63
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().map((c) => c.name);
|
|
64
|
+
}
|
|
30
65
|
/**
|
|
31
|
-
*
|
|
66
|
+
* Archive, then delete, stale unapplied insights. Idempotent — safe to call
|
|
67
|
+
* on every tick.
|
|
32
68
|
*
|
|
33
|
-
* Returns `{ pruned: 0 }` if the table doesn't exist (init hasn't
|
|
34
|
-
* the dream schema yet) or if no rows qualify.
|
|
69
|
+
* Returns `{ pruned: 0, archived: 0 }` if the table doesn't exist (init hasn't
|
|
70
|
+
* created the dream schema yet) or if no rows qualify. Throws, with nothing
|
|
71
|
+
* deleted, if the archive copy cannot be verified.
|
|
35
72
|
*/
|
|
36
73
|
export function pruneStaleDreamInsights(db, options = {}) {
|
|
37
74
|
const retentionDays = options.retentionDays ?? DEFAULT_RETENTION_DAYS;
|
|
@@ -41,13 +78,64 @@ export function pruneStaleDreamInsights(db, options = {}) {
|
|
|
41
78
|
.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='dream_insights'")
|
|
42
79
|
.get();
|
|
43
80
|
if (!tableExists) {
|
|
44
|
-
return { pruned: 0 };
|
|
81
|
+
return { pruned: 0, archived: 0 };
|
|
45
82
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.
|
|
51
|
-
|
|
83
|
+
// One cutoff for every statement below, so the copy, the check and the
|
|
84
|
+
// delete all see the same set of rows.
|
|
85
|
+
const { cutoff } = db
|
|
86
|
+
.prepare(`SELECT datetime('now', ?) AS cutoff`)
|
|
87
|
+
.get(`-${retentionDays} days`);
|
|
88
|
+
const stale = 'd.applied = 0 AND d.created_at < ?';
|
|
89
|
+
const sweep = db.transaction(() => {
|
|
90
|
+
const candidates = db
|
|
91
|
+
.prepare(`SELECT COUNT(*) AS n FROM dream_insights d WHERE ${stale}`)
|
|
92
|
+
.get(cutoff).n;
|
|
93
|
+
if (candidates === 0)
|
|
94
|
+
return { pruned: 0, archived: 0 };
|
|
95
|
+
db.exec(CREATE_ARCHIVE_SQL);
|
|
96
|
+
const archiveColumns = new Set(columnNames(db, DREAM_INSIGHTS_ARCHIVE_TABLE));
|
|
97
|
+
if (!archiveColumns.has('archive_id')) {
|
|
98
|
+
throw new Error(`${DREAM_INSIGHTS_ARCHIVE_TABLE} has no archive_id column; nothing deleted`);
|
|
99
|
+
}
|
|
100
|
+
// Copy the columns both tables have; older databases may lack some.
|
|
101
|
+
const shared = columnNames(db, 'dream_insights').filter((name) => name !== 'archived_at' && name !== 'archive_id' && archiveColumns.has(name));
|
|
102
|
+
const list = shared.map((name) => `"${name}"`).join(', ');
|
|
103
|
+
// Copies made by this sweep have archive_id above this mark.
|
|
104
|
+
const { mark } = db
|
|
105
|
+
.prepare(`SELECT COALESCE(MAX(archive_id), 0) AS mark FROM ${DREAM_INSIGHTS_ARCHIVE_TABLE}`)
|
|
106
|
+
.get();
|
|
107
|
+
const archived = db
|
|
108
|
+
.prepare(`INSERT INTO ${DREAM_INSIGHTS_ARCHIVE_TABLE} (${list}, archived_at)
|
|
109
|
+
SELECT ${shared.map((name) => `d."${name}"`).join(', ')}, datetime('now')
|
|
110
|
+
FROM dream_insights d WHERE ${stale}`)
|
|
111
|
+
.run(cutoff).changes;
|
|
112
|
+
// Read back: every row about to be deleted must have a copy from this sweep.
|
|
113
|
+
const copied = db
|
|
114
|
+
.prepare(`SELECT COUNT(*) AS n FROM dream_insights d
|
|
115
|
+
WHERE ${stale}
|
|
116
|
+
AND EXISTS (SELECT 1 FROM ${DREAM_INSIGHTS_ARCHIVE_TABLE} a
|
|
117
|
+
WHERE a.id = d.id AND a.archive_id > ?)`)
|
|
118
|
+
.get(cutoff, mark).n;
|
|
119
|
+
if (copied !== candidates) {
|
|
120
|
+
throw new Error(`dream_insights archive check failed: ${copied} of ${candidates} rows copied; nothing deleted`);
|
|
121
|
+
}
|
|
122
|
+
const pruned = db
|
|
123
|
+
.prepare(`DELETE FROM dream_insights
|
|
124
|
+
WHERE applied = 0 AND created_at < ?
|
|
125
|
+
AND id IN (SELECT id FROM ${DREAM_INSIGHTS_ARCHIVE_TABLE} WHERE archive_id > ?)`)
|
|
126
|
+
.run(cutoff, mark).changes;
|
|
127
|
+
// Read back: the stale rows are gone and none was deleted uncopied.
|
|
128
|
+
const left = db
|
|
129
|
+
.prepare(`SELECT COUNT(*) AS n FROM dream_insights d WHERE ${stale}`)
|
|
130
|
+
.get(cutoff).n;
|
|
131
|
+
if (pruned !== candidates || left !== 0) {
|
|
132
|
+
throw new Error(`dream_insights delete check failed: deleted ${pruned} of ${candidates}, ${left} left; rolled back`);
|
|
133
|
+
}
|
|
134
|
+
return { pruned, archived };
|
|
135
|
+
});
|
|
136
|
+
// #1066 review: IMMEDIATE takes the write lock up front, so a busy database
|
|
137
|
+
// makes the sweep wait on busy_timeout. A deferred transaction starts with
|
|
138
|
+
// a read and fails at once with SQLITE_BUSY when it upgrades to write.
|
|
139
|
+
return sweep.immediate();
|
|
52
140
|
}
|
|
53
141
|
//# sourceMappingURL=dream-insights-pruner.js.map
|