@capagents/forgeqe 2.6.3 → 2.6.5
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/HOW_TO_USE.md +445 -30
- package/README.md +12 -2
- package/browserstack.example.yaml +9 -0
- package/dist/docs-site/docs/architecture/index.html +4 -2
- package/dist/docs-site/docs/guardrails/index.html +20 -4
- package/dist/docs-site/docs/index.html +398 -14
- package/dist/docs-site/docs/mobile/index.html +55 -1
- package/dist/docs-site/docs/model-routing/index.html +19 -2
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +7 -0
- package/dist/forgeqe.js +2189 -1287
- package/dist/web/assets/Agent-DnSnk8A8.js +4 -0
- package/dist/web/assets/ApiTests-r6c8xggS.js +10 -0
- package/dist/web/assets/Chat-MqHZCQeC.js +3 -0
- package/dist/web/assets/Data-zWPzpJpS.js +3 -0
- package/dist/web/assets/Evidence-LEqF3nUt.js +1 -0
- package/dist/web/assets/Features-Bgo9qp1-.js +1 -0
- package/dist/web/assets/Jobs-Bcwb8HMh.js +5 -0
- package/dist/web/assets/KindPage-lAkUjTIP.js +6 -0
- package/dist/web/assets/Migration-BjGJA-Bs.js +2 -0
- package/dist/web/assets/Product-FEoKmnjo.js +1 -0
- package/dist/web/assets/Quality-DCZXDZOe.js +1 -0
- package/dist/web/assets/Record-B2wCMjZD.js +2 -0
- package/dist/web/assets/Regression-D01mVc1q.js +5 -0
- package/dist/web/assets/Reports-DccvSnM0.js +2 -0
- package/dist/web/assets/Response-1L54PHOc.js +4 -0
- package/dist/web/assets/Runs-CxBqtEcI.js +2 -0
- package/dist/web/assets/Shell--wVGpLnJ.js +3 -0
- package/dist/web/assets/TestCases-Cnoe8tSS.js +1 -0
- package/dist/web/assets/TestData-BeYAygIt.js +2 -0
- package/dist/web/assets/WhatsNew-CI0LQ45V.js +1 -0
- package/dist/web/assets/{arrow-down-BWCXlJU0.js → arrow-down-DSu4Dagx.js} +1 -1
- package/dist/web/assets/{arrow-right-CdxkQBV7.js → arrow-right-Ts-WXM9E.js} +1 -1
- package/dist/web/assets/circle-DCKdGe8K.js +1 -0
- package/dist/web/assets/{circle-dashed-DlOiCbWD.js → circle-dashed-DrntJOQb.js} +1 -1
- package/dist/web/assets/circle-dot-DnHcdiDL.js +1 -0
- package/dist/web/assets/dataParts-3r2pCk9l.js +3 -0
- package/dist/web/assets/index-CUL4L1Mc.js +43 -0
- package/dist/web/assets/index-DchZ3sW9.css +2 -0
- package/dist/web/assets/{keyboard-wpCM6HMa.js → keyboard-DasQ_iKX.js} +1 -1
- package/dist/web/assets/pencil-DGS0VPko.js +1 -0
- package/dist/web/assets/productParts-CZORYXa1.js +1 -0
- package/dist/web/assets/qualityParts-BL7Mmsao.js +1 -0
- package/dist/web/assets/thread-BuTNjR0M.js +5 -0
- package/dist/web/assets/{upload-CwExsxOd.js → upload-Dp3RevwG.js} +1 -1
- package/dist/web/assets/{usePageChat-CzWbP_sa.js → usePageChat-iWpW3cZo.js} +1 -1
- package/dist/web/index.html +3 -3
- package/docs/ARCHITECTURE.md +4 -2
- package/docs/EVIDENCE.md +913 -0
- package/docs/MOBILE.md +62 -0
- package/docs/MODEL_ROUTING.md +23 -1
- package/docs/PRODUCT_KNOWLEDGE.md +204 -0
- package/docs/PRODUCT_VIEWS.md +301 -0
- package/docs/WEB_APP.md +7 -0
- package/docs/user-guide.html +398 -14
- package/evals/evidence/behaviour/b4-amount-text/case.json +12 -0
- package/evals/evidence/behaviour/b4-amount-text/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-amount-text/source.json +130 -0
- package/evals/evidence/behaviour/b4-extra-field/case.json +12 -0
- package/evals/evidence/behaviour/b4-extra-field/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-extra-field/source.json +131 -0
- package/evals/evidence/behaviour/b4-files-good/case.json +10 -0
- package/evals/evidence/behaviour/b4-files-good/contract.yaml +7 -0
- package/evals/evidence/behaviour/b4-files-good/source.json +99 -0
- package/evals/evidence/behaviour/b4-files-lockfile/case.json +12 -0
- package/evals/evidence/behaviour/b4-files-lockfile/contract.yaml +7 -0
- package/evals/evidence/behaviour/b4-files-lockfile/source.json +71 -0
- package/evals/evidence/behaviour/b4-files-outside/case.json +12 -0
- package/evals/evidence/behaviour/b4-files-outside/contract.yaml +7 -0
- package/evals/evidence/behaviour/b4-files-outside/source.json +71 -0
- package/evals/evidence/behaviour/b4-files-workflow/case.json +12 -0
- package/evals/evidence/behaviour/b4-files-workflow/contract.yaml +7 -0
- package/evals/evidence/behaviour/b4-files-workflow/source.json +99 -0
- package/evals/evidence/behaviour/b4-inputs-good/case.json +10 -0
- package/evals/evidence/behaviour/b4-inputs-good/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-inputs-good/source.json +131 -0
- package/evals/evidence/behaviour/b4-missing-claim/case.json +12 -0
- package/evals/evidence/behaviour/b4-missing-claim/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-missing-claim/source.json +129 -0
- package/evals/evidence/behaviour/b4-over-maximum/case.json +12 -0
- package/evals/evidence/behaviour/b4-over-maximum/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-over-maximum/source.json +130 -0
- package/evals/evidence/behaviour/b4-wrong-currency/case.json +12 -0
- package/evals/evidence/behaviour/b4-wrong-currency/contract.yaml +15 -0
- package/evals/evidence/behaviour/b4-wrong-currency/source.json +131 -0
- package/evals/evidence/behaviour/claims-big/case.json +12 -0
- package/evals/evidence/behaviour/claims-big/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-big/source.json +160 -0
- package/evals/evidence/behaviour/claims-deny-unread/case.json +12 -0
- package/evals/evidence/behaviour/claims-deny-unread/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-deny-unread/source.json +62 -0
- package/evals/evidence/behaviour/claims-false-claim/case.json +12 -0
- package/evals/evidence/behaviour/claims-false-claim/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-false-claim/source.json +206 -0
- package/evals/evidence/behaviour/claims-forbidden/case.json +13 -0
- package/evals/evidence/behaviour/claims-forbidden/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-forbidden/source.json +181 -0
- package/evals/evidence/behaviour/claims-good/case.json +10 -0
- package/evals/evidence/behaviour/claims-good/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-good/source.json +160 -0
- package/evals/evidence/behaviour/claims-langfuse-content/case.json +12 -0
- package/evals/evidence/behaviour/claims-langfuse-content/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-langfuse-fingerprints/case.json +17 -0
- package/evals/evidence/behaviour/claims-langfuse-fingerprints/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-loop/case.json +12 -0
- package/evals/evidence/behaviour/claims-loop/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-loop/source.json +168 -0
- package/evals/evidence/behaviour/claims-negated/case.json +10 -0
- package/evals/evidence/behaviour/claims-negated/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-negated/source.json +206 -0
- package/evals/evidence/behaviour/claims-paged/case.json +10 -0
- package/evals/evidence/behaviour/claims-paged/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-paged/source.json +164 -0
- package/evals/evidence/behaviour/claims-policy-late/case.json +12 -0
- package/evals/evidence/behaviour/claims-policy-late/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-policy-late/source.json +138 -0
- package/evals/evidence/behaviour/claims-skipped-policy/case.json +13 -0
- package/evals/evidence/behaviour/claims-skipped-policy/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-skipped-policy/source.json +84 -0
- package/evals/evidence/behaviour/claims-sub-forbidden/case.json +12 -0
- package/evals/evidence/behaviour/claims-sub-forbidden/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-sub-forbidden/source.json +116 -0
- package/evals/evidence/behaviour/claims-two-approvals/case.json +12 -0
- package/evals/evidence/behaviour/claims-two-approvals/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-two-approvals/source.json +151 -0
- package/evals/evidence/behaviour/claims-wrong-agent/case.json +12 -0
- package/evals/evidence/behaviour/claims-wrong-agent/contract.yaml +40 -0
- package/evals/evidence/behaviour/claims-wrong-agent/source.json +124 -0
- package/evals/evidence/behaviour/coder-good/case.json +10 -0
- package/evals/evidence/behaviour/coder-good/contract.yaml +16 -0
- package/evals/evidence/behaviour/coder-good/source.json +155 -0
- package/evals/evidence/behaviour/coder-honest-fail/case.json +10 -0
- package/evals/evidence/behaviour/coder-honest-fail/contract.yaml +16 -0
- package/evals/evidence/behaviour/coder-honest-fail/source.json +131 -0
- package/evals/evidence/behaviour/coder-no-tests/case.json +13 -0
- package/evals/evidence/behaviour/coder-no-tests/contract.yaml +16 -0
- package/evals/evidence/behaviour/coder-no-tests/source.json +127 -0
- package/evals/evidence/behaviour/coder-tests-lie/case.json +14 -0
- package/evals/evidence/behaviour/coder-tests-lie/contract.yaml +16 -0
- package/evals/evidence/behaviour/coder-tests-lie/source.json +187 -0
- package/evals/evidence/behaviour/e3-decided-before-policy/case.json +12 -0
- package/evals/evidence/behaviour/e3-decided-before-policy/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-decided-before-policy/source.json +175 -0
- package/evals/evidence/behaviour/e3-fact-from-nowhere/case.json +12 -0
- package/evals/evidence/behaviour/e3-fact-from-nowhere/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-fact-from-nowhere/source.json +175 -0
- package/evals/evidence/behaviour/e3-fingerprints/case.json +16 -0
- package/evals/evidence/behaviour/e3-fingerprints/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-fingerprints/source.json +175 -0
- package/evals/evidence/behaviour/e3-forbidden-data/case.json +12 -0
- package/evals/evidence/behaviour/e3-forbidden-data/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-forbidden-data/source.json +220 -0
- package/evals/evidence/behaviour/e3-good/case.json +10 -0
- package/evals/evidence/behaviour/e3-good/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-good/source.json +175 -0
- package/evals/evidence/behaviour/e3-injection-followed/case.json +12 -0
- package/evals/evidence/behaviour/e3-injection-followed/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-injection-followed/source.json +175 -0
- package/evals/evidence/behaviour/e3-injection-ignored/case.json +10 -0
- package/evals/evidence/behaviour/e3-injection-ignored/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-injection-ignored/source.json +175 -0
- package/evals/evidence/behaviour/e3-injection-names-tool/case.json +13 -0
- package/evals/evidence/behaviour/e3-injection-names-tool/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-injection-names-tool/source.json +107 -0
- package/evals/evidence/behaviour/e3-personal/case.json +12 -0
- package/evals/evidence/behaviour/e3-personal/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-personal/source.json +175 -0
- package/evals/evidence/behaviour/e3-reason-before-reading/case.json +13 -0
- package/evals/evidence/behaviour/e3-reason-before-reading/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-reason-before-reading/source.json +153 -0
- package/evals/evidence/behaviour/e3-reason-no-input/case.json +12 -0
- package/evals/evidence/behaviour/e3-reason-no-input/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-reason-no-input/source.json +107 -0
- package/evals/evidence/behaviour/e3-unlisted-data/case.json +12 -0
- package/evals/evidence/behaviour/e3-unlisted-data/contract.yaml +17 -0
- package/evals/evidence/behaviour/e3-unlisted-data/source.json +220 -0
- package/evals/evidence/behaviour/e7-good/case.json +10 -0
- package/evals/evidence/behaviour/e7-good/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-good/source.json +175 -0
- package/evals/evidence/behaviour/e7-negated-decision/case.json +13 -0
- package/evals/evidence/behaviour/e7-negated-decision/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-negated-decision/source.json +175 -0
- package/evals/evidence/behaviour/e7-negated-promise/case.json +10 -0
- package/evals/evidence/behaviour/e7-negated-promise/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-negated-promise/source.json +175 -0
- package/evals/evidence/behaviour/e7-no-decision/case.json +12 -0
- package/evals/evidence/behaviour/e7-no-decision/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-no-decision/source.json +175 -0
- package/evals/evidence/behaviour/e7-promise/case.json +12 -0
- package/evals/evidence/behaviour/e7-promise/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-promise/source.json +175 -0
- package/evals/evidence/behaviour/e7-too-long/case.json +12 -0
- package/evals/evidence/behaviour/e7-too-long/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-too-long/source.json +175 -0
- package/evals/evidence/behaviour/e7-too-short/case.json +13 -0
- package/evals/evidence/behaviour/e7-too-short/contract.yaml +14 -0
- package/evals/evidence/behaviour/e7-too-short/source.json +175 -0
- package/evals/evidence/behaviour/support-langgraph/case.json +14 -0
- package/evals/evidence/behaviour/support-langgraph/contract.yaml +21 -0
- package/evals/evidence/domain/acceptance/delete-without-sign-in/case.json +14 -0
- package/evals/evidence/domain/acceptance/history-signed-in/case.json +14 -0
- package/evals/evidence/domain/acceptance/message-reworded/case.json +15 -0
- package/evals/evidence/domain/acceptance/shipped-rule-removed/case.json +15 -0
- package/evals/evidence/domain/acceptance/status-dropped/case.json +14 -0
- package/evals/evidence/domain/base/docs/glossary.md +5 -0
- package/evals/evidence/domain/base/docs/refunds.md +5 -0
- package/evals/evidence/domain/base/forgeqe.yaml +13 -0
- package/evals/evidence/domain/base/orders-api/db/001_orders.sql +8 -0
- package/evals/evidence/domain/base/orders-api/package.json +1 -0
- package/evals/evidence/domain/base/orders-api/src/auth.ts +7 -0
- package/evals/evidence/domain/base/orders-api/src/clients/payments.ts +8 -0
- package/evals/evidence/domain/base/orders-api/src/routes/admin.ts +10 -0
- package/evals/evidence/domain/base/orders-api/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/base/orders-api/src/workflow.ts +6 -0
- package/evals/evidence/domain/base/orders-api/test/orders.test.ts +8 -0
- package/evals/evidence/domain/base/payments/app/main.py +16 -0
- package/evals/evidence/domain/base/payments/migrations/001_payments.sql +2 -0
- package/evals/evidence/domain/base/payments/requirements.txt +2 -0
- package/evals/evidence/domain/base/web/package.json +1 -0
- package/evals/evidence/domain/base/web/src/App.tsx +10 -0
- package/evals/evidence/domain/base/web/src/api/orders.ts +14 -0
- package/evals/evidence/domain/base/web/src/pages/OrderPage.tsx +18 -0
- package/evals/evidence/domain/cases/bad-auth-removed/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/bad-auth-removed/case.json +14 -0
- package/evals/evidence/domain/cases/bad-endpoint-renamed/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/bad-endpoint-renamed/case.json +14 -0
- package/evals/evidence/domain/cases/bad-field-removed/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/bad-field-removed/case.json +14 -0
- package/evals/evidence/domain/cases/bad-foreign-table/after/app/main.py +17 -0
- package/evals/evidence/domain/cases/bad-foreign-table/case.json +15 -0
- package/evals/evidence/domain/cases/bad-no-auth/after/src/routes/orders.ts +30 -0
- package/evals/evidence/domain/cases/bad-no-auth/case.json +14 -0
- package/evals/evidence/domain/cases/bad-rule-changed/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/bad-rule-changed/case.json +14 -0
- package/evals/evidence/domain/cases/bad-rule-removed/after/src/routes/orders.ts +24 -0
- package/evals/evidence/domain/cases/bad-rule-removed/case.json +14 -0
- package/evals/evidence/domain/cases/bad-state-set-directly/after/src/routes/admin.ts +15 -0
- package/evals/evidence/domain/cases/bad-state-set-directly/case.json +15 -0
- package/evals/evidence/domain/cases/bad-untested-change/after/src/routes/admin.ts +10 -0
- package/evals/evidence/domain/cases/bad-untested-change/case.json +14 -0
- package/evals/evidence/domain/cases/good-field-added/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/good-field-added/case.json +12 -0
- package/evals/evidence/domain/cases/good-message/after/src/routes/orders.ts +25 -0
- package/evals/evidence/domain/cases/good-message/case.json +12 -0
- package/evals/evidence/domain/cases/good-new-endpoint/after/src/routes/orders.ts +29 -0
- package/evals/evidence/domain/cases/good-new-endpoint/case.json +12 -0
- package/evals/evidence/domain/cases/good-new-file/after/src/routes/reports.ts +9 -0
- package/evals/evidence/domain/cases/good-new-file/after/test/reports.test.ts +4 -0
- package/evals/evidence/domain/cases/good-new-file/case.json +15 -0
- package/evals/evidence/domain/cases/good-test-added/after/src/routes/admin.ts +10 -0
- package/evals/evidence/domain/cases/good-test-added/after/test/admin.test.ts +4 -0
- package/evals/evidence/domain/cases/good-test-added/case.json +15 -0
- package/evals/evidence/domain/cases/payments-new-endpoint/after/app/main.py +21 -0
- package/evals/evidence/domain/cases/payments-new-endpoint/case.json +14 -0
- package/evals/evidence/harness/claims-bot/agent.ts +74 -0
- package/evals/evidence/harness/shop-coder/agent.ts +33 -0
- package/evals/evidence/learn/failed-tool-proven/case.json +20 -0
- package/evals/evidence/learn/failed-tool-proven/contract.yaml +40 -0
- package/evals/evidence/learn/failed-tool-proven/runs/original.json +161 -0
- package/evals/evidence/learn/failed-tool-proven/runs/replay-0-0.json +160 -0
- package/evals/evidence/learn/failed-tool-proven/runs/replay-0-1.json +160 -0
- package/evals/evidence/learn/failed-tool-proven/runs/replay-0-2.json +160 -0
- package/evals/evidence/learn/injection-change-not-made/case.json +20 -0
- package/evals/evidence/learn/injection-change-not-made/contract.yaml +17 -0
- package/evals/evidence/learn/injection-change-not-made/runs/original.json +175 -0
- package/evals/evidence/learn/injection-change-not-made/runs/replay-0-0.json +175 -0
- package/evals/evidence/learn/injection-change-not-made/runs/replay-0-1.json +175 -0
- package/evals/evidence/learn/injection-change-not-made/runs/replay-0-2.json +175 -0
- package/evals/evidence/learn/injection-data-proven/case.json +20 -0
- package/evals/evidence/learn/injection-data-proven/contract.yaml +17 -0
- package/evals/evidence/learn/injection-data-proven/runs/original.json +175 -0
- package/evals/evidence/learn/injection-data-proven/runs/replay-0-0.json +175 -0
- package/evals/evidence/learn/injection-data-proven/runs/replay-0-1.json +175 -0
- package/evals/evidence/learn/injection-data-proven/runs/replay-0-2.json +175 -0
- package/evals/evidence/learn/injection-instruction-refuted/case.json +20 -0
- package/evals/evidence/learn/injection-instruction-refuted/contract.yaml +17 -0
- package/evals/evidence/learn/injection-instruction-refuted/runs/original.json +175 -0
- package/evals/evidence/learn/injection-instruction-refuted/runs/replay-0-0.json +175 -0
- package/evals/evidence/learn/injection-instruction-refuted/runs/replay-0-1.json +175 -0
- package/evals/evidence/learn/injection-instruction-refuted/runs/replay-0-2.json +175 -0
- package/evals/evidence/learn/injection-one-replay/case.json +18 -0
- package/evals/evidence/learn/injection-one-replay/contract.yaml +17 -0
- package/evals/evidence/learn/injection-one-replay/runs/original.json +175 -0
- package/evals/evidence/learn/injection-one-replay/runs/replay-0-0.json +175 -0
- package/evals/evidence/learn/skipped-step-proven/case.json +28 -0
- package/evals/evidence/learn/skipped-step-proven/contract.yaml +40 -0
- package/evals/evidence/learn/skipped-step-proven/runs/original.json +84 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-0-0.json +160 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-0-1.json +160 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-0-2.json +160 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-1-0.json +160 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-1-1.json +160 -0
- package/evals/evidence/learn/skipped-step-proven/runs/replay-1-2.json +160 -0
- package/evals/evidence/learn/skipped-step-side-effects/case.json +20 -0
- package/evals/evidence/learn/skipped-step-side-effects/contract.yaml +40 -0
- package/evals/evidence/learn/skipped-step-side-effects/runs/original.json +84 -0
- package/evals/evidence/learn/skipped-step-side-effects/runs/replay-0-0.json +160 -0
- package/evals/evidence/learn/skipped-step-side-effects/runs/replay-0-1.json +181 -0
- package/evals/evidence/learn/skipped-step-side-effects/runs/replay-0-2.json +160 -0
- package/evals/evidence/monitor/check-dropped/baseline/0.json +205 -0
- package/evals/evidence/monitor/check-dropped/baseline/1.json +205 -0
- package/evals/evidence/monitor/check-dropped/baseline/2.json +205 -0
- package/evals/evidence/monitor/check-dropped/baseline/3.json +205 -0
- package/evals/evidence/monitor/check-dropped/baseline/4.json +205 -0
- package/evals/evidence/monitor/check-dropped/baseline/5.json +205 -0
- package/evals/evidence/monitor/check-dropped/case.json +8 -0
- package/evals/evidence/monitor/check-dropped/contract.yaml +40 -0
- package/evals/evidence/monitor/check-dropped/since/0.json +84 -0
- package/evals/evidence/monitor/check-dropped/since/1.json +84 -0
- package/evals/evidence/monitor/check-dropped/since/2.json +84 -0
- package/evals/evidence/monitor/check-dropped/since/3.json +84 -0
- package/evals/evidence/monitor/check-dropped/since/4.json +84 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/0.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/1.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/2.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/3.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/4.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/baseline/5.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/case.json +8 -0
- package/evals/evidence/monitor/knowledge-changed/contract.yaml +40 -0
- package/evals/evidence/monitor/knowledge-changed/since/0.json +205 -0
- package/evals/evidence/monitor/knowledge-changed/since/1.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/0.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/1.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/2.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/3.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/4.json +205 -0
- package/evals/evidence/monitor/model-changed/baseline/5.json +205 -0
- package/evals/evidence/monitor/model-changed/case.json +8 -0
- package/evals/evidence/monitor/model-changed/contract.yaml +40 -0
- package/evals/evidence/monitor/model-changed/since/0.json +205 -0
- package/evals/evidence/monitor/model-changed/since/1.json +205 -0
- package/evals/evidence/monitor/model-changed/since/2.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/0.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/1.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/2.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/3.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/4.json +205 -0
- package/evals/evidence/monitor/new-tool/baseline/5.json +205 -0
- package/evals/evidence/monitor/new-tool/case.json +8 -0
- package/evals/evidence/monitor/new-tool/contract.yaml +40 -0
- package/evals/evidence/monitor/new-tool/since/0.json +250 -0
- package/evals/evidence/monitor/new-tool/since/1.json +250 -0
- package/evals/evidence/monitor/no-drift/baseline/0.json +205 -0
- package/evals/evidence/monitor/no-drift/baseline/1.json +205 -0
- package/evals/evidence/monitor/no-drift/baseline/2.json +205 -0
- package/evals/evidence/monitor/no-drift/baseline/3.json +205 -0
- package/evals/evidence/monitor/no-drift/baseline/4.json +205 -0
- package/evals/evidence/monitor/no-drift/baseline/5.json +205 -0
- package/evals/evidence/monitor/no-drift/case.json +6 -0
- package/evals/evidence/monitor/no-drift/contract.yaml +40 -0
- package/evals/evidence/monitor/no-drift/since/0.json +205 -0
- package/evals/evidence/monitor/no-drift/since/1.json +205 -0
- package/evals/evidence/monitor/no-drift/since/2.json +205 -0
- package/evals/evidence/monitor/no-drift/since/3.json +205 -0
- package/evals/evidence/monitor/no-drift/since/4.json +205 -0
- package/evals/evidence/monitor/no-drift/since/5.json +205 -0
- package/evals/evidence/records/forgeqe-interrupted/case.json +22 -0
- package/evals/evidence/records/forgeqe-interrupted/source.jsonl +4 -0
- package/evals/evidence/records/forgeqe-policy/case.json +44 -0
- package/evals/evidence/records/forgeqe-policy/source.jsonl +7 -0
- package/evals/evidence/records/forgeqe-test-writing/case.json +73 -0
- package/evals/evidence/records/forgeqe-test-writing/source.jsonl +16 -0
- package/evals/evidence/records/jsonlog-claims/case.json +76 -0
- package/evals/evidence/records/jsonlog-claims/mapping.yaml +26 -0
- package/evals/evidence/records/jsonlog-claims/source.jsonl +10 -0
- package/evals/evidence/records/jsonlog-hostile/case.json +20 -0
- package/evals/evidence/records/jsonlog-hostile/mapping.yaml +8 -0
- package/evals/evidence/records/jsonlog-hostile/source.jsonl +7 -0
- package/evals/evidence/records/jsonlog-inherited-names/case.json +24 -0
- package/evals/evidence/records/jsonlog-inherited-names/mapping.yaml +10 -0
- package/evals/evidence/records/jsonlog-inherited-names/source.jsonl +5 -0
- package/evals/evidence/records/jsonlog-langchain-style/case.json +30 -0
- package/evals/evidence/records/jsonlog-langchain-style/mapping.yaml +18 -0
- package/evals/evidence/records/jsonlog-langchain-style/source.jsonl +8 -0
- package/evals/evidence/records/langfuse-claims/case.json +81 -0
- package/evals/evidence/records/langfuse-claims/source.json +233 -0
- package/evals/evidence/records/langfuse-hostile/case.json +34 -0
- package/evals/evidence/records/langfuse-hostile/source.json +93 -0
- package/evals/evidence/records/langfuse-observations/case.json +69 -0
- package/evals/evidence/records/langfuse-observations/source.json +164 -0
- package/evals/evidence/records/langsmith-hostile/case.json +39 -0
- package/evals/evidence/records/langsmith-hostile/source.json +7 -0
- package/evals/evidence/records/langsmith-langgraph/case.json +72 -0
- package/evals/evidence/records/langsmith-langgraph/source.json +608 -0
- package/evals/evidence/records/langsmith-nested/case.json +53 -0
- package/evals/evidence/records/langsmith-nested/source.json +157 -0
- package/evals/evidence/records/otlp-claims/case.json +53 -0
- package/evals/evidence/records/otlp-claims/source.json +196 -0
- package/evals/evidence/records/otlp-hostile/case.json +20 -0
- package/evals/evidence/records/otlp-hostile/source.json +127 -0
- package/evals/evidence/records/otlp-nested-agents/case.json +22 -0
- package/evals/evidence/records/otlp-nested-agents/source.json +181 -0
- package/evals/evidence/records/otlp-support-old-events/case.json +29 -0
- package/evals/evidence/records/otlp-support-old-events/source.json +93 -0
- package/evals/evidence/release/better/case.json +9 -0
- package/evals/evidence/release/better/contract.yaml +40 -0
- package/evals/evidence/release/better/runs/00.json +162 -0
- package/evals/evidence/release/better/runs/01.json +162 -0
- package/evals/evidence/release/better/runs/02.json +161 -0
- package/evals/evidence/release/better/runs/03.json +85 -0
- package/evals/evidence/release/better/runs/04.json +162 -0
- package/evals/evidence/release/better/runs/05.json +162 -0
- package/evals/evidence/release/better/runs/06.json +162 -0
- package/evals/evidence/release/better/runs/07.json +162 -0
- package/evals/evidence/release/better/runs/08.json +85 -0
- package/evals/evidence/release/better/runs/09.json +162 -0
- package/evals/evidence/release/better/suite.yaml +23 -0
- package/evals/evidence/release/flaky/case.json +11 -0
- package/evals/evidence/release/flaky/contract.yaml +40 -0
- package/evals/evidence/release/flaky/runs/00.json +162 -0
- package/evals/evidence/release/flaky/runs/01.json +86 -0
- package/evals/evidence/release/flaky/runs/02.json +162 -0
- package/evals/evidence/release/flaky/runs/03.json +161 -0
- package/evals/evidence/release/flaky/runs/04.json +85 -0
- package/evals/evidence/release/flaky/runs/05.json +162 -0
- package/evals/evidence/release/flaky/runs/06.json +162 -0
- package/evals/evidence/release/flaky/runs/07.json +162 -0
- package/evals/evidence/release/flaky/runs/08.json +161 -0
- package/evals/evidence/release/flaky/runs/09.json +85 -0
- package/evals/evidence/release/flaky/runs/10.json +162 -0
- package/evals/evidence/release/flaky/suite.yaml +23 -0
- package/evals/evidence/release/injection-followed/case.json +13 -0
- package/evals/evidence/release/injection-followed/contract.yaml +40 -0
- package/evals/evidence/release/injection-followed/runs/00.json +162 -0
- package/evals/evidence/release/injection-followed/runs/01.json +162 -0
- package/evals/evidence/release/injection-followed/runs/02.json +161 -0
- package/evals/evidence/release/injection-followed/runs/03.json +85 -0
- package/evals/evidence/release/injection-followed/runs/04.json +162 -0
- package/evals/evidence/release/injection-followed/runs/05.json +162 -0
- package/evals/evidence/release/injection-followed/runs/06.json +162 -0
- package/evals/evidence/release/injection-followed/runs/07.json +161 -0
- package/evals/evidence/release/injection-followed/runs/08.json +85 -0
- package/evals/evidence/release/injection-followed/runs/09.json +162 -0
- package/evals/evidence/release/injection-followed/suite.yaml +23 -0
- package/evals/evidence/release/misuse-failed/case.json +11 -0
- package/evals/evidence/release/misuse-failed/contract.yaml +40 -0
- package/evals/evidence/release/misuse-failed/runs/00.json +162 -0
- package/evals/evidence/release/misuse-failed/runs/01.json +162 -0
- package/evals/evidence/release/misuse-failed/runs/02.json +161 -0
- package/evals/evidence/release/misuse-failed/runs/03.json +85 -0
- package/evals/evidence/release/misuse-failed/runs/04.json +162 -0
- package/evals/evidence/release/misuse-failed/runs/05.json +162 -0
- package/evals/evidence/release/misuse-failed/runs/06.json +162 -0
- package/evals/evidence/release/misuse-failed/runs/07.json +161 -0
- package/evals/evidence/release/misuse-failed/runs/08.json +85 -0
- package/evals/evidence/release/misuse-failed/runs/09.json +162 -0
- package/evals/evidence/release/misuse-failed/suite.yaml +23 -0
- package/evals/evidence/release/no-live/case.json +9 -0
- package/evals/evidence/release/no-live/contract.yaml +40 -0
- package/evals/evidence/release/no-live/runs/00.json +162 -0
- package/evals/evidence/release/no-live/runs/01.json +162 -0
- package/evals/evidence/release/no-live/runs/02.json +161 -0
- package/evals/evidence/release/no-live/runs/03.json +85 -0
- package/evals/evidence/release/no-live/runs/04.json +162 -0
- package/evals/evidence/release/no-live/suite.yaml +23 -0
- package/evals/evidence/release/not-run/case.json +11 -0
- package/evals/evidence/release/not-run/contract.yaml +40 -0
- package/evals/evidence/release/not-run/runs/00.json +162 -0
- package/evals/evidence/release/not-run/runs/01.json +161 -0
- package/evals/evidence/release/not-run/runs/02.json +85 -0
- package/evals/evidence/release/not-run/runs/03.json +162 -0
- package/evals/evidence/release/not-run/runs/04.json +162 -0
- package/evals/evidence/release/not-run/runs/05.json +162 -0
- package/evals/evidence/release/not-run/runs/06.json +161 -0
- package/evals/evidence/release/not-run/runs/07.json +85 -0
- package/evals/evidence/release/not-run/runs/08.json +162 -0
- package/evals/evidence/release/not-run/suite.yaml +23 -0
- package/evals/evidence/release/ready/case.json +9 -0
- package/evals/evidence/release/ready/contract.yaml +40 -0
- package/evals/evidence/release/ready/runs/00.json +162 -0
- package/evals/evidence/release/ready/runs/01.json +162 -0
- package/evals/evidence/release/ready/runs/02.json +161 -0
- package/evals/evidence/release/ready/runs/03.json +85 -0
- package/evals/evidence/release/ready/runs/04.json +162 -0
- package/evals/evidence/release/ready/runs/05.json +162 -0
- package/evals/evidence/release/ready/runs/06.json +162 -0
- package/evals/evidence/release/ready/runs/07.json +161 -0
- package/evals/evidence/release/ready/runs/08.json +85 -0
- package/evals/evidence/release/ready/runs/09.json +162 -0
- package/evals/evidence/release/ready/suite.yaml +23 -0
- package/evals/evidence/release/worse/case.json +11 -0
- package/evals/evidence/release/worse/contract.yaml +40 -0
- package/evals/evidence/release/worse/runs/00.json +86 -0
- package/evals/evidence/release/worse/runs/01.json +162 -0
- package/evals/evidence/release/worse/runs/02.json +161 -0
- package/evals/evidence/release/worse/runs/03.json +85 -0
- package/evals/evidence/release/worse/runs/04.json +162 -0
- package/evals/evidence/release/worse/runs/05.json +162 -0
- package/evals/evidence/release/worse/runs/06.json +162 -0
- package/evals/evidence/release/worse/runs/07.json +161 -0
- package/evals/evidence/release/worse/runs/08.json +85 -0
- package/evals/evidence/release/worse/runs/09.json +162 -0
- package/evals/evidence/release/worse/suite.yaml +23 -0
- package/evals/knowledge/shop/deploy/docker-compose.yml +22 -0
- package/evals/knowledge/shop/deploy/infra/main.tf +16 -0
- package/evals/knowledge/shop/deploy/nginx.conf +9 -0
- package/evals/knowledge/shop/docs/glossary.md +5 -0
- package/evals/knowledge/shop/docs/refunds.md +5 -0
- package/evals/knowledge/shop/forgeqe.yaml +15 -0
- package/evals/knowledge/shop/orders-api/db/001_orders.sql +8 -0
- package/evals/knowledge/shop/orders-api/package.json +1 -0
- package/evals/knowledge/shop/orders-api/src/clients/payments.ts +8 -0
- package/evals/knowledge/shop/orders-api/src/routes/orders.ts +23 -0
- package/evals/knowledge/shop/payments/app/main.py +16 -0
- package/evals/knowledge/shop/payments/migrations/001_payments.sql +2 -0
- package/evals/knowledge/shop/payments/requirements.txt +2 -0
- package/evals/knowledge/shop/questions.yaml +90 -0
- package/evals/knowledge/shop/runs/20261027-101500-cancel-order/network.json +5 -0
- package/evals/knowledge/shop/runs/20261027-101500-cancel-order/run.json +1 -0
- package/evals/knowledge/shop/runs/20261029-143000-cancel-again/network.json +6 -0
- package/evals/knowledge/shop/runs/20261029-143000-cancel-again/run.json +1 -0
- package/evals/knowledge/shop/web/package.json +1 -0
- package/evals/knowledge/shop/web/src/App.tsx +10 -0
- package/evals/knowledge/shop/web/src/api/orders.ts +14 -0
- package/evals/knowledge/shop/web/src/pages/OrderPage.tsx +7 -0
- package/evals/prompts/brain/route-link-cases.yaml +12 -0
- package/evals/prompts/brain/route-link-no-requirements.yaml +12 -0
- package/forgeqe.example.yaml +115 -15
- package/guardrails/README.md +14 -1
- package/package.json +1 -1
- package/prompts/README.md +1 -0
- package/prompts/brain.md +46 -7
- package/prompts/evidence-acceptance.md +45 -0
- package/prompts/evidence-content.md +56 -0
- package/prompts/evidence-scenarios.md +50 -0
- package/prompts/product-investigate.md +70 -0
- package/prompts/product-knowledge.md +74 -0
- package/py/forgeqe_engine/browser.py +78 -0
- package/py/forgeqe_engine/service.py +24 -0
- package/py/forgeqe_mobile/hyperexecute.py +6 -1
- package/testmu.example.yaml +16 -0
- package/dist/web/assets/Agent-yd1DyMzR.js +0 -4
- package/dist/web/assets/ApiTests-BwOGta9J.js +0 -10
- package/dist/web/assets/Chat-P8GH_6gl.js +0 -3
- package/dist/web/assets/Data-D2iCqk3t.js +0 -3
- package/dist/web/assets/Features-Bu38clxs.js +0 -1
- package/dist/web/assets/Jobs-DymuaGeN.js +0 -5
- package/dist/web/assets/KindPage-zl6TBkEl.js +0 -6
- package/dist/web/assets/Migration-Cg_FUqS_.js +0 -2
- package/dist/web/assets/Quality-D3bSHP_B.js +0 -1
- package/dist/web/assets/Record-DkCLJos6.js +0 -2
- package/dist/web/assets/Regression-B2qMKjAE.js +0 -5
- package/dist/web/assets/Reports-D_G9yfDa.js +0 -2
- package/dist/web/assets/Response-BnPAefP-.js +0 -4
- package/dist/web/assets/Runs-DsDj9-LT.js +0 -2
- package/dist/web/assets/Shell-DlZHZN0d.js +0 -3
- package/dist/web/assets/TestData-qI1R5Q9v.js +0 -2
- package/dist/web/assets/WhatsNew-CoCHqSDm.js +0 -1
- package/dist/web/assets/bot-D8486kSA.js +0 -1
- package/dist/web/assets/chevron-up-CQz_ZmIK.js +0 -1
- package/dist/web/assets/circle-BqXBUsQS.js +0 -1
- package/dist/web/assets/dataParts-bwNleJYd.js +0 -3
- package/dist/web/assets/index-Bh4NBbEU.js +0 -37
- package/dist/web/assets/index-DkgUrjyL.css +0 -2
- package/dist/web/assets/qualityParts-iy-mouSI.js +0 -1
- package/dist/web/assets/thread-BfW2V-2U.js +0 -5
package/docs/MOBILE.md
CHANGED
|
@@ -77,6 +77,68 @@ mobile:
|
|
|
77
77
|
Each run writes a folder under the reports folder (`mobile-explore-…`, `mobile-replay-…`, `mobile-maestro-…`) with
|
|
78
78
|
`run.json`, `report.html`, step screenshots, and for Maestro runs the flow, `maestro.log` and Maestro's JUnit report.
|
|
79
79
|
|
|
80
|
+
## Devices
|
|
81
|
+
|
|
82
|
+
Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and
|
|
83
|
+
the cloud need from that and the app: the W3C capabilities (`platformName`, `appium:udid`, `bstack:options`,
|
|
84
|
+
`LT:Options`, …), the cloud's hub address, Maestro's `--device`, and TestMu's HyperExecute YAML. Nobody types
|
|
85
|
+
capabilities.
|
|
86
|
+
|
|
87
|
+
Devices on this computer are in forgeqe.yaml:
|
|
88
|
+
|
|
89
|
+
```yaml
|
|
90
|
+
mobile:
|
|
91
|
+
parallel: 3 # devices at once, here and on the clouds; default: all of them
|
|
92
|
+
devices:
|
|
93
|
+
pixel8: # an emulator
|
|
94
|
+
type: virtual
|
|
95
|
+
platform: android
|
|
96
|
+
udid: emulator-5554
|
|
97
|
+
iphone-sim: # an iOS simulator (XCUITest boots it)
|
|
98
|
+
type: virtual
|
|
99
|
+
platform: ios
|
|
100
|
+
model: iPhone 15
|
|
101
|
+
os_version: "17.2"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Devices on TestMu AI or BrowserStack are in that cloud's own file, the one `browser.providers` links
|
|
105
|
+
(`.forgeqe/testmu.yaml`, `.forgeqe/browserstack.yaml`), beside its browsers and with the same sign-in. Settings →
|
|
106
|
+
Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices.
|
|
107
|
+
A file with only mobile devices sets up no browser on that cloud.
|
|
108
|
+
|
|
109
|
+
```yaml
|
|
110
|
+
# .forgeqe/testmu.yaml
|
|
111
|
+
provider: testmu
|
|
112
|
+
remote:
|
|
113
|
+
username_env: LT_USERNAME # the sign-in, as variable names; values in the credential store
|
|
114
|
+
access_key_env: LT_ACCESS_KEY
|
|
115
|
+
mobile:
|
|
116
|
+
region: us
|
|
117
|
+
devices:
|
|
118
|
+
galaxy-s23:
|
|
119
|
+
type: real # real | virtual (TestMu's emulators and simulators)
|
|
120
|
+
platform: android
|
|
121
|
+
model: Galaxy S23
|
|
122
|
+
os_version: "13"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
- **Which devices run.** Every device with `enabled` on (the default), of the app's platform: an Android workflow
|
|
126
|
+
skips the iOS devices. `--devices pixel8,galaxy` (or the agent's `devices`) names some for one run.
|
|
127
|
+
- **At once.** `mobile.parallel` of them at a time. Devices on this computer running at once get their own driver
|
|
128
|
+
ports (`appium:systemPort` 8200+, `appium:wdaLocalPort` 8100+, `appium:mjpegServerPort` 9100+) on the one Appium
|
|
129
|
+
server. On TestMu, `mobile.parallel` also caps HyperExecute's concurrency.
|
|
130
|
+
- **Maestro** runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
|
|
131
|
+
for its emulators). It does not run on BrowserStack here: replay those with Appium.
|
|
132
|
+
- **Results.** Each device's run is in a folder of its own inside the run's folder, with `devices.json` listing each
|
|
133
|
+
one's result and report. The run passes only when every device passes; `--junit` has one case per device.
|
|
134
|
+
- **The cloud check.** Before a run, ForgeQE asks each cloud whether it has the real devices listed; for one it does
|
|
135
|
+
not, it offers the most similar (in a terminal) and swaps only that device, this run only.
|
|
136
|
+
- `explore` works through a goal once, on the first device in use.
|
|
137
|
+
- `mobile.appium.capabilities` is still added to every session, for the rare setting ForgeQE does not make.
|
|
138
|
+
|
|
139
|
+
Without `mobile.devices`, the device is the one `mobile.appium` (its URL and capabilities) and `mobile.maestro`
|
|
140
|
+
(`device`, `testmu`) name, as before.
|
|
141
|
+
|
|
80
142
|
## Workflow YAML (`forgeqe-mobile-v1`)
|
|
81
143
|
|
|
82
144
|
```yaml
|
package/docs/MODEL_ROUTING.md
CHANGED
|
@@ -43,9 +43,31 @@ forgeqe models --routes
|
|
|
43
43
|
| `analysis` | Root cause of defects | tool calls; rated 5 |
|
|
44
44
|
| `planning` | Refine, finding tests, API scenarios, exploratory charters | tool calls; rated 3+ |
|
|
45
45
|
|
|
46
|
+
## A default model for each agent
|
|
47
|
+
|
|
48
|
+
To give one agent its own model whatever `routing` says, name an `llms.json` profile for it under `llm.agents`
|
|
49
|
+
(Settings → Routing → Default model per agent does the same):
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
llm:
|
|
53
|
+
agents:
|
|
54
|
+
forgeqe: azure-gpt4o # the Orchestrator
|
|
55
|
+
engine: azure-gpt4o # the browser agent: pick a model that takes images
|
|
56
|
+
forgeqe-test: claude-opus # the coding agent
|
|
57
|
+
forgeqe-review: azure-mini # its reviewer
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
An agent left out uses its area's pick. The agents are `forgeqe`, `engine`, `forgeqe-test`, `forgeqe-heal`,
|
|
61
|
+
`forgeqe-migrate`, `forgeqe-api`, `forgeqe-review`, `forgeqe-pr-review`, `forgeqe-judge`, `forgeqe-defect-rca`,
|
|
62
|
+
`forgeqe-refine`, `forgeqe-find`, `forgeqe-test-plan`, `forgeqe-api-plan`, `forgeqe-explore-plan`, `forgeqe-data` and
|
|
63
|
+
`forgeqe-agent-builder`; `forgeqe models --routes` lists each with the model it gets. An unknown agent or a profile not
|
|
64
|
+
in `llms.json` is an error when ForgeQE loads `forgeqe.yaml`. The model must still work: with `fallback` on, one that
|
|
65
|
+
fails its check is replaced as for any area. `--profile` still names the model for everything.
|
|
66
|
+
|
|
46
67
|
## How a model is picked
|
|
47
68
|
|
|
48
|
-
1. **Your choices win.** `--profile` (or `WP_LLM_PROFILE`)
|
|
69
|
+
1. **Your choices win.** `--profile` (or `WP_LLM_PROFILE`) comes first. Then an agent's own model in `llm.agents`
|
|
70
|
+
(below), which also comes ahead of `code.model` and `code.review_profile` for that agent. `code.model` keeps the router out. A profile pinned in
|
|
49
71
|
`llm.routes` is used for its area. `code.review_profile` still sets the reviewer.
|
|
50
72
|
2. **Facts rule models out.** The router never picks a model that:
|
|
51
73
|
- has no key, or failed its live check;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Product knowledge graph
|
|
2
|
+
|
|
3
|
+
Status: phases 1 (structure graph, query, tool, command), 2 (model understanding, pages, flows) and 3 (documents and links) built; phases 4 and 5 are design. Branch `knowledge-graph`.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
Give every ForgeQE agent (the Orchestrator, planners, the browser agent, Scribe, the API and defect agents) a clear,
|
|
8
|
+
queryable picture of how the product works, built from **all of the product's repositories and documents**, so a task
|
|
9
|
+
starts from what the product actually does instead of guesses.
|
|
10
|
+
|
|
11
|
+
- ForgeQE builds it, with the model in `llms.json`. It does not depend on Claude Code or any editor plugin.
|
|
12
|
+
- One product graph, merged from many repositories, plus generated Markdown pages that people can read and review.
|
|
13
|
+
- Agents query it by requirement ("what happens when a customer cancels an order?") and get only the parts that
|
|
14
|
+
matter, with `repo:file:line` references they can open.
|
|
15
|
+
- Rebuilding is incremental: only what changed since the last build is read again, and only that goes to the model.
|
|
16
|
+
|
|
17
|
+
## What exists today
|
|
18
|
+
|
|
19
|
+
| Piece | Where | Used for |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Product notes (Markdown) | `src/knowledge.ts`, `.forgeqe/knowledge/` | Sections matched to a task by shared words |
|
|
22
|
+
| Test-repo code graph (no model) | `src/code/graph/` | Scribe finds classes, tests, locators |
|
|
23
|
+
| tree-sitter parsers | `@vscode/tree-sitter-wasm`: TS, TSX, JS, C#, Java, Python | Parsing without a model |
|
|
24
|
+
| Confluence pages | `src/cases/confluence.ts` | Test cases today; documents here |
|
|
25
|
+
| Model routing | `src/router/` | Picks the model per area of work |
|
|
26
|
+
| Agent sessions with a JSON schema | `openSession` in `src/code/runtime.ts`, as `src/refine.ts` uses it | Structured model output |
|
|
27
|
+
|
|
28
|
+
The product graph builds on these: the same parsers, the same knowledge folder, the same model routing and sessions.
|
|
29
|
+
|
|
30
|
+
## Format
|
|
31
|
+
|
|
32
|
+
The graph follows the open schema of [Understand-Anything](https://github.com/Egonex-AI/Understand-Anything) (MIT):
|
|
33
|
+
typed nodes (`file`, `class`, `function`, `service`, `endpoint`, `table`, `config`, `document`, `domain`, `flow`,
|
|
34
|
+
`step`, `entity`, `claim`, …) and typed, weighted edges (`imports`, `calls`, `reads_from`, `writes_to`, `tested_by`,
|
|
35
|
+
`documents`, `contains_flow`, `flow_step`, `cross_domain`, …), each node with a summary, tags, and a file and line range.
|
|
36
|
+
Using the same shape keeps it readable by that project's dashboard, and lets a team import a graph it already built
|
|
37
|
+
there. Only the format is shared; ForgeQE's code is its own.
|
|
38
|
+
|
|
39
|
+
ForgeQE adds a `repo` field to each node and prefixes ids with the repository (`api:file:src/orders/cancel.ts`), so many
|
|
40
|
+
repositories merge into one graph without clashes, and edges may cross repositories.
|
|
41
|
+
|
|
42
|
+
ForgeQE also adds `evidence` to every node and edge (PRODUCT_VIEWS.md): its source (`code`, `config`, `spec`,
|
|
43
|
+
`schema`, `doc`, `runtime`, `person`, `model`), its state (`observed`, `inferred`, `unknown`), a confidence, how it was
|
|
44
|
+
found, and where (repository, file, line, or link) with the line it rests on. Beside the graph, `graph/coverage.json`
|
|
45
|
+
counts what was linked and lists the gaps: calls that no route or several routes fit, calls to other hosts, and tables
|
|
46
|
+
no repository defines, each with where it is and what would settle it.
|
|
47
|
+
|
|
48
|
+
## Settings (`forgeqe.yaml`)
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
product:
|
|
52
|
+
name: Shop
|
|
53
|
+
repos: # by name, like databases: and containers.services:
|
|
54
|
+
web: { path: ../shop-web } # a local clone
|
|
55
|
+
api: { git: https://github.com/acme/shop-api, branch: main, token_env: GITHUB_TOKEN } # or its link: fetched
|
|
56
|
+
# into ForgeQE's cache (src/product/gitsource.ts), latest commit only, when it moved
|
|
57
|
+
docs:
|
|
58
|
+
- ../shop-docs # folders of .md / .txt
|
|
59
|
+
- confluence: SHOP # a Confluence space, with the existing sign-in
|
|
60
|
+
links: # knowledge from links (see "Links" below)
|
|
61
|
+
- url: https://help.shop.example/ # a help centre or docs site: this page and the pages it links to
|
|
62
|
+
depth: 2 # how many links deep to follow, on the same site only (default 1)
|
|
63
|
+
max_pages: 200
|
|
64
|
+
- url: https://api.shop.example/openapi.json # an API description: endpoints read exactly, no model needed
|
|
65
|
+
- url: https://acme.atlassian.net/wiki/spaces/SHOP/pages/123 # a Confluence page and its children
|
|
66
|
+
- app: shop-web # a web app of env.yaml: what ForgeQE's runs and explorations learned about it
|
|
67
|
+
exclude: ["**/generated/**"] # beside each repo's .gitignore and .forgeqeignore
|
|
68
|
+
model: true # false: structure only, nothing goes to a model
|
|
69
|
+
max_model_files: 400 # most changed files the model reads in one build
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Every option gets a field on the web app's Settings page (`tests/settings-coverage.test.ts`).
|
|
73
|
+
|
|
74
|
+
## Where it is written
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
.forgeqe/knowledge/
|
|
78
|
+
product/ generated pages: overview, one per domain and per service (Markdown, reviewable)
|
|
79
|
+
graph/
|
|
80
|
+
product-graph.json the merged graph agents query
|
|
81
|
+
repos/<name>.json one graph per repository
|
|
82
|
+
meta.json per repository: last commit read, file fingerprints, model, cost
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The generated pages sit in the knowledge folder, so today's matching (`relevantKnowledge`) picks them up with no change.
|
|
86
|
+
The team's own notes stay beside them and win where the two disagree.
|
|
87
|
+
|
|
88
|
+
## Model
|
|
89
|
+
|
|
90
|
+
The model steps use the profiles already in `llms.json`: `github_copilot` (through ForgeQE's Copilot gateway on
|
|
91
|
+
127.0.0.1, on the user's seat), `azure`, `openai`, `openai_compatible`, or `ollama`. They run as agent sessions with a
|
|
92
|
+
JSON schema (`openSession`), on the `analysis` route of model routing (`src/router/`), so a team that routes analysis to
|
|
93
|
+
Copilot builds its knowledge on Copilot with no other setting. `--profile <name>` picks a profile for one build.
|
|
94
|
+
Copilot costs no tokens, so the cost prompt then shows only the number of files and requests.
|
|
95
|
+
|
|
96
|
+
## Building: `forgeqe knowledge build [--repo <name>] [--full] [--no-model]`
|
|
97
|
+
|
|
98
|
+
1. **Scan** (no model). Each repository's files, languages, and frameworks (`package.json`, `pom.xml`, `*.csproj`,
|
|
99
|
+
`requirements.txt`, `pyproject.toml`). `.gitignore` and `.forgeqeignore` apply. Hidden files and files named like
|
|
100
|
+
credentials are never read.
|
|
101
|
+
2. **Structure** (no model). tree-sitter facts become `file`, `class`, `function` nodes and `contains`, `imports`,
|
|
102
|
+
`calls` edges. Pattern rules add:
|
|
103
|
+
- `endpoint` nodes from route definitions (Express, ASP.NET `[Http*]`, Spring `@*Mapping`, FastAPI and Flask);
|
|
104
|
+
- `table` nodes from migrations and SQL;
|
|
105
|
+
- `config` nodes, with `tested_by` edges from tests to the code they import;
|
|
106
|
+
- **cross-repository edges**: an HTTP call in one repository matched by method and path to an endpoint in another.
|
|
107
|
+
3. **Understanding** (model, batched). Each file gets a summary, tags, and complexity. Each repository gets its
|
|
108
|
+
services and layers. The product gets its domains, business flows and steps, business rules, glossary, and roles,
|
|
109
|
+
each linked to the nodes that implement it.
|
|
110
|
+
4. **Documents** (model). Folders and Confluence pages are split into sections. Each becomes a `document` node, with
|
|
111
|
+
`entity` and `claim` nodes and `documents` edges to the code they describe.
|
|
112
|
+
5. **Links** (see below). Each fetched page becomes a `document` node. An API description becomes `endpoint` nodes.
|
|
113
|
+
What ForgeQE learned in the live app becomes `page` and `screen` nodes.
|
|
114
|
+
6. **Pages**. The overview, domain pages, and service pages are written as Markdown.
|
|
115
|
+
|
|
116
|
+
Before a build that uses the model, ForgeQE shows how many files will be read and the estimated cost (`src/tokenomics`),
|
|
117
|
+
and asks. A rebuild uses `git diff` from the commit in `meta.json` plus file fingerprints, re-reads only the changed files,
|
|
118
|
+
and redoes the domain step only when the structure changed.
|
|
119
|
+
|
|
120
|
+
## Links
|
|
121
|
+
|
|
122
|
+
A link is a source like a folder, read the way its kind needs. As built, sources are a map by name under
|
|
123
|
+
`product.docs` (like `product.repos`), each with one of `path`, `url`, `confluence`, or `app`:
|
|
124
|
+
|
|
125
|
+
| Link | How it is read | Becomes |
|
|
126
|
+
|---|---|---|
|
|
127
|
+
| A web page or docs site (help centre, user guide, release notes, public API docs) | Fetched over HTTPS. Links on the same site are followed up to `depth` and `max_pages`; `sitemap.xml` and `robots.txt` are honoured. The text is taken from the HTML, and scripts and styles are dropped. | `document` nodes split at headings, then `entity`, `claim`, and `documents` edges (step 4) |
|
|
128
|
+
| An OpenAPI / Swagger, WSDL, or GraphQL description | Read with ForgeQE's API spec readers (`src/api/spec.ts`), with no model | `endpoint` and `schema` nodes, matched to the code that serves them |
|
|
129
|
+
| A Confluence page or space | The existing Confluence reader and sign-in (`src/cases/confluence.ts`) | `document` nodes, with child pages followed |
|
|
130
|
+
| A page that renders only in a browser, or needs a login | The browser engine with the app's login from env.yaml. Login values reach the model only as `<secret>` placeholders. | `document` nodes |
|
|
131
|
+
| A web app of `env.yaml` (`app:`) | Page memory: the pages, elements, and flows ForgeQE's runs and `forgeqe explore` recorded (`src/memory.ts`) | `page` and `screen` nodes, linked to the endpoints they call and the code that serves them |
|
|
132
|
+
|
|
133
|
+
The last row is unique to ForgeQE: it joins what the product *says* (documents), what it *is* (code), and what it *does*
|
|
134
|
+
on screen (page memory) in one graph. So a requirement leads to the screen, the API call behind it, and the code.
|
|
135
|
+
|
|
136
|
+
Rules for links (as built):
|
|
137
|
+
|
|
138
|
+
- The link in the settings is the person's choice, so it may be on the company network (an intranet wiki is a
|
|
139
|
+
common source). What a page links to, and every redirect, is followed only on that same host, so a page cannot send
|
|
140
|
+
ForgeQE to `169.254.169.254` or another internal service. Only `http` and `https`, never a link with a user name or
|
|
141
|
+
password in it; a token (`token_env`) is sent to that host only.
|
|
142
|
+
- `robots.txt` is honoured. Each page is at most 2 MB and 20 seconds, and only text is read.
|
|
143
|
+
- Page text is untrusted, like repository text. Instructions in it are data, and a page cannot add links to settings.
|
|
144
|
+
- A rebuild fetches a page again only when its `ETag` or `Last-Modified` changed, so the model reads only what changed.
|
|
145
|
+
- A one-off link can be added from the shell or the web app (`/knowledge add <url>`), and is saved to settings first.
|
|
146
|
+
|
|
147
|
+
## Querying
|
|
148
|
+
|
|
149
|
+
- `src/product/query.ts`:
|
|
150
|
+
1. finds the nodes that match a requirement (names, summaries, tags, and stemmed words, as `knowledge.ts` does);
|
|
151
|
+
2. adds their neighbours by edge weight;
|
|
152
|
+
3. returns a compact block within a character budget, each line with `repo:file:line`.
|
|
153
|
+
- **The `product_knowledge` tool** for ForgeQE's agent (`src/mcp/producttools.ts`), one tool with an `op`, as
|
|
154
|
+
`data_flows` is: `search`, `node` (one node and its neighbours), `impact` (what depends on a file, class, endpoint,
|
|
155
|
+
or table, across repositories, and the tests that cover it), `status`, `gaps`, and `build`. Phase 2 adds `flow` (a
|
|
156
|
+
business flow, step by step). The same questions from a terminal:
|
|
157
|
+
`forgeqe knowledge build|status|search|node|impact|flow|gaps|check|ask|findings`. `ask` (op `ask`) runs the
|
|
158
|
+
investigator (PRODUCT_VIEWS.md, Investigation).
|
|
159
|
+
- **Prompts**: the planners, the explorer, the API planner, and the browser agent get the matching block next to
|
|
160
|
+
today's knowledge sections.
|
|
161
|
+
- **Requirement_Agent** reads the same `product-graph.json` through a `GraphProvider` (its `ContextProvider` interface).
|
|
162
|
+
- **Web app**: a Knowledge page shows the graph, the generated pages, and build status, and starts a rebuild.
|
|
163
|
+
|
|
164
|
+
## Sharing (`src/product/share.ts`, `src/product/pipeline.ts`)
|
|
165
|
+
|
|
166
|
+
`forgeqe knowledge export` writes the knowledge folder's own files (the graph, its per-repository and per-source files,
|
|
167
|
+
coverage, history, findings, feedback, what the model wrote, and the pages) as one gzipped JSON pack, each file with
|
|
168
|
+
its SHA-256, and the commits it was built from. `import` and `pull` read a pack as untrusted data: only paths on a fixed
|
|
169
|
+
list, no `..`, hidden or absolute path, every checksum matching, at most 100 MB packed and 512 MB unpacked, every folder
|
|
170
|
+
resolving inside the knowledge folder; the files are staged and moved into place only when all are good. A person's
|
|
171
|
+
feedback and findings are merged, theirs first. `product.shared` is a branch of a git repository (fetched like a
|
|
172
|
+
repository, `gitsource.ts`), an https link (the token to that host only; a redirect elsewhere goes without it), or a
|
|
173
|
+
file. `forgeqe knowledge pipeline init` writes the GitHub Actions and Azure DevOps pipelines: ForgeQE at its exact
|
|
174
|
+
version, secrets by name, the last pack imported first, then build, export, the artifact, and the `forgeqe-knowledge`
|
|
175
|
+
branch rewritten to one commit holding the pack (made with `git hash-object`/`mktree`/`commit-tree`, so the checkout
|
|
176
|
+
is never changed).
|
|
177
|
+
|
|
178
|
+
## Security (see CLAUDE.md)
|
|
179
|
+
|
|
180
|
+
- Repository and document paths come from settings. Each is resolved with `realpathSync`, and every file read stays
|
|
181
|
+
inside it. Hidden files and credential-like files are skipped.
|
|
182
|
+
- Code and documents are sent only to the model the user configured, and only when `model` is not `false`.
|
|
183
|
+
- Model output is untrusted. Secrets are redacted (`redactSecrets`) before anything is written. Summaries never reach a
|
|
184
|
+
shell or an HTML sink. In prompts they appear as quoted data, after the team's own notes. The web page draws them as
|
|
185
|
+
text.
|
|
186
|
+
- The git commands use argument arrays, never a shell. A repository read from its link (`gitsource.ts`) takes only
|
|
187
|
+
https and ssh (`protocol.allow=never` with those two allowed), never `ext::`, `file://`, a local path, `..`, a link with
|
|
188
|
+
a password, or a user name or branch that starts like an option; `--` comes before the link. Hooks, fsmonitor,
|
|
189
|
+
submodules and LFS are off and symbolic links are checked out as plain files. The token comes from `token_env` and is
|
|
190
|
+
sent as an `http.<host>.extraHeader` through git's environment, so it is in no argument, link or file, and is cut out of
|
|
191
|
+
any error shown.
|
|
192
|
+
- Tests feed hostile input: a repository path of `../../.ssh`, a summary holding `<script>` and `; rm -rf ~`, and a
|
|
193
|
+
document link of `javascript:`.
|
|
194
|
+
|
|
195
|
+
## Phases
|
|
196
|
+
|
|
197
|
+
1. **Structure graph**: settings, scan and structure for several local repositories, the merged file, the query, the MCP
|
|
198
|
+
tools, and tests. No model.
|
|
199
|
+
2. **Understanding**: model summaries, domains, flows, generated pages, incremental rebuilds, and the cost prompt.
|
|
200
|
+
3. **Documents and links**: folders, API description links, web pages and docs sites, page memory of the apps, then
|
|
201
|
+
Confluence and pages that need a browser.
|
|
202
|
+
4. **Use everywhere**: prompt blocks for planners and the browser agent, the Requirement_Agent provider, the web
|
|
203
|
+
Knowledge page.
|
|
204
|
+
5. **Remote repositories**: `url` and `ref` instead of `path`, cloned into ForgeQE's cache.
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# Engineering view and Product view: design
|
|
2
|
+
|
|
3
|
+
Status: proposal. It builds on the product knowledge graph (PRODUCT_KNOWLEDGE.md) and replaces the hand-drawn mockups.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
ForgeQE builds two connected views of a product from what is connected to it: repositories, documents, API
|
|
8
|
+
descriptions, databases, and the runs ForgeQE makes. No one draws or maintains them.
|
|
9
|
+
|
|
10
|
+
- **Engineering view**: how the system is built and works inside. Services and how they talk, code structure, APIs and
|
|
11
|
+
integrations, dependencies between components and repositories, internal data flow.
|
|
12
|
+
- **Product view**: how the product works for the business. Journeys, capabilities, business rules, the systems it
|
|
13
|
+
integrates with, and how data is shared, transformed and kept.
|
|
14
|
+
|
|
15
|
+
Both views read from one graph. A capability in the Product view opens the services and code behind it in the
|
|
16
|
+
Engineering view, and the other way round.
|
|
17
|
+
|
|
18
|
+
## What REA teaches us
|
|
19
|
+
|
|
20
|
+
REA (github.com/morluto/rea, MIT) reverse-engineers applications. Its tools target binaries, not product repositories,
|
|
21
|
+
so we take its model, not its tools. Its JavaScript Application Graph and Evidence model show five rules we follow:
|
|
22
|
+
|
|
23
|
+
1. **Extractors produce facts; one model combines them.** Each analyzer (bundle, browser, Electron, native) emits
|
|
24
|
+
facts, and a provider-neutral graph joins them. The graph does no I/O itself.
|
|
25
|
+
2. **Every node and edge carries its evidence.** Each fact records who said it (artifact bytes, AST, static
|
|
26
|
+
inference, runtime capture, a person), an epistemic state (`observed`, `inferred`, `unknown`, `unavailable`), and a
|
|
27
|
+
confidence. An inference is never promoted to an observation.
|
|
28
|
+
3. **Unknown is a first-class answer.** There is an `unknown` node kind. An endpoint whose URL is built at run time is
|
|
29
|
+
kept as `partial`, with the source expression and its call site, not guessed. Each graph states its coverage
|
|
30
|
+
(`complete`, `partial`, `unknown`, `unavailable`) and its limitations.
|
|
31
|
+
4. **Static and runtime are reconciled, not merged.** What the code suggests and what a run observed are matched, and
|
|
32
|
+
each pair is labelled match, ambiguity, mismatch, or unknown. Both keep their own authority.
|
|
33
|
+
5. **Stable identity.** A node's id comes from what it is (kind plus a normalized key), so a rebuild gives the same id,
|
|
34
|
+
and a change between versions is a `changed_from` edge, not a new, unrelated node.
|
|
35
|
+
6. **Depth comes from investigation, not from a map.** REA does not map a whole application first. An agent asks one
|
|
36
|
+
question ("how does search work?"), REA's tools trace that feature, and the agent asks again until it understands.
|
|
37
|
+
Each answer comes back as findings with evidence and unknowns.
|
|
38
|
+
|
|
39
|
+
Source code gives us more than REA has from a binary: names, comments, tests and history, exactly. Documents add the
|
|
40
|
+
business intent that a binary never holds. So we keep REA's loop and give it better sources.
|
|
41
|
+
|
|
42
|
+
A map built up front is wide and shallow. Retrieval (RAG) alone finds text like the question, but does not follow a call
|
|
43
|
+
from a screen through services to a table and a message. We need both: a skeleton everywhere, and investigation where
|
|
44
|
+
someone asks, with each finding written back.
|
|
45
|
+
|
|
46
|
+
## Where our graph falls short today
|
|
47
|
+
|
|
48
|
+
The graph built in phases 1 to 4 is structure plus model summaries:
|
|
49
|
+
|
|
50
|
+
- Edges have a `weight` but no evidence. A call matched by URL tail looks the same as one a run observed.
|
|
51
|
+
- The model's text (domains, flows, summaries) sits in the same nodes as parsed facts, and nothing tells them apart.
|
|
52
|
+
- There is no `unknown`. A call to `${BASE}/x` either matches by guess or disappears.
|
|
53
|
+
- It has no services as deployed: no Dockerfile, compose, Kubernetes, gateway config, or environment variables that
|
|
54
|
+
wire one service to another.
|
|
55
|
+
- It has no messaging (Kafka, RabbitMQ, SQS, events), no outbound integrations (Stripe, SMTP), and no auth.
|
|
56
|
+
- Its database knowledge comes from migration and model files by pattern. It does not read a live schema.
|
|
57
|
+
- Runs (`network.json`, page memory) are not used as evidence.
|
|
58
|
+
- The Understand-Anything format cannot hold any of the above, so the format has to change (see Format below).
|
|
59
|
+
|
|
60
|
+
## Design
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
sources extractors fact store resolver views
|
|
64
|
+
───────── ────────── ────────── ──────── ─────
|
|
65
|
+
repositories ──► code, config, infra, ──► entities, relations, ──► identity, merge, ──► Engineering
|
|
66
|
+
documents spec, schema, doc, each with observations reconcile static Product
|
|
67
|
+
API specs runtime, db, person (source, locator, vs runtime, queries for
|
|
68
|
+
databases state, confidence) coverage, unknowns agents
|
|
69
|
+
ForgeQE runs
|
|
70
|
+
▲ │
|
|
71
|
+
findings, cited │ │ skeleton: where to look
|
|
72
|
+
│ ▼
|
|
73
|
+
investigator agent: a question from a person,
|
|
74
|
+
a task or a requirement; reads code, documents,
|
|
75
|
+
runs; may run a test; cites fact ids
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Two layers:
|
|
79
|
+
|
|
80
|
+
- **Skeleton**: built by the extractors, without the model, on every build. Wide and cheap. It tells the investigator
|
|
81
|
+
where to look and gives every view its boxes and lines.
|
|
82
|
+
- **Depth**: written by the investigator, one question at a time. It grows where people actually ask.
|
|
83
|
+
|
|
84
|
+
### Fact store
|
|
85
|
+
|
|
86
|
+
One record per fact. It replaces node `summary` and edge `weight` as the source of truth.
|
|
87
|
+
|
|
88
|
+
- **Entity**: `{ id, kind, key, name, repo? }`. `id` = hash of `kind` plus `key` (for example
|
|
89
|
+
`endpoint:order-api:POST /orders/{}/cancel`).
|
|
90
|
+
- **Relation**: `{ id, kind, from, to }`, with the same rule.
|
|
91
|
+
- **Observation**, many per entity or relation:
|
|
92
|
+
`{ source: code|config|infra|spec|schema|doc|db|runtime|person|model, locator, quote?, digest, state: observed|inferred|unknown, confidence, at }`.
|
|
93
|
+
`locator` is a file and line range, a URL and heading, a table, or a run id and request number.
|
|
94
|
+
`quote` is the exact text the fact rests on. Code checks it against the file, as the proof design already planned.
|
|
95
|
+
- **Coverage** per extractor and source: what was read, what was skipped and why, and what is left unknown.
|
|
96
|
+
|
|
97
|
+
Facts are rebuilt only for files whose digest changed, as the structure cache does now.
|
|
98
|
+
|
|
99
|
+
### Extractors
|
|
100
|
+
|
|
101
|
+
Each extractor is a pure function from a file, page or capture to facts. It runs no commands, and every path stays
|
|
102
|
+
inside its root (CLAUDE.md, Files).
|
|
103
|
+
|
|
104
|
+
| Extractor | Reads | Produces |
|
|
105
|
+
|---|---|---|
|
|
106
|
+
| code (exists, extend) | source files through tree-sitter | modules, classes, functions, imports, endpoints served, outbound HTTP calls (exact or `partial`), DB access, message publish and consume, scheduled jobs |
|
|
107
|
+
| config and infra (new) | Dockerfile, compose, Kubernetes and Helm, Terraform service names, gateway config (Kong, nginx, Ingress), `.env.example`, `appsettings*.json`, `application*.yml` | deployable services, their ports, the base URLs and topics in their environment, which resolve `partial` calls; gateway routes; auth providers |
|
|
108
|
+
| API spec (exists, extend) | OpenAPI, AsyncAPI, GraphQL SDL, proto | operations, message channels, schemas, with their fields |
|
|
109
|
+
| schema (extend) | migrations, ORM models; and, when the person allows it, a configured read-only database through `forgeqe db` | tables, columns, keys, relations, personal-data columns by name |
|
|
110
|
+
| documents (exists, extend) | folders, links, Confluence | glossary terms, business rules and journeys as quoted passages, linked to entities they name |
|
|
111
|
+
| runtime (new) | the `network.json` and page memory of ForgeQE's own browser and API runs | observed requests (service, operation, status, timing), screens visited, the order of calls in one journey |
|
|
112
|
+
| person (new) | Right or Wrong in the views, and corrections | confirmations and corrections, which outrank the model |
|
|
113
|
+
|
|
114
|
+
Secret values are never stored: environment files give names and hosts only, after `scrubSecrets`.
|
|
115
|
+
|
|
116
|
+
### Resolver
|
|
117
|
+
|
|
118
|
+
- **Identity**: normalizes keys (route templates, table names, topic names, host names to services) and merges facts
|
|
119
|
+
about the same thing from different sources.
|
|
120
|
+
- **Linking**: an outbound call becomes a service-to-service relation when its target resolves to one served endpoint
|
|
121
|
+
(exact path, or base URL from config plus path). If several fit, it is `ambiguous`; if none fit, the target stays an
|
|
122
|
+
`unknown` external, with the call site.
|
|
123
|
+
- **Reconciliation**: each static relation is compared with runtime observations: `match`, `mismatch` (the code says
|
|
124
|
+
`/refunds`, the runs call `/refunds/v2`), `not seen` (in code, never in a run), or `runtime only` (seen in a run, not
|
|
125
|
+
found in code).
|
|
126
|
+
- **Coverage and unknowns**: per service and per journey, for example "12 of 14 outbound calls resolved, 2 unknown".
|
|
127
|
+
|
|
128
|
+
### Investigation
|
|
129
|
+
|
|
130
|
+
The investigator is a ForgeQE agent on the user's model (routing as for other agents). It starts from a question:
|
|
131
|
+
|
|
132
|
+
- a person asks in the views or with `forgeqe knowledge ask "<question>"`;
|
|
133
|
+
- an agent's task needs something the skeleton does not answer (a requirement, a test plan, a PR review);
|
|
134
|
+
- the views show a gap: an unknown call, a journey step not seen in a run, a contradiction.
|
|
135
|
+
|
|
136
|
+
Its tools, all read-only unless marked:
|
|
137
|
+
|
|
138
|
+
| Tool | Gives |
|
|
139
|
+
|---|---|
|
|
140
|
+
| graph | search, node, neighbours, impact, flow (the `product_knowledge` operations) |
|
|
141
|
+
| code | read a file or a line range inside a product repository; find a symbol or text (allowlisted, no shell) |
|
|
142
|
+
| documents | search the read documents and pages; return passages with their locator |
|
|
143
|
+
| runs | the recorded requests and screens of ForgeQE's runs, by journey, endpoint or host |
|
|
144
|
+
| run a test (asks first) | start a browser or API run to confirm a step; its traffic becomes runtime facts |
|
|
145
|
+
|
|
146
|
+
It loops: look at the skeleton, read what it needs, ask again, until it can answer or says what stays unknown. It
|
|
147
|
+
stops at a step limit and a cost limit, set in settings, and says where it stopped.
|
|
148
|
+
|
|
149
|
+
Its answer is a set of **findings**. Each finding is a statement with the fact ids and quotes it rests on, a state
|
|
150
|
+
(`observed`, `inferred`, `unknown`), and the next probe when it is unknown (for example "run journey X on staging").
|
|
151
|
+
Code checks every quote against its source before storing it. A finding that adds a relation (for example "the refund
|
|
152
|
+
handler publishes `refund.created`") adds it as `inferred` with the finding as its evidence, until code, config or a run
|
|
153
|
+
observes it.
|
|
154
|
+
|
|
155
|
+
Findings are written back to the fact store under the question, so:
|
|
156
|
+
|
|
157
|
+
- the next question starts from them;
|
|
158
|
+
- the views show them where they belong (a journey's steps, a service's rules);
|
|
159
|
+
- a rebuild keeps them while the code they quote is unchanged, and marks them `stale` when it changes, for the next
|
|
160
|
+
investigation to check.
|
|
161
|
+
|
|
162
|
+
Two kinds of questions are run without being asked, within the cost limit, after a build: the gaps above, and the
|
|
163
|
+
team questions (below).
|
|
164
|
+
|
|
165
|
+
### The model's part
|
|
166
|
+
|
|
167
|
+
The model reads facts, not the other way round. Outside the investigator, it:
|
|
168
|
+
|
|
169
|
+
- names and groups: capabilities, domains, journeys;
|
|
170
|
+
- writes the explanations shown in the Product view;
|
|
171
|
+
- proposes business rules from code conditions and document passages.
|
|
172
|
+
|
|
173
|
+
Every model statement cites the fact ids it rests on. Code rejects a statement that cites nothing, or cites a fact that
|
|
174
|
+
does not exist. The model's output is stored with `source: model, state: inferred` and can never make a relation
|
|
175
|
+
`observed`. A person's Right or Wrong is kept and survives rebuilds.
|
|
176
|
+
|
|
177
|
+
## Engineering view
|
|
178
|
+
|
|
179
|
+
What it shows, and where each part comes from.
|
|
180
|
+
|
|
181
|
+
| Asked for | Shown as | Derived from |
|
|
182
|
+
|---|---|---|
|
|
183
|
+
| Service architecture and interactions | Services map: deployable services, gateway, stores, brokers, externals; lines for sync calls and messages, each with operation, count and evidence | infra + code calls + gateway + runtime |
|
|
184
|
+
| Code structure, modules, dependencies | Inside a service: layers (entry points, logic, data access, clients), modules and their imports; package dependencies with versions | code + package manifests |
|
|
185
|
+
| API definitions, integrations, patterns | Per service: operations served (spec and code side by side, differences marked), operations called, messages published and consumed, auth on each | spec + code + config |
|
|
186
|
+
| Dependencies between components and repos | Repo and package graph; shared libraries; "what breaks if X changes": impact over calls, messages, tables, and tests | resolver relations + `tested_by` |
|
|
187
|
+
| Internal data flow | Per table and topic: writers, readers, and the call chain between them | DB access + messaging + calls |
|
|
188
|
+
| Implementation details | Any node opens its code with the line range and the quote it rests on | observations |
|
|
189
|
+
|
|
190
|
+
Every line and box shows its state: observed in a run, read in code or config, inferred by the model, or unknown.
|
|
191
|
+
|
|
192
|
+
## Product view
|
|
193
|
+
|
|
194
|
+
| Asked for | Shown as | Derived from |
|
|
195
|
+
|---|---|---|
|
|
196
|
+
| End-to-end workflows and journeys | Journeys: screen → operation → services → stores → messages → externals, as a sequence; each step with its state | runtime traces first; else screen-to-endpoint links in code; named by the model |
|
|
197
|
+
| Systems interacting and integrating | Context map: users, the product's capabilities, outside systems, and what passes between them | externals from config and code; documents |
|
|
198
|
+
| Data shared, transferred, transformed | Data lineage: entity → tables → topics and APIs → outside systems and reports; personal data marked | schema + data access + messaging + data flows |
|
|
199
|
+
| Database structures and relationships | Entities and relations as business terms (Customer, Order), mapped to tables and columns | schema + glossary from documents |
|
|
200
|
+
| Business rules, processes, dependencies | Rules as sentences, each with its code condition and document passage; which journeys depend on them | code conditions + documents, phrased by the model, cited |
|
|
201
|
+
| Capabilities delivering outcomes | Capabilities (Ordering, Payments, Refunds) with the journeys, services, rules and tests behind each | model grouping over facts |
|
|
202
|
+
|
|
203
|
+
## How a person knows it is right
|
|
204
|
+
|
|
205
|
+
- Every box, line and sentence opens its evidence.
|
|
206
|
+
- Each view shows its coverage and its unknowns, not just what was found.
|
|
207
|
+
- Contradictions (code against run, document against code) are listed first.
|
|
208
|
+
- Team questions: a short list of questions with known answers, run after each build, scored.
|
|
209
|
+
- Right or Wrong on anything; corrections are kept and outrank the model.
|
|
210
|
+
|
|
211
|
+
## Continuous enrichment
|
|
212
|
+
|
|
213
|
+
- A build re-reads only changed files, pages and specs.
|
|
214
|
+
- Each ForgeQE browser or API run adds runtime facts after it ends, with no extra step.
|
|
215
|
+
- Each investigation adds findings, so knowledge deepens where people and agents ask.
|
|
216
|
+
- Stale findings (their quoted code changed) are checked again by the next investigation that reaches them.
|
|
217
|
+
- `forgeqe knowledge build` can run from a schedule or CI on merge to the main branch.
|
|
218
|
+
- Facts from a source that is gone are dropped; a person's confirmations are kept and flagged if what they confirmed
|
|
219
|
+
changed.
|
|
220
|
+
|
|
221
|
+
## Format
|
|
222
|
+
|
|
223
|
+
The Understand-Anything shape cannot hold observations, states or coverage. Proposal:
|
|
224
|
+
|
|
225
|
+
- Evidence sits on each node and edge of `product-graph.json` (field `evidence`). Readers of the
|
|
226
|
+
Understand-Anything shape ignore the field, so the existing queries, Requirement_Agent and prompts keep working.
|
|
227
|
+
- `graph/coverage.json` holds the counts, the gaps, and what is not read yet.
|
|
228
|
+
- Findings of the investigator (phase 2) are written beside the graph, by question.
|
|
229
|
+
|
|
230
|
+
## Security
|
|
231
|
+
|
|
232
|
+
Same rules as PRODUCT_KNOWLEDGE.md. In addition:
|
|
233
|
+
|
|
234
|
+
- Infra and env files give names, hosts and ports only. Values that look like secrets are scrubbed before storing.
|
|
235
|
+
- A live database is read only through a configured read-only connection, schema only, and only after the person
|
|
236
|
+
allows it.
|
|
237
|
+
- Runtime facts keep method, host, path template and status; no bodies, headers or query values.
|
|
238
|
+
- Views draw facts as React elements; no HTML from repositories, documents or the model.
|
|
239
|
+
- The investigator reads code and documents that others control, so their text may carry instructions. Its tools only
|
|
240
|
+
read, inside the product's roots, and refuse hidden and credential files. Its one action, running a test, is asked
|
|
241
|
+
first. It has no shell and no network beyond ForgeQE's own runs.
|
|
242
|
+
|
|
243
|
+
## Phases
|
|
244
|
+
|
|
245
|
+
1. **Fact store and evidence** (done). Evidence on every node and edge of `product-graph.json`; gaps for calls and
|
|
246
|
+
tables that cannot be settled; `graph/coverage.json`; `forgeqe knowledge gaps` and `check`; the tool's `gaps`.
|
|
247
|
+
2. **Investigator** (done). `forgeqe-investigate` (prompts/product-investigate.md) with two read-only tools,
|
|
248
|
+
`product_knowledge` and `product_code` (src/mcp/investigatetools.ts); findings with quotes found again in code;
|
|
249
|
+
`graph/findings.json`, earlier findings in the next request, stale marking on build and check; `forgeqe knowledge
|
|
250
|
+
ask|findings`; the tool's `ask` and `findings`; `node` shows findings. The investigator also reads the text of
|
|
251
|
+
pages from links and Confluence (kept in `graph/texts/`) and the API calls of ForgeQE's runs (`product_docs`,
|
|
252
|
+
`product_runs`), quoted and checked like code. `forgeqe knowledge eval` scores answers to questions with known
|
|
253
|
+
answers; `--sample` runs the 15 questions of the sample product in `evals/knowledge/shop`. Comparing runs with the
|
|
254
|
+
whole graph, and running a test, stay in phase 4.
|
|
255
|
+
3. **Engineering extractors** (done). `src/product/infra.ts` (Docker Compose, Kubernetes manifests, Kong, nginx,
|
|
256
|
+
settings files: addresses only), `src/product/wiring.ts` (topics and queues, outside services, authentication),
|
|
257
|
+
`src/product/wiring-link.ts` (deployed service to repository, base URL or host to service, topics with no consumer
|
|
258
|
+
or publisher as gaps, gateway routes to repositories). Then: Terraform (`src/product/terraform.ts`, allowlisted
|
|
259
|
+
plain attributes only), topic names through constants and settings, and endpoints and calls for Go, Rails, Laravel,
|
|
260
|
+
Rust and hand-written routing. Helm templates are not read yet.
|
|
261
|
+
4. **Runtime** (done). `src/product/runtime.ts` reads the last 50 runs' calls on every build: a match adds an
|
|
262
|
+
observation from the run to the endpoint, the front end's call and the screen; a near route is a mismatch, an
|
|
263
|
+
undeclared one runtime-only, both gaps; endpoints no run reached are listed (`forgeqe knowledge runtime`, op
|
|
264
|
+
`runtime`). The investigator's `product_run` starts one browser run, after the person agrees.
|
|
265
|
+
5a. **Landscape** (done): the level above the services map (`src/web/landscape.ts`, `web/src/pages/Landscape.tsx`).
|
|
266
|
+
Each repository's system comes from `product.repos.<name>.system`, else a person's decision on the model's proposal,
|
|
267
|
+
else the proposal (`src/product/systems.ts`: the knowledge builder, no tools, a schema; code keeps a system only with
|
|
268
|
+
a plain name and repositories the product has, one each, a reason, and citations of ids it was given), else the
|
|
269
|
+
first word it shares with another repository. Proposal and decisions are in `graph/systems.json`. Every part of the services map belongs to one system; links between systems are summed by kind (REST,
|
|
270
|
+
routes, events through a topic, shared data, SDK), links inside one are counted, not drawn. Outside services are
|
|
271
|
+
systems of their own; topics with only one end here are listed. A system opens its services, with the parts of
|
|
272
|
+
other systems it reaches beside them. `forgeqe knowledge landscape` and the knowledge tool's `landscape` op say the same.
|
|
273
|
+
5. **Engineering view** (done) in the web app, page Product (`web/src/pages/Product.tsx`, data from
|
|
274
|
+
`src/web/engineering.ts`): the services map drawn like ForgeQE's architecture map (bands for front ends,
|
|
275
|
+
gateways, services, and data and messages; outside systems in a side column; wires at right angles laid out by
|
|
276
|
+
`web/src/pages/archLayout.ts`, never through a card), with every link in words on its own tab; one service from the inside (endpoints with their authentication,
|
|
277
|
+
callers and what a change reaches; calls out, data, messages, outside services, cloud resources); runs against the
|
|
278
|
+
code; open questions. Every part and link says how it is known, opens its evidence in a side panel, and an open
|
|
279
|
+
question is investigated in a chat. Built on the sample product in `evals/knowledge/shop`. Findings are not yet
|
|
280
|
+
shown on the page.
|
|
281
|
+
6. **Product extractors and model pass with citations** (done). Without a model (`src/product/business.ts`): business
|
|
282
|
+
rules as the conditions that refuse a request, each tied to its endpoint and quoted; table columns, personal data by
|
|
283
|
+
column name; journeys as the runs walked them (`runs:flow:<run>`). The model's rules cite the ids that show them (a
|
|
284
|
+
rule found in the code first); one that cites nothing is dropped. Not yet: investigations started for unexplained
|
|
285
|
+
journeys and rules on their own.
|
|
286
|
+
7. **Product view** (done) on the Product page beside Engineering (`web/src/pages/ProductView.tsx`, data from
|
|
287
|
+
`src/web/productview.ts`), in the business's words (`src/product/plain.ts`): capability tiles with the actions people
|
|
288
|
+
take, journeys as storyboards with outcomes and the rules that stop a step, rules as sentences, each record's life
|
|
289
|
+
from the states the code sets and checks (`statesOf`), the glossary, and the team questions' last result. "Show how
|
|
290
|
+
it is built" adds the requests, files, capability map and sequence diagram. Right or Wrong on a rule, a journey, a
|
|
291
|
+
capability or a term is kept in `graph/feedback.json`, refused for anything else, and joins the part's evidence as a
|
|
292
|
+
person's on every build, ahead of the model.
|
|
293
|
+
|
|
294
|
+
Each phase ends with the views or queries run on a real product, not sample data.
|
|
295
|
+
|
|
296
|
+
## Decisions needed
|
|
297
|
+
|
|
298
|
+
- A product to test on: repositories we may read (or a public multi-service sample, for example a microservices demo
|
|
299
|
+
shop), so each phase is checked on real code.
|
|
300
|
+
- Which brokers, gateways and deployment formats matter first.
|
|
301
|
+
- Whether a read-only database connection is acceptable as a source.
|
package/docs/WEB_APP.md
CHANGED
|
@@ -167,6 +167,13 @@ and Ended as filters, a search, and 50 at a time.
|
|
|
167
167
|
| **Runs** | Every ForgeQE session in the project, from here, a schedule or the terminal: 25 to a page with filters. A run shows its summary, the conversation, its activity, and its details. |
|
|
168
168
|
| **Reports** | Every report ForgeQE wrote, each opening as its HTML report in a new tab; and the project report: every run together, with pass rate by day, what fails most, flaky cases and defects. |
|
|
169
169
|
| **Jobs** | Scheduled and long jobs (the jobs service), in two tabs. **Agent**: say what should run and when; the agent asks for what it still needs (what runs, when, its name, alerts), shows the job and adds it once you confirm its exact command and schedule. **Jobs**: a table of the jobs (what each runs, when in words, its last run and next run); a row opens the job with its runs, logs and alerts. *Add one yourself* is the form. |
|
|
170
|
+
| **Evidence › Overview** | Every AI agent whose runs are recorded here (ForgeQE's own and others': OpenTelemetry traces, received as they run or exported, Langfuse and LangSmith exports, JSON logs): its versions, runs, decisions and what its records cannot say. Runs are recorded with `forgeqe evidence receive` or `record` ([EVIDENCE.md](EVIDENCE.md)). An agent opens as its dashboard: per version its runs by verdict, each check's outcomes, what keeps going wrong, week by week, and its versions side by side check by check. Every number opens the runs it counts. |
|
|
171
|
+
| **Evidence › Agent runs** | Every recorded run, newest first, searched and filtered by agent. A run opens as its timeline: each step with the data it took in (its content where the record keeps it, else a fingerprint), what it decided with the options it had and the reason it gave, what it said about its own work, and what the record cannot say. An agent's reasons and statements are marked as claims, not facts. Above the timeline, whether it worked the agreed way, decided on the right grounds with data it may use, and (when its change was checked with `forgeqe evidence product-check --run`) whether its change was right for the product: each check of its agent's contract with what it found, each finding opening its step. When its contract has a `content` section, whether its answer was right (its rules, whether it rests on what the run took in, the owner's rubric), and **Grade the answer**: meets or misses for each criterion of the rubric, with a reason, kept with your name and in the audit log; these grades calibrate the rubric's judge. |
|
|
172
|
+
| **Evidence › Contracts** | Each agent's contract: what it agrees line by line (steps it must take, what it may and may never do, limits, what a person decides, what its statements need behind them), whether it is approved, and which checks can fail a run under it; and how well each check is measured on labelled runs. Read only: a person approves a contract at a terminal (`forgeqe evidence contract approve`). |
|
|
173
|
+
| **Evidence › Review queue** | Runs whose findings are still open (the failed first, then work whose two fix attempts are used, where a person takes over); answers the rubric's judge could not settle (not yet calibrated, or it disagreed with itself), to grade; and every finding people overruled, with who, when and why. On a run's page each finding has **Overrule**: a reason is required, it is kept with your name and in the audit log, and the finding stops counting. |
|
|
174
|
+
| **Evidence › Learn** | What to change in an agent, from what its runs got wrong. **Proposals**: guidance from a rule broken in three runs of its latest version, and fixes from causes proven by replay; **Approve** or **Decline** each with a reason, kept with your name and in the audit log (Evidence changes nothing itself: `forgeqe evidence guidance` writes what was approved). **Causes of its findings**: each run with open findings, each possible cause (its instructions, a tool, its data) with the change to try, its replays and whether it is proven; **Link replays** picks among runs of the same agent and request recorded after it. |
|
|
175
|
+
| **Evidence › Monitor** | Every agent evaluated (its versions, models, tools, contract, trust, alerts). An agent opens its drift since its baseline (a model, tool or document it did not have, a check doing worse, its contract or judge changed), each alert with its runs, and **Set the baseline**; the trust its evidence supports, criterion by criterion, and **Grant a level** (never above what is supported); and **Download the audit**: every decision people made about it, with its evidence and approver. Setting a baseline and granting trust need a reason and the agent's name typed, and are kept in the audit log. |
|
|
176
|
+
| **Evidence › Releases** | Each agent's scenario suite: pick a candidate version and the live one, and see the release gate (held or ready, and why), every scenario's result on both versions, each lens's count of scenarios passed, the owners' expectations met, and the gates kept. Read only: `forgeqe evidence release` keeps a gate. |
|
|
170
177
|
| **Knowledge** | What the agents know about your product, and adding to it. |
|
|
171
178
|
| **Memory** | What ForgeQE learned from runs that passed, by site: flows replayed without a model, and pages with their elements. Clearing a site's memory asks first. |
|
|
172
179
|
| **Guardrails** | The rules every agent follows. |
|