@v11g/agents-rock 1.0.8 → 1.0.10
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 +2 -1
- package/package.json +2 -2
- package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
- package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
- package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
- package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
- package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
- package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
- package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
- package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
- package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
- package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
- package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
- package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
- package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
- package/plugins/reasoning/skills/problem-router/README.md +6 -0
- package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
- package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/README.md +6 -0
- package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
- package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
- package/plugins/reasoning/skills/systemic-design/README.md +3 -0
- package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
- package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
- package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
- package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
- package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
- package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
- package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
- package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
- package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
- package/plugins/solution-architect/skills/estimate/README.md +38 -18
- package/plugins/solution-architect/skills/estimate/SKILL.md +16 -69
- package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
- package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +111 -138
- package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template.html +219 -445
- package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +5 -4
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +4 -2
- package/plugins/solution-architect/skills/estimate/classic/references/ai-multipliers.md +57 -0
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +56 -35
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +40 -4
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +29 -21
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +77 -45
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +38 -6
- package/plugins/solution-architect/skills/estimate/classic/scripts/lib/redact.mjs +112 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +4 -5
- package/plugins/solution-architect/skills/estimate/classic/scripts/lib/rollup.mjs +129 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +31 -38
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +9 -8
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/browser-agentic.test.mjs +143 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +211 -52
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +58 -33
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +55 -3
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/estimate-math.test.mjs +44 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -10
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -10
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +1 -7
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +11 -10
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +6 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +17 -21
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/pricing.test.mjs +88 -0
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/project-price.test.mjs +93 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +88 -26
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/render.test.mjs +405 -0
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +114 -61
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +37 -4
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +104 -10
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/xlsx-export.test.mjs +475 -0
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
- package/plugins/solution-architect/skills/estimate/evals/evals.json +44 -9
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
- package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
- package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
- package/plugins/solution-architect/skills/estimate/shared/lib/context-schema.mjs +35 -0
- package/plugins/solution-architect/skills/estimate/shared/lib/estimate-math.mjs +31 -0
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +13 -5
- package/plugins/solution-architect/skills/estimate/shared/lib/pricing.mjs +78 -0
- package/plugins/solution-architect/skills/estimate/shared/lib/project-price.mjs +96 -0
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
- package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
- package/plugins/solution-architect/skills/proposal/README.md +22 -7
- package/plugins/solution-architect/skills/proposal/SKILL.md +18 -7
- package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
- package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
- package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
- package/plugins/solution-architect/skills/proposal/references/review.md +16 -4
- package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
- package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
- package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
- package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
- package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
- package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
- package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +3 -3
- package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +46 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +3 -3
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +5 -4
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
- package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
- package/plugins/solution-architect/workflows/review-links.js +61 -0
- package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +0 -101
- package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +0 -89
- package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +0 -64
- package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +0 -154
- package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
- package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +0 -131
- package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +0 -251
- package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +0 -254
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// estimation.json a machine computed. Rules 1-4/9 check structure, 5-6 check
|
|
3
3
|
// table rows, 7-8 cross-check the JSON against a fresh recompute.
|
|
4
4
|
import { computeEstimation } from './rollup.mjs';
|
|
5
|
-
import { loadMeasurements, resolveMeasurementsPath } from '
|
|
5
|
+
import { loadMeasurements, resolveMeasurementsPath } from '../../../shared/lib/measurements.mjs';
|
|
6
6
|
import { agenticFindings } from './agentic-checks.mjs';
|
|
7
7
|
import { heading, tables } from './md-tables.mjs';
|
|
8
8
|
import { scoringFindings } from './scoring-checks.mjs';
|
|
@@ -19,9 +19,6 @@ function checkStructure(md) {
|
|
|
19
19
|
if (!/^###?\s*Out of scope\b/im.test(summary ?? '')) out.push('Out of scope heading missing from Summary');
|
|
20
20
|
const assumptionRows = tables(heading(md, 'Assumptions')).flatMap((t) => t.rows);
|
|
21
21
|
if (assumptionRows.length < 1) out.push('assumptions register is empty (### Assumptions needs >= 1 row)');
|
|
22
|
-
if (!/\|.*buffer.*\|/i.test(summary ?? '')) out.push('no buffer line item found in Summary (/buffer/i)');
|
|
23
|
-
const scenarioTable = tables(detail ?? '').find((t) => t.header.includes('Scenario'));
|
|
24
|
-
if (!scenarioTable || scenarioTable.rows.length < 1) out.push('scenario comparison table missing or empty');
|
|
25
22
|
if (!/calibration/i.test(detail ?? '')) out.push('no calibration line found in Estimation detail');
|
|
26
23
|
return out;
|
|
27
24
|
}
|
|
@@ -65,8 +62,41 @@ function checkRoadmap(md, estimation, out) {
|
|
|
65
62
|
}
|
|
66
63
|
if (section === null) { out.push('missing ### Roadmap section (inputs carry milestones)'); return; }
|
|
67
64
|
if (tables(section).flatMap((t) => t.rows).length < 1) out.push('roadmap table is empty');
|
|
68
|
-
if (!/
|
|
69
|
-
out.push('roadmap must state bands are relative
|
|
65
|
+
if (!/relative shares/i.test(section)) {
|
|
66
|
+
out.push('roadmap must state bands are relative shares, not durations');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// The scenario table priced a team; there is no team any more. Leaving it in
|
|
71
|
+
// a document would show a cost nothing computed.
|
|
72
|
+
const SCENARIO_HEADER = /\|\s*Scenario\s*\|/i;
|
|
73
|
+
|
|
74
|
+
export function checkPrice(md, estimation, out) {
|
|
75
|
+
if (!estimation.computed.price || estimation.computed.price.p50 === 0) return;
|
|
76
|
+
if (SCENARIO_HEADER.test(md)) out.push('the scenario table was removed — show the price block instead');
|
|
77
|
+
const { presentLow, presentHigh } = estimation.computed.price;
|
|
78
|
+
for (const n of [presentLow, presentHigh]) {
|
|
79
|
+
if (!md.includes(n.toLocaleString('en-US'))) {
|
|
80
|
+
out.push(`presented range bound ${n.toLocaleString('en-US')} missing from the document`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// v2's flag column is the handoff to the deep pass. A flagged feature that
|
|
86
|
+
// nobody broke down and nobody waived is the one failure mode this whole
|
|
87
|
+
// model has, so it is refused rather than reported. schema.mjs already makes
|
|
88
|
+
// every feature carry one task, so one task is not a breakdown — two are.
|
|
89
|
+
const DEEP_MIN_TASKS = 2;
|
|
90
|
+
|
|
91
|
+
export function checkDeepEstimates(estimation, out) {
|
|
92
|
+
const byId = new Map((estimation.inputs.features ?? []).map((f) => [f.id, f]));
|
|
93
|
+
for (const [id, row] of Object.entries(estimation.computed.features ?? {})) {
|
|
94
|
+
if (!/^Deep estimate|^SPLIT/.test(row.flag ?? '')) continue;
|
|
95
|
+
const feature = byId.get(id);
|
|
96
|
+
if (typeof feature?.deepEstimateWaiver === 'string' && feature.deepEstimateWaiver.trim()) continue;
|
|
97
|
+
if (!((feature?.tasks?.length ?? 0) >= DEEP_MIN_TASKS)) {
|
|
98
|
+
out.push(`feature ${id}: flagged "${row.flag}" but has fewer than ${DEEP_MIN_TASKS} tasks and no deepEstimateWaiver`);
|
|
99
|
+
}
|
|
70
100
|
}
|
|
71
101
|
}
|
|
72
102
|
|
|
@@ -105,6 +135,8 @@ function checkNumbers(estimation) {
|
|
|
105
135
|
export function checkDeliverables({ md, estimation }) {
|
|
106
136
|
const out = [...checkStructure(md), ...checkRows(md, estimation), ...checkNumbers(estimation)];
|
|
107
137
|
checkRoadmap(md, estimation, out);
|
|
138
|
+
checkPrice(md, estimation, out);
|
|
139
|
+
checkDeepEstimates(estimation, out);
|
|
108
140
|
out.push(...scoringFindings({ md, estimation }));
|
|
109
141
|
if (estimation.inputs.deliveryMode === 'agentic') out.push(...agenticFindings({ md, estimation }));
|
|
110
142
|
return out;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// The --client-only export embeds the full estimation JSON in the page; this
|
|
2
|
+
// strips the pricing build-up before it ships, unless the inputs opt out via
|
|
3
|
+
// exposeRatesToClient. Stripped, from computed.price: featurePoints (the
|
|
4
|
+
// summed feature-price subtotal), contextMultiplier and adjustedBase (the
|
|
5
|
+
// multiplier and the base it scales — adjustedBase = featurePoints ×
|
|
6
|
+
// contextMultiplier, so both factors have to go for either to be hidden),
|
|
7
|
+
// and overheads (the line items and their total), plus inputs.contextLevels
|
|
8
|
+
// and inputs.contextProvenance (see redactContext). Stripped, per feature in
|
|
9
|
+
// computed.features: tier, point, priceLow and priceHigh — the score band
|
|
10
|
+
// and the price it bought.
|
|
11
|
+
//
|
|
12
|
+
// Deliberately kept, and not a gap: presentLow, presentHigh, singleNumber,
|
|
13
|
+
// contingencyRate and impliedAccuracy are what the client is quoted, always.
|
|
14
|
+
// p50, sigma, p20, p80, p95 also stay — presentLow/presentHigh are just
|
|
15
|
+
// ceil(p50)/ceil(p95) rounded to the nearest 500, so those two are the
|
|
16
|
+
// unrounded form of a number the client already has, not hidden working, and
|
|
17
|
+
// sigma is recoverable from the percentiles regardless of whether it ships.
|
|
18
|
+
// Per-feature spread and flag stay too: spread yields no price once tier,
|
|
19
|
+
// point, priceLow and priceHigh are gone. Assumptions, risks, component names
|
|
20
|
+
// and the scores a feature was judged on are client-facing per spec.
|
|
21
|
+
//
|
|
22
|
+
// Agentic-only fields are stripped unconditionally (not gated on
|
|
23
|
+
// exposeRatesToClient, which is a pricing-transparency opt-out, not a
|
|
24
|
+
// privacy one): the local measurements dataset path (absolute, carries the
|
|
25
|
+
// operator's username), the operator's repository name, and evidence task
|
|
26
|
+
// descriptions (the global measurements store can carry other projects'
|
|
27
|
+
// task descriptions). These fields don't exist in team-mode estimations, so
|
|
28
|
+
// team-mode output is unaffected.
|
|
29
|
+
//
|
|
30
|
+
// recommendedReason is stripped unconditionally too, for the same reason as
|
|
31
|
+
// a score's cite: it is free text an internal agent writes under a contract
|
|
32
|
+
// (references/writing.md) that never warns it the sentence reaches the
|
|
33
|
+
// client. The client receives the file, not a rendered view, so hiding the
|
|
34
|
+
// node from the DOM is not enough — the key is removed from the JSON, the
|
|
35
|
+
// same way measurementsPath/repository/evidence descriptions are (R48).
|
|
36
|
+
//
|
|
37
|
+
// A task's name, category and three-point o/m/p are the estimate itself —
|
|
38
|
+
// the same class as computed.features[*].hours/low/high, which already ship
|
|
39
|
+
// unconditionally. What's internal is the judgment behind that number: how
|
|
40
|
+
// sure we were (confidence), where it came from (provenance) and what we
|
|
41
|
+
// quietly assumed (assumptions) — the same class as a score's cite, so these
|
|
42
|
+
// three are stripped unconditionally too, from every task (R49).
|
|
43
|
+
const PRICE_WORKING = ['contextMultiplier', 'adjustedBase', 'overheads', 'featurePoints'];
|
|
44
|
+
const FEATURE_WORKING = ['tier', 'point', 'priceLow', 'priceHigh'];
|
|
45
|
+
const TASK_JUDGMENT = ['confidence', 'provenance', 'assumptions'];
|
|
46
|
+
|
|
47
|
+
const omit = (obj, keys) => Object.fromEntries(Object.entries(obj).filter(([k]) => !keys.includes(k)));
|
|
48
|
+
|
|
49
|
+
function redactComputedFeatures(features) {
|
|
50
|
+
return Object.fromEntries(Object.entries(features).map(([id, f]) => [id, omit(f, FEATURE_WORKING)]));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function redactAgenticInputs({ measurementsPath, agentContext, ...rest }) {
|
|
54
|
+
if (!agentContext) return rest;
|
|
55
|
+
const { repository, ...clientAgentContext } = agentContext;
|
|
56
|
+
return { ...rest, agentContext: clientAgentContext };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function redactRecommendedReason({ recommendedReason, ...rest }) {
|
|
60
|
+
return rest;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// A score's cite is internal shorthand — the ticket phrase, file name or
|
|
64
|
+
// meeting wording the judgment rests on — so it is blanked unconditionally,
|
|
65
|
+
// like the agentic fields above. The rubric anchor is the sentence the client
|
|
66
|
+
// can read and it stays, so the page still explains every score.
|
|
67
|
+
function blankCites(feature) {
|
|
68
|
+
if (!feature.scores) return feature;
|
|
69
|
+
const scores = Object.entries(feature.scores).map(([k, s]) => [k, { ...s, cite: '' }]);
|
|
70
|
+
return { ...feature, scores: Object.fromEntries(scores) };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function redactFeatureInputs(feature) {
|
|
74
|
+
const cited = blankCites(feature);
|
|
75
|
+
return { ...cited, tasks: cited.tasks.map((t) => omit(t, TASK_JUDGMENT)) };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// The five context levels are our written rating of the client's own spec
|
|
79
|
+
// and decision-making, and the input to the context multiplier — pricing
|
|
80
|
+
// working, so they leave the file with the rest of it. Exposed or not, the
|
|
81
|
+
// cite is internal file references and is blanked like a score's cite.
|
|
82
|
+
function redactContext(inputs, expose) {
|
|
83
|
+
const { contextLevels, contextProvenance, ...rest } = inputs;
|
|
84
|
+
if (!expose) return rest;
|
|
85
|
+
if (!contextProvenance) return inputs;
|
|
86
|
+
const blanked = Object.entries(contextProvenance).map(([k, p]) => [k, { ...p, cite: '' }]);
|
|
87
|
+
return { ...inputs, contextProvenance: Object.fromEntries(blanked) };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function redactComputedTasks(tasks) {
|
|
91
|
+
return Object.fromEntries(Object.entries(tasks).map(([id, t]) => [
|
|
92
|
+
id,
|
|
93
|
+
t.evidence ? { ...t, evidence: t.evidence.map(({ description, ...rest }) => rest) } : t,
|
|
94
|
+
]));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function redactForClient(estimation) {
|
|
98
|
+
const agentic = redactRecommendedReason(redactAgenticInputs(estimation.inputs));
|
|
99
|
+
const context = redactContext(agentic, estimation.inputs.exposeRatesToClient);
|
|
100
|
+
const inputs = { ...context, features: context.features.map(redactFeatureInputs) };
|
|
101
|
+
const computed = { ...estimation.computed, tasks: redactComputedTasks(estimation.computed.tasks) };
|
|
102
|
+
if (estimation.inputs.exposeRatesToClient) return { ...estimation, inputs, computed };
|
|
103
|
+
return {
|
|
104
|
+
...estimation,
|
|
105
|
+
inputs,
|
|
106
|
+
computed: {
|
|
107
|
+
...computed,
|
|
108
|
+
features: redactComputedFeatures(computed.features),
|
|
109
|
+
price: omit(computed.price, PRICE_WORKING),
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
}
|
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// group's scenario task hours, and lets roadmapBands turn shares into bands.
|
|
4
4
|
// Returns undefined when no feature carries a milestone — the roadmap is
|
|
5
5
|
// optional and its absence must stay a missing key, not an empty array.
|
|
6
|
-
import { roadmapBands } from '
|
|
6
|
+
import { roadmapBands, round2 } from '../../../shared/lib/estimate-math.mjs';
|
|
7
7
|
|
|
8
8
|
function milestonesFrom(features, taskHours) {
|
|
9
9
|
const order = [];
|
|
@@ -20,13 +20,12 @@ function milestonesFrom(features, taskHours) {
|
|
|
20
20
|
return order.map((name) => byName[name]);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export function roadmapFor({ features, taskHours
|
|
23
|
+
export function roadmapFor({ features, taskHours }) {
|
|
24
24
|
const milestones = milestonesFrom(features, taskHours);
|
|
25
25
|
if (!milestones) return undefined;
|
|
26
|
-
return roadmapBands({ milestones
|
|
26
|
+
return roadmapBands({ milestones }).map((band, i) => ({
|
|
27
27
|
milestone: band.name,
|
|
28
28
|
features: milestones[i].features,
|
|
29
|
-
|
|
30
|
-
endMonths: band.endMonths,
|
|
29
|
+
share: round2(band.share),
|
|
31
30
|
}));
|
|
32
31
|
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Turns validated estimation-inputs into the estimation.json truth: PERT per
|
|
2
|
+
// task, per-feature price bands, and the project price roll-up. The dynamic,
|
|
3
|
+
// id-keyed maps (tasks, features, components) are assembled with sorted keys
|
|
4
|
+
// so repeat runs are byte-identical.
|
|
5
|
+
import { pert, round2 } from '../../../shared/lib/estimate-math.mjs';
|
|
6
|
+
import { featurePrice } from '../../../shared/lib/pricing.mjs';
|
|
7
|
+
import { projectPrice } from '../../../shared/lib/project-price.mjs';
|
|
8
|
+
import { roadmapFor } from './roadmap.mjs';
|
|
9
|
+
import { componentHoursFor } from './components.mjs';
|
|
10
|
+
import { agenticTask } from '../../../shared/lib/baselines.mjs';
|
|
11
|
+
import { scoreNumbers, scoreSummary } from '../../../shared/lib/scoring.mjs';
|
|
12
|
+
|
|
13
|
+
function sortedMap(entries) {
|
|
14
|
+
return Object.fromEntries(entries.sort(([a], [b]) => a.localeCompare(b)));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const CONFIDENCE_RANK = { HIGH: 0, MED: 1, LOW: 2, UNCALIBRATED: 3 };
|
|
18
|
+
|
|
19
|
+
export function criticalConfidence(features, tasks) {
|
|
20
|
+
let critical = null;
|
|
21
|
+
for (const feature of features) {
|
|
22
|
+
if (!critical || feature.hours > critical.hours) critical = feature;
|
|
23
|
+
}
|
|
24
|
+
let worst = 'HIGH';
|
|
25
|
+
for (const taskId of critical.taskIds) {
|
|
26
|
+
const confidence = tasks[taskId].confidence;
|
|
27
|
+
if (CONFIDENCE_RANK[confidence] > CONFIDENCE_RANK[worst]) worst = confidence;
|
|
28
|
+
}
|
|
29
|
+
return worst;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function buildTasks(inputs) {
|
|
33
|
+
const tasks = {};
|
|
34
|
+
for (const feature of inputs.features) {
|
|
35
|
+
for (const task of feature.tasks) {
|
|
36
|
+
const { e, sigma } = pert(task);
|
|
37
|
+
tasks[task.id] = {
|
|
38
|
+
e, sigma, o: task.o, p: task.p, category: task.category,
|
|
39
|
+
confidence: task.confidence, verificationPct: inputs.verificationPct,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return tasks;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function buildAgenticTasks(inputs, measurements) {
|
|
47
|
+
const agentContext = { ...inputs.agentContext, repository: inputs.agentContext.repository ?? inputs.project };
|
|
48
|
+
const ctx = { records: measurements ?? [], agentContext };
|
|
49
|
+
const tasks = {};
|
|
50
|
+
for (const feature of inputs.features) {
|
|
51
|
+
for (const task of feature.tasks) {
|
|
52
|
+
const a = agenticTask(task, ctx);
|
|
53
|
+
tasks[task.id] = { ...a, o: a.lowH, p: a.highH };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return tasks;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Prices a scored feature onto `row` and pushes its price inputs onto
|
|
60
|
+
// `priced` for the project roll-up. scoreSummary stays the single authority
|
|
61
|
+
// for a feature's scoreTotal/tier; featurePrice only supplies the money.
|
|
62
|
+
function scoredFeatureRow(feature, row, priced) {
|
|
63
|
+
const n = scoreNumbers(feature.scores);
|
|
64
|
+
const p = featurePrice(n);
|
|
65
|
+
Object.assign(row, scoreSummary(feature), {
|
|
66
|
+
point: round2(p.point), spread: round2(p.spread),
|
|
67
|
+
priceLow: round2(p.low), priceHigh: round2(p.high), flag: p.flag,
|
|
68
|
+
});
|
|
69
|
+
priced.push({ point: p.point, spread: p.spread, unc: n.unc, risk: n.risk });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Feature rows carry both halves now: hours for planning, price for the
|
|
73
|
+
// quote. They come from different inputs and never convert into each other.
|
|
74
|
+
function buildFeatures(inputs, tasks) {
|
|
75
|
+
const features = {};
|
|
76
|
+
const summaries = [];
|
|
77
|
+
const priced = [];
|
|
78
|
+
for (const feature of inputs.features) {
|
|
79
|
+
const taskIds = feature.tasks.map((t) => t.id);
|
|
80
|
+
const hours = taskIds.reduce((sum, id) => sum + tasks[id].e, 0);
|
|
81
|
+
const low = taskIds.reduce((sum, id) => sum + tasks[id].o, 0);
|
|
82
|
+
const high = taskIds.reduce((sum, id) => sum + tasks[id].p, 0);
|
|
83
|
+
const row = { hours: round2(hours), low: round2(low), high: round2(high) };
|
|
84
|
+
if (feature.scores) scoredFeatureRow(feature, row, priced);
|
|
85
|
+
features[feature.id] = row;
|
|
86
|
+
summaries.push({ hours, taskIds });
|
|
87
|
+
}
|
|
88
|
+
return { features: sortedMap(Object.entries(features)), summaries, priced };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Rounds every top-level money/rate field on the price block, plus the one
|
|
92
|
+
// nested money field (overheads.amount) the top-level pass can't reach
|
|
93
|
+
// because `overheads` itself is an object, not a number.
|
|
94
|
+
function roundedPrice(price) {
|
|
95
|
+
const block = Object.fromEntries(
|
|
96
|
+
Object.entries(price).map(([k, v]) => [k, typeof v === 'number' ? round2(v) : v]),
|
|
97
|
+
);
|
|
98
|
+
block.overheads = { ...price.overheads, amount: round2(price.overheads.amount) };
|
|
99
|
+
return block;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const isAgentic = (inputs) => inputs.deliveryMode === 'agentic';
|
|
103
|
+
|
|
104
|
+
const taskSummary = (t) => (t.evidence !== undefined
|
|
105
|
+
? {
|
|
106
|
+
e: round2(t.e), sigma: round2(t.sigma), minutes: t.minutes, samples: t.samples,
|
|
107
|
+
matchLevel: t.matchLevel, confidence: t.confidence, calibrated: t.calibrated, evidence: t.evidence,
|
|
108
|
+
}
|
|
109
|
+
: { e: round2(t.e), sigma: round2(t.sigma) });
|
|
110
|
+
|
|
111
|
+
export function computeEstimation(inputs, measurements) {
|
|
112
|
+
const tasks = isAgentic(inputs) ? buildAgenticTasks(inputs, measurements) : buildTasks(inputs);
|
|
113
|
+
const { features, summaries, priced } = buildFeatures(inputs, tasks);
|
|
114
|
+
const taskHours = Object.fromEntries(Object.entries(tasks).map(([id, t]) => [id, t.e]));
|
|
115
|
+
const roadmap = roadmapFor({ features: inputs.features, taskHours });
|
|
116
|
+
const components = componentHoursFor(inputs, features);
|
|
117
|
+
const price = projectPrice({ features: priced, levels: inputs.contextLevels ?? {} });
|
|
118
|
+
return {
|
|
119
|
+
inputs,
|
|
120
|
+
computed: {
|
|
121
|
+
tasks: sortedMap(Object.entries(tasks).map(([id, t]) => [id, taskSummary(t)])),
|
|
122
|
+
features,
|
|
123
|
+
...(components ? { components } : {}),
|
|
124
|
+
...(roadmap ? { roadmap } : {}),
|
|
125
|
+
price: roundedPrice(price),
|
|
126
|
+
projectConfidence: criticalConfidence(summaries, tasks),
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs
RENAMED
|
@@ -1,38 +1,16 @@
|
|
|
1
1
|
// Shape checks for estimation-inputs.json — the agent writes that file, so the
|
|
2
2
|
// checks here are the contract that keeps interview output honest before any
|
|
3
3
|
// arithmetic happens. Findings are strings with the offending id in them.
|
|
4
|
-
import { AI_CATEGORIES } from '
|
|
5
|
-
import {
|
|
6
|
-
import { checkScoring } from '
|
|
7
|
-
import {
|
|
4
|
+
import { AI_CATEGORIES } from '../../../shared/lib/estimate-math.mjs';
|
|
5
|
+
import { checkContext } from '../../../shared/lib/context-schema.mjs';
|
|
6
|
+
import { checkScoring } from '../../../shared/lib/scoring-schema.mjs';
|
|
7
|
+
import { checkAgenticTask, PROVENANCE } from '../../../shared/lib/agentic-task-schema.mjs';
|
|
8
8
|
|
|
9
|
-
const PROVENANCE = ['observed', 'stated', 'researched', 'proposed'];
|
|
10
9
|
const CONFIDENCE = ['HIGH', 'MED', 'LOW'];
|
|
11
10
|
const DELIVERY_MODES = ['traditional', 'agentic'];
|
|
12
11
|
const pct = (v) => typeof v === 'number' && v >= 0 && v < 1;
|
|
13
12
|
const isAgentic = (inputs) => inputs.deliveryMode === 'agentic';
|
|
14
13
|
|
|
15
|
-
// Durations and confidence are script-owned in agentic mode: their absence
|
|
16
|
-
// from inputs is the structural guarantee the agent never invents them.
|
|
17
|
-
const AGENTIC_BANNED = ['category', 'confidence', 'o', 'm', 'p'];
|
|
18
|
-
|
|
19
|
-
function checkAgenticTask(task, out) {
|
|
20
|
-
if (!TASK_SHAPES.includes(task.shape)) out.push(`task ${task.id}: unknown shape "${task.shape}"`);
|
|
21
|
-
const s = task.seedMinutes ?? {};
|
|
22
|
-
if (!['o', 'm', 'p'].every((k) => typeof s[k] === 'number' && s[k] > 0)) {
|
|
23
|
-
out.push(`task ${task.id}: seedMinutes o, m, p must be positive numbers`);
|
|
24
|
-
} else if (!(s.o <= s.m && s.m <= s.p)) out.push(`task ${task.id}: seedMinutes expected o <= m <= p`);
|
|
25
|
-
if (typeof task.scope !== 'object' || task.scope === null) out.push(`task ${task.id}: scope object is required`);
|
|
26
|
-
for (const key of AGENTIC_BANNED) {
|
|
27
|
-
if (Object.hasOwn(task, key)) out.push(`task ${task.id}: "${key}" is not an agentic input — the script computes it`);
|
|
28
|
-
}
|
|
29
|
-
if (task.model !== undefined && !(typeof task.model === 'string' && task.model.trim())) {
|
|
30
|
-
out.push(`task ${task.id}: model must be a non-empty string`);
|
|
31
|
-
}
|
|
32
|
-
if (!Array.isArray(task.assumptions)) out.push(`task ${task.id}: assumptions array is required`);
|
|
33
|
-
if (!PROVENANCE.includes(task.provenance)) out.push(`task ${task.id}: provenance not in vocabulary`);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
14
|
function checkTask(task, out) {
|
|
37
15
|
if (!['o', 'm', 'p'].every((k) => typeof task[k] === 'number')) out.push(`task ${task.id}: o, m, p must be numbers`);
|
|
38
16
|
if (!(task.o > 0 && task.m > 0 && task.p > 0)) out.push(`task ${task.id}: estimates are never 0`);
|
|
@@ -53,6 +31,12 @@ function checkFeature(feature, out, agentic) {
|
|
|
53
31
|
}
|
|
54
32
|
if (!(feature.tasks?.length > 0)) out.push(`feature ${feature.id}: must have at least one task`);
|
|
55
33
|
for (const task of feature.tasks ?? []) (agentic ? checkAgenticTask(task, out) : checkTask(task, out));
|
|
34
|
+
// The waiver is an escape hatch from the one failure mode the pricing model
|
|
35
|
+
// has — a bare `true` must not buy a pass, so it has to carry a reason.
|
|
36
|
+
if (feature.deepEstimateWaiver !== undefined
|
|
37
|
+
&& !(typeof feature.deepEstimateWaiver === 'string' && feature.deepEstimateWaiver.trim())) {
|
|
38
|
+
out.push(`feature ${feature.id}: deepEstimateWaiver must be a non-empty string`);
|
|
39
|
+
}
|
|
56
40
|
}
|
|
57
41
|
|
|
58
42
|
// Roadmap is all-or-nothing: a half-labeled feature list would render a
|
|
@@ -123,7 +107,6 @@ function checkComponents(inputs, out) {
|
|
|
123
107
|
// optional (rollup.mjs falls back to `project`) but must be a real value
|
|
124
108
|
// when set — rung 1 of the retrieval ladder needs it to mean something.
|
|
125
109
|
function checkGlobals(inputs, out, agentic) {
|
|
126
|
-
if (!pct(inputs.overheadPct)) out.push('overheadPct must be a number in [0, 1)');
|
|
127
110
|
if (!agentic && !pct(inputs.verificationPct)) out.push('verificationPct must be a number in [0, 1)');
|
|
128
111
|
const ctx = inputs.agentContext;
|
|
129
112
|
if (agentic && typeof ctx === 'object' && ctx !== null && 'repository' in ctx
|
|
@@ -139,24 +122,34 @@ function checkGlobals(inputs, out, agentic) {
|
|
|
139
122
|
}
|
|
140
123
|
}
|
|
141
124
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
125
|
+
// Top-level shape: the five required keys, the removed ones that must be
|
|
126
|
+
// refused rather than silently ignored (an old inputs file may still carry
|
|
127
|
+
// them), and — in agentic mode — the agentContext the rest of the checks
|
|
128
|
+
// and rollup.mjs both depend on existing.
|
|
129
|
+
function checkTopLevel(inputs, out, agentic) {
|
|
145
130
|
if (inputs.deliveryMode !== undefined && !DELIVERY_MODES.includes(inputs.deliveryMode)) out.push('deliveryMode must be traditional|agentic');
|
|
146
|
-
for (const key of ['project', 'technique', 'features', 'risks', 'assumptions'
|
|
131
|
+
for (const key of ['project', 'technique', 'features', 'risks', 'assumptions']) {
|
|
147
132
|
if (!(key in inputs)) out.push(`missing top-level "${key}"`);
|
|
148
133
|
}
|
|
149
|
-
if (
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
134
|
+
if ('scenarios' in inputs) out.push('"scenarios" was removed — pricing no longer depends on team or rates');
|
|
135
|
+
if ('recommendedScenario' in inputs) out.push('"recommendedScenario" was removed with scenarios');
|
|
136
|
+
if ('overheadPct' in inputs) out.push('"overheadPct" was removed — overhead now comes from OVERHEADS in project-price.mjs');
|
|
137
|
+
if (!agentic) return;
|
|
138
|
+
const ctx = inputs.agentContext;
|
|
139
|
+
if (typeof ctx !== 'object' || ctx === null) { out.push('agentic mode requires top-level agentContext'); return; }
|
|
140
|
+
for (const key of ['agent', 'model']) {
|
|
141
|
+
if (!(typeof ctx[key] === 'string' && ctx[key].trim())) out.push(`agentContext.${key} must be a non-empty string`);
|
|
155
142
|
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function checkInputs(inputs) {
|
|
146
|
+
const out = [];
|
|
147
|
+
const agentic = isAgentic(inputs);
|
|
148
|
+
checkTopLevel(inputs, out, agentic);
|
|
156
149
|
for (const feature of inputs.features ?? []) checkFeature(feature, out, agentic);
|
|
157
150
|
checkMilestones(inputs.features ?? [], out);
|
|
158
151
|
checkComponents(inputs, out);
|
|
159
|
-
|
|
152
|
+
checkContext(inputs, out);
|
|
160
153
|
checkScoring(inputs, out);
|
|
161
154
|
checkGlobals(inputs, out, agentic);
|
|
162
155
|
return out;
|
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// the human edits in Sheets/Excel; the numbers, the plain note and a free
|
|
3
3
|
// "note" column come back. Anchors and cites travel beside each score so the
|
|
4
4
|
// reviewer sees the reason without opening anything else.
|
|
5
|
-
import { SCORE_FACTORS, scoreNumbers } from '
|
|
6
|
-
import { tierFor } from '
|
|
5
|
+
import { SCORE_FACTORS, scoreNumbers } from '../../../shared/lib/scoring.mjs';
|
|
6
|
+
import { tierFor } from '../../../shared/lib/pricing.mjs';
|
|
7
7
|
|
|
8
8
|
export const CSV_HEADERS = ['id', 'feature',
|
|
9
|
-
...SCORE_FACTORS.flatMap((k) => [k, `${k}_why`, `${k}_cite`]), '
|
|
9
|
+
...SCORE_FACTORS.flatMap((k) => [k, `${k}_why`, `${k}_cite`]), 'score', 'tier', 'why_this_tier', 'note'];
|
|
10
10
|
|
|
11
11
|
const quote = (v) => {
|
|
12
12
|
const s = String(v ?? '');
|
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// HTML review channel: the agent's draft rendered as one editable table,
|
|
2
2
|
// Σ/tier live, the rubric folded underneath, and a feedback block the human
|
|
3
3
|
// copies back. Same slots discipline as the estimate page (embed is strict).
|
|
4
|
-
import { embed } from '
|
|
5
|
-
import { inlineModule, extractExports } from '
|
|
4
|
+
import { embed } from '../../../../analyze-requirements/scripts/lib/embed.mjs';
|
|
5
|
+
import { inlineModule, extractExports } from '../../../shared/lib/inline.mjs';
|
|
6
6
|
|
|
7
7
|
export function toHtml({ draft, template, guideHtml, mathSrc }) {
|
|
8
8
|
return embed({
|
|
@@ -11,7 +11,7 @@ export function toHtml({ draft, template, guideHtml, mathSrc }) {
|
|
|
11
11
|
TITLE: draft.project ?? 'Estimate',
|
|
12
12
|
DATA: JSON.stringify(draft).replaceAll('</script', '<\\/script'),
|
|
13
13
|
GUIDE: guideHtml,
|
|
14
|
-
MATH: inlineModule(extractExports(mathSrc, ['
|
|
14
|
+
MATH: inlineModule(extractExports(mathSrc, ['WEIGHTS', 'BANDS', 'weightedScore', 'bandFor', 'tierFor'])),
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { embed } from '
|
|
4
|
-
import { buildFontFaces } from '
|
|
5
|
-
import { escapeHtml } from '
|
|
3
|
+
import { embed } from '../../../analyze-requirements/scripts/lib/embed.mjs';
|
|
4
|
+
import { buildFontFaces } from '../../../analyze-requirements/scripts/lib/fonts.mjs';
|
|
5
|
+
import { escapeHtml } from '../../../analyze-requirements/scripts/lib/md-inline.mjs';
|
|
6
6
|
import { checkDeliverables } from './lib/checks.mjs';
|
|
7
|
-
import { stripInternal } from '
|
|
7
|
+
import { stripInternal, withZip } from '../../shared/lib/inline.mjs';
|
|
8
8
|
import { redactForClient } from './lib/redact.mjs';
|
|
9
|
-
import { loadGuide, guideTableHtml } from '
|
|
9
|
+
import { loadGuide, guideTableHtml } from '../../shared/lib/scoring.mjs';
|
|
10
10
|
|
|
11
11
|
function parseArgs(argv) {
|
|
12
12
|
const args = {};
|
|
@@ -21,8 +21,9 @@ function parseArgs(argv) {
|
|
|
21
21
|
return args;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const archFontsDir = new URL('
|
|
24
|
+
const archFontsDir = new URL('../../../analyze-requirements/assets/fonts/', import.meta.url).pathname;
|
|
25
25
|
const assetsDir = new URL('../assets/', import.meta.url).pathname;
|
|
26
|
+
const xlsxExportPath = new URL('../../shared/assets/xlsx-export.js', import.meta.url).pathname;
|
|
26
27
|
|
|
27
28
|
const args = parseArgs(process.argv.slice(2));
|
|
28
29
|
const estimation = JSON.parse(readFileSync(args.json, 'utf8'));
|
|
@@ -43,7 +44,7 @@ if (findings.length) {
|
|
|
43
44
|
// quoted — so it rides along in both renders.
|
|
44
45
|
const figures = typeof args.figures === 'string' ? JSON.parse(readFileSync(args.figures, 'utf8')) : null;
|
|
45
46
|
const base = args['client-only'] ? redactForClient(estimation) : estimation;
|
|
46
|
-
const dataForEmbed = figures ? { ...base, figures: { cost: figures.cost,
|
|
47
|
+
const dataForEmbed = figures ? { ...base, figures: { cost: figures.cost, singleNumber: figures.singleNumber } } : base;
|
|
47
48
|
// Companion mode: --viewer carries the caller-known path back to the analyze-requirements
|
|
48
49
|
// viewer. It sits in the header's internal range, so the client render (which
|
|
49
50
|
// must not point at an internal document set) strips it with everything else.
|
|
@@ -64,7 +65,7 @@ const html = embed({
|
|
|
64
65
|
// page's one extra slot is the rubric, which lives in
|
|
65
66
|
// references/scoring-guide.md: the page shows the same sentences the
|
|
66
67
|
// interviewer read, so a score means one thing.
|
|
67
|
-
...(isAgentic ? {} : { GUIDE: guideTableHtml(loadGuide()) }),
|
|
68
|
+
...(isAgentic ? {} : { GUIDE: guideTableHtml(loadGuide()), XLSX: withZip(readFileSync(xlsxExportPath, 'utf8')) }),
|
|
68
69
|
},
|
|
69
70
|
});
|
|
70
71
|
|
package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs
RENAMED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
// write into estimation-inputs.json. It scores nothing itself.
|
|
5
5
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import { toCsv, fromCsv } from './lib/score-csv.mjs';
|
|
7
|
-
import { diffScores, applyDiff } from '
|
|
7
|
+
import { diffScores, applyDiff } from '../../shared/lib/score-diff.mjs';
|
|
8
8
|
import { toHtml } from './lib/score-html.mjs';
|
|
9
|
-
import { loadGuide, guideTableHtml, SCORE_FACTORS } from '
|
|
9
|
+
import { loadGuide, guideTableHtml, SCORE_FACTORS } from '../../shared/lib/scoring.mjs';
|
|
10
10
|
|
|
11
11
|
function parseArgs(argv) {
|
|
12
12
|
const args = {};
|
|
@@ -17,7 +17,7 @@ function parseArgs(argv) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const templatePath = new URL('../assets/scores-review-template.html', import.meta.url).pathname;
|
|
20
|
-
const mathPath = new URL('
|
|
20
|
+
const mathPath = new URL('../../shared/lib/pricing.mjs', import.meta.url).pathname;
|
|
21
21
|
const json = (path) => JSON.parse(readFileSync(path, 'utf8'));
|
|
22
22
|
|
|
23
23
|
function write(args) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { test } from 'node:test';
|
|
2
2
|
import assert from 'node:assert/strict';
|
|
3
|
-
import { loadMeasurements } from '
|
|
4
|
-
import { percentile, matchBaseline, confidenceFor } from '
|
|
3
|
+
import { loadMeasurements } from '../../../shared/lib/measurements.mjs';
|
|
4
|
+
import { percentile, matchBaseline, confidenceFor } from '../../../shared/lib/baselines.mjs';
|
|
5
5
|
|
|
6
6
|
const fixturePath = new URL('./fixtures/measurements.jsonl', import.meta.url).pathname;
|
|
7
7
|
const records = () => loadMeasurements(fixturePath).records;
|
|
@@ -74,7 +74,7 @@ test('confidence tiers follow the spec table', () => {
|
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
// Task 3 appends: duration math.
|
|
77
|
-
import { agenticTask } from '
|
|
77
|
+
import { agenticTask } from '../../../shared/lib/baselines.mjs';
|
|
78
78
|
|
|
79
79
|
test('n>=5: lognormal fit — mean above median, spread from log-space z', () => {
|
|
80
80
|
const a = agenticTask(
|