@oscharko-dev/keiko 1.1.13 → 1.2.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/README.md +21 -5
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +12 -12
- package/dist/ui/static/__next._full.txt +23 -22
- package/dist/ui/static/__next._tree.txt +3 -3
- package/dist/ui/static/_next/static/chunks/0--s8pmsbkf62.js +1 -0
- package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +1 -0
- package/dist/ui/static/_next/static/chunks/0339vdalk0q6h.js +3 -0
- package/dist/ui/static/_next/static/chunks/{13fx5sqcncq4_.js → 05k2u3763ih_i.js} +1 -1
- package/dist/ui/static/_next/static/chunks/07f-n_9zq-s8q.js +1 -0
- package/dist/ui/static/_next/static/chunks/07l0sfn1-mid2.js +1 -0
- package/dist/ui/static/_next/static/chunks/07skh7tlpfo1v.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2cn33khz2ae-h.js → 08v-jyhi2uk8t.js} +1 -1
- package/dist/ui/static/_next/static/chunks/09i_8713x46yr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{199p3upt-xa37.js → 09zc5hgtb7s-z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0_yx8_bs1t-27.js +1 -0
- package/dist/ui/static/_next/static/chunks/0a6ri2ug5xf10.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bbrrvuzilpy5.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bg7uh6tq8-dx.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bpexy600ffpg.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bz731buimrpv.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cwy6mtvshbuo.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3i0iog52c1ajg.js → 0fpbvpzg-omn0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0fz9qig_5p73f.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gf88p0jy1g5w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0hvxxuef1gw9p.js +1 -0
- package/dist/ui/static/_next/static/chunks/0iu3dyqe7m7_7.js +1 -0
- package/dist/ui/static/_next/static/chunks/0ktvc8fs3spkb.js +1 -0
- package/dist/ui/static/_next/static/chunks/0kvy_ru-kodgv.js +1 -0
- package/dist/ui/static/_next/static/chunks/{25f22x86d_a1n.js → 0l72usw6suk0h.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0mcg_spbohpl3.css +1 -0
- package/dist/ui/static/_next/static/chunks/{02epwnm5oro9c.css → 0mjsj7bp-ukgh.css} +16 -20
- package/dist/ui/static/_next/static/chunks/0parm4c86umwk.js +1 -0
- package/dist/ui/static/_next/static/chunks/0q_08tk2d3m2n.js +1 -0
- package/dist/ui/static/_next/static/chunks/0r2lwkgws6jm8.js +1 -0
- package/dist/ui/static/_next/static/chunks/0t73kckx3olud.js +1 -0
- package/dist/ui/static/_next/static/chunks/0w2fp3hjrfx32.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wdn9qetndtsj.js +1 -0
- package/dist/ui/static/_next/static/chunks/0weojtwxo6qw7.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x-r45yl06rdn.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x42c1na2ia6m.js +1 -0
- package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0o_lmzxpjfeky.js → 0yzmg9aoglud6.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0zuaq_9l5pma_.js +1 -0
- package/dist/ui/static/_next/static/chunks/10kb8j7vggfwk.js +1 -0
- package/dist/ui/static/_next/static/chunks/14qdwomthzucj.js +1 -0
- package/dist/ui/static/_next/static/chunks/196257vfyrtgu.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kmozkq6tgqnz.js → 196x_tfexoucg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1a6ri-sriyu-m.js +1 -0
- package/dist/ui/static/_next/static/chunks/1a7ko-_7t4wjo.js +1 -0
- package/dist/ui/static/_next/static/chunks/1aivbuztyv67o.js +10 -0
- package/dist/ui/static/_next/static/chunks/1c0u0qq0vwkc4.js +1 -0
- package/dist/ui/static/_next/static/chunks/1czgn62g6km38.js +3 -0
- package/dist/ui/static/_next/static/chunks/1f05h21irrvbs.js +1 -0
- package/dist/ui/static/_next/static/chunks/1juiifi_xnx68.js +1 -0
- package/dist/ui/static/_next/static/chunks/1m-9yzfpcm7wc.js +1 -0
- package/dist/ui/static/_next/static/chunks/{29dj-5kj_vfl_.js → 1qh0x9_258ol2.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2kh0qihno0n1w.js → 1rp_smu1jjw45.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1wg1s3jm779ro.js +3 -0
- package/dist/ui/static/_next/static/chunks/{0l7cc8q83migz.css → 1wj7exxi550gi.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1zczte6xkwvcl.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zudszthinjcb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1kacubgk0y2ki.js → 21-6b7rkmtvg8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/224bbe_3ksnlw.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3chx0gpjqrhod.js → 24u-5fslcj3n9.js} +3 -3
- package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +1 -0
- package/dist/ui/static/_next/static/chunks/263_uck8el32f.js +1 -0
- package/dist/ui/static/_next/static/chunks/26gmn1z4oegqh.js +1 -0
- package/dist/ui/static/_next/static/chunks/28ylcw-leje_k.js +1 -0
- package/dist/ui/static/_next/static/chunks/2937s9os9u2tn.js +1 -0
- package/dist/ui/static/_next/static/chunks/29rlw6dih8owf.js +1 -0
- package/dist/ui/static/_next/static/chunks/2b_t95bbpmtej.js +1 -0
- package/dist/ui/static/_next/static/chunks/2hq0zlnvfqol9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3inx1ugcc-jd-.css → 2hu5w89yy7_s-.css} +1 -0
- package/dist/ui/static/_next/static/chunks/2kylv1kq1_4p1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0m1163red7mw7.js → 2nlmtsm3kjmbh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2o584howfzzak.js +3 -0
- package/dist/ui/static/_next/static/chunks/{1c1gbfapof8m0.js → 2oq1uk07ft9l0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2p66e_a0j23r8.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ribv7pn1hr-l.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ta3xj9td_qot.js +1 -0
- package/dist/ui/static/_next/static/chunks/2tb2nt2wvu643.js +1 -0
- package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2y98z-sun8_ew.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yot6vshhc19p.css +1 -0
- package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-dorttkhs3i2.js +1 -0
- package/dist/ui/static/_next/static/chunks/30j8jo5v60ga1.js +2 -0
- package/dist/ui/static/_next/static/chunks/30q9b_aw8driv.js +1 -0
- package/dist/ui/static/_next/static/chunks/{18qu5m_in_h3x.js → 3603jy78awb1p.js} +1 -1
- package/dist/ui/static/_next/static/chunks/36c8jty3kllje.js +1 -0
- package/dist/ui/static/_next/static/chunks/387k5c-bf1b2e.js +1 -0
- package/dist/ui/static/_next/static/chunks/388eokaf_2t9k.js +1 -0
- package/dist/ui/static/_next/static/chunks/3946_dfcd9xr-.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_alxp77ewgk_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_ycy0h8pq58a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3eduf6vevclfm.js +1 -0
- package/dist/ui/static/_next/static/chunks/3eg8pcox5copv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3gyetohi_flhb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{39w0xj7fyy7sp.js → 3h-rh_lx0l8_3.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1o2cihsnxhmh6.js → 3hclt6m3ok4n9.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ho1f5n8lir4r.js +1 -0
- package/dist/ui/static/_next/static/chunks/3kgc_j74tblcn.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ksbq-nwkgwob.js +1 -0
- package/dist/ui/static/_next/static/chunks/3mxpjroefk8ou.js +1 -0
- package/dist/ui/static/_next/static/chunks/3or_0c84ozskx.js +1 -0
- package/dist/ui/static/_next/static/chunks/3q5jidle0lb3-.js +1 -0
- package/dist/ui/static/_next/static/chunks/3qjkuhjy_-_br.js +1 -0
- package/dist/ui/static/_next/static/chunks/3sgbsntbbci5y.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tcw3qy3rrkyf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tqd6avtamgd5.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ua7si017r4dg.js +1 -0
- package/dist/ui/static/_next/static/chunks/3v2iluxqnsug9.css +15 -0
- package/dist/ui/static/_next/static/chunks/{1ydfda18zlx4w.js → 3vjm30f1if00s.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3z5edm1fpkcuq.js +1 -0
- package/dist/ui/static/_next/static/chunks/3z5f2s7yd35cu.js +1 -0
- package/dist/ui/static/_next/static/chunks/40co1uetczqcs.js +1 -0
- package/dist/ui/static/_next/static/chunks/43kutp14mqi-j.js +1 -0
- package/dist/ui/static/_next/static/chunks/43y3xn64quyo2.js +1 -0
- package/dist/ui/static/_next/static/chunks/{turbopack-2fb3mn6go2p-t.js → turbopack-2rwr7ign9ynaa.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +13 -13
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +9 -9
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +13 -13
- package/dist/ui/static/atlassian-connectors/__next._full.txt +15 -15
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +2 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -11
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +15 -15
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +23 -22
- package/dist/ui/static/launch/__next._full.txt +16 -16
- package/dist/ui/static/launch/__next._tree.txt +3 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +12 -12
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +16 -16
- package/dist/ui/static/local-knowledge/__next._full.txt +16 -16
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +12 -12
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +25 -24
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +25 -24
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +16 -16
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.js +54 -8
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.js +66 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.js +67 -126
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.js +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.js +59 -46
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.js +150 -52
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +3539 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.js +74 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.js +184 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.js +195 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.js +19 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.js +20 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.js +442 -60
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +45 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.js +46 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.js +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.js +226 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.js +672 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.js +17 -5
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.js +16 -9
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.js +16 -10
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.js +21 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts +11 -3
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.js +142 -23
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts +25 -22
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.js +694 -198
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +25 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +3 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +19 -8
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +16 -113
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +71 -358
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +1 -21
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +14 -112
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +6 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.js +521 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts +647 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.js +338 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +3 -5
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +6 -42
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +0 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +118 -1276
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +302 -102
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +476 -95
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.js +123 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +29497 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +32895 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +8326 -32178
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +3617 -29833
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +139 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +40 -15
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts +49 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.js +380 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.js +63 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts +24 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.js +16 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +12 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +171 -100
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.js +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.js +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.js +8 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.js +20 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +116 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +487 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +17 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +76 -36
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.js +0 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +35 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +50 -8
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.js +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +85 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +4 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +359 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +26 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +109 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts +5 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.js +16 -16
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +33 -17
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +230 -26
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.js +206 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.js +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.js +107 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +118 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +63 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +71 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.js +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +17 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +3 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +7 -4
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.js +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.js +49 -38
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +61 -25
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +6 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts +0 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +9 -78
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +3 -0
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts +0 -12
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.js +0 -32
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts +2 -11
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +10 -144
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.js +7 -14
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.js +17 -48
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.js +24 -10
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +100 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +104 -34
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +33 -5
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +115 -19
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +3 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +4 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +5 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +48 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +27 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +300 -65
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +14 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.js +128 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +25 -4
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +8 -2
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +15 -5
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +85 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +128 -3
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +49 -14
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.js +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +14 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.js +28 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +111 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +101 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +235 -33
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +159 -79
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +27 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +48 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +51 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +54 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +523 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.js +112 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +31 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +10 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.js +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +59 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +8 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +85 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionWorkspaceHeadReader.js +23 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +31 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +23 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +51 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +102 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +1 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.js +5 -94
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +50 -57
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.js +81 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.js +35 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +29 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.js +230 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +2 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files.js +76 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.js +432 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +16 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +103 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.js +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +24 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +920 -150
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +6 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +5 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +30 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.js +68 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +57 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +39 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +196 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.js +25 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +35 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +74 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +61 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +11 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +78 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.js +33 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +37 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.js +444 -101
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.js +123 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.js +6 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +24 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +2338 -629
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.js +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +11 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +17 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +349 -162
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +241 -87
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +26 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +384 -105
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +16 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +36 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts +32 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.js +109 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +8 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.js +136 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +231 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +19 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +43 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaSnapshotBuilder.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +36 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.js +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +19 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +0 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +26 -129
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.js +26 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +102 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.js +239 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.js +347 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +169 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +152 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.js +37 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.js +3 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +76 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.js +3 -100
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +3 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +36 -5
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +3 -1
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +327 -45
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/compaction.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +83 -32
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +40 -3
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +209 -68
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +8 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +7 -60
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.js +7 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +159 -38
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.js +140 -57
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts +1 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.js +0 -15
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +235 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +48 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +31 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +459 -137
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.js +29 -24
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.js +189 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +45 -18
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +89 -30
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +21 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +29 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.js +70 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +178 -45
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.js +63 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.js +37 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +466 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +32 -6
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +60 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testSourcePairing.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.js +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +8 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +32 -31
- package/release-impact.catalog.json +111 -0
- package/scripts/lib/local-state-audit.mjs +26 -11
- package/vendor/oscharko-dev-keiko-activity-log-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.13.tgz → oscharko-dev-keiko-connectors-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.13.tgz → oscharko-dev-keiko-evaluations-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.1.13.tgz → oscharko-dev-keiko-git-1.2.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.13.tgz → oscharko-dev-keiko-harness-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.13.tgz → oscharko-dev-keiko-memory-governance-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.13.tgz → oscharko-dev-keiko-quality-intelligence-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.13.tgz → oscharko-dev-keiko-sdk-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.0.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/000t9p2ysi3dv.css +0 -1
- package/dist/ui/static/_next/static/chunks/00dd_gyzi9unw.js +0 -1
- package/dist/ui/static/_next/static/chunks/00n029ow-5_tt.js +0 -3
- package/dist/ui/static/_next/static/chunks/01n8x8_z3012u.js +0 -1
- package/dist/ui/static/_next/static/chunks/04y8gqfjksqzo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cksy9u2ysiuy.js +0 -1
- package/dist/ui/static/_next/static/chunks/0elflgy2cg1jb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0gia_iwqox3xm.js +0 -1
- package/dist/ui/static/_next/static/chunks/0k931k8qwqyft.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kmepj4rmkj19.js +0 -1
- package/dist/ui/static/_next/static/chunks/0l46-80gche_i.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ojvvjnsf38bk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0p2ekj8g4s6t2.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +0 -1
- package/dist/ui/static/_next/static/chunks/0tl_05c5ux5ut.js +0 -1
- package/dist/ui/static/_next/static/chunks/0v9jkxfma7fks.js +0 -1
- package/dist/ui/static/_next/static/chunks/0y68jeskhcm2k.js +0 -1
- package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +0 -1
- package/dist/ui/static/_next/static/chunks/117xhn896fsmt.js +0 -1
- package/dist/ui/static/_next/static/chunks/13q3e5wnz6lps.css +0 -1
- package/dist/ui/static/_next/static/chunks/14rs31u4u36yy.js +0 -1
- package/dist/ui/static/_next/static/chunks/159szpr5ffygs.js +0 -1
- package/dist/ui/static/_next/static/chunks/15orau2hhjb1f.js +0 -1
- package/dist/ui/static/_next/static/chunks/1b7ig6f2t71i_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1bdojlx9hv0c5.js +0 -1
- package/dist/ui/static/_next/static/chunks/1be0-x1mk56wu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1d7xigpwq-xq8.js +0 -1
- package/dist/ui/static/_next/static/chunks/1dwc7p2rl-hs6.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hucqkor7zgbn.js +0 -1
- package/dist/ui/static/_next/static/chunks/1j6nqp8yrqyhu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +0 -1
- package/dist/ui/static/_next/static/chunks/1logclobi6726.js +0 -1
- package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +0 -5
- package/dist/ui/static/_next/static/chunks/1nie2fvj8iyvq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1o3z4r4xrlbda.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pnysuel-a2r1.js +0 -1
- package/dist/ui/static/_next/static/chunks/1szpnddxqmzhy.js +0 -1
- package/dist/ui/static/_next/static/chunks/1tkt9f0xnc4fe.js +0 -1
- package/dist/ui/static/_next/static/chunks/1u_s3uvh9p4j7.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uetvnnpa5z22.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uigiy7xdzirs.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wa9m6c88mg3p.js +0 -1
- package/dist/ui/static/_next/static/chunks/1xzxhtenb7_sx.css +0 -1
- package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +0 -1
- package/dist/ui/static/_next/static/chunks/20b456jf1ggzu.css +0 -1
- package/dist/ui/static/_next/static/chunks/2384n1pce2w1h.js +0 -1
- package/dist/ui/static/_next/static/chunks/252wybdcea74g.js +0 -1
- package/dist/ui/static/_next/static/chunks/271r_v0nh0vy-.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_u63ddjyhbpm.js +0 -3
- package/dist/ui/static/_next/static/chunks/2b78j2josay3e.js +0 -1
- package/dist/ui/static/_next/static/chunks/2cw7v8t4jg669.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gqs8fif3137x.js +0 -3
- package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +0 -3
- package/dist/ui/static/_next/static/chunks/2j16o4ghz4iqx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2s5wt9bf-ox40.js +0 -1
- package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tmor5n3xss6c.js +0 -3
- package/dist/ui/static/_next/static/chunks/2wd7di0z2l6il.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ymm_n9gbcdcw.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +0 -1
- package/dist/ui/static/_next/static/chunks/3-ys11qyww0y6.js +0 -1
- package/dist/ui/static/_next/static/chunks/30botqyyk9ugo.js +0 -1
- package/dist/ui/static/_next/static/chunks/30p9b535cwzhr.js +0 -1
- package/dist/ui/static/_next/static/chunks/31mnda46lo2b0.js +0 -1
- package/dist/ui/static/_next/static/chunks/338jl640mvtkg.js +0 -1
- package/dist/ui/static/_next/static/chunks/351uy__m9eafa.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_cgafsc6hy1_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_exo95bp9tt2.js +0 -1
- package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +0 -1
- package/dist/ui/static/_next/static/chunks/3bl12pe7lsanc.js +0 -1
- package/dist/ui/static/_next/static/chunks/3buu6m28ig2oz.js +0 -1
- package/dist/ui/static/_next/static/chunks/3hft62celuigp.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +0 -1
- package/dist/ui/static/_next/static/chunks/3im1pldojqzmu.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iptbrztxckih.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +0 -1
- package/dist/ui/static/_next/static/chunks/3jtbes4v4ouyw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3lq5zd1qvhcfw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3m_idsf90zq5u.js +0 -1
- package/dist/ui/static/_next/static/chunks/3mes_qld9wgti.js +0 -1
- package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +0 -1
- package/dist/ui/static/_next/static/chunks/3timx0h4kcna0.js +0 -1
- package/dist/ui/static/_next/static/chunks/3u-4amh4iusi1.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uacpjje41xz5.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uovpxgynmdkk.js +0 -1
- package/dist/ui/static/_next/static/chunks/3wcuc7e2bz4-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/3xaa0t5drdxz3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3yqrxwndy9_f3.js +0 -1
- package/dist/ui/static/_next/static/chunks/40g2_9ovqiuiu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40ol4dc9uptck.js +0 -10
- package/dist/ui/static/_next/static/chunks/413lmui4la1xe.js +0 -1
- package/dist/ui/static/_next/static/chunks/41ca6l5ikqt65.js +0 -1
- package/dist/ui/static/_next/static/chunks/44jv6p8ly-u3e.js +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.js +0 -30
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts +0 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.js +0 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.js +0 -135
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts +0 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.js +0 -24
- package/vendor/oscharko-dev-keiko-activity-log-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.1.13.tgz +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → LNCY1B2FJBOe2AHFXpzB-}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → LNCY1B2FJBOe2AHFXpzB-}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → LNCY1B2FJBOe2AHFXpzB-}/_ssgManifest.js +0 -0
|
@@ -13,44 +13,33 @@
|
|
|
13
13
|
// an expected refusal, not a defect). Eligibility is therefore derived from the registry alone —
|
|
14
14
|
// there is no UI- or caller-side list. This module's own operations are never candidates.
|
|
15
15
|
//
|
|
16
|
-
// DEDUPLICATION.
|
|
16
|
+
// DEDUPLICATION. Server failures retain one open candidate per defectFingerprint. Version-two
|
|
17
|
+
// browser diagnostics retain one per validated causal occurrence, because coarse browser evidence
|
|
18
|
+
// can otherwise collapse unrelated failures and discard their windows. The same bounded quota is
|
|
17
19
|
// enforced atomically across every process sharing stateDir by an exclusive-create claim file keyed
|
|
18
|
-
// by the
|
|
20
|
+
// by the retention key (#3533 review 4050606506): a repeat of the same key is evidenced as
|
|
19
21
|
// `support.incident.deduplicated` on the existing incident instead of pinning a second window. A
|
|
20
22
|
// process additionally suppresses re-evaluating a fingerprint for SUPPORT_INCIDENT_SUPPRESSION_MS
|
|
21
23
|
// so a failure storm costs no filesystem work. User reports are never merged: each explicit "Report
|
|
22
24
|
// a problem" is its own occurrence.
|
|
23
25
|
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
// reserving the top slots for user reports, exactly as the count-based reserve always intended). A
|
|
30
|
-
// full store rejects the new candidate with body-free loss evidence; it never evicts a candidate the
|
|
31
|
-
// user has not seen. Every candidate expires SUPPORT_INCIDENT_TTL_MS after creation; its pin expires
|
|
32
|
-
// at the same instant, and its fingerprint and slot claims release with it, so an unreported incident
|
|
33
|
-
// releases its evidence and its claims predictably.
|
|
34
|
-
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
26
|
+
// RETENTION. Small candidate records reserve their maximal bytes through exclusive-create claims
|
|
27
|
+
// under the governing Activity Log byte policy. Manual reports retain a protected share. On byte
|
|
28
|
+
// pressure the oldest eligible candidate rolls out and releases its pin and claims. Unreported
|
|
29
|
+
// diagnostics expire after twenty-four hours; generated reports are transient download artifacts.
|
|
30
|
+
import { randomBytes, randomUUID } from "node:crypto";
|
|
35
31
|
import { join } from "node:path";
|
|
36
|
-
import {
|
|
37
|
-
import { activityLogPinCovers, isActivityLogSegmentEntry, listActivityLogDirectory, } from "./activity-log-store.js";
|
|
38
|
-
import {
|
|
32
|
+
import { SUPPORT_INCIDENT_TTL_MS, supportIncidentEffectiveExpiry, supportIncidentWindow, ACTIVITY_LOG_DIRECTORY_NAME, ACTIVITY_LOG_FAILURE_CLASS_COVERAGE, DEFECT_FINGERPRINT_ALGORITHM_VERSION, SUPPORT_INCIDENT_SCHEMA_VERSION, UNATTRIBUTED_DEFECT_FINGERPRINT_INPUT, activityLogEvent, activityLogErrorKindOr, activityLogOperationSchema, defineActivityLogOperation, normalizeDefectFrameSignature, recordActivityLogLoss, supportIncidentBuild, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
33
|
+
import { activityLogPinCovers, activeActivityLogPins, MAX_ACTIVITY_LOG_PINS, isActivityLogSegmentEntry, listActivityLogDirectory, readActivityLogPins, } from "./activity-log-store.js";
|
|
34
|
+
import { supportIncidentRetentionPolicy } from "./support-incident-retention.js";
|
|
35
|
+
import { claimActivityLogWriterOwnership, createFileServerLogSink, pinActivityLogWindow, releaseActivityLogPin, reportServerLogFailure, errorKindOf, serverLogProcessIdentity, } from "./server-log.js";
|
|
36
|
+
import { computeDefectFingerprint, incidentCorrelationId, registeredFailureCorrelation, registeredFailureFingerprintInput, registeredFailureDeduplicationKey, } from "./defect-fingerprint.js";
|
|
37
|
+
import { causeChain, keikoStackFrames } from "./stack-frames.js";
|
|
38
|
+
import { contentFreeErrorClass } from "./error-classification.js";
|
|
39
39
|
import { activityLogTestWriterInstalled } from "./server-logger.js";
|
|
40
|
-
import {
|
|
41
|
-
import { claimSupportIncidentFingerprint, claimSupportIncidentSlot, ensureSupportIncidentDirectory, listSupportIncidentClaims, listSupportIncidentEntries, readSupportIncidentFingerprintClaim, readSupportIncidentRecord, releaseSupportIncidentFingerprintClaim, releaseSupportIncidentSlot, removeSupportIncidentClaimFile, removeSupportIncidentRecord, serializeSupportIncidentRecord, supportIncidentDirectory, writeSupportIncidentRecord, } from "./support-incident-store.js";
|
|
40
|
+
import { claimSupportIncidentFingerprint, claimSupportIncidentSlot, countSupportIncidentEntries, ensureSupportIncidentDirectory, isSupportIncidentRecordAbsent, listSupportIncidentClaims, listSupportIncidentSlotIndexes, listSupportIncidentEntries, readSupportIncidentFingerprintClaim, readSupportIncidentSlotClaim, readSupportIncidentRecord, releaseSupportIncidentFingerprintClaim, releaseSupportIncidentSlot, removeSupportIncidentClaimFile, removeSupportIncidentRecord, serializeSupportIncidentRecord, supportIncidentDirectory, writeSupportIncidentRecord, } from "./support-incident-store.js";
|
|
42
41
|
const MINUTE_MS = 60_000;
|
|
43
|
-
|
|
44
|
-
/** An unreported candidate (and its pin) expires this long after creation. */
|
|
45
|
-
export const SUPPORT_INCIDENT_TTL_MS = 14 * DAY_MS;
|
|
46
|
-
/** The pinned window reaches this far before the incident … */
|
|
47
|
-
export const SUPPORT_INCIDENT_WINDOW_BEFORE_MS = 15 * MINUTE_MS;
|
|
48
|
-
/** … and this far after it, so segments sealed after the incident are retained too. */
|
|
49
|
-
export const SUPPORT_INCIDENT_WINDOW_AFTER_MS = 5 * MINUTE_MS;
|
|
50
|
-
/** Records the store holds at most (count quota); also the quota-slot claim file grammar's bound. */
|
|
51
|
-
export const MAX_SUPPORT_INCIDENTS = SUPPORT_INCIDENT_SLOT_COUNT;
|
|
52
|
-
/** Of those, registered-failure candidates may occupy at most this many. */
|
|
53
|
-
export const MAX_REGISTERED_FAILURE_INCIDENTS = 24;
|
|
42
|
+
export { SUPPORT_INCIDENT_TTL_MS, SUPPORT_INCIDENT_WINDOW_BEFORE_MS, SUPPORT_INCIDENT_WINDOW_AFTER_MS, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
54
43
|
/** A process re-evaluates one defectFingerprint at most this often. */
|
|
55
44
|
export const SUPPORT_INCIDENT_SUPPRESSION_MS = MINUTE_MS;
|
|
56
45
|
/**
|
|
@@ -88,6 +77,36 @@ const TRIGGER_FIELD = {
|
|
|
88
77
|
values: ["registered-failure", "user-report"],
|
|
89
78
|
};
|
|
90
79
|
const OPEN_COUNT_FIELD = { type: "integer", dataClass: "count", required: true };
|
|
80
|
+
const FAILURE_KIND_FIELD = {
|
|
81
|
+
type: "string",
|
|
82
|
+
dataClass: "error-kind",
|
|
83
|
+
required: false,
|
|
84
|
+
maxLength: 64,
|
|
85
|
+
};
|
|
86
|
+
const TERMINAL_FAILURE_FIELDS = {
|
|
87
|
+
failureKind: FAILURE_KIND_FIELD,
|
|
88
|
+
frames: {
|
|
89
|
+
type: "string-array",
|
|
90
|
+
dataClass: "safe-platform-class",
|
|
91
|
+
required: false,
|
|
92
|
+
maxLength: 512,
|
|
93
|
+
maxItems: 8,
|
|
94
|
+
},
|
|
95
|
+
causeChain: {
|
|
96
|
+
type: "string-array",
|
|
97
|
+
dataClass: "error-kind",
|
|
98
|
+
required: false,
|
|
99
|
+
maxLength: 64,
|
|
100
|
+
maxItems: 5,
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
// Additive for older persisted terminal lines; current producers always emit this status.
|
|
104
|
+
const CLAIMS_STATUS_FIELD = {
|
|
105
|
+
type: "string",
|
|
106
|
+
dataClass: "closed-enum",
|
|
107
|
+
required: false,
|
|
108
|
+
values: ["released", "failed", "not-attempted"],
|
|
109
|
+
};
|
|
91
110
|
const SUPPORT_INCIDENT_CREATED_OPERATION = defineActivityLogOperation({
|
|
92
111
|
contractKind: "activity-log-operation",
|
|
93
112
|
schemaVersion: 1,
|
|
@@ -169,6 +188,7 @@ const SUPPORT_INCIDENT_REJECTED_OPERATION = defineActivityLogOperation({
|
|
|
169
188
|
fingerprintAlgorithm: ALGORITHM_FIELD,
|
|
170
189
|
trigger: TRIGGER_FIELD,
|
|
171
190
|
openIncidentCount: OPEN_COUNT_FIELD,
|
|
191
|
+
evictedIncidentId: { ...INCIDENT_ID_FIELD, required: false },
|
|
172
192
|
},
|
|
173
193
|
causal: "correlation",
|
|
174
194
|
lifecycle: "loss",
|
|
@@ -177,6 +197,30 @@ const SUPPORT_INCIDENT_REJECTED_OPERATION = defineActivityLogOperation({
|
|
|
177
197
|
proofIds: ["support.incident.rejected.emitted-line"],
|
|
178
198
|
releaseImpact: "minor",
|
|
179
199
|
});
|
|
200
|
+
const SUPPORT_INCIDENT_RETIREMENT_STARTED_OPERATION = defineActivityLogOperation({
|
|
201
|
+
contractKind: "activity-log-operation",
|
|
202
|
+
schemaVersion: 1,
|
|
203
|
+
op: "support.incident.retirement-started",
|
|
204
|
+
category: "diagnostic",
|
|
205
|
+
owner: "keiko-activity-log",
|
|
206
|
+
emitter: "support-incident.retirementStartedEvidence",
|
|
207
|
+
fields: {
|
|
208
|
+
incidentId: INCIDENT_ID_FIELD,
|
|
209
|
+
trigger: TRIGGER_FIELD,
|
|
210
|
+
incidentState: {
|
|
211
|
+
type: "string",
|
|
212
|
+
dataClass: "closed-enum",
|
|
213
|
+
required: true,
|
|
214
|
+
values: ["candidate", "reported"],
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
causal: "correlation",
|
|
218
|
+
lifecycle: "start",
|
|
219
|
+
analyzerProjection: "timeline",
|
|
220
|
+
failureClasses: ["support-incident"],
|
|
221
|
+
proofIds: ["support.incident.retirement-started.emitted-line"],
|
|
222
|
+
releaseImpact: "patch",
|
|
223
|
+
});
|
|
180
224
|
const SUPPORT_INCIDENT_DISMISSED_OPERATION = defineActivityLogOperation({
|
|
181
225
|
contractKind: "activity-log-operation",
|
|
182
226
|
schemaVersion: 1,
|
|
@@ -185,6 +229,8 @@ const SUPPORT_INCIDENT_DISMISSED_OPERATION = defineActivityLogOperation({
|
|
|
185
229
|
owner: "keiko-activity-log",
|
|
186
230
|
emitter: "support-incident.dismissedEvidence",
|
|
187
231
|
fields: {
|
|
232
|
+
...TERMINAL_FAILURE_FIELDS,
|
|
233
|
+
claimsStatus: CLAIMS_STATUS_FIELD,
|
|
188
234
|
incidentId: INCIDENT_ID_FIELD,
|
|
189
235
|
defectFingerprint: FINGERPRINT_FIELD,
|
|
190
236
|
fingerprintAlgorithm: ALGORITHM_FIELD,
|
|
@@ -199,9 +245,21 @@ const SUPPORT_INCIDENT_DISMISSED_OPERATION = defineActivityLogOperation({
|
|
|
199
245
|
type: "string",
|
|
200
246
|
dataClass: "closed-enum",
|
|
201
247
|
required: true,
|
|
202
|
-
values: ["released", "not-pinned", "rejected"],
|
|
248
|
+
values: ["released", "not-pinned", "rejected", "not-attempted"],
|
|
249
|
+
},
|
|
250
|
+
removalStatus: {
|
|
251
|
+
type: "string",
|
|
252
|
+
dataClass: "closed-enum",
|
|
253
|
+
required: false,
|
|
254
|
+
values: ["removed", "failed"],
|
|
203
255
|
},
|
|
204
256
|
openIncidentCount: OPEN_COUNT_FIELD,
|
|
257
|
+
reason: {
|
|
258
|
+
type: "string",
|
|
259
|
+
dataClass: "closed-enum",
|
|
260
|
+
required: false,
|
|
261
|
+
values: ["abandoned"],
|
|
262
|
+
},
|
|
205
263
|
},
|
|
206
264
|
causal: "correlation",
|
|
207
265
|
lifecycle: "end",
|
|
@@ -210,6 +268,37 @@ const SUPPORT_INCIDENT_DISMISSED_OPERATION = defineActivityLogOperation({
|
|
|
210
268
|
proofIds: ["support.incident.dismissed.emitted-line"],
|
|
211
269
|
releaseImpact: "minor",
|
|
212
270
|
});
|
|
271
|
+
const SUPPORT_INCIDENT_RETIREMENT_FAILED_OPERATION = defineActivityLogOperation({
|
|
272
|
+
contractKind: "activity-log-operation",
|
|
273
|
+
schemaVersion: 1,
|
|
274
|
+
op: "support.incident.retirement-failed",
|
|
275
|
+
category: "diagnostic",
|
|
276
|
+
owner: "keiko-activity-log",
|
|
277
|
+
emitter: "support-incident.retirementFailedEvidence",
|
|
278
|
+
fields: {
|
|
279
|
+
...TERMINAL_FAILURE_FIELDS,
|
|
280
|
+
incidentId: INCIDENT_ID_FIELD,
|
|
281
|
+
failureKind: { ...FAILURE_KIND_FIELD, required: true },
|
|
282
|
+
failureStage: {
|
|
283
|
+
type: "string",
|
|
284
|
+
dataClass: "closed-enum",
|
|
285
|
+
required: true,
|
|
286
|
+
values: ["read", "sweep"],
|
|
287
|
+
},
|
|
288
|
+
reason: {
|
|
289
|
+
type: "string",
|
|
290
|
+
dataClass: "closed-enum",
|
|
291
|
+
required: false,
|
|
292
|
+
values: ["abandoned"],
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
causal: "correlation",
|
|
296
|
+
lifecycle: "failure",
|
|
297
|
+
analyzerProjection: "timeline",
|
|
298
|
+
failureClasses: ["support-incident"],
|
|
299
|
+
proofIds: ["support.incident.retirement-failed.emitted-line"],
|
|
300
|
+
releaseImpact: "patch",
|
|
301
|
+
});
|
|
213
302
|
const SUPPORT_INCIDENT_EXPIRED_OPERATION = defineActivityLogOperation({
|
|
214
303
|
contractKind: "activity-log-operation",
|
|
215
304
|
schemaVersion: 1,
|
|
@@ -218,12 +307,14 @@ const SUPPORT_INCIDENT_EXPIRED_OPERATION = defineActivityLogOperation({
|
|
|
218
307
|
owner: "keiko-activity-log",
|
|
219
308
|
emitter: "support-incident.expiredEvidence",
|
|
220
309
|
fields: {
|
|
310
|
+
...TERMINAL_FAILURE_FIELDS,
|
|
311
|
+
claimsStatus: CLAIMS_STATUS_FIELD,
|
|
221
312
|
incidentId: INCIDENT_ID_FIELD,
|
|
222
313
|
expiryReason: {
|
|
223
314
|
type: "string",
|
|
224
315
|
dataClass: "closed-enum",
|
|
225
316
|
required: true,
|
|
226
|
-
values: ["expired", "invalid-record"],
|
|
317
|
+
values: ["expired", "invalid-record", "retention", "ttl-shortened"],
|
|
227
318
|
},
|
|
228
319
|
removalStatus: {
|
|
229
320
|
type: "string",
|
|
@@ -232,6 +323,25 @@ const SUPPORT_INCIDENT_EXPIRED_OPERATION = defineActivityLogOperation({
|
|
|
232
323
|
values: ["removed", "failed"],
|
|
233
324
|
},
|
|
234
325
|
defectFingerprint: { ...FINGERPRINT_FIELD, required: false },
|
|
326
|
+
pinRelease: {
|
|
327
|
+
type: "string",
|
|
328
|
+
dataClass: "closed-enum",
|
|
329
|
+
required: false,
|
|
330
|
+
values: ["released", "not-pinned", "rejected"],
|
|
331
|
+
},
|
|
332
|
+
retentionCause: {
|
|
333
|
+
type: "string",
|
|
334
|
+
dataClass: "closed-enum",
|
|
335
|
+
required: false,
|
|
336
|
+
values: ["slot-pressure", "pin-ceiling"],
|
|
337
|
+
},
|
|
338
|
+
evictingCorrelationId: {
|
|
339
|
+
type: "string",
|
|
340
|
+
dataClass: "opaque-id",
|
|
341
|
+
required: false,
|
|
342
|
+
maxLength: 128,
|
|
343
|
+
},
|
|
344
|
+
evictingIncidentId: { ...INCIDENT_ID_FIELD, required: false },
|
|
235
345
|
openIncidentCount: OPEN_COUNT_FIELD,
|
|
236
346
|
},
|
|
237
347
|
causal: "correlation",
|
|
@@ -247,6 +357,8 @@ export const SUPPORT_INCIDENT_OPERATIONS = new Set([
|
|
|
247
357
|
SUPPORT_INCIDENT_DEDUPLICATED_OPERATION.op,
|
|
248
358
|
SUPPORT_INCIDENT_REJECTED_OPERATION.op,
|
|
249
359
|
SUPPORT_INCIDENT_DISMISSED_OPERATION.op,
|
|
360
|
+
SUPPORT_INCIDENT_RETIREMENT_FAILED_OPERATION.op,
|
|
361
|
+
SUPPORT_INCIDENT_RETIREMENT_STARTED_OPERATION.op,
|
|
250
362
|
SUPPORT_INCIDENT_EXPIRED_OPERATION.op,
|
|
251
363
|
]);
|
|
252
364
|
// Lifecycle evidence is mandatory: it passes every level threshold, like the process slot's sink.
|
|
@@ -266,7 +378,7 @@ function createdEvidence(stateDir, record, correlationId, openIncidentCount) {
|
|
|
266
378
|
pinnedBytes: record.pin.pinnedBytes,
|
|
267
379
|
evidenceLostBeforePin: record.pin.evidenceLostBeforePin,
|
|
268
380
|
windowSeconds: Math.ceil((record.window.toMs - record.window.fromMs) / 1000),
|
|
269
|
-
expiresInSeconds: Math.ceil((record
|
|
381
|
+
expiresInSeconds: Math.ceil((supportIncidentEffectiveExpiry(record) - record.createdAtMs) / 1000),
|
|
270
382
|
openIncidentCount,
|
|
271
383
|
completeness: record.pin.status === "pinned" && !record.pin.evidenceLostBeforePin
|
|
272
384
|
? "complete"
|
|
@@ -292,9 +404,12 @@ function rejectedEvidence(stateDir, facts) {
|
|
|
292
404
|
...(facts.defectFingerprint === undefined
|
|
293
405
|
? {}
|
|
294
406
|
: { defectFingerprint: facts.defectFingerprint }),
|
|
295
|
-
fingerprintAlgorithm: DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
407
|
+
fingerprintAlgorithm: facts.fingerprintAlgorithm ?? DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
296
408
|
trigger: facts.trigger,
|
|
297
409
|
openIncidentCount: facts.openIncidentCount,
|
|
410
|
+
...(facts.evictedIncidentId === undefined
|
|
411
|
+
? {}
|
|
412
|
+
: { evictedIncidentId: facts.evictedIncidentId }),
|
|
298
413
|
completeness: "partial",
|
|
299
414
|
loss: "event-dropped",
|
|
300
415
|
}));
|
|
@@ -304,8 +419,49 @@ function rejectionErrorKind(reason) {
|
|
|
304
419
|
return "rate-limited";
|
|
305
420
|
return reason === "store-unavailable" ? "unavailable" : "validation-failed";
|
|
306
421
|
}
|
|
422
|
+
function retirementFailure(error) {
|
|
423
|
+
const frames = keikoStackFrames(error);
|
|
424
|
+
const causes = causeChain(error);
|
|
425
|
+
const failureKind = errorKindOf(error);
|
|
426
|
+
return {
|
|
427
|
+
errorKind: activityLogErrorKindOr(failureKind, "internal"),
|
|
428
|
+
failureKind: failureKind.length <= FAILURE_KIND_FIELD.maxLength
|
|
429
|
+
? failureKind
|
|
430
|
+
: contentFreeErrorClass(error),
|
|
431
|
+
...(frames.length === 0 ? {} : { frames }),
|
|
432
|
+
...(causes.length === 0 ? {} : { causeChain: causes }),
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
function terminalFailureFields(failure) {
|
|
436
|
+
if (failure === undefined)
|
|
437
|
+
return {};
|
|
438
|
+
return {
|
|
439
|
+
failureKind: failure.failureKind,
|
|
440
|
+
...(failure.frames === undefined ? {} : { frames: failure.frames }),
|
|
441
|
+
...(failure.causeChain === undefined ? {} : { causeChain: failure.causeChain }),
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
function retirementEnvelope(correlationId, failure, record, incomplete = false) {
|
|
445
|
+
const parent = record === undefined ? undefined : incidentLifecycleCorrelation(record);
|
|
446
|
+
return {
|
|
447
|
+
correlationId,
|
|
448
|
+
...(parent === undefined || parent === correlationId ? {} : { parentCorrelationId: parent }),
|
|
449
|
+
...(failure === undefined && !incomplete
|
|
450
|
+
? {}
|
|
451
|
+
: { level: "warn", errorKind: failure?.errorKind ?? "unavailable" }),
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function retirementStartedEvidence(stateDir, record, correlationId, state) {
|
|
455
|
+
writeEvidence(stateDir, activityLogEvent(SUPPORT_INCIDENT_RETIREMENT_STARTED_OPERATION, retirementEnvelope(correlationId, undefined, record), { incidentId: record.incidentId, trigger: record.trigger, incidentState: state }));
|
|
456
|
+
}
|
|
457
|
+
function dismissedClaimsStatus(facts) {
|
|
458
|
+
if (facts.removalStatus === "failed")
|
|
459
|
+
return "not-attempted";
|
|
460
|
+
return facts.claimsReleased ? "released" : "failed";
|
|
461
|
+
}
|
|
307
462
|
function dismissedEvidence(stateDir, record, facts) {
|
|
308
|
-
|
|
463
|
+
const incomplete = facts.pinRelease === "rejected" || !facts.claimsReleased;
|
|
464
|
+
writeEvidence(stateDir, activityLogEvent(SUPPORT_INCIDENT_DISMISSED_OPERATION, retirementEnvelope(facts.correlationId, facts.failure, record, incomplete), {
|
|
309
465
|
incidentId: record.incidentId,
|
|
310
466
|
defectFingerprint: record.fingerprint.defectFingerprint,
|
|
311
467
|
fingerprintAlgorithm: record.fingerprint.algorithm,
|
|
@@ -313,27 +469,54 @@ function dismissedEvidence(stateDir, record, facts) {
|
|
|
313
469
|
incidentState: record.state,
|
|
314
470
|
pinRelease: facts.pinRelease,
|
|
315
471
|
openIncidentCount: facts.openIncidentCount,
|
|
316
|
-
...(facts.
|
|
472
|
+
...(facts.reason === undefined ? {} : { reason: facts.reason }),
|
|
473
|
+
removalStatus: facts.removalStatus ?? "removed",
|
|
474
|
+
claimsStatus: dismissedClaimsStatus(facts),
|
|
475
|
+
...terminalFailureFields(facts.failure),
|
|
476
|
+
...(incomplete ? { completeness: "partial" } : {}),
|
|
317
477
|
}));
|
|
318
478
|
}
|
|
479
|
+
// Automatic cleanup closes the record's own lifecycle, rather than the request that retires it.
|
|
480
|
+
function incidentLifecycleCorrelation(record, fallback) {
|
|
481
|
+
return (record?.correlation.childCorrelationIds[0] ??
|
|
482
|
+
record?.correlation.rootCorrelationId ??
|
|
483
|
+
fallback ??
|
|
484
|
+
randomUUID());
|
|
485
|
+
}
|
|
486
|
+
function incidentExpiryReason(record, nowMs) {
|
|
487
|
+
if (record === undefined)
|
|
488
|
+
return "invalid-record";
|
|
489
|
+
if (supportIncidentEffectiveExpiry(record) <= nowMs && nowMs < record.expiresAtMs)
|
|
490
|
+
return "ttl-shortened";
|
|
491
|
+
return "expired";
|
|
492
|
+
}
|
|
319
493
|
function expiredEvidence(stateDir, facts) {
|
|
320
494
|
const record = facts.entry.record;
|
|
321
|
-
writeEvidence(stateDir, activityLogEvent(SUPPORT_INCIDENT_EXPIRED_OPERATION,
|
|
495
|
+
writeEvidence(stateDir, activityLogEvent(SUPPORT_INCIDENT_EXPIRED_OPERATION, retirementEnvelope(incidentLifecycleCorrelation(record, facts.correlationId), facts.removal.failure, undefined, !facts.removal.complete), {
|
|
322
496
|
incidentId: facts.entry.incidentId,
|
|
323
|
-
|
|
324
|
-
|
|
497
|
+
...terminalFailureFields(facts.removal.failure),
|
|
498
|
+
...(facts.removal.claimsStatus === undefined
|
|
499
|
+
? {}
|
|
500
|
+
: { claimsStatus: facts.removal.claimsStatus }),
|
|
501
|
+
expiryReason: facts.retention === undefined ? incidentExpiryReason(record, facts.nowMs) : "retention",
|
|
502
|
+
...(facts.retention === undefined
|
|
503
|
+
? {}
|
|
504
|
+
: {
|
|
505
|
+
retentionCause: facts.retention.cause,
|
|
506
|
+
evictingCorrelationId: facts.retention.correlationId,
|
|
507
|
+
evictingIncidentId: facts.retention.incidentId,
|
|
508
|
+
}),
|
|
509
|
+
removalStatus: facts.removal.removed ? "removed" : "failed",
|
|
510
|
+
...(facts.removal.pinRelease === undefined ? {} : { pinRelease: facts.removal.pinRelease }),
|
|
325
511
|
...(record === undefined
|
|
326
512
|
? {}
|
|
327
513
|
: { defectFingerprint: record.fingerprint.defectFingerprint }),
|
|
328
514
|
openIncidentCount: facts.openIncidentCount,
|
|
329
|
-
...(facts.
|
|
515
|
+
...(facts.removal.complete ? {} : { completeness: "partial" }),
|
|
330
516
|
}));
|
|
331
517
|
}
|
|
332
518
|
// ─── Fingerprint and candidate policy ──────────────────────────────────────────────────────────
|
|
333
|
-
|
|
334
|
-
export function computeDefectFingerprint(input) {
|
|
335
|
-
return createHash("sha256").update(defectFingerprintPreimage(input), "utf8").digest("hex");
|
|
336
|
-
}
|
|
519
|
+
export { computeDefectFingerprint };
|
|
337
520
|
let supportedFailureClasses;
|
|
338
521
|
function supportedFailureClassSet() {
|
|
339
522
|
supportedFailureClasses ??= new Set(ACTIVITY_LOG_FAILURE_CLASS_COVERAGE.classes.map((entry) => entry.failureClass));
|
|
@@ -352,40 +535,6 @@ export function supportIncidentEligibleOperation(op) {
|
|
|
352
535
|
const supported = supportedFailureClassSet();
|
|
353
536
|
return registration.failureClasses.some((failureClass) => supported.has(failureClass));
|
|
354
537
|
}
|
|
355
|
-
function keikoFrames(frames) {
|
|
356
|
-
if (frames === undefined)
|
|
357
|
-
return [];
|
|
358
|
-
return frames.filter((frame) => typeof frame === "string" && FRAME_SHAPE_PATTERN.test(frame));
|
|
359
|
-
}
|
|
360
|
-
function failureFingerprintInput(evidence) {
|
|
361
|
-
return {
|
|
362
|
-
surface: ACTIVITY_LOG_OPERATION_SURFACES[evidence.op] ?? "unattributed",
|
|
363
|
-
op: evidence.op,
|
|
364
|
-
errorKind: activityLogErrorKindOr(evidence.errorKind, "unknown"),
|
|
365
|
-
frames: keikoFrames(evidence.frames),
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function failureCorrelation(evidence) {
|
|
369
|
-
const own = isActivityLogCorrelationId(evidence.correlationId)
|
|
370
|
-
? evidence.correlationId
|
|
371
|
-
: undefined;
|
|
372
|
-
const parent = isActivityLogCorrelationId(evidence.parentCorrelationId)
|
|
373
|
-
? evidence.parentCorrelationId
|
|
374
|
-
: undefined;
|
|
375
|
-
const root = parent ?? own;
|
|
376
|
-
const children = parent !== undefined && own !== undefined && own !== parent ? [own] : [];
|
|
377
|
-
return {
|
|
378
|
-
...(root === undefined ? {} : { rootCorrelationId: root }),
|
|
379
|
-
childCorrelationIds: children.slice(0, MAX_SUPPORT_INCIDENT_CHILD_CORRELATIONS),
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
function incidentWindow(nowMs) {
|
|
383
|
-
return {
|
|
384
|
-
fromMs: Math.max(0, nowMs - SUPPORT_INCIDENT_WINDOW_BEFORE_MS),
|
|
385
|
-
incidentAtMs: nowMs,
|
|
386
|
-
toMs: nowMs + SUPPORT_INCIDENT_WINDOW_AFTER_MS,
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
538
|
function pinFromResult(result) {
|
|
390
539
|
if (result.status === "rejected") {
|
|
391
540
|
return {
|
|
@@ -434,7 +583,7 @@ function overlappingSealedSegmentNames(stateDir, window, correlationId) {
|
|
|
434
583
|
return new Set();
|
|
435
584
|
}
|
|
436
585
|
}
|
|
437
|
-
function
|
|
586
|
+
function buildDescriptor(draft, context, pin, incidentId) {
|
|
438
587
|
const identity = serverLogProcessIdentity();
|
|
439
588
|
return {
|
|
440
589
|
schemaVersion: SUPPORT_INCIDENT_SCHEMA_VERSION,
|
|
@@ -442,48 +591,139 @@ function buildRecord(draft, context, pin, incidentId, slotIndex) {
|
|
|
442
591
|
trigger: draft.trigger,
|
|
443
592
|
state: "candidate",
|
|
444
593
|
fingerprint: {
|
|
445
|
-
algorithm: DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
594
|
+
algorithm: draft.input.algorithm ?? DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
446
595
|
defectFingerprint: context.defectFingerprint,
|
|
447
596
|
surface: draft.input.surface,
|
|
448
597
|
op: draft.input.op,
|
|
449
598
|
errorKind: draft.input.errorKind,
|
|
450
|
-
frameCount:
|
|
599
|
+
frameCount: normalizeDefectFrameSignature(draft.input).length,
|
|
451
600
|
},
|
|
452
601
|
correlation: draft.correlation,
|
|
453
602
|
build: supportIncidentBuild(identity.productVersion, identity.platformClass),
|
|
454
|
-
window:
|
|
603
|
+
window: supportIncidentWindow(context.nowMs),
|
|
455
604
|
pin,
|
|
456
|
-
slotIndex,
|
|
457
605
|
createdAtMs: context.nowMs,
|
|
458
606
|
expiresAtMs: context.nowMs + SUPPORT_INCIDENT_TTL_MS,
|
|
459
607
|
};
|
|
460
608
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
// MAX_SUPPORT_INCIDENTS-MAX_REGISTERED_FAILURE_INCIDENTS slots, so those stay available to a user
|
|
464
|
-
// report even when automatics hold their full share -- reproducing quotaAllows's old count-based
|
|
465
|
-
// reserve atomically, one exclusive-create attempt at a time instead of one racy directory count.
|
|
466
|
-
function slotSearchOrder(trigger) {
|
|
467
|
-
if (trigger === "user-report") {
|
|
468
|
-
return Array.from({ length: MAX_SUPPORT_INCIDENTS }, (_, index) => MAX_SUPPORT_INCIDENTS - 1 - index);
|
|
469
|
-
}
|
|
470
|
-
return Array.from({ length: MAX_REGISTERED_FAILURE_INCIDENTS }, (_, index) => index);
|
|
609
|
+
function buildRecord(draft, context, pin, incidentId, slotIndex) {
|
|
610
|
+
return { ...buildDescriptor(draft, context, pin, incidentId), slotIndex };
|
|
471
611
|
}
|
|
472
|
-
/**
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
612
|
+
/** Pure transient descriptor: no store, pin, retention or log access. */
|
|
613
|
+
export function prepareUnretainedUserReportDescriptor(correlationId) {
|
|
614
|
+
const safeCorrelationId = incidentCorrelationId(correlationId);
|
|
615
|
+
if (safeCorrelationId === undefined)
|
|
616
|
+
throw new TypeError("Invalid support report correlation");
|
|
617
|
+
const input = UNATTRIBUTED_DEFECT_FINGERPRINT_INPUT;
|
|
618
|
+
return buildDescriptor({
|
|
619
|
+
trigger: "user-report",
|
|
620
|
+
input,
|
|
621
|
+
correlation: { rootCorrelationId: safeCorrelationId, childCorrelationIds: [] },
|
|
622
|
+
evidenceCorrelationId: safeCorrelationId,
|
|
623
|
+
}, {
|
|
624
|
+
nowMs: Date.now(),
|
|
625
|
+
defectFingerprint: computeDefectFingerprint(input),
|
|
626
|
+
}, { status: "rejected", pinnedSegmentCount: 0, pinnedBytes: 0, evidenceLostBeforePin: false }, randomBytes(16).toString("hex"));
|
|
627
|
+
}
|
|
628
|
+
function slotCapacity(context, draft) {
|
|
629
|
+
const policy = supportIncidentRetentionPolicy(context.stateDir, context.env);
|
|
630
|
+
if (draft.trigger === "user-report")
|
|
631
|
+
return policy.capacity;
|
|
632
|
+
return draft.input.op === "client.diagnostic" ? policy.browserCapacity : policy.automaticCapacity;
|
|
633
|
+
}
|
|
634
|
+
function occupiedSlots(stateDir) {
|
|
635
|
+
return new Set(listSupportIncidentSlotIndexes(stateDir));
|
|
636
|
+
}
|
|
637
|
+
function claimAvailableSlot(context, draft, incidentId, capacity, occupied) {
|
|
638
|
+
for (let offset = 0; offset < capacity; offset += 1) {
|
|
639
|
+
const index = draft.trigger === "user-report" ? capacity - 1 - offset : offset;
|
|
640
|
+
if (occupied.has(index))
|
|
641
|
+
continue;
|
|
642
|
+
occupied.add(index);
|
|
643
|
+
if (claimSupportIncidentSlot(context.stateDir, index, incidentId))
|
|
644
|
+
return index;
|
|
482
645
|
}
|
|
483
646
|
return undefined;
|
|
484
647
|
}
|
|
648
|
+
function mayEvictCandidate(draft, record) {
|
|
649
|
+
if (draft.trigger === "user-report")
|
|
650
|
+
return true;
|
|
651
|
+
if (record.trigger !== "registered-failure")
|
|
652
|
+
return false;
|
|
653
|
+
return draft.input.op !== "client.diagnostic" || record.fingerprint.op === "client.diagnostic";
|
|
654
|
+
}
|
|
655
|
+
function occupiedClassSlots(occupied, capacity) {
|
|
656
|
+
return new Set([...occupied].filter((index) => index <= capacity));
|
|
657
|
+
}
|
|
658
|
+
function evictableRecord(record, draft, capacity) {
|
|
659
|
+
return record !== undefined && record.slotIndex <= capacity && mayEvictCandidate(draft, record);
|
|
660
|
+
}
|
|
661
|
+
function evictOldestCandidate(context, draft, entries, capacity, publishedIncidentId, openIncidentCount = entries.length) {
|
|
662
|
+
const entry = entries.find(({ record }) => evictableRecord(record, draft, capacity) && record.incidentId !== publishedIncidentId);
|
|
663
|
+
if (entry === undefined)
|
|
664
|
+
return undefined;
|
|
665
|
+
const removal = removeEntry(context.stateDir, entry, context);
|
|
666
|
+
if (removal.removed)
|
|
667
|
+
context.evictedIncidentId = entry.incidentId;
|
|
668
|
+
expiredEvidence(context.stateDir, {
|
|
669
|
+
nowMs: context.nowMs,
|
|
670
|
+
entry,
|
|
671
|
+
removal,
|
|
672
|
+
correlationId: draft.evidenceCorrelationId,
|
|
673
|
+
openIncidentCount: openIncidentCount - Number(removal.removed),
|
|
674
|
+
retention: {
|
|
675
|
+
cause: "slot-pressure",
|
|
676
|
+
correlationId: draft.evidenceCorrelationId,
|
|
677
|
+
incidentId: publishedIncidentId,
|
|
678
|
+
},
|
|
679
|
+
});
|
|
680
|
+
// Cleanup completeness describes evidence, not slot availability. The next exclusive claim
|
|
681
|
+
// rechecks the actual slot; a failed pin/fingerprint cleanup must not reject a freed slot.
|
|
682
|
+
return removal.removed ? entry.incidentId : undefined;
|
|
683
|
+
}
|
|
684
|
+
function ownsRecoveryClaim(stateDir, record) {
|
|
685
|
+
return (record !== undefined &&
|
|
686
|
+
readSupportIncidentSlotClaim(stateDir, record.slotIndex)?.incidentId === record.incidentId);
|
|
687
|
+
}
|
|
688
|
+
function recoverPublicationReserve(context, draft, entries, capacity, incidentId, occupied) {
|
|
689
|
+
const classSlots = occupiedClassSlots(occupied, capacity);
|
|
690
|
+
if (classSlots.size <= capacity)
|
|
691
|
+
return false;
|
|
692
|
+
const durable = entries.filter(({ record }) => record !== undefined && classSlots.has(record.slotIndex));
|
|
693
|
+
// Unpublished peers are recognized by names alone, before any claim contents are opened.
|
|
694
|
+
if (new Set(durable.map((entry) => entry.record?.slotIndex)).size !== classSlots.size)
|
|
695
|
+
return false;
|
|
696
|
+
for (const { record } of durable) {
|
|
697
|
+
if (!ownsRecoveryClaim(context.stateDir, record)) {
|
|
698
|
+
// A withdrawn owner permits a fresh exclusive attempt. A missing claim alone does not
|
|
699
|
+
// authorize reusing a slot while its prior durable record still exists.
|
|
700
|
+
return (record !== undefined && isSupportIncidentRecordAbsent(context.stateDir, record.incidentId));
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
const eligible = durable.filter(({ record }) => record !== undefined && mayEvictCandidate(draft, record));
|
|
704
|
+
if (eligible.length <= capacity)
|
|
705
|
+
return false;
|
|
706
|
+
return (evictOldestCandidate(context, draft, durable, capacity, incidentId, entries.length) !==
|
|
707
|
+
undefined);
|
|
708
|
+
}
|
|
709
|
+
function claimQuotaSlot(context, draft, incidentId, entries) {
|
|
710
|
+
const capacity = slotCapacity(context, draft);
|
|
711
|
+
const occupied = new Set(occupiedSlots(context.stateDir));
|
|
712
|
+
if (occupiedClassSlots(occupied, capacity).size >= capacity &&
|
|
713
|
+
!entries.some(({ record }) => evictableRecord(record, draft, capacity)))
|
|
714
|
+
return undefined;
|
|
715
|
+
let slotIndex = claimAvailableSlot(context, draft, incidentId, capacity + 1, occupied);
|
|
716
|
+
if (slotIndex === undefined) {
|
|
717
|
+
if (!recoverPublicationReserve(context, draft, entries, capacity, incidentId, occupied))
|
|
718
|
+
return undefined;
|
|
719
|
+
// Recovery or a peer may have released a claim since the first snapshot. Names only guide
|
|
720
|
+
// this one retry; the exclusive claim still refuses a slot reclaimed after the fresh read.
|
|
721
|
+
slotIndex = claimAvailableSlot(context, draft, incidentId, capacity + 1, new Set(occupiedSlots(context.stateDir)));
|
|
722
|
+
}
|
|
723
|
+
return slotIndex;
|
|
724
|
+
}
|
|
485
725
|
// Releases a window pin a draft already published before dedup or quota was decided (the
|
|
486
|
-
// registered-failure trigger
|
|
726
|
+
// registered-failure trigger attempts immediate protection; see observeSupportIncidentTrigger). Nothing will
|
|
487
727
|
// reference it once the candidate is rejected or turns out to be a duplicate, so it must not sit
|
|
488
728
|
// and hold its segments for no reason until its own TTL. Never throws: `releaseWindowPin` mirrors
|
|
489
729
|
// `releaseActivityLogPin`'s own closed, evidenced-rejection contract.
|
|
@@ -501,8 +741,12 @@ function reject(context, draft, reason, openIncidentCount) {
|
|
|
501
741
|
reason,
|
|
502
742
|
trigger: draft.trigger,
|
|
503
743
|
defectFingerprint: context.defectFingerprint,
|
|
744
|
+
fingerprintAlgorithm: draft.input.algorithm ?? DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
504
745
|
correlationId: draft.evidenceCorrelationId,
|
|
505
|
-
openIncidentCount,
|
|
746
|
+
openIncidentCount: openIncidentCount - Number(context.evictedIncidentId !== undefined),
|
|
747
|
+
...(context.evictedIncidentId === undefined
|
|
748
|
+
? {}
|
|
749
|
+
: { evictedIncidentId: context.evictedIncidentId }),
|
|
506
750
|
});
|
|
507
751
|
return { status: "rejected", reason };
|
|
508
752
|
}
|
|
@@ -512,6 +756,50 @@ const REJECTED_PIN = {
|
|
|
512
756
|
pinnedBytes: 0,
|
|
513
757
|
evidenceLostBeforePin: false,
|
|
514
758
|
};
|
|
759
|
+
function ownsDiagnosticPin(record, pin) {
|
|
760
|
+
return (record.pin.pinId === pin.pinId &&
|
|
761
|
+
pin.reason === "incident" &&
|
|
762
|
+
pin.scope.kind === "window" &&
|
|
763
|
+
pin.scope.fromMs === record.window.fromMs &&
|
|
764
|
+
pin.scope.toMs === record.window.toMs);
|
|
765
|
+
}
|
|
766
|
+
function rollDiagnosticPin(context, publishedIncidentId) {
|
|
767
|
+
const directory = join(context.stateDir, ACTIVITY_LOG_DIRECTORY_NAME);
|
|
768
|
+
const pins = activeActivityLogPins(readActivityLogPins(listActivityLogDirectory(directory), directory), context.nowMs);
|
|
769
|
+
if (pins.length < MAX_ACTIVITY_LOG_PINS)
|
|
770
|
+
return;
|
|
771
|
+
const entries = listSupportIncidentEntries(context.stateDir);
|
|
772
|
+
const oldest = entries.find(({ record }) => record !== undefined &&
|
|
773
|
+
record.incidentId !== publishedIncidentId &&
|
|
774
|
+
context.candidate !== undefined &&
|
|
775
|
+
mayEvictCandidate(context.candidate, record) &&
|
|
776
|
+
pins.some((pin) => ownsDiagnosticPin(record, pin)));
|
|
777
|
+
if (oldest === undefined)
|
|
778
|
+
return;
|
|
779
|
+
const removal = removeEntry(context.stateDir, oldest, context);
|
|
780
|
+
expiredEvidence(context.stateDir, {
|
|
781
|
+
nowMs: context.nowMs,
|
|
782
|
+
entry: oldest,
|
|
783
|
+
removal,
|
|
784
|
+
retention: {
|
|
785
|
+
cause: "pin-ceiling",
|
|
786
|
+
correlationId: context.correlationId,
|
|
787
|
+
incidentId: publishedIncidentId,
|
|
788
|
+
},
|
|
789
|
+
correlationId: context.correlationId,
|
|
790
|
+
openIncidentCount: entries.length - Number(removal.removed),
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
function requestIncidentPin(context) {
|
|
794
|
+
const window = supportIncidentWindow(context.nowMs);
|
|
795
|
+
const request = {
|
|
796
|
+
scope: { kind: "window", fromMs: window.fromMs, toMs: window.toMs },
|
|
797
|
+
expiresAtMs: context.nowMs + SUPPORT_INCIDENT_TTL_MS,
|
|
798
|
+
reason: "incident",
|
|
799
|
+
correlationId: context.correlationId,
|
|
800
|
+
};
|
|
801
|
+
return pinActivityLogWindow(context.stateDir, request, context.env);
|
|
802
|
+
}
|
|
515
803
|
/**
|
|
516
804
|
* Publishes the Activity Log retention pin for the incident window and seals the caller's own
|
|
517
805
|
* active segment as part of that request (#3530). Also detects the residual race a synchronous
|
|
@@ -521,16 +809,12 @@ const REJECTED_PIN = {
|
|
|
521
809
|
* loss is reported as `evidenceLostBeforePin` instead of a silent, clean `pinned`. A failed pin
|
|
522
810
|
* never blocks the candidate: it is recorded as `rejected`, so sufficiency can say so.
|
|
523
811
|
*/
|
|
524
|
-
function pinIncidentWindow(stateDir, nowMs, correlationId, env) {
|
|
525
|
-
const window =
|
|
526
|
-
const before =
|
|
812
|
+
function pinIncidentWindow(stateDir, nowMs, correlationId, env, candidate) {
|
|
813
|
+
const window = supportIncidentWindow(nowMs);
|
|
814
|
+
const before = candidate?.sealedSegmentsBeforePin ??
|
|
815
|
+
overlappingSealedSegmentNames(stateDir, window, correlationId);
|
|
527
816
|
try {
|
|
528
|
-
const pin = pinFromResult(
|
|
529
|
-
scope: { kind: "window", fromMs: window.fromMs, toMs: window.toMs },
|
|
530
|
-
expiresAtMs: nowMs + SUPPORT_INCIDENT_TTL_MS,
|
|
531
|
-
reason: "incident",
|
|
532
|
-
correlationId,
|
|
533
|
-
}, env));
|
|
817
|
+
const pin = pinFromResult(requestIncidentPin({ stateDir, nowMs, correlationId, env }));
|
|
534
818
|
if (pin.status === "rejected" || before.size === 0)
|
|
535
819
|
return pin;
|
|
536
820
|
const after = overlappingSealedSegmentNames(stateDir, window, correlationId);
|
|
@@ -543,12 +827,13 @@ function pinIncidentWindow(stateDir, nowMs, correlationId, env) {
|
|
|
543
827
|
}
|
|
544
828
|
}
|
|
545
829
|
function publishCandidate(draft, context, entries, incidentId, slotIndex) {
|
|
546
|
-
const pin = draft.prePinned
|
|
547
|
-
|
|
830
|
+
const pin = draft.prePinned !== undefined && draft.prePinned.status !== "rejected"
|
|
831
|
+
? draft.prePinned
|
|
832
|
+
: pinIncidentWindow(context.stateDir, context.nowMs, draft.evidenceCorrelationId, context.env, draft);
|
|
548
833
|
const record = buildRecord(draft, context, pin, incidentId, slotIndex);
|
|
549
834
|
const payload = serializeSupportIncidentRecord(record);
|
|
550
835
|
if (payload === undefined)
|
|
551
|
-
return reject(context, draft, "record-too-large", entries.length);
|
|
836
|
+
return reject(context, { ...draft, prePinned: pin }, "record-too-large", entries.length);
|
|
552
837
|
try {
|
|
553
838
|
writeSupportIncidentRecord(supportIncidentDirectory(context.stateDir), payload, record.incidentId);
|
|
554
839
|
}
|
|
@@ -557,12 +842,30 @@ function publishCandidate(draft, context, entries, incidentId, slotIndex) {
|
|
|
557
842
|
op: SUPPORT_INCIDENT_REJECTED_OPERATION.op,
|
|
558
843
|
correlationId: draft.evidenceCorrelationId,
|
|
559
844
|
});
|
|
560
|
-
|
|
561
|
-
return reject(context, draft, "store-unavailable", entries.length);
|
|
845
|
+
return reject(context, { ...draft, prePinned: pin }, "store-unavailable", entries.length);
|
|
562
846
|
}
|
|
563
|
-
|
|
847
|
+
const publishedEntries = listSupportIncidentEntries(context.stateDir);
|
|
848
|
+
const retainedCount = publishedEntries.filter((entry) => openEntry(entry, context.nowMs)).length;
|
|
849
|
+
createdEvidence(context.stateDir, record, draft.evidenceCorrelationId, retainedCount);
|
|
850
|
+
finishCandidateRetention(context, draft, record.incidentId, publishedEntries);
|
|
564
851
|
return { status: "created", incidentId: record.incidentId, record };
|
|
565
852
|
}
|
|
853
|
+
// Retirement only follows durable publication. Exclusive slot ownership admits at most one
|
|
854
|
+
// replacement above each retained share; a peer's pending claim is never stolen to make space.
|
|
855
|
+
function finishCandidateRetention(context, draft, incidentId, entries) {
|
|
856
|
+
try {
|
|
857
|
+
const capacity = slotCapacity(context, draft);
|
|
858
|
+
if ([...occupiedSlots(context.stateDir)].filter((index) => index <= capacity).length > capacity)
|
|
859
|
+
evictOldestCandidate(context, draft, entries, capacity, incidentId);
|
|
860
|
+
rollDiagnosticPin({ ...context, correlationId: draft.evidenceCorrelationId, candidate: draft }, incidentId);
|
|
861
|
+
}
|
|
862
|
+
catch (error) {
|
|
863
|
+
reportServerLogFailure(error, {
|
|
864
|
+
op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op,
|
|
865
|
+
correlationId: draft.evidenceCorrelationId,
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
}
|
|
566
869
|
// What a fingerprint claim another occurrence holds means for this one. Its record exists: a plain
|
|
567
870
|
// duplicate. Its record is missing but the claim is younger than the in-flight grace: the holder
|
|
568
871
|
// is still publishing, so this occurrence is its duplicate, or, when the holder has not written its
|
|
@@ -631,7 +934,7 @@ function deduplicationTarget(incidentId, record, context, draft) {
|
|
|
631
934
|
? {
|
|
632
935
|
incidentId,
|
|
633
936
|
defectFingerprint: context.defectFingerprint,
|
|
634
|
-
fingerprintAlgorithm: DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
937
|
+
fingerprintAlgorithm: draft.input.algorithm ?? DEFECT_FINGERPRINT_ALGORITHM_VERSION,
|
|
635
938
|
trigger: draft.trigger,
|
|
636
939
|
}
|
|
637
940
|
: {
|
|
@@ -658,6 +961,41 @@ function handleDedup(stateDir, context, draft, dedupFingerprint, incidentId, ope
|
|
|
658
961
|
}
|
|
659
962
|
return { done: false };
|
|
660
963
|
}
|
|
964
|
+
function draftDeduplicationKey(draft, fingerprint) {
|
|
965
|
+
return draft.trigger === "registered-failure"
|
|
966
|
+
? registeredFailureDeduplicationKey(draft.input.op, draft.input.algorithm ?? 1, fingerprint, draft.correlation)
|
|
967
|
+
: undefined;
|
|
968
|
+
}
|
|
969
|
+
function releaseDraftFingerprint(context, fingerprint, incidentId, correlationId) {
|
|
970
|
+
if (fingerprint === undefined)
|
|
971
|
+
return;
|
|
972
|
+
try {
|
|
973
|
+
releaseSupportIncidentFingerprintClaim(context.stateDir, fingerprint, incidentId);
|
|
974
|
+
}
|
|
975
|
+
catch (error) {
|
|
976
|
+
reportServerLogFailure(error, {
|
|
977
|
+
op: SUPPORT_INCIDENT_REJECTED_OPERATION.op,
|
|
978
|
+
correlationId,
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
function admitCandidateQuota(context, draft, incidentId, entries, fingerprint) {
|
|
983
|
+
try {
|
|
984
|
+
const quota = claimQuotaSlot(context, draft, incidentId, entries);
|
|
985
|
+
if (quota !== undefined)
|
|
986
|
+
return quota;
|
|
987
|
+
releaseDraftFingerprint(context, fingerprint, incidentId, draft.evidenceCorrelationId);
|
|
988
|
+
return reject(context, draft, "quota-exhausted", entries.length);
|
|
989
|
+
}
|
|
990
|
+
catch (error) {
|
|
991
|
+
reportServerLogFailure(error, {
|
|
992
|
+
op: SUPPORT_INCIDENT_REJECTED_OPERATION.op,
|
|
993
|
+
correlationId: draft.evidenceCorrelationId,
|
|
994
|
+
});
|
|
995
|
+
releaseDraftFingerprint(context, fingerprint, incidentId, draft.evidenceCorrelationId);
|
|
996
|
+
return reject(context, draft, "store-unavailable", entries.length);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
661
999
|
function createCandidate(stateDir, draft, options) {
|
|
662
1000
|
claimActivityLogWriterOwnership(stateDir, draft.evidenceCorrelationId);
|
|
663
1001
|
const context = {
|
|
@@ -671,29 +1009,25 @@ function createCandidate(stateDir, draft, options) {
|
|
|
671
1009
|
return swept.result;
|
|
672
1010
|
const entries = swept.entries;
|
|
673
1011
|
const incidentId = randomBytes(16).toString("hex");
|
|
674
|
-
const dedupFingerprint = draft
|
|
1012
|
+
const dedupFingerprint = draftDeduplicationKey(draft, context.defectFingerprint);
|
|
675
1013
|
if (dedupFingerprint !== undefined) {
|
|
676
1014
|
const handled = handleDedup(stateDir, context, draft, dedupFingerprint, incidentId, entries.length);
|
|
677
1015
|
if (handled.done)
|
|
678
1016
|
return handled.result;
|
|
679
1017
|
}
|
|
680
|
-
const
|
|
681
|
-
if (
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
return reject(context, draft, "quota-exhausted", entries.length);
|
|
686
|
-
}
|
|
687
|
-
const created = publishCandidate(draft, context, entries, incidentId, slotIndex);
|
|
1018
|
+
const quota = admitCandidateQuota(context, draft, incidentId, entries, dedupFingerprint);
|
|
1019
|
+
if (typeof quota !== "number")
|
|
1020
|
+
return quota;
|
|
1021
|
+
const created = publishCandidate(draft, context, entries, incidentId, quota);
|
|
688
1022
|
if (created.status !== "created")
|
|
689
|
-
releaseClaims(stateDir, dedupFingerprint,
|
|
1023
|
+
releaseClaims(stateDir, dedupFingerprint, quota, incidentId);
|
|
690
1024
|
return created;
|
|
691
1025
|
}
|
|
692
1026
|
function registeredFailureDraft(evidence) {
|
|
693
|
-
const correlation =
|
|
1027
|
+
const correlation = registeredFailureCorrelation(evidence);
|
|
694
1028
|
return {
|
|
695
1029
|
trigger: "registered-failure",
|
|
696
|
-
input:
|
|
1030
|
+
input: registeredFailureFingerprintInput(evidence),
|
|
697
1031
|
correlation,
|
|
698
1032
|
// The failing operation's own correlation (validated), so the candidate's lines join it.
|
|
699
1033
|
evidenceCorrelationId: correlation.childCorrelationIds[0] ?? correlation.rootCorrelationId ?? randomUUID(),
|
|
@@ -714,9 +1048,7 @@ export function recordRegisteredFailureIncident(stateDir, evidence, options = {}
|
|
|
714
1048
|
* the pinned window, where a missing registered failure is a closed instrumentation-gap reason.
|
|
715
1049
|
*/
|
|
716
1050
|
export function recordUserReportedIncident(stateDir, options = {}) {
|
|
717
|
-
const correlationId =
|
|
718
|
-
? options.correlationId
|
|
719
|
-
: randomUUID();
|
|
1051
|
+
const correlationId = incidentCorrelationId(options.correlationId) ?? randomUUID();
|
|
720
1052
|
return createCandidate(stateDir, {
|
|
721
1053
|
trigger: "user-report",
|
|
722
1054
|
input: UNATTRIBUTED_DEFECT_FINGERPRINT_INPUT,
|
|
@@ -726,70 +1058,108 @@ export function recordUserReportedIncident(stateDir, options = {}) {
|
|
|
726
1058
|
}
|
|
727
1059
|
// ─── Reading, expiry, dismissal ────────────────────────────────────────────────────────────────
|
|
728
1060
|
function openEntry(entry, nowMs) {
|
|
729
|
-
return entry.record !== undefined && entry.record
|
|
1061
|
+
return entry.record !== undefined && supportIncidentEffectiveExpiry(entry.record) > nowMs;
|
|
730
1062
|
}
|
|
731
1063
|
// An expired record, or an unreadable one whose writer is gone. An unreadable record younger than
|
|
732
1064
|
// the in-flight grace may still be mid-write by another process: it is neither open nor removed.
|
|
733
1065
|
function removableEntry(entry, nowMs) {
|
|
734
1066
|
return entry.record === undefined
|
|
735
1067
|
? abandonedStoreFile(entry.modifiedAtMs)
|
|
736
|
-
: entry.record
|
|
1068
|
+
: supportIncidentEffectiveExpiry(entry.record) <= nowMs;
|
|
737
1069
|
}
|
|
738
1070
|
// Releases the quota-slot claim, and (for a registered failure) the fingerprint claim, that a
|
|
739
1071
|
// record's own existence depends on. Shared by dismissal and by the expiry sweep below, and by
|
|
740
1072
|
// createCandidate's own rollback when a claimed slot's record write ultimately fails.
|
|
741
|
-
function releaseClaims(stateDir, defectFingerprint, slotIndex) {
|
|
1073
|
+
function releaseClaims(stateDir, defectFingerprint, slotIndex, incidentId) {
|
|
742
1074
|
if (defectFingerprint !== undefined) {
|
|
743
|
-
|
|
1075
|
+
try {
|
|
1076
|
+
releaseSupportIncidentFingerprintClaim(stateDir, defectFingerprint, incidentId);
|
|
1077
|
+
}
|
|
1078
|
+
catch (error) {
|
|
1079
|
+
try {
|
|
1080
|
+
releaseSupportIncidentSlot(stateDir, slotIndex, incidentId);
|
|
1081
|
+
}
|
|
1082
|
+
catch (slotError) {
|
|
1083
|
+
throw new AggregateError([error, slotError], "Support incident claim cleanup failed", {
|
|
1084
|
+
cause: slotError,
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
throw error;
|
|
1088
|
+
}
|
|
744
1089
|
}
|
|
745
|
-
releaseSupportIncidentSlot(stateDir, slotIndex);
|
|
1090
|
+
releaseSupportIncidentSlot(stateDir, slotIndex, incidentId);
|
|
746
1091
|
}
|
|
747
1092
|
function releaseRecordClaims(stateDir, record) {
|
|
748
|
-
releaseClaims(stateDir, record.trigger === "registered-failure"
|
|
1093
|
+
releaseClaims(stateDir, record.trigger === "registered-failure"
|
|
1094
|
+
? registeredFailureDeduplicationKey(record.fingerprint.op, record.fingerprint.algorithm, record.fingerprint.defectFingerprint, record.correlation)
|
|
1095
|
+
: undefined, record.slotIndex, record.incidentId);
|
|
749
1096
|
}
|
|
750
|
-
function
|
|
1097
|
+
function releaseEntryClaims(stateDir, record, op = SUPPORT_INCIDENT_EXPIRED_OPERATION.op, correlationId = incidentLifecycleCorrelation(record)) {
|
|
1098
|
+
try {
|
|
1099
|
+
releaseRecordClaims(stateDir, record);
|
|
1100
|
+
return { released: true };
|
|
1101
|
+
}
|
|
1102
|
+
catch (error) {
|
|
1103
|
+
reportServerLogFailure(error, { op, correlationId });
|
|
1104
|
+
return { released: false, failure: retirementFailure(error) };
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
function removeEntry(stateDir, entry, options = {}) {
|
|
751
1108
|
try {
|
|
752
1109
|
removeSupportIncidentRecord(stateDir, entry.incidentId);
|
|
753
1110
|
}
|
|
754
1111
|
catch (error) {
|
|
755
|
-
reportServerLogFailure(error, {
|
|
756
|
-
|
|
1112
|
+
reportServerLogFailure(error, {
|
|
1113
|
+
op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op,
|
|
1114
|
+
correlationId: options.correlationId ?? incidentLifecycleCorrelation(entry.record),
|
|
1115
|
+
});
|
|
1116
|
+
return { removed: false, complete: false, failure: retirementFailure(error) };
|
|
757
1117
|
}
|
|
758
|
-
if (entry.record
|
|
759
|
-
|
|
760
|
-
|
|
1118
|
+
if (entry.record === undefined)
|
|
1119
|
+
return { removed: true, complete: true };
|
|
1120
|
+
const claims = releaseEntryClaims(stateDir, entry.record, SUPPORT_INCIDENT_EXPIRED_OPERATION.op, options.correlationId ?? incidentLifecycleCorrelation(entry.record));
|
|
1121
|
+
const pinRelease = releaseIncidentPin(stateDir, entry.record, {
|
|
1122
|
+
correlationId: incidentLifecycleCorrelation(entry.record, options.correlationId),
|
|
1123
|
+
env: options.env ?? process.env,
|
|
1124
|
+
});
|
|
1125
|
+
return {
|
|
1126
|
+
removed: true,
|
|
1127
|
+
complete: claims.released && pinRelease !== "rejected",
|
|
1128
|
+
pinRelease,
|
|
1129
|
+
claimsStatus: claims.released ? "released" : "failed",
|
|
1130
|
+
...(claims.released ? {} : { failure: claims.failure }),
|
|
1131
|
+
};
|
|
761
1132
|
}
|
|
762
1133
|
// A claim whose referenced incidentId names no record right now is an orphan once it is older than
|
|
763
1134
|
// the in-flight grace: a crash between claiming and writing that record, or a record already
|
|
764
1135
|
// removed by the loop above in this same pass. A younger claim may belong to an occurrence still
|
|
765
1136
|
// publishing its record in another process, so it is left alone (#3533 review 4050606506).
|
|
766
|
-
//
|
|
767
|
-
//
|
|
768
|
-
//
|
|
769
|
-
//
|
|
770
|
-
|
|
771
|
-
// per claim (#3533 review 4050606506) so one bad removal never blocks the rest.
|
|
772
|
-
function sweepOrphanedClaims(stateDir) {
|
|
1137
|
+
// A validated retained owner in this sweep is sufficient to KEEP a claim. If a peer removes that
|
|
1138
|
+
// owner after the snapshot, conservative retention only postpones orphan cleanup to the next pass.
|
|
1139
|
+
// A snapshot can never prove absence: an unknown owner is freshly read before guarded removal,
|
|
1140
|
+
// preserving a peer that published between this sweep's first scan and its claim inspection.
|
|
1141
|
+
function sweepOrphanedClaims(stateDir, correlationId, retained) {
|
|
773
1142
|
let claims;
|
|
774
1143
|
try {
|
|
775
1144
|
claims = listSupportIncidentClaims(stateDir);
|
|
776
1145
|
}
|
|
777
1146
|
catch (error) {
|
|
778
|
-
reportServerLogFailure(error, { op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op });
|
|
1147
|
+
reportServerLogFailure(error, { op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op, correlationId });
|
|
779
1148
|
return;
|
|
780
1149
|
}
|
|
781
1150
|
for (const claim of claims) {
|
|
782
1151
|
if (!abandonedStoreFile(claim.claimedAtMs))
|
|
783
1152
|
continue;
|
|
784
1153
|
if (claim.incidentId !== undefined &&
|
|
785
|
-
|
|
1154
|
+
(retained.has(claim.incidentId) ||
|
|
1155
|
+
readSupportIncidentRecord(stateDir, claim.incidentId) !== undefined)) {
|
|
786
1156
|
continue;
|
|
787
1157
|
}
|
|
788
1158
|
try {
|
|
789
|
-
removeSupportIncidentClaimFile(stateDir, claim.fileName);
|
|
1159
|
+
removeSupportIncidentClaimFile(stateDir, claim.fileName, claim);
|
|
790
1160
|
}
|
|
791
1161
|
catch (error) {
|
|
792
|
-
reportServerLogFailure(error, { op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op });
|
|
1162
|
+
reportServerLogFailure(error, { op: SUPPORT_INCIDENT_EXPIRED_OPERATION.op, correlationId });
|
|
793
1163
|
}
|
|
794
1164
|
}
|
|
795
1165
|
}
|
|
@@ -806,16 +1176,27 @@ function sweepExpiredEntries(stateDir, nowMs, correlationId) {
|
|
|
806
1176
|
for (const entry of entries) {
|
|
807
1177
|
if (!removableEntry(entry, nowMs))
|
|
808
1178
|
continue;
|
|
809
|
-
const
|
|
810
|
-
expiredEvidence(stateDir, {
|
|
1179
|
+
const removal = removeEntry(stateDir, entry, { correlationId });
|
|
1180
|
+
expiredEvidence(stateDir, {
|
|
1181
|
+
entry,
|
|
1182
|
+
removal,
|
|
1183
|
+
correlationId,
|
|
1184
|
+
openIncidentCount: open.length,
|
|
1185
|
+
nowMs,
|
|
1186
|
+
});
|
|
811
1187
|
}
|
|
812
|
-
|
|
1188
|
+
const retained = new Set(open.flatMap(({ record }) => (record === undefined ? [] : [record.incidentId])));
|
|
1189
|
+
sweepOrphanedClaims(stateDir, correlationId, retained);
|
|
813
1190
|
return open;
|
|
814
1191
|
}
|
|
815
1192
|
/** The open (unexpired, readable) incident records, oldest first. Expires stale records first. */
|
|
816
1193
|
export function listSupportIncidents(stateDir, options = {}) {
|
|
817
1194
|
const correlationId = options.correlationId ?? randomUUID();
|
|
818
|
-
|
|
1195
|
+
const nowMs = options.nowMs ?? Date.now();
|
|
1196
|
+
const entries = options.readOnly === true
|
|
1197
|
+
? listSupportIncidentEntries(stateDir).filter((entry) => openEntry(entry, nowMs))
|
|
1198
|
+
: sweepExpiredEntries(stateDir, nowMs, correlationId);
|
|
1199
|
+
return entries.flatMap((entry) => (entry.record === undefined ? [] : [entry.record]));
|
|
819
1200
|
}
|
|
820
1201
|
/**
|
|
821
1202
|
* One open incident record by id: `undefined` when the id is malformed, unknown, expired, or its
|
|
@@ -823,7 +1204,8 @@ export function listSupportIncidents(stateDir, options = {}) {
|
|
|
823
1204
|
*/
|
|
824
1205
|
export function readSupportIncident(stateDir, incidentId, options = {}) {
|
|
825
1206
|
const record = readSupportIncidentRecord(stateDir, incidentId);
|
|
826
|
-
return record !== undefined &&
|
|
1207
|
+
return record !== undefined &&
|
|
1208
|
+
supportIncidentEffectiveExpiry(record) > (options.nowMs ?? Date.now())
|
|
827
1209
|
? record
|
|
828
1210
|
: undefined;
|
|
829
1211
|
}
|
|
@@ -847,45 +1229,136 @@ export function supportIncidentSegmentFiles(stateDir, record) {
|
|
|
847
1229
|
}
|
|
848
1230
|
// Shared by dismissal (an existing record's own pin) and by a candidate outcome other than
|
|
849
1231
|
// "created" that must release a pin it published pre-emptively (releasePrePinned above). Never
|
|
850
|
-
// throws: an absent pin id
|
|
851
|
-
//
|
|
1232
|
+
// throws: an absent pin id or a pin already removed by a peer is `not-pinned`;
|
|
1233
|
+
// other failed releases remain rejected, preserving their partial-cleanup evidence.
|
|
852
1234
|
function releaseWindowPin(stateDir, pinId, context) {
|
|
853
1235
|
if (pinId === undefined)
|
|
854
1236
|
return "not-pinned";
|
|
855
1237
|
const result = releaseActivityLogPin(stateDir, { pinId, correlationId: context.correlationId }, context.env);
|
|
856
|
-
|
|
1238
|
+
if (result.status === "released")
|
|
1239
|
+
return "released";
|
|
1240
|
+
return result.reason === "not-found" ? "not-pinned" : "rejected";
|
|
857
1241
|
}
|
|
858
1242
|
function releaseIncidentPin(stateDir, record, context) {
|
|
859
1243
|
return releaseWindowPin(stateDir, record.pin.pinId, context);
|
|
860
1244
|
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1245
|
+
function failedWithdrawal(stateDir, record, context) {
|
|
1246
|
+
dismissedEvidence(stateDir, record, {
|
|
1247
|
+
...context,
|
|
1248
|
+
removalStatus: "failed",
|
|
1249
|
+
pinRelease: "not-attempted",
|
|
1250
|
+
claimsReleased: false,
|
|
1251
|
+
});
|
|
1252
|
+
return "failed";
|
|
1253
|
+
}
|
|
1254
|
+
function retirementFailedEvidence(incidentId, options, failureStage, error) {
|
|
1255
|
+
const { errorKind, ...failureFields } = retirementFailure(error);
|
|
1256
|
+
return activityLogEvent(SUPPORT_INCIDENT_RETIREMENT_FAILED_OPERATION, {
|
|
1257
|
+
level: "warn",
|
|
1258
|
+
correlationId: options.correlationId,
|
|
1259
|
+
errorKind,
|
|
1260
|
+
}, {
|
|
1261
|
+
incidentId,
|
|
1262
|
+
failureStage,
|
|
1263
|
+
...failureFields,
|
|
1264
|
+
...(options.retirementReason === undefined ? {} : { reason: options.retirementReason }),
|
|
1265
|
+
completeness: "partial",
|
|
1266
|
+
loss: "none",
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
function inspectRetirement(stateDir, incidentId, options) {
|
|
1270
|
+
let stage = "read";
|
|
871
1271
|
try {
|
|
872
|
-
|
|
1272
|
+
// Keep this cheap guard before the mutating sweep: an unknown or already withdrawn id must
|
|
1273
|
+
// not expire unrelated candidates. A known target is re-read by the sweep before retirement.
|
|
1274
|
+
if (readSupportIncidentRecord(stateDir, incidentId) === undefined)
|
|
1275
|
+
return "not-found";
|
|
1276
|
+
stage = "sweep";
|
|
1277
|
+
const open = sweepExpiredEntries(stateDir, options.nowMs ?? Date.now(), options.correlationId);
|
|
1278
|
+
const record = open.find((entry) => entry.incidentId === incidentId)?.record;
|
|
1279
|
+
return record === undefined ? "not-found" : { record, openIncidentCount: open.length };
|
|
873
1280
|
}
|
|
874
1281
|
catch (error) {
|
|
875
|
-
|
|
1282
|
+
try {
|
|
1283
|
+
const sink = createFileServerLogSink(stateDir, { level: "debug" });
|
|
1284
|
+
sink.write(retirementFailedEvidence(incidentId, options, stage, error));
|
|
1285
|
+
}
|
|
1286
|
+
catch {
|
|
1287
|
+
recordActivityLogLoss("persistence-failed");
|
|
1288
|
+
reportServerLogFailure(error, {
|
|
1289
|
+
op: SUPPORT_INCIDENT_RETIREMENT_FAILED_OPERATION.op,
|
|
1290
|
+
correlationId: options.correlationId,
|
|
1291
|
+
loss: "event-dropped",
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
876
1294
|
return "failed";
|
|
877
1295
|
}
|
|
878
|
-
|
|
1296
|
+
}
|
|
1297
|
+
function finishRetirement(stateDir, record, options, openIncidentCount) {
|
|
1298
|
+
const claims = releaseEntryClaims(stateDir, record, SUPPORT_INCIDENT_DISMISSED_OPERATION.op, options.correlationId);
|
|
879
1299
|
const pinRelease = releaseIncidentPin(stateDir, record, {
|
|
880
|
-
correlationId,
|
|
1300
|
+
correlationId: incidentLifecycleCorrelation(record, options.correlationId),
|
|
881
1301
|
env: options.env ?? process.env,
|
|
882
1302
|
});
|
|
883
1303
|
dismissedEvidence(stateDir, record, {
|
|
884
|
-
correlationId,
|
|
885
|
-
openIncidentCount:
|
|
1304
|
+
correlationId: options.correlationId,
|
|
1305
|
+
openIncidentCount: openIncidentCount - 1,
|
|
886
1306
|
pinRelease,
|
|
1307
|
+
claimsReleased: claims.released,
|
|
1308
|
+
...(claims.released ? {} : { failure: claims.failure }),
|
|
1309
|
+
reason: options.retirementReason,
|
|
887
1310
|
});
|
|
888
|
-
return "dismissed";
|
|
1311
|
+
return claims.released && pinRelease !== "rejected" ? "dismissed" : "dismissed-incomplete";
|
|
1312
|
+
}
|
|
1313
|
+
/** Withdraw the owned record before releasing its pin and claims; retain ownership on failure. */
|
|
1314
|
+
function retireSupportIncident(stateDir, incidentId, options, state) {
|
|
1315
|
+
const requestCorrelationId = options.correlationId ?? randomUUID();
|
|
1316
|
+
// Ownership refusal is already evidenced by the owning graph. Keep it outside the filesystem
|
|
1317
|
+
// inspection catch so a rejected graph never tries to open a second diagnostic sink.
|
|
1318
|
+
claimActivityLogWriterOwnership(stateDir, requestCorrelationId);
|
|
1319
|
+
try {
|
|
1320
|
+
return retireOwnedSupportIncident(stateDir, incidentId, options, state, requestCorrelationId);
|
|
1321
|
+
}
|
|
1322
|
+
catch (error) {
|
|
1323
|
+
reportServerLogFailure(error, {
|
|
1324
|
+
op: SUPPORT_INCIDENT_DISMISSED_OPERATION.op,
|
|
1325
|
+
correlationId: requestCorrelationId,
|
|
1326
|
+
loss: "event-dropped",
|
|
1327
|
+
});
|
|
1328
|
+
return "failed";
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
function retireOwnedSupportIncident(stateDir, incidentId, options, state, requestCorrelationId) {
|
|
1332
|
+
const inspected = inspectRetirement(stateDir, incidentId, {
|
|
1333
|
+
...options,
|
|
1334
|
+
correlationId: requestCorrelationId,
|
|
1335
|
+
});
|
|
1336
|
+
if (typeof inspected === "string")
|
|
1337
|
+
return inspected;
|
|
1338
|
+
const { record, openIncidentCount } = inspected;
|
|
1339
|
+
const correlationId = options.correlationId ?? incidentLifecycleCorrelation(record, requestCorrelationId);
|
|
1340
|
+
retirementStartedEvidence(stateDir, record, correlationId, state);
|
|
1341
|
+
try {
|
|
1342
|
+
removeSupportIncidentRecord(stateDir, incidentId);
|
|
1343
|
+
}
|
|
1344
|
+
catch (error) {
|
|
1345
|
+
reportServerLogFailure(error, { op: SUPPORT_INCIDENT_DISMISSED_OPERATION.op, correlationId });
|
|
1346
|
+
return failedWithdrawal(stateDir, { ...record, state }, {
|
|
1347
|
+
correlationId,
|
|
1348
|
+
openIncidentCount,
|
|
1349
|
+
reason: options.retirementReason,
|
|
1350
|
+
failure: retirementFailure(error),
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
return finishRetirement(stateDir, { ...record, state }, { ...options, correlationId }, openIncidentCount);
|
|
1354
|
+
}
|
|
1355
|
+
/** Explicit withdrawal of one retained candidate, including an owner's abandoned preparation. */
|
|
1356
|
+
export function dismissSupportIncident(stateDir, incidentId, options = {}) {
|
|
1357
|
+
return retireSupportIncident(stateDir, incidentId, options, "candidate");
|
|
1358
|
+
}
|
|
1359
|
+
/** The canonical artifact is prepared and cached; this never claims transmission or a saved file. */
|
|
1360
|
+
export function completePreparedSupportIncident(stateDir, incidentId, options = {}) {
|
|
1361
|
+
return retireSupportIncident(stateDir, incidentId, { ...options, retirementReason: undefined }, "reported");
|
|
889
1362
|
}
|
|
890
1363
|
// ─── The registered-failure trigger ────────────────────────────────────────────────────────────
|
|
891
1364
|
//
|
|
@@ -901,6 +1374,7 @@ export function dismissSupportIncident(stateDir, incidentId, options = {}) {
|
|
|
901
1374
|
// pin the trigger already published (releasePrePinned) instead of leaving it to its own TTL.
|
|
902
1375
|
/** A process evaluates at most this many new candidates per rolling minute (all fingerprints). */
|
|
903
1376
|
export const MAX_SUPPORT_INCIDENT_EVALUATIONS_PER_MINUTE = 6;
|
|
1377
|
+
const MAX_BROWSER_INCIDENT_EVALUATIONS_PER_MINUTE = 2;
|
|
904
1378
|
const MAX_REMEMBERED_FINGERPRINTS = 128;
|
|
905
1379
|
let triggerDepth = 0;
|
|
906
1380
|
let triggerOverride;
|
|
@@ -908,6 +1382,7 @@ let drainScheduled = false;
|
|
|
908
1382
|
let exitFlushInstalled = false;
|
|
909
1383
|
const recentFingerprints = new Map();
|
|
910
1384
|
const recentEvaluations = [];
|
|
1385
|
+
const recentBrowserEvaluations = [];
|
|
911
1386
|
const pendingCandidates = [];
|
|
912
1387
|
// The last time a rate-limited evaluation was evidenced (#3533 audit): throttled by the same
|
|
913
1388
|
// SUPPORT_INCIDENT_SUPPRESSION_MS window as everything else here, so a storm that keeps hitting
|
|
@@ -919,6 +1394,7 @@ export function setSupportIncidentTriggerForTests(enabled) {
|
|
|
919
1394
|
triggerOverride = enabled;
|
|
920
1395
|
recentFingerprints.clear();
|
|
921
1396
|
recentEvaluations.length = 0;
|
|
1397
|
+
recentBrowserEvaluations.length = 0;
|
|
922
1398
|
pendingCandidates.length = 0;
|
|
923
1399
|
lastRateLimitEvidenceAtMs = undefined;
|
|
924
1400
|
}
|
|
@@ -932,16 +1408,24 @@ function triggerEnabled() {
|
|
|
932
1408
|
// pinned window and the Activity Log's own retention already cover it -- but a rate-limited
|
|
933
1409
|
// evaluation can be a defect Keiko has never seen before, dropped purely because the shared cap was
|
|
934
1410
|
// already spent; the caller evidences that case explicitly (#3533 audit).
|
|
935
|
-
function
|
|
1411
|
+
function expireEvaluations(evaluations, nowMs) {
|
|
1412
|
+
while (evaluations.length > 0 && nowMs - (evaluations[0] ?? nowMs) >= MINUTE_MS) {
|
|
1413
|
+
evaluations.shift();
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
function admitEvaluation(fingerprint, nowMs, browser) {
|
|
936
1417
|
const last = recentFingerprints.get(fingerprint);
|
|
937
1418
|
if (last !== undefined && nowMs - last < SUPPORT_INCIDENT_SUPPRESSION_MS)
|
|
938
1419
|
return "suppressed";
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1420
|
+
expireEvaluations(recentEvaluations, nowMs);
|
|
1421
|
+
expireEvaluations(recentBrowserEvaluations, nowMs);
|
|
1422
|
+
if (browser && recentBrowserEvaluations.length >= MAX_BROWSER_INCIDENT_EVALUATIONS_PER_MINUTE)
|
|
1423
|
+
return "rate-limited";
|
|
942
1424
|
if (recentEvaluations.length >= MAX_SUPPORT_INCIDENT_EVALUATIONS_PER_MINUTE)
|
|
943
1425
|
return "rate-limited";
|
|
944
1426
|
recentEvaluations.push(nowMs);
|
|
1427
|
+
if (browser)
|
|
1428
|
+
recentBrowserEvaluations.push(nowMs);
|
|
945
1429
|
if (recentFingerprints.size >= MAX_REMEMBERED_FINGERPRINTS)
|
|
946
1430
|
recentFingerprints.clear();
|
|
947
1431
|
recentFingerprints.set(fingerprint, nowMs);
|
|
@@ -960,20 +1444,26 @@ function admittedEvidence(event) {
|
|
|
960
1444
|
correlationId: event.correlationId,
|
|
961
1445
|
parentCorrelationId: event.parentCorrelationId,
|
|
962
1446
|
frames: eventFrames(event),
|
|
1447
|
+
clientKind: event.extra?.clientKind,
|
|
1448
|
+
renderFailure: event.extra?.renderFailure,
|
|
1449
|
+
moduleLoadFailure: event.extra?.moduleLoadFailure,
|
|
1450
|
+
stage: event.extra?.stage,
|
|
963
1451
|
};
|
|
964
|
-
const
|
|
965
|
-
const
|
|
1452
|
+
const input = registeredFailureFingerprintInput(evidence);
|
|
1453
|
+
const defectFingerprint = computeDefectFingerprint(input);
|
|
1454
|
+
const key = registeredFailureDeduplicationKey(input.op, input.algorithm ?? 1, defectFingerprint, registeredFailureCorrelation(evidence));
|
|
1455
|
+
const admission = admitEvaluation(key, Date.now(), event.op === "client.diagnostic");
|
|
966
1456
|
if (admission === "admitted")
|
|
967
1457
|
return { status: "admitted", evidence };
|
|
968
1458
|
return admission === "rate-limited"
|
|
969
|
-
? { status: "rate-limited", defectFingerprint }
|
|
1459
|
+
? { status: "rate-limited", defectFingerprint, fingerprintAlgorithm: input.algorithm ?? 1 }
|
|
970
1460
|
: { status: "suppressed" };
|
|
971
1461
|
}
|
|
972
1462
|
// At most one `support.incident.rejected` line per suppression window (see
|
|
973
1463
|
// lastRateLimitEvidenceAtMs above), so a sustained storm costs one evidenced line per minute, not
|
|
974
|
-
// one per dropped evaluation. openIncidentCount
|
|
1464
|
+
// one per dropped evaluation. openIncidentCount counts directory entries without opening records:
|
|
975
1465
|
// this path exists specifically to stay cheap under a storm.
|
|
976
|
-
function reportRateLimitedEvaluation(stateDir, defectFingerprint, correlationId) {
|
|
1466
|
+
function reportRateLimitedEvaluation(stateDir, defectFingerprint, correlationId, fingerprintAlgorithm) {
|
|
977
1467
|
const nowMs = Date.now();
|
|
978
1468
|
if (lastRateLimitEvidenceAtMs !== undefined &&
|
|
979
1469
|
nowMs - lastRateLimitEvidenceAtMs < SUPPORT_INCIDENT_SUPPRESSION_MS) {
|
|
@@ -984,8 +1474,9 @@ function reportRateLimitedEvaluation(stateDir, defectFingerprint, correlationId)
|
|
|
984
1474
|
reason: "evaluation-rate-limited",
|
|
985
1475
|
trigger: "registered-failure",
|
|
986
1476
|
defectFingerprint,
|
|
1477
|
+
fingerprintAlgorithm,
|
|
987
1478
|
correlationId: correlationId ?? randomUUID(),
|
|
988
|
-
openIncidentCount:
|
|
1479
|
+
openIncidentCount: countSupportIncidentEntries(stateDir),
|
|
989
1480
|
});
|
|
990
1481
|
}
|
|
991
1482
|
function reportLostCandidate(error, correlationId) {
|
|
@@ -1027,8 +1518,9 @@ function scheduleDrain() {
|
|
|
1027
1518
|
}
|
|
1028
1519
|
/**
|
|
1029
1520
|
* Called by the Activity Log file sink after it persisted `event`. For an eligible, admitted
|
|
1030
|
-
* failure,
|
|
1031
|
-
*
|
|
1521
|
+
* failure, attempts immediate window protection without retiring another candidate and queues
|
|
1522
|
+
* admission. A rejected pin retries only after deduplication and quota admission; never throws.
|
|
1523
|
+
* An ineligible or suppressed event does no
|
|
1032
1524
|
* filesystem work at all.
|
|
1033
1525
|
*/
|
|
1034
1526
|
export function observeSupportIncidentTrigger(stateDir, event) {
|
|
@@ -1037,14 +1529,18 @@ export function observeSupportIncidentTrigger(stateDir, event) {
|
|
|
1037
1529
|
try {
|
|
1038
1530
|
const admission = admittedEvidence(event);
|
|
1039
1531
|
if (admission.status === "rate-limited") {
|
|
1040
|
-
reportRateLimitedEvaluation(stateDir, admission.defectFingerprint, event.correlationId);
|
|
1532
|
+
reportRateLimitedEvaluation(stateDir, admission.defectFingerprint, event.correlationId, admission.fingerprintAlgorithm);
|
|
1041
1533
|
return;
|
|
1042
1534
|
}
|
|
1043
1535
|
if (admission.status !== "admitted")
|
|
1044
1536
|
return;
|
|
1045
1537
|
const nowMs = Date.now();
|
|
1046
|
-
const
|
|
1047
|
-
const
|
|
1538
|
+
const initial = registeredFailureDraft(admission.evidence);
|
|
1539
|
+
const draft = {
|
|
1540
|
+
...initial,
|
|
1541
|
+
sealedSegmentsBeforePin: overlappingSealedSegmentNames(stateDir, supportIncidentWindow(nowMs), initial.evidenceCorrelationId),
|
|
1542
|
+
};
|
|
1543
|
+
const pin = pinIncidentWindow(stateDir, nowMs, draft.evidenceCorrelationId, process.env, draft);
|
|
1048
1544
|
pendingCandidates.push({ stateDir, draft: { ...draft, prePinned: pin }, nowMs });
|
|
1049
1545
|
scheduleDrain();
|
|
1050
1546
|
}
|