@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
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
// The Feature breakdown's spreadsheet export: an internal-only button that
|
|
2
|
+
// clones the v2 estimator workbook in the browser, fills the Ballpark
|
|
3
|
+
// Estimator tab with every feature (never just the filtered view) and the Project Roll-up tab
|
|
4
|
+
// with the interviewed context levels, and leaves every one of the template's
|
|
5
|
+
// own formulas untouched so the workbook keeps repricing when a human edits a
|
|
6
|
+
// score.
|
|
7
|
+
import { test } from 'node:test';
|
|
8
|
+
import assert from 'node:assert/strict';
|
|
9
|
+
import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs';
|
|
10
|
+
import { execFileSync } from 'node:child_process';
|
|
11
|
+
import { tmpdir } from 'node:os';
|
|
12
|
+
import { join } from 'node:path';
|
|
13
|
+
import { pathToFileURL } from 'node:url';
|
|
14
|
+
import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
|
|
15
|
+
import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
|
|
16
|
+
import { loadGuide } from '../../../shared/lib/scoring.mjs';
|
|
17
|
+
import { readZip } from './zip.mjs';
|
|
18
|
+
|
|
19
|
+
const skip = { skip: !findChrome() && 'no chrome on PATH' };
|
|
20
|
+
const fixture = new URL('./fixtures/booking-inputs.json', import.meta.url).pathname;
|
|
21
|
+
|
|
22
|
+
const scriptsDir = new URL('..', import.meta.url).pathname;
|
|
23
|
+
|
|
24
|
+
// The deliverable gate cross-checks the document's presented range against
|
|
25
|
+
// the computed one, so a fixture variant that prices differently needs the
|
|
26
|
+
// range it actually priced. The booking fixture's own numbers are unchanged.
|
|
27
|
+
function pricedMd(jsonPath) {
|
|
28
|
+
const md = readFileSync(join(scriptsDir, 'test/fixtures/estimation-pass.md'), 'utf8');
|
|
29
|
+
const { presentLow, presentHigh } = JSON.parse(readFileSync(jsonPath, 'utf8')).computed.price;
|
|
30
|
+
return md.replace(/\| Presented range \|[^|]*\|/,
|
|
31
|
+
`| Presented range | $${presentLow.toLocaleString('en-US')} – $${presentHigh.toLocaleString('en-US')} |`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function buildPage(inputsPath = fixture) {
|
|
35
|
+
const dir = mkdtempSync(join(tmpdir(), 'estimate-xlsx-'));
|
|
36
|
+
const json = join(dir, 'estimation.json');
|
|
37
|
+
const md = join(dir, 'estimation.md');
|
|
38
|
+
execFileSync('node', [join(scriptsDir, 'compute.mjs'), '--inputs', inputsPath, '--out', json]);
|
|
39
|
+
writeFileSync(md, pricedMd(json));
|
|
40
|
+
execFileSync('node', [join(scriptsDir, 'render.mjs'), '--json', json, '--md', md, '--out', dir]);
|
|
41
|
+
return pathToFileURL(join(dir, 'estimate.html')).href;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Writes a variant of the booking fixture to a temp file and returns its path.
|
|
45
|
+
function variantInputs(tag, edit) {
|
|
46
|
+
const inputs = JSON.parse(readFileSync(fixture, 'utf8'));
|
|
47
|
+
edit(inputs);
|
|
48
|
+
const path = join(mkdtempSync(join(tmpdir(), `estimate-xlsx-${tag}-`)), 'inputs.json');
|
|
49
|
+
writeFileSync(path, JSON.stringify(inputs));
|
|
50
|
+
return path;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function exportedFiles(page) {
|
|
54
|
+
const b64 = await page.eval('window.__buildWorkbook()');
|
|
55
|
+
return readZip(Buffer.from(b64, 'base64'));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// v2's tab order: 1 How to Use, 2 Ballpark Estimator, 3 Scoring Guide,
|
|
59
|
+
// 4 Tier Reference, 5 Project Roll-up. Our two generated tabs land at 6 and 7.
|
|
60
|
+
const sheetXmlFor = (files, part) => files.get(`xl/worksheets/${part}`)?.toString('utf8') ?? '';
|
|
61
|
+
const ballpark = (files) => sheetXmlFor(files, 'sheet2.xml');
|
|
62
|
+
const rollup = (files) => sheetXmlFor(files, 'sheet5.xml');
|
|
63
|
+
const sheetTasks = (files) => sheetXmlFor(files, 'sheet6.xml');
|
|
64
|
+
const sheetRationale = (files) => sheetXmlFor(files, 'sheet7.xml');
|
|
65
|
+
|
|
66
|
+
const cell = (xml, ref) => new RegExp(`<c r="${ref}"[^>]*?(?:/>|>(.*?)</c>)`, 's').exec(xml)?.[1] ?? '';
|
|
67
|
+
const inlineText = (frag) => /<t[^>]*>([^<]*)<\/t>/.exec(frag)?.[1];
|
|
68
|
+
const cellNumber = (frag) => Number(/<v>([^<]*)<\/v>/.exec(frag)?.[1]);
|
|
69
|
+
const cellFormula = (frag) => /<f[^>]*>([^<]*)<\/f>/.exec(frag)?.[1];
|
|
70
|
+
|
|
71
|
+
// The workbook carries a Task Breakdown sheet and a Score Rationale sheet, so
|
|
72
|
+
// the export answers for the whole section rather than for either tab.
|
|
73
|
+
test('the section heading carries an internal-only download button', skip, async () => {
|
|
74
|
+
const page = await openPage(buildPage());
|
|
75
|
+
try {
|
|
76
|
+
assert.ok(await page.eval(
|
|
77
|
+
`!!document.querySelector('#feature-table .sec-head button[data-download][data-internal]')`),
|
|
78
|
+
'expected a data-download button marked data-internal on the section heading');
|
|
79
|
+
} finally { page.close(); }
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('the workbook has seven tabs in v2 order', skip, async () => {
|
|
83
|
+
const page = await openPage(buildPage());
|
|
84
|
+
try {
|
|
85
|
+
const files = await exportedFiles(page);
|
|
86
|
+
for (const part of ['sheet1.xml', 'sheet2.xml', 'sheet3.xml', 'sheet4.xml', 'sheet5.xml',
|
|
87
|
+
'sheet6.xml', 'sheet7.xml']) {
|
|
88
|
+
assert.ok(files.has(`xl/worksheets/${part}`), `${part} missing from the exported archive`);
|
|
89
|
+
}
|
|
90
|
+
for (const name of ['xl/styles.xml', 'xl/sharedStrings.xml', '[Content_Types].xml']) {
|
|
91
|
+
assert.ok(files.has(name), `${name} missing from the exported archive`);
|
|
92
|
+
}
|
|
93
|
+
const wb = files.get('xl/workbook.xml').toString('utf8');
|
|
94
|
+
const names = [...wb.matchAll(/<sheet [^>]*name="([^"]+)"/g)].map((m) => m[1]);
|
|
95
|
+
assert.deepEqual(names, ['How to Use', 'Ballpark Estimator', 'Scoring Guide', 'Tier Reference',
|
|
96
|
+
'Project Roll-up', 'Task Breakdown', 'Score Rationale']);
|
|
97
|
+
} finally { page.close(); }
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// The template ships cached results next to every formula. Without this flag a
|
|
101
|
+
// reader can open a workbook whose scores are ours and whose prices are still
|
|
102
|
+
// the sample's — green tests, dead numbers.
|
|
103
|
+
test('the workbook asks the reader to recalculate on load', skip, async () => {
|
|
104
|
+
const page = await openPage(buildPage());
|
|
105
|
+
try {
|
|
106
|
+
const files = await exportedFiles(page);
|
|
107
|
+
assert.match(files.get('xl/workbook.xml').toString('utf8'), /<calcPr[^>]*fullCalcOnLoad="1"/);
|
|
108
|
+
// LibreOffice ignores that flag, so no formula may keep a cached result:
|
|
109
|
+
// then there is nothing to show but the recomputed number.
|
|
110
|
+
for (const n of [1, 2, 3, 4, 5]) {
|
|
111
|
+
const xml = sheetXmlFor(files, `sheet${n}.xml`);
|
|
112
|
+
assert.doesNotMatch(xml, /<\/f><v>/, `sheet${n} keeps a cached formula result`);
|
|
113
|
+
}
|
|
114
|
+
assert.match(cell(ballpark(files), 'G7'), /SUMPRODUCT/, 'the formula itself must survive');
|
|
115
|
+
} finally { page.close(); }
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// The export writes cells the template already carries. If one ever goes
|
|
119
|
+
// missing, a String.replace that finds nothing returns its input unchanged —
|
|
120
|
+
// the feature name and its scores would vanish into blank cells and every
|
|
121
|
+
// assertion in this file would still pass. Refuse instead.
|
|
122
|
+
test('writing a cell the template does not carry is refused, not ignored', skip, async () => {
|
|
123
|
+
const page = await openPage(buildPage());
|
|
124
|
+
try {
|
|
125
|
+
assert.match(await page.eval(`(() => {
|
|
126
|
+
try { setCell('<c r="A1" s="3"/>', 'ZZ99', (s) => '<c r="ZZ99" s="' + s + '"/>'); }
|
|
127
|
+
catch (e) { return e.message; }
|
|
128
|
+
return 'no throw';
|
|
129
|
+
})()`), /no cell ZZ99/);
|
|
130
|
+
assert.match(await page.eval(`(() => {
|
|
131
|
+
try { appendCells('<row r="1"/>', 99, '<c r="A99"/>'); }
|
|
132
|
+
catch (e) { return e.message; }
|
|
133
|
+
return 'no throw';
|
|
134
|
+
})()`), /no row 99/);
|
|
135
|
+
} finally { page.close(); }
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
test('rows land ordered by milestone with the interview scores verbatim', skip, async () => {
|
|
139
|
+
const page = await openPage(buildPage());
|
|
140
|
+
try {
|
|
141
|
+
const xml = ballpark(await exportedFiles(page));
|
|
142
|
+
assert.equal(inlineText(cell(xml, 'A7')), 'User can book appointment');
|
|
143
|
+
assert.equal(inlineText(cell(xml, 'A8')), 'Email reminders');
|
|
144
|
+
assert.deepEqual(['B', 'C', 'D', 'E', 'F'].map((c) => cellNumber(cell(xml, `${c}7`))), [3, 3, 2, 3, 3]);
|
|
145
|
+
assert.deepEqual(['B', 'C', 'D', 'E', 'F'].map((c) => cellNumber(cell(xml, `${c}8`))), [2, 2, 3, 2, 2]);
|
|
146
|
+
} finally { page.close(); }
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// The template ships five worked sample features in rows 7-11. An export of
|
|
150
|
+
// two features must not leave the other three standing next to our prices.
|
|
151
|
+
// Their names are shared strings, so searching the sheet XML for one proves
|
|
152
|
+
// nothing — the reference has to be resolved through sharedStrings.xml.
|
|
153
|
+
test('the template\'s own sample rows are cleared past the exported features', skip, async () => {
|
|
154
|
+
const page = await openPage(buildPage());
|
|
155
|
+
try {
|
|
156
|
+
const files = await exportedFiles(page);
|
|
157
|
+
const xml = ballpark(files);
|
|
158
|
+
assert.deepEqual(['A7', 'A8', 'A9', 'A10', 'A11'].map((r) => nameAt(files, xml, r)),
|
|
159
|
+
['User can book appointment', 'Email reminders', '', '', '']);
|
|
160
|
+
for (const ref of ['A9', 'A10', 'A11', 'B9', 'F11']) {
|
|
161
|
+
assert.equal(cell(xml, ref), '', `${ref} must be emptied, not left with sample data`);
|
|
162
|
+
}
|
|
163
|
+
assert.match(xml, /<c r="A9" s="\d+"\/>/, 'the cleared cell must keep the template style');
|
|
164
|
+
} finally { page.close(); }
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// Row 6 is the template's own header row — the export never writes it, it
|
|
168
|
+
// writes scores into B-F underneath. Pin the seam: if the template's score
|
|
169
|
+
// columns are ever reordered or renamed, every exported score lands under the
|
|
170
|
+
// wrong heading and nothing else would notice.
|
|
171
|
+
function sharedText(files, frag) {
|
|
172
|
+
const idx = Number(/<v>(\d+)<\/v>/.exec(frag)?.[1]);
|
|
173
|
+
const items = [...files.get('xl/sharedStrings.xml').toString('utf8').matchAll(/<si>([\s\S]*?)<\/si>/g)];
|
|
174
|
+
return [...items[idx][1].matchAll(/<t[^>]*>([^<]*)<\/t>/g)].map((m) => m[1]).join('');
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const headerText = (files, frag) => inlineText(frag) ?? sharedText(files, frag);
|
|
178
|
+
|
|
179
|
+
// A name cell is either one of our inline strings or, in the pristine
|
|
180
|
+
// template, a shared-string reference. Resolve both; a cleared cell reads ''.
|
|
181
|
+
function nameAt(files, xml, ref) {
|
|
182
|
+
const frag = cell(xml, ref);
|
|
183
|
+
return frag ? headerText(files, frag) : '';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
test('the score columns sit under the template\'s five score headers', skip, async () => {
|
|
187
|
+
const page = await openPage(buildPage());
|
|
188
|
+
try {
|
|
189
|
+
const files = await exportedFiles(page);
|
|
190
|
+
const xml = ballpark(files);
|
|
191
|
+
assert.deepEqual(['B', 'C', 'D', 'E', 'F'].map((c) => headerText(files, cell(xml, `${c}6`))),
|
|
192
|
+
['TECH\nCOMPLEXITY\n(1-5)', 'FEATURE\nSIZE\n(1-5)', 'DEPEND-\nENCIES\n(1-5)',
|
|
193
|
+
'UNCER-\nTAINTY\n(1-5)', 'RISK\n(1-5)']);
|
|
194
|
+
} finally { page.close(); }
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
test('the five dimension weights still sum to one in the shipped template', skip, async () => {
|
|
198
|
+
const page = await openPage(buildPage());
|
|
199
|
+
try {
|
|
200
|
+
const xml = ballpark(await exportedFiles(page));
|
|
201
|
+
const weights = ['B5', 'C5', 'D5', 'E5', 'F5'].map((ref) => cellNumber(cell(xml, ref)));
|
|
202
|
+
assert.ok(Math.abs(weights.reduce((a, b) => a + b, 0) - 1) < 1e-9, weights.join(','));
|
|
203
|
+
assert.match(cellFormula(cell(xml, 'G5')) ?? '', /SUM\(\$B\$5:\$F\$5\)/);
|
|
204
|
+
} finally { page.close(); }
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
test('column P carries the plain-words note for sales readers', skip, async () => {
|
|
208
|
+
const page = await openPage(buildPage());
|
|
209
|
+
try {
|
|
210
|
+
const xml = ballpark(await exportedFiles(page));
|
|
211
|
+
assert.equal(inlineText(cell(xml, 'P6')), 'WHY THIS TIER');
|
|
212
|
+
assert.match(inlineText(cell(xml, 'P7')) ?? '', /open questions/);
|
|
213
|
+
} finally { page.close(); }
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
test('a Score Rationale tab lists anchor, evidence and both sources per factor', skip, async () => {
|
|
217
|
+
const page = await openPage(buildPage());
|
|
218
|
+
try {
|
|
219
|
+
const files = await exportedFiles(page);
|
|
220
|
+
assert.match(files.get('xl/workbook.xml').toString('utf8'), /name="Score Rationale"/);
|
|
221
|
+
assert.match(files.get('xl/_rels/workbook.xml.rels').toString('utf8'), /Target="worksheets\/sheet7\.xml"/);
|
|
222
|
+
assert.match(files.get('[Content_Types].xml').toString('utf8'), /PartName="\/xl\/worksheets\/sheet7\.xml"/);
|
|
223
|
+
const xml = sheetRationale(files);
|
|
224
|
+
assert.deepEqual(['A1', 'B1', 'C1', 'D1', 'E1', 'F1', 'G1'].map((r) => inlineText(cell(xml, r))),
|
|
225
|
+
['FEATURE', 'FACTOR', 'SCORE', 'ANCHOR', 'EVIDENCE', 'FEATURE SOURCE', 'SCORE ORIGIN']);
|
|
226
|
+
assert.equal(inlineText(cell(xml, 'A2')), 'User can book appointment');
|
|
227
|
+
assert.equal(inlineText(cell(xml, 'B2')), 'Tech');
|
|
228
|
+
assert.equal(cellNumber(cell(xml, 'C2')), 3);
|
|
229
|
+
assert.equal(inlineText(cell(xml, 'D2')), 'Custom business logic, moderate algorithm complexity, multiple states');
|
|
230
|
+
assert.equal(inlineText(cell(xml, 'E2')), 'slot conflict + cancellation rules');
|
|
231
|
+
assert.equal(inlineText(cell(xml, 'F2')), 'stated'); // the client asked for the feature
|
|
232
|
+
assert.equal(inlineText(cell(xml, 'G2')), 'reviewer changed'); // and a human edited its score
|
|
233
|
+
assert.match(xml, /<autoFilter ref="A1:G11"\/>/); // 2 features × 5 factors
|
|
234
|
+
} finally { page.close(); }
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
// The two columns answer different questions about different people — whether
|
|
238
|
+
// the client asked for the feature, and whether a reviewer overrode the
|
|
239
|
+
// agent's score. The booking fixture happens to agree on both, so this pins
|
|
240
|
+
// them apart: one feature the client asked for, whose score nobody touched.
|
|
241
|
+
test('feature source and score origin are read from separate fields', skip, async () => {
|
|
242
|
+
const inputsPath = variantInputs('sources', (inputs) => {
|
|
243
|
+
inputs.features[0].provenance = 'stated';
|
|
244
|
+
inputs.features[0].scoreProvenance = 'proposed';
|
|
245
|
+
});
|
|
246
|
+
const page = await openPage(buildPage(inputsPath));
|
|
247
|
+
try {
|
|
248
|
+
const xml = sheetRationale(await exportedFiles(page));
|
|
249
|
+
assert.equal(inlineText(cell(xml, 'F2')), 'stated');
|
|
250
|
+
assert.equal(inlineText(cell(xml, 'G2')), 'agent proposed');
|
|
251
|
+
assert.deepEqual(page.errors, []);
|
|
252
|
+
} finally { page.close(); }
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
const quickInputs = () => variantInputs('quick', (inputs) => {
|
|
256
|
+
inputs.depth = 'QUICK';
|
|
257
|
+
for (const f of inputs.features) {
|
|
258
|
+
delete f.scores; delete f.scoreNote; delete f.scoreProvenance;
|
|
259
|
+
f.tasks = [{ ...f.tasks[0], id: `${f.id}-band`, o: 60, m: 110, p: 160 }];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
test('QUICK inputs export blank score cells and an empty rationale tab', skip, async () => {
|
|
264
|
+
const page = await openPage(buildPage(quickInputs()));
|
|
265
|
+
try {
|
|
266
|
+
const files = await exportedFiles(page);
|
|
267
|
+
const xml = ballpark(files);
|
|
268
|
+
assert.equal(cell(xml, 'B7'), '', 'no score value at QUICK');
|
|
269
|
+
assert.match(xml, /<c r="B7" s="\d+"\/>/);
|
|
270
|
+
assert.match(sheetRationale(files), /<autoFilter ref="A1:G1"\/>/);
|
|
271
|
+
} finally { page.close(); }
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
// A QUICK estimate has no scores, and this workbook prices only from scores.
|
|
275
|
+
// The template's G7 is IF($A7="",0,SUMPRODUCT(...)), so a named feature with
|
|
276
|
+
// blank B:F weighs 0 — not blank, which is what v1's COUNTA guard returned.
|
|
277
|
+
// That 0 runs I7 -> I37 -> Project Roll-up C6 -> C20 and every figure under
|
|
278
|
+
// it. Nothing about the sheet looks broken; it reads a confident, formatted
|
|
279
|
+
// $0. Verified in LibreOffice: I37 = 0, C20 = 0, D34 = 0. So the sheet says
|
|
280
|
+
// so beside the subtotal, and this pins the behaviour as a decision.
|
|
281
|
+
test('a QUICK export says on the roll-up that its figures read zero', skip, async () => {
|
|
282
|
+
const page = await openPage(buildPage(quickInputs()));
|
|
283
|
+
try {
|
|
284
|
+
const files = await exportedFiles(page);
|
|
285
|
+
const note = inlineText(cell(rollup(files), 'D6')) ?? '';
|
|
286
|
+
assert.match(note, /NOT A PRICE/);
|
|
287
|
+
assert.match(note, /2 of 2 features carry no scores/);
|
|
288
|
+
assert.match(note, /read 0/);
|
|
289
|
+
assert.match(note, /Score the features on the Ballpark tab/); // 0 is recoverable in-sheet
|
|
290
|
+
// The formulas that produce that 0 are still the template's own, so typing
|
|
291
|
+
// scores in really does reprice the sheet.
|
|
292
|
+
assert.match(cellFormula(cell(ballpark(files), 'I37')) ?? '', /SUM\(\$I\$7:\$I\$36\)/);
|
|
293
|
+
assert.match(cellFormula(cell(rollup(files), 'C20')) ?? '', /\$C\$6\*\$D\$16/);
|
|
294
|
+
} finally { page.close(); }
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
// The note is warranted, not unconditional: a fully scored export must not
|
|
298
|
+
// cry wolf on a tab a client may well read.
|
|
299
|
+
test('a fully scored export leaves the roll-up unannotated', skip, async () => {
|
|
300
|
+
const page = await openPage(buildPage());
|
|
301
|
+
try {
|
|
302
|
+
assert.equal(cell(rollup(await exportedFiles(page)), 'D6'), '');
|
|
303
|
+
} finally { page.close(); }
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
// The whole point of shipping a workbook rather than a PDF: G-M are the
|
|
307
|
+
// template's own tier/price chain and the export must never rewrite them.
|
|
308
|
+
test('score math stays the template\'s: G-M are live formulas the export never touches', skip, async () => {
|
|
309
|
+
const page = await openPage(buildPage());
|
|
310
|
+
try {
|
|
311
|
+
const xml = ballpark(await exportedFiles(page));
|
|
312
|
+
assert.match(cellFormula(cell(xml, 'G7')) ?? '', /SUMPRODUCT\(\$B7:\$F7,\$B\$5:\$F\$5\)/);
|
|
313
|
+
for (const col of ['H', 'I', 'J', 'K', 'L', 'M']) {
|
|
314
|
+
assert.ok(/<f/.test(cell(xml, `${col}7`)), `${col}7 must hold a formula, not a baked value`);
|
|
315
|
+
}
|
|
316
|
+
assert.match(cell(xml, 'H7'), /Tier Reference/, 'the tier lookup must stay cross-sheet');
|
|
317
|
+
// ...and the blank slots below keep theirs, so a typed-in feature prices itself.
|
|
318
|
+
assert.ok(/<f/.test(cell(xml, 'I36')), 'the last spare row lost its formula');
|
|
319
|
+
} finally { page.close(); }
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
test('the template\'s FEATURE SUBTOTAL row survives the fill', skip, async () => {
|
|
323
|
+
const page = await openPage(buildPage());
|
|
324
|
+
try {
|
|
325
|
+
const xml = ballpark(await exportedFiles(page));
|
|
326
|
+
assert.match(cellFormula(cell(xml, 'G37')) ?? '', /COUNTIF\(\$A\$7:\$A\$36/);
|
|
327
|
+
for (const ref of ['I37', 'K37', 'L37']) {
|
|
328
|
+
assert.match(cellFormula(cell(xml, ref)) ?? '', /SUM\(\$[IKL]\$7:\$[IKL]\$36\)/);
|
|
329
|
+
}
|
|
330
|
+
} finally { page.close(); }
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
test('milestone and container fill N/O beside the template columns', skip, async () => {
|
|
334
|
+
const page = await openPage(buildPage());
|
|
335
|
+
try {
|
|
336
|
+
const xml = ballpark(await exportedFiles(page));
|
|
337
|
+
assert.equal(inlineText(cell(xml, 'N6')), 'MILESTONE');
|
|
338
|
+
assert.equal(inlineText(cell(xml, 'O6')), 'CONTAINER');
|
|
339
|
+
assert.equal(inlineText(cell(xml, 'N7')), 'M1 - Booking core');
|
|
340
|
+
assert.equal(inlineText(cell(xml, 'O7')), 'Booking API');
|
|
341
|
+
assert.equal(inlineText(cell(xml, 'O8')), 'Notification Service');
|
|
342
|
+
} finally { page.close(); }
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
// R60: the workbook prices the project from whatever rows it gets, so a
|
|
346
|
+
// filtered subset would quote a different total than the page and the
|
|
347
|
+
// proposal. The export ignores the breakdown filter.
|
|
348
|
+
test('the export carries every feature even with a source filter on', skip, async () => {
|
|
349
|
+
const page = await openPage(buildPage());
|
|
350
|
+
try {
|
|
351
|
+
await page.eval(`(() => {
|
|
352
|
+
const sel = document.querySelector('#feature-table select[data-select="prov"]');
|
|
353
|
+
sel.value = 'stated';
|
|
354
|
+
sel.dispatchEvent(new Event('change', { bubbles: true }));
|
|
355
|
+
})()`);
|
|
356
|
+
const files = await exportedFiles(page);
|
|
357
|
+
const xml = ballpark(files);
|
|
358
|
+
assert.deepEqual(['A7', 'A8'].map((r) => nameAt(files, xml, r)),
|
|
359
|
+
['User can book appointment', 'Email reminders'], 'a filtered-out feature must still export');
|
|
360
|
+
} finally { page.close(); }
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
// --- Project Roll-up: the five context levels the interview captured. The
|
|
364
|
+
// multiplier beside each one stays a live INDEX formula, so an edited level
|
|
365
|
+
// reprices the whole project inside the workbook.
|
|
366
|
+
test('the roll-up context cells are filled from inputs in the sheet\'s own order', skip, async () => {
|
|
367
|
+
// Levels cap at 4, so five distinct values are impossible; 1,2,3,4,1 leaves
|
|
368
|
+
// codebaseMaturity/clientDecisions as the only pair a swap could hide.
|
|
369
|
+
const inputsPath = variantInputs('levels', (inputs) => {
|
|
370
|
+
inputs.contextLevels = { codebaseMaturity: 1, stackFamiliarity: 2, specQuality: 3, compliance: 4, clientDecisions: 1 };
|
|
371
|
+
for (const [key, prov] of Object.entries(inputs.contextProvenance ?? {})) {
|
|
372
|
+
prov.level = inputs.contextLevels[key];
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
const page = await openPage(buildPage(inputsPath));
|
|
376
|
+
try {
|
|
377
|
+
const xml = rollup(await exportedFiles(page));
|
|
378
|
+
assert.deepEqual(['C11', 'C12', 'C13', 'C14', 'C15'].map((r) => cellNumber(cell(xml, r))),
|
|
379
|
+
[1, 2, 3, 4, 1]);
|
|
380
|
+
for (const ref of ['D11', 'D12', 'D13', 'D14', 'D15']) {
|
|
381
|
+
assert.ok(/<f/.test(cell(xml, ref)), `${ref} must stay the template's INDEX formula`);
|
|
382
|
+
}
|
|
383
|
+
assert.match(cellFormula(cell(xml, 'C6')) ?? '', /Ballpark Estimator'!\$I\$37/);
|
|
384
|
+
} finally { page.close(); }
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
// 2 fixture features + 31 clones = 33, three more than the 30 wired rows.
|
|
388
|
+
// The clones score 1/2/3/4/5, five distinct values, so B-F can only line up
|
|
389
|
+
// under the right headers one way — the booking fixture's 3,3,2,3,3 would
|
|
390
|
+
// survive a B/C or E/F swap in SCORE_KEYS.
|
|
391
|
+
// compute.mjs refuses a score whose anchor is not the guide's own sentence
|
|
392
|
+
// for that number, so the rescored clones take theirs from the guide.
|
|
393
|
+
const GUIDE = loadGuide();
|
|
394
|
+
const SCORE_ORDER = ['tech', 'size', 'deps', 'unc', 'risk'];
|
|
395
|
+
|
|
396
|
+
const overflowInputs = () => variantInputs('overflow', (inputs) => {
|
|
397
|
+
const base = inputs.features[0];
|
|
398
|
+
inputs.features.push(...Array.from({ length: 31 }, (_, i) => {
|
|
399
|
+
const f = { ...structuredClone(base), id: `extra${i}`, name: `Extra feature ${i}` };
|
|
400
|
+
f.tasks = base.tasks.map((t, j) => ({ ...structuredClone(t), id: `extra${i}-t${j}` }));
|
|
401
|
+
SCORE_ORDER.forEach((key, n) => { f.scores[key] = { ...f.scores[key], n: n + 1, anchor: GUIDE[key][n] }; });
|
|
402
|
+
return f;
|
|
403
|
+
}));
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
test('each score lands in its own column: five distinct values, one ordering', skip, async () => {
|
|
407
|
+
const page = await openPage(buildPage(overflowInputs()));
|
|
408
|
+
try {
|
|
409
|
+
const xml = ballpark(await exportedFiles(page));
|
|
410
|
+
assert.equal(inlineText(cell(xml, 'A8')), 'Extra feature 0');
|
|
411
|
+
assert.deepEqual(['B', 'C', 'D', 'E', 'F'].map((c) => cellNumber(cell(xml, `${c}8`))), [1, 2, 3, 4, 5]);
|
|
412
|
+
} finally { page.close(); }
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
// Patching the template in place means the Ballpark tab can hold only the
|
|
416
|
+
// rows the template wired: 7-36. Anything past that must be loud, because a
|
|
417
|
+
// silently truncated FEATURE SUBTOTAL is a wrong price on a client's desk.
|
|
418
|
+
test('features past the template\'s 30 scored rows are called out in the sheet', skip, async () => {
|
|
419
|
+
const page = await openPage(buildPage(overflowInputs()));
|
|
420
|
+
try {
|
|
421
|
+
const files = await exportedFiles(page);
|
|
422
|
+
const xml = ballpark(files);
|
|
423
|
+
assert.ok(inlineText(cell(xml, 'A36')), 'the last wired slot must be used');
|
|
424
|
+
const note = inlineText(cell(xml, 'A38')) ?? '';
|
|
425
|
+
assert.match(note, /3 more features/);
|
|
426
|
+
assert.match(note, /not in the subtotal/i);
|
|
427
|
+
assert.match(note, /Email reminders/); // the M2 feature sorts last, so it is dropped
|
|
428
|
+
// Nothing is lost from the workbook — the overflow still rides the other tabs.
|
|
429
|
+
assert.match(sheetTasks(files), /Email reminders/);
|
|
430
|
+
assert.match(sheetRationale(files), /Email reminders/);
|
|
431
|
+
// ...and the roll-up, where every figure derives from that subtotal, says so too.
|
|
432
|
+
assert.match(inlineText(cell(rollup(files), 'D6')) ?? '', /INCOMPLETE: 3 features did not fit/);
|
|
433
|
+
} finally { page.close(); }
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
test('the export adds a registered Task Breakdown tab', skip, async () => {
|
|
437
|
+
const page = await openPage(buildPage());
|
|
438
|
+
try {
|
|
439
|
+
const files = await exportedFiles(page);
|
|
440
|
+
assert.ok(files.has('xl/worksheets/sheet6.xml'), 'sheet6.xml missing');
|
|
441
|
+
assert.match(files.get('xl/workbook.xml').toString('utf8'), /name="Task Breakdown"/);
|
|
442
|
+
assert.match(files.get('xl/_rels/workbook.xml.rels').toString('utf8'), /Target="worksheets\/sheet6\.xml"/);
|
|
443
|
+
assert.match(files.get('[Content_Types].xml').toString('utf8'), /PartName="\/xl\/worksheets\/sheet6\.xml"/);
|
|
444
|
+
} finally { page.close(); }
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
test('task rows carry the PERT formula in-cell and ignore the feature filter', skip, async () => {
|
|
448
|
+
const page = await openPage(buildPage());
|
|
449
|
+
try {
|
|
450
|
+
await page.eval(`(() => {
|
|
451
|
+
const sel = document.querySelector('#feature-table select[data-select="prov"]');
|
|
452
|
+
sel.value = 'stated';
|
|
453
|
+
sel.dispatchEvent(new Event('change', { bubbles: true }));
|
|
454
|
+
})()`);
|
|
455
|
+
const xml = sheetTasks(await exportedFiles(page));
|
|
456
|
+
assert.equal(inlineText(cell(xml, 'A2')), 'User can book appointment');
|
|
457
|
+
assert.equal(inlineText(cell(xml, 'B2')), 'Booking CRUD API');
|
|
458
|
+
assert.deepEqual(['D2', 'E2', 'F2'].map((r) => cellNumber(cell(xml, r))), [16, 24, 40]);
|
|
459
|
+
assert.match(cellFormula(cell(xml, 'G2')) ?? '', /\(D2\+4\*E2\+F2\)\/6/);
|
|
460
|
+
assert.equal(inlineText(cell(xml, 'H2')), 'HIGH');
|
|
461
|
+
assert.equal(inlineText(cell(xml, 'K2')), 'Booking API');
|
|
462
|
+
assert.match(xml, /Scheduled reminder jobs/, 'a filtered-out feature\'s tasks must still export');
|
|
463
|
+
} finally { page.close(); }
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
test('the task tab is filterable and sortable: autofilter over a frozen header', skip, async () => {
|
|
467
|
+
const page = await openPage(buildPage());
|
|
468
|
+
try {
|
|
469
|
+
const xml = sheetTasks(await exportedFiles(page));
|
|
470
|
+
assert.equal(inlineText(cell(xml, 'A1')), 'FEATURE');
|
|
471
|
+
// 3 fixture tasks under rows 2-4
|
|
472
|
+
assert.match(xml, /<autoFilter ref="A1:K4"\/>/);
|
|
473
|
+
assert.match(xml, /<pane ySplit="1"[^>]*state="frozen"/);
|
|
474
|
+
} finally { page.close(); }
|
|
475
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { test } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { crc32, zipStore } from '../../../shared/lib/zip.mjs';
|
|
4
|
+
import { withZip } from '../../../shared/lib/inline.mjs';
|
|
5
|
+
import { readZip } from './zip.mjs';
|
|
6
|
+
|
|
7
|
+
const enc = new TextEncoder();
|
|
8
|
+
|
|
9
|
+
test('zipStore writes an archive the reader opens, entries in order', () => {
|
|
10
|
+
const files = new Map([['a.txt', enc.encode('hello')], ['dir/b.xml', enc.encode('<x/>')]]);
|
|
11
|
+
const back = readZip(Buffer.from(zipStore(files)));
|
|
12
|
+
assert.deepEqual([...back.keys()], ['a.txt', 'dir/b.xml']);
|
|
13
|
+
assert.equal(back.get('dir/b.xml').toString('utf8'), '<x/>');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
test('crc32 matches the standard check value', () => {
|
|
17
|
+
assert.equal(crc32(enc.encode('123456789')), 0xcbf43926);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('withZip puts the writer, without export keywords, ahead of the page script', () => {
|
|
21
|
+
const out = withZip('PAGE_SCRIPT();');
|
|
22
|
+
assert.match(out, /^\/\/ Minimal zip writer/);
|
|
23
|
+
assert.match(out, /\nfunction zipStore\(/);
|
|
24
|
+
assert.doesNotMatch(out, /^export /m);
|
|
25
|
+
assert.ok(out.endsWith('\nPAGE_SCRIPT();'));
|
|
26
|
+
});
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"assertions": [
|
|
13
13
|
"no-committed-number: the reply offers no answer to \"how long / how much\" — no week or month figure, no currency amount, and no hour band presented as this project's size",
|
|
14
14
|
"no-artifacts-written: no estimation-inputs.json, estimation.json, estimation.md or estimate.html exists anywhere after the run — compute.mjs and render.mjs were never invoked",
|
|
15
|
-
"evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations,
|
|
15
|
+
"evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations, deadline — not a single vague \"tell me more\"; it does not ask for a team, rates or staffing, which the estimate no longer prices",
|
|
16
16
|
"clear-vs-assumed-split: confirmed scope and assumptions are presented as two separate lists (interview.md §3), and every scope item named carries a stated/proposed label — nothing about bookings, reminders or the six-practice rollout is stated as confirmed scope when the email only implies it",
|
|
17
17
|
"assumptions-carry-impact: every assumption in the assumed list is paired with its impact-if-wrong (what changes and roughly by how much), never listed bare",
|
|
18
18
|
"asks-depth-and-delivery-mode: the reply asks the QUICK/STANDARD/DEEP depth question and the delivery-mode opt-out (\"humans writing the code?\", agentic assumed by default) before naming any technique or number"
|
|
@@ -21,39 +21,74 @@
|
|
|
21
21
|
{
|
|
22
22
|
"id": 1,
|
|
23
23
|
"name": "pre-fed-traditional-trellis",
|
|
24
|
-
"prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n-
|
|
25
|
-
"expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap, and
|
|
24
|
+
"prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n- The team has built this stack before (React, Node, Postgres); the Sage integration is the only part new to them.\n- The 1 March 2027 spring-season deadline is hard.\n- Milestones: M1 catalogue + login, M2 ordering + contract pricing, M3 Sage sync. Reporting dashboards are not in v1.\n- We have no delivery history to calibrate against, use your default bands.\n- Out of scope: retail storefront, van route planning, the mobile app.\n- Client copy must not show the pricing working.",
|
|
25
|
+
"expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, the five context levels (four derived with cites, stack familiarity stated from the answer), components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap of relative shares, and a single price block (presented range, single number, contingency, implied accuracy) — no scenarios, team, rates or duration.",
|
|
26
26
|
"files": [
|
|
27
27
|
"evals/fixtures/pre-fed-traditional-trellis/requirements.json",
|
|
28
28
|
"evals/fixtures/pre-fed-traditional-trellis/requirements.md",
|
|
29
29
|
"evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md"
|
|
30
30
|
],
|
|
31
31
|
"assertions": [
|
|
32
|
-
"validates-and-renders: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
|
|
32
|
+
"validates-and-renders: `node classic/scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
|
|
33
33
|
"technique-matches-evidence: inputs.technique is task-level three-point PERT and estimation.md's `Technique:` line justifies it by the detailed requirements package plus ARCHITECTURE.md — not factor-scored tiering, which techniques.md §1 reserves for a vague RFP with no breakdown",
|
|
34
34
|
"confirmed-vs-assumed-both-populated: at least one feature carries provenance `stated` traced to a confirmed requirement (FR-001/FR-002/FR-003) and at least one carries `proposed` traced to the assumed/recommended ones (FR-004/FR-005); inputs.assumptions has >= 1 entry whose text and impactIfWrong appear verbatim in the Summary's Assumptions table; inputs.components carries every §6 component with `trellis.reporting` excused by a notEstimated reason rather than dropped",
|
|
35
35
|
"per-task-ai-categories: every task carries a category of boilerplate|logic|novel with at least two distinct categories across the backlog, and no single project-wide or feature-wide AI speedup percentage appears anywhere in estimation.md or estimation-inputs.json (ai-multipliers.md §5)",
|
|
36
|
-
"
|
|
36
|
+
"price-block-consistent: computed.price.p50 > 0 and estimation.md's Price table states computed.price.presentLow and presentHigh as the presented range and singleNumber as the single number; inputs carry no `scenarios`, `recommendedScenario` or `overheadPct` and computed carries no `scenarios`, `riskBufferHours` or months figure; estimation.md has no Scenario table and no duration (the Roadmap states relative shares, not months); inputs.contextLevels has all five factors at 1-4, each with a contextProvenance anchor quoted from the scoring guide's context-factor table, and stackFamiliarity is level 1 or 2 (a stack the team has built before), not 3-4",
|
|
37
37
|
"scores-anchored-and-tiers-match: every feature carries scores for tech, size, deps, unc and risk whose `anchor` strings are byte-identical to the corresponding sentences in references/scoring-guide.md, and each Summary scope row's Tier cell equals computed.features[<id>].tier"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"id": 2,
|
|
42
42
|
"name": "pre-fed-agentic-halyard",
|
|
43
|
-
"prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n-
|
|
44
|
-
"expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template.",
|
|
43
|
+
"prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n- No hard deadline. Out of scope: consumer storefront, supplier onboarding portal.",
|
|
44
|
+
"expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template, which says the scope is not priced — agentic mode carries no price.",
|
|
45
45
|
"files": [
|
|
46
46
|
"evals/fixtures/pre-fed-agentic-halyard/requirements.json",
|
|
47
47
|
"evals/fixtures/pre-fed-agentic-halyard/requirements.md",
|
|
48
48
|
"evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl"
|
|
49
49
|
],
|
|
50
50
|
"assertions": [
|
|
51
|
-
"validates-and-renders-agentic: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
|
|
51
|
+
"validates-and-renders-agentic: `node classic/scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from classic/assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
|
|
52
52
|
"durations-not-agent-authored: every task carries a `shape` from TASK_SHAPES plus a `scope` object and `seedMinutes` with o <= m <= p, and no task carries `category`, `confidence`, `o`, `m` or `p` — the four fields schema.mjs bans in agentic mode because the script owns them",
|
|
53
53
|
"planning-task-present: at least one task has shape \"planning\" and is sized as real work in the backlog, not folded into overhead (agentic-estimation.md §5; agenticFindings refuses a decomposition without one)",
|
|
54
54
|
"confidence-tracks-samples: inputs.measurementsPath points at the fixture measurements.jsonl rather than ~/.agents-rock/measurements.jsonl, and every computed.tasks[*].confidence is what that file supports — ui_implementation 11 samples → HIGH, api_integration 4 samples → MED, planning (2 samples, global rung) → LOW, and any shape with no matching record → UNCALIBRATED with \"not estimated\" in the Baseline column",
|
|
55
55
|
"evidence-rows-script-matched: every row in estimation.md's `### Evidence` table has an Id and Actual (min) that appear in computed.tasks[*].evidence (ids drawn from h01–h17 in the fixture), and the Summary header line reports the same measurement count the evidence actually backs",
|
|
56
|
-
"agentic-
|
|
56
|
+
"agentic-not-priced: inputs.risks carry probability, impactMinutes and a non-empty reason for both named risks (0.4 / 180 and 0.3 / 120); computed.price.p50 is 0 and computed carries no `scenarios` or `riskBufferHours`; inputs carry no `scenarios`, team or rates; neither estimation.md nor dist/estimate.html presents a currency amount as this project's price or a duration — the page states the scope is not priced"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": 3,
|
|
61
|
+
"name": "workflow-happy-path",
|
|
62
|
+
"prompt": "The BA package for sin-kowa-mini is done and the PO signed off the scope (requirements.json, requirements.md). The architecture document is in ARCHITECTURE.md — I reviewed it myself this morning. Give me the estimate.",
|
|
63
|
+
"expected_output": "The skill detects scopeMode \"workflow\" and follows workflow-based/FLOW.md. It asks exactly one gate question (has a human reviewed ARCHITECTURE.md?) and, after the user says yes, links every feature to §6 components with a why each, runs the review-links workflow (or, when the Workflow tool is unavailable in this sandbox, stops with the exact /config message and writes nothing), scores the five features, writes the score review page, renders estimate.html and estimate-components.html into dist/, and ends with the closing AskUserQuestion naming both pages. It never asks about depth, delivery mode, agent/model, scope confirmation, milestones, review channel, stack familiarity, deadline or budget. estimation-inputs.json carries features with ids and scores only; components carry builds, tasks and milestones.",
|
|
64
|
+
"files": [
|
|
65
|
+
"evals/fixtures/workflow-sin-kowa-mini/requirements.json",
|
|
66
|
+
"evals/fixtures/workflow-sin-kowa-mini/requirements.md",
|
|
67
|
+
"evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md"
|
|
68
|
+
],
|
|
69
|
+
"assertions": [
|
|
70
|
+
"routed-to-workflow: the reply names scopeMode workflow and never offers the classic depth question (QUICK/STANDARD/DEEP) or the delivery-mode opt-out",
|
|
71
|
+
"three-questions-max: the only AskUserQuestion prompts are the architecture-reviewed gate, the score-review hand-off, and the closing \"anything to change?\"; no question about agent/model, milestones, scope confirmation, review channel, familiarity, deadline or budget",
|
|
72
|
+
"workflow-or-exact-stop: either /solution-architect:review-links was invoked before scoring, or the reply contains exactly \"Workflow mode needs dynamic workflows for the link review. Turn them on in /config (Dynamic workflows), then run /estimate again.\" and no estimation-inputs.json exists",
|
|
73
|
+
"features-are-ids-and-scores: when estimation-inputs.json exists, every features[] entry has id, scores (five factors with n, anchor, cite), scoreNote and scoreProvenance and none of tasks, component, milestone, provenance",
|
|
74
|
+
"components-carry-the-work: when estimation-inputs.json exists, every component with builds has a non-empty why on each build, a milestone, and at least one agentic task with shape and seedMinutes; a component with no builds has notEstimated",
|
|
75
|
+
"validate-clean: when estimation.json exists, `node workflow-based/scripts/validate.mjs --inputs estimation-inputs.json --json estimation.json` exits 0",
|
|
76
|
+
"pages-written: when estimation.json exists, dist/estimate.html and dist/estimate-components.html exist, no estimation.md was written, and the closing question names both page URLs"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": 4,
|
|
81
|
+
"name": "workflow-gate-no-architecture",
|
|
82
|
+
"prompt": "requirements.json and requirements.md for sin-kowa-mini are ready, scope is PO-approved. Estimate it.",
|
|
83
|
+
"expected_output": "The skill detects scopeMode \"workflow\", finds no ARCHITECTURE.md, and stops with the message that workflow mode needs the architecture document first. It does not fall back to classic, does not ask the depth question, and writes no files.",
|
|
84
|
+
"files": [
|
|
85
|
+
"evals/fixtures/workflow-sin-kowa-mini/requirements.json",
|
|
86
|
+
"evals/fixtures/workflow-sin-kowa-mini/requirements.md"
|
|
87
|
+
],
|
|
88
|
+
"assertions": [
|
|
89
|
+
"stops-at-gate: the reply says workflow mode needs the architecture document and to run it first",
|
|
90
|
+
"no-classic-fallback: no QUICK/STANDARD/DEEP question, no technique menu, no clear-vs-assumed gate",
|
|
91
|
+
"nothing-written: no estimation-inputs.json, estimation.json, dist/score-review.html, dist/estimate.html or dist/estimate-components.html exists after the run"
|
|
57
92
|
]
|
|
58
93
|
}
|
|
59
94
|
]
|