@v11g/agents-rock 1.0.9 → 1.0.11
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 +3 -1
- package/package.json +2 -2
- package/plugins/business-analyst/.claude-plugin/plugin.json +2 -2
- 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/evals/draft-scope-rich/case.yaml +4 -0
- package/plugins/business-analyst/evals/draft-scope-rich/fixture.sh +5 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/conflict-question.md +11 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/keep-and-exclude.md +14 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/noise-and-shape.md +13 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/problem-not-solution.md +13 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/share-kept.md +11 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/draft-scope-rich/graders/vague-word.md +13 -0
- package/plugins/business-analyst/evals/draft-scope-rich/inputs/C1.txt +10 -0
- package/plugins/business-analyst/evals/draft-scope-rich/inputs/E1.txt +5 -0
- package/plugins/business-analyst/evals/draft-scope-rich/inputs/E2.txt +5 -0
- package/plugins/business-analyst/evals/draft-scope-rich/inputs/E3.txt +5 -0
- package/plugins/business-analyst/evals/draft-scope-rich/prompt.md +9 -0
- package/plugins/business-analyst/evals/draft-scope-thin/case.yaml +4 -0
- package/plugins/business-analyst/evals/draft-scope-thin/fixture.sh +4 -0
- package/plugins/business-analyst/evals/draft-scope-thin/graders/no-invention.md +18 -0
- package/plugins/business-analyst/evals/draft-scope-thin/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/draft-scope-thin/inputs/E1.txt +5 -0
- package/plugins/business-analyst/evals/draft-scope-thin/prompt.md +8 -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/business-analyst/skills/draft-scope/SKILL.md +46 -0
- package/plugins/business-analyst/skills/draft-scope/references/credits.md +12 -0
- package/plugins/business-analyst/skills/draft-scope/references/draft-schema.md +44 -0
- package/plugins/business-analyst/skills/draft-scope/references/rules.md +24 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/build_docx.py +36 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/check.py +53 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/docx_body.py +58 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/docx_flow.py +52 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/docx_package.py +62 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/docx_xml.py +44 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/draft_quotes.py +49 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/draft_rules.py +106 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/draft_schema.py +87 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/build-docx.test.mjs +76 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/check-rules.test.mjs +131 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/check-shape.test.mjs +70 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/draft-pass.json +40 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/sources/C1.txt +7 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/sources/E1.txt +5 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/gates.test.mjs +39 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/helpers.mjs +30 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/test/skill-files.test.mjs +59 -0
- package/plugins/business-analyst/skills/draft-scope/steps/assumptions.md +24 -0
- package/plugins/business-analyst/skills/draft-scope/steps/check.md +24 -0
- package/plugins/business-analyst/skills/draft-scope/steps/discover.md +53 -0
- package/plugins/business-analyst/skills/draft-scope/steps/draft.md +64 -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/SKILL.md +8 -7
- package/plugins/solution-architect/skills/analyze-requirements/assets/section-help.json +5 -5
- package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +26 -4
- package/plugins/solution-architect/skills/analyze-requirements/evals/evals.json +50 -6
- package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.json +31 -0
- package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.md +17 -0
- package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/C1-kickoff-call.txt +16 -0
- package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/E1-intro-email.md +9 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/extract.md +108 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/interview.md +39 -5
- package/plugins/solution-architect/skills/analyze-requirements/references/project-types.md +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/references/quality-goals.md +84 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/research.md +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +7 -2
- package/plugins/solution-architect/skills/analyze-requirements/references/viewer.md +10 -6
- package/plugins/solution-architect/skills/analyze-requirements/references/writing.md +45 -3
- package/plugins/solution-architect/skills/analyze-requirements/scripts/ba-facts.mjs +32 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/check-quotes.mjs +39 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/ba-package.mjs +75 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-links.mjs +19 -7
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-routes.mjs +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/inputs.mjs +42 -11
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-render.mjs +15 -4
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/section-help.mjs +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/strategy-sections.mjs +30 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-provenance.mjs +14 -2
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-quotes.mjs +55 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-strategy.mjs +65 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/render.mjs +18 -5
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-facts-cli.test.mjs +55 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-package-cli.test.mjs +101 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-package.test.mjs +115 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +77 -2
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/check-quotes-cli.test.mjs +49 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-links.test.mjs +49 -4
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/extract-workflow.test.mjs +69 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/inputs.test.mjs +14 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-render.test.mjs +19 -5
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/render.test.mjs +69 -2
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/section-help.test.mjs +6 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-provenance.test.mjs +19 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-quotes-cli.test.mjs +58 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-quotes.test.mjs +81 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-strategy-cli.test.mjs +32 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-strategy.test.mjs +118 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/validate.mjs +17 -6
- package/plugins/solution-architect/skills/analyze-requirements/workflows/extract.js +51 -0
- package/plugins/solution-architect/skills/estimate/README.md +18 -3
- package/plugins/solution-architect/skills/estimate/SKILL.md +18 -75
- package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
- package/plugins/solution-architect/skills/estimate/classic/assets/estimate-template.html +1337 -0
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +2 -2
- 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 +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/rollup.mjs +5 -5
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +4 -26
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +8 -7
- 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/{scripts → classic/scripts}/test/browser-agentic.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +6 -6
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/estimate-math.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/pricing.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/project-price.test.mjs +1 -1
- 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 +6 -6
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/render.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +6 -6
- 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 +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/xlsx-export.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
- package/plugins/solution-architect/skills/estimate/evals/evals.json +37 -2
- 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/{scripts → shared}/lib/context-schema.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +8 -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 +1 -1
- 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/proposal/README.md +13 -0
- package/plugins/solution-architect/skills/proposal/SKILL.md +8 -0
- package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
- 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/review.md +11 -0
- package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
- 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/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/docx.test.mjs +68 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +2 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +9 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +2 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +2 -2
- 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/assets/estimate-template.html +0 -1677
- /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +0 -0
- /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/ai-multipliers.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.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/redact.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/agentic-estimation-fail.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +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/estimate-math.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/pricing.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/project-price.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Step 3d — Assumptions
|
|
2
|
+
|
|
3
|
+
For each feature, ask what must be true for it to work, under four checks:
|
|
4
|
+
|
|
5
|
+
- **Value** — does the client gain what the problem says?
|
|
6
|
+
- **Usability** — can the people named actually use it where they work?
|
|
7
|
+
- **Viability** — will the client's customers, partners or rules accept it?
|
|
8
|
+
- **Feasibility** — does what it needs exist (devices, data, connections)?
|
|
9
|
+
|
|
10
|
+
Sort each answer:
|
|
11
|
+
|
|
12
|
+
| | a source supports it | no source says |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| changes the price if wrong | assumption | client question; its `assume` holds the assumption |
|
|
15
|
+
| small | drop | client question only |
|
|
16
|
+
|
|
17
|
+
The Assumptions section holds only assumptions a source supports. Keep at
|
|
18
|
+
most 8, the biggest price effect first. Each names its `feature` and the
|
|
19
|
+
`source` whose words support it. Never cite a source for something it does
|
|
20
|
+
not say: when no source says it, it lives in a client question's `assume`.
|
|
21
|
+
|
|
22
|
+
Example: feature "Order board" (C1). Usability: staff copy WhatsApp orders
|
|
23
|
+
onto the board. A source supports it ("Orders come in by WhatsApp, that
|
|
24
|
+
stays") and it changes the price → assumption, source C1.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Steps 4–5 — Check and Build
|
|
2
|
+
|
|
3
|
+
## 4 Check
|
|
4
|
+
|
|
5
|
+
Run `python3 scripts/check.py --draft <dir>/draft.json`.
|
|
6
|
+
- Prints `draft clean` → go on.
|
|
7
|
+
- Prints findings → fix each in `draft.json`, run again. A quote finding
|
|
8
|
+
shows the closest sentence in the source; copy that sentence exactly or
|
|
9
|
+
pick another quote.
|
|
10
|
+
|
|
11
|
+
Then check what the script cannot:
|
|
12
|
+
- Every number the client gave survives as written ("~30%", "twice").
|
|
13
|
+
- Every problem sits in some system's purpose or feature.
|
|
14
|
+
- The systems read as the client's business areas.
|
|
15
|
+
- Nothing in the draft comes from small talk. Never mention what you
|
|
16
|
+
skipped, here or in your reply.
|
|
17
|
+
|
|
18
|
+
## 5 Build
|
|
19
|
+
|
|
20
|
+
`python3 scripts/build_docx.py --draft <dir>/draft.json --out <dir>/draft-scope.docx`
|
|
21
|
+
|
|
22
|
+
The docx holds, in order: title and note, Sources, Problems we heard,
|
|
23
|
+
Scope (exclusions), one section per system (purpose, step lines, features),
|
|
24
|
+
Assumptions, Questions for the client.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Step 1 — Discover
|
|
2
|
+
|
|
3
|
+
One note per source, in source order. The note follows the
|
|
4
|
+
summarize-interview template (credits.md), plus three lines the draft
|
|
5
|
+
needs. Use clear, simple language. Short bullets, one line each: a long
|
|
6
|
+
call gives more bullets, never longer lines. Leave out any part the source
|
|
7
|
+
says nothing about.
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
### C1 · call · 2026-09-10
|
|
11
|
+
**Participants**: Dana Lee (owner) · Sam (our PO)
|
|
12
|
+
**Background**: family bakery, one shop
|
|
13
|
+
|
|
14
|
+
**Current Solution**:
|
|
15
|
+
1. Order arrives on WhatsApp → paper ticket → bake → pack → courier
|
|
16
|
+
|
|
17
|
+
**What They Like About Current Solution**:
|
|
18
|
+
- Ordering by WhatsApp; customers like it
|
|
19
|
+
|
|
20
|
+
**Problems With Current Solution**:
|
|
21
|
+
- Lost tickets: no one knows where a cake is
|
|
22
|
+
|
|
23
|
+
**Key Insights**:
|
|
24
|
+
- "When a ticket gets lost the customer calls us and we have no idea where the cake is."
|
|
25
|
+
|
|
26
|
+
**Action Items**:
|
|
27
|
+
- Dana, send the courier contract
|
|
28
|
+
|
|
29
|
+
**Keeps / Others own**: WhatsApp stays · courier owns routes
|
|
30
|
+
**Numbers & rules**: about 30% of orders are custom cakes
|
|
31
|
+
**Open points**:
|
|
32
|
+
- Same-day or next-morning delivery? (C1 vs E2)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- **Current Solution**: the steps followed today, in order; the workflow
|
|
36
|
+
boxes start from them.
|
|
37
|
+
- **Problems**: importance or satisfaction only when the client said it.
|
|
38
|
+
- **Key Insights**: exact quotes, word for word, and anything surprising.
|
|
39
|
+
- **Action Items**: who promised what, by when, as said.
|
|
40
|
+
- **Keeps / Others own**: what stays as it is; parts another party owns.
|
|
41
|
+
- **Numbers & rules**: shares, counts, limits, rules, exactly as said.
|
|
42
|
+
- **Open points**: what is unclear or contradicts another source; they
|
|
43
|
+
become client questions.
|
|
44
|
+
|
|
45
|
+
Skip what is not about the work (small talk, music, weather). Never
|
|
46
|
+
mention what you skipped, not even to say it was left out. An email
|
|
47
|
+
that only says "can we talk" still gets a note, often just Participants
|
|
48
|
+
and one open point.
|
|
49
|
+
|
|
50
|
+
Save all notes, in order, as `discover-notes.md` next to `draft.json`:
|
|
51
|
+
plain Markdown, the shape above without the surrounding code fence, so
|
|
52
|
+
claude.ai and any Markdown viewer render it for the PO to review. Start
|
|
53
|
+
the file with `# Discover notes — <client>`.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Steps 2–3 — Define and Draft
|
|
2
|
+
|
|
3
|
+
Work from the notes in `discover-notes.md`. Write `draft.json`
|
|
4
|
+
(`references/draft-schema.md`). Rules for every text: `references/rules.md`.
|
|
5
|
+
|
|
6
|
+
## 2 Define — problems
|
|
7
|
+
|
|
8
|
+
Merge the notes' problems into 1–6 problems. One sentence each, in the
|
|
9
|
+
client's terms ("We run out of flour before we notice"), never a solution
|
|
10
|
+
("build an app"). Each carries the exact quotes behind it. A goal line goes
|
|
11
|
+
into `scope.covered` only if someone stated a goal.
|
|
12
|
+
|
|
13
|
+
## 3a Systems
|
|
14
|
+
|
|
15
|
+
1. List every request and problem from the notes.
|
|
16
|
+
2. Group related ones. Name each group as the business area the client
|
|
17
|
+
would name ("Orders", "Stock"), never a technical part ("backend").
|
|
18
|
+
3. Check: every request sits in exactly one group. One that fits none
|
|
19
|
+
means regroup; do not force it in.
|
|
20
|
+
4. Purpose: one sentence, the area plus the problem it closes; `problem`
|
|
21
|
+
holds that problem's id. No stage, user or detail a source does not
|
|
22
|
+
give.
|
|
23
|
+
|
|
24
|
+
## 3b Step lines
|
|
25
|
+
|
|
26
|
+
Only steps a source gives, as `workflows` on the system:
|
|
27
|
+
- `main`: the to-be steps in order, 1–5 words each.
|
|
28
|
+
- `side`: a branch, with `returnsTo` when it goes back.
|
|
29
|
+
- `sub`: a sub-workflow with `name`, `startsAt`, `rejoinsAt`, and `share`
|
|
30
|
+
when the client gave one ("~30% of orders").
|
|
31
|
+
A system no source gives steps for has `workflows: []`, and the missing
|
|
32
|
+
steps become a client question.
|
|
33
|
+
|
|
34
|
+
## 3c Features
|
|
35
|
+
|
|
36
|
+
Per system, what the client asked for or what closes a problem. Name: 2–6
|
|
37
|
+
words. `does`: one sentence starting with a verb: who it is for, the
|
|
38
|
+
client's number if any, what changes against today. `problem`: the problem
|
|
39
|
+
it closes. Use only details a source gives: no data fields, users, devices
|
|
40
|
+
or stages the client did not name. Unknown details are client questions.
|
|
41
|
+
Thin input gives at most one feature per stated request, worded as
|
|
42
|
+
broadly as the request.
|
|
43
|
+
|
|
44
|
+
## 3d Assumptions
|
|
45
|
+
|
|
46
|
+
Read `steps/assumptions.md`.
|
|
47
|
+
|
|
48
|
+
## 3e Scope
|
|
49
|
+
|
|
50
|
+
`covered`: one or two sentences on what the draft covers. `pillars` only
|
|
51
|
+
when a source lists the client's own programme pillars. `exclusions`: only
|
|
52
|
+
things a source names, each with `reason` `owned-elsewhere`, `later-phase`
|
|
53
|
+
or `no-detail` and that source. Never exclude what no source mentions.
|
|
54
|
+
|
|
55
|
+
## 3f Client questions
|
|
56
|
+
|
|
57
|
+
From the notes' open points, gaps (a system with no steps), conflicts and
|
|
58
|
+
vague words:
|
|
59
|
+
- Ask about a real past case: "Last time … what happened?"
|
|
60
|
+
- A vague word is quoted and made measurable: "You wrote \"fast\": by
|
|
61
|
+
what time of day?"
|
|
62
|
+
- Sources that disagree: one question quoting both.
|
|
63
|
+
- `why`: what changes in the scope with the answer. `assume`: what the draft
|
|
64
|
+
assumes if there is no answer. `refs`: the problem and source ids.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solution-architect",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Truong Vu",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Seeds the empty workspace as the sin-kowa-mini lead folder with a finished
|
|
3
|
+
# workflow-mode estimate: BA package, architecture, estimate inputs and output.
|
|
4
|
+
set -euo pipefail
|
|
5
|
+
src="$(cd "$(dirname "$0")/../../skills/proposal/evals/fixtures/workflow-sin-kowa-mini" && pwd)"
|
|
6
|
+
cp "$src/requirements.json" "$src/ARCHITECTURE.md" "$src/estimation-inputs.json" "$src/estimation.json" "$src/measurements.jsonl" .
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus:
|
|
4
|
+
source: file
|
|
5
|
+
path: proposal-inputs.json
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Workflow mode: the agent writes only the sentences, in proposal-inputs.json
|
|
9
|
+
beside estimation.json. You are shown that file. The estimate's milestones
|
|
10
|
+
are "M1 - Walking skeleton", "M2 - Money" and "M3 - Operations".
|
|
11
|
+
|
|
12
|
+
PASS if the file has client "Sin Kowa", title "Sin Kowa Digital
|
|
13
|
+
Transformation", firm "Code Engine Studio", an ISO date, techLevel
|
|
14
|
+
"non-tech", a non-empty scopeIntro, and a "milestones" entry for each of
|
|
15
|
+
the three milestone names with a "name" and a "demonstrates" sentence; and
|
|
16
|
+
no sentence in it carries a price, a currency amount or an internal ID such
|
|
17
|
+
as FEAT-001 or SYS-002.
|
|
18
|
+
The keys of "systems" ARE system IDs (e.g. "SYS-001") and the keys of
|
|
19
|
+
"milestones" are the estimate's milestone names: both are required by the
|
|
20
|
+
format and are not sentences. Check only the string values for prices and
|
|
21
|
+
IDs.
|
|
22
|
+
FAIL if the file is missing or empty, or if any required key or milestone
|
|
23
|
+
entry is missing.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus: last_message
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This sandbox has no Bash, so the scripts cannot run here. You are shown the
|
|
7
|
+
agent's final message.
|
|
8
|
+
|
|
9
|
+
PASS if the message names both `validate.mjs --estimation … --inputs …` and
|
|
10
|
+
`render.mjs --estimation … --inputs … --mermaid-bundle … --out …/dist`, with
|
|
11
|
+
validate before render, as the next step; or says it cannot run them here
|
|
12
|
+
and stopped. Naming them with placeholder paths (`<dir>/estimation.json`)
|
|
13
|
+
counts. Raising other concerns, or ending with a question to the user, does
|
|
14
|
+
not make it fail.
|
|
15
|
+
FAIL if it claims proposal.html was rendered or served, or names neither
|
|
16
|
+
command.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
max_turns: 40
|
|
3
|
+
allowed_tools: [Read, Glob, Grep, Write, Skill, AskUserQuestion, TodoWrite]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the proposal skill. The estimate for sin-kowa-mini is done
|
|
7
|
+
(estimation.json in this folder). The client is Sin Kowa, they are not
|
|
8
|
+
technical, and we are Code Engine Studio — no need to save a firm profile.
|
|
9
|
+
Title it "Sin Kowa Digital Transformation". Propose the milestone names and
|
|
10
|
+
what each one demonstrates yourself; I'll correct them on the page.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Seeds the empty workspace as the sin-kowa-mini lead folder without
|
|
3
|
+
# ARCHITECTURE.md, so workflow mode must stop at its first gate.
|
|
4
|
+
set -euo pipefail
|
|
5
|
+
src="$(cd "$(dirname "$0")/../../skills/estimate/evals/fixtures/workflow-sin-kowa-mini" && pwd)"
|
|
6
|
+
cp "$src/requirements.json" "$src/requirements.md" .
|
package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
The lead folder has requirements.json with scopeMode "workflow" but no
|
|
6
|
+
ARCHITECTURE.md.
|
|
7
|
+
|
|
8
|
+
PASS if the final reply says workflow mode needs the architecture document
|
|
9
|
+
and to run (or create) it first, and stops there.
|
|
10
|
+
FAIL if it starts estimating anyway, asks estimation questions, or falls back
|
|
11
|
+
to the classic interview.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Seeds the empty workspace as the sin-kowa-mini lead folder: the BA package
|
|
3
|
+
# plus the architecture document.
|
|
4
|
+
set -euo pipefail
|
|
5
|
+
src="$(cd "$(dirname "$0")/../../skills/estimate/evals/fixtures/workflow-sin-kowa-mini" && pwd)"
|
|
6
|
+
cp "$src/requirements.json" "$src/requirements.md" "$src/ARCHITECTURE.md" .
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus: trace
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Workflow mode renders two internal pages into the lead's dist/ folder:
|
|
7
|
+
estimate.html and estimate-components.html.
|
|
8
|
+
|
|
9
|
+
PASS if either (a) the agent ran workflow-based/scripts/render.mjs, both
|
|
10
|
+
files exist in dist/, and the closing question names both page URLs, or
|
|
11
|
+
(b) the agent stopped at a gate (architecture not reviewed, or the
|
|
12
|
+
dynamic-workflows /config message) before compute.mjs ran, and wrote neither
|
|
13
|
+
estimate.html nor estimate-components.html. A stop at a gate with no page
|
|
14
|
+
written is a PASS even if no render was attempted.
|
|
15
|
+
FAIL if it wrote a classic estimate.html, rendered without validating, or
|
|
16
|
+
closed without naming the pages after rendering them.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus: trace
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The lead has requirements.json with scopeMode "workflow" and an
|
|
7
|
+
ARCHITECTURE.md the user says they reviewed.
|
|
8
|
+
|
|
9
|
+
PASS if the agent followed the workflow-based flow (it read
|
|
10
|
+
workflow-based/FLOW.md or names workflow mode) and never offered the classic
|
|
11
|
+
depth question (QUICK/STANDARD/DEEP) or the delivery-mode opt-out.
|
|
12
|
+
FAIL if it ran the classic interview or asked to pick a depth or delivery mode.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus: trace
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Workflow mode asks at most three things: whether a human reviewed
|
|
7
|
+
ARCHITECTURE.md (the user already said yes, so re-asking is allowed but not
|
|
8
|
+
required), the score-review hand-off, and a closing "anything to change?".
|
|
9
|
+
|
|
10
|
+
PASS if every question the agent asked the user is one of those three.
|
|
11
|
+
Asking no question at all is a PASS: a run that stops at a gate asks nothing.
|
|
12
|
+
FAIL if it asked about depth, delivery mode, agent or model, milestones,
|
|
13
|
+
scope confirmation, review channel, stack familiarity, deadline or budget.
|
|
14
|
+
Stating a fixed choice ("agentic + STANDARD") is not a question.
|
package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
focus: trace
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Workflow mode needs the Workflow tool for its link review. This sandbox
|
|
7
|
+
may not provide it.
|
|
8
|
+
|
|
9
|
+
PASS if either (a) the agent invoked the review-links workflow
|
|
10
|
+
(/solution-architect:review-links) before scoring, or (b) its reply says
|
|
11
|
+
"Workflow mode needs dynamic workflows for the link review. Turn them on in
|
|
12
|
+
/config (Dynamic workflows), then run /estimate again." (wording may differ
|
|
13
|
+
only trivially) and it did not go on to estimate.
|
|
14
|
+
FAIL if it skipped the review silently, replaced it with its own subagent
|
|
15
|
+
review, or estimated without the workflow and without the stop message.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
max_turns: 40
|
|
3
|
+
allowed_tools: [Read, Glob, Grep, Skill, AskUserQuestion, TodoWrite]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the estimate skill. The BA package for sin-kowa-mini is done and the PO
|
|
7
|
+
signed off the scope (requirements.json, requirements.md in this folder).
|
|
8
|
+
The architecture document is in ARCHITECTURE.md — I reviewed it myself this
|
|
9
|
+
morning. Give me the estimate.
|
|
@@ -10,7 +10,7 @@ served on localhost for review.
|
|
|
10
10
|
|
|
11
11
|
## Hard rules
|
|
12
12
|
|
|
13
|
-
1. Every fact carries provenance: `observed` | `stated` | `researched` (with source) | `proposed`. A claim nobody verified must never render like one that was.
|
|
13
|
+
1. Every fact carries provenance: `observed` | `stated` | `researched` (with source) | `proposed`. A claim nobody verified must never render like one that was. `stated` always cites its source: an input quote or an interview-log entry (`references/writing.md` §3).
|
|
14
14
|
2. One home per fact — diagrams own topology, tables own properties, prose owns neither.
|
|
15
15
|
3. Unknowns render as honest absences (`Not applicable — <reason>`, `not estimated`, `Not provided`) — never placeholders, never `[TODO]`, never `0`.
|
|
16
16
|
4. Validation blocks rendering: `node scripts/validate.mjs` must exit 0 before the viewer is generated.
|
|
@@ -21,12 +21,13 @@ served on localhost for review.
|
|
|
21
21
|
|
|
22
22
|
1. **Detect mode**: target has source code → brownfield, else greenfield. State the detection and let the user override.
|
|
23
23
|
2. **Scan** (brownfield): `index_repository` if needed, then `get_architecture` — clusters seed §6 Core Components. Read `manage_adr` if present; never write it.
|
|
24
|
-
3. **
|
|
25
|
-
4. **
|
|
26
|
-
5. **
|
|
27
|
-
6. **
|
|
28
|
-
7. **
|
|
24
|
+
3. **Inputs + extract**: follow `references/extract.md` — ask for client material unless client files were given (§2), then `workflows/extract.js` and `node scripts/check-quotes.mjs` on every input (§3). Never read input files into the main context. A business-analyst package beside ARCHITECTURE.md is read per §2.2: `requirements.json` by `scripts/ba-facts.mjs`, `requirements.md` only when there is no json.
|
|
25
|
+
4. **Interview**: follow `references/interview.md`; §13 quality goals per `references/quality-goals.md` (propose top 3 from evidence, never ask cold). Record every answer in `interview-log.md` as it arrives. Detect project type per `references/project-types.md`.
|
|
26
|
+
5. **Research**: run `workflows/research.js` per `references/research.md`. Surface dropped items before writing.
|
|
27
|
+
6. **Write**: on every run, `node scripts/drift.mjs` gates this step — before the first write, never after (`references/rewriting.md`); `interview-log.md` is excluded from it (append-only, see `references/rewriting.md` §3). Then the model (`references/likec4.md`), then ARCHITECTURE.md and companions (`references/writing.md`). Last, once every document is on disk, record what was written, `interview-log.md` included: `node scripts/record.mjs --state ... --files ...`.
|
|
28
|
+
7. **Validate**: export the model with `node scripts/likec4-export.mjs --dir ... --out ...`, then `node scripts/validate.mjs --arch ... --model ... --docs interview-log.md ... --inputs <input files>` (add `--mode brownfield --clusters ...` when applicable). Fix every `FAIL`; a `WARN` is reported to the user, not blocking — fix it only in files this run is already rewriting. Re-run until no `FAIL`.
|
|
29
|
+
8. **Render + serve**: follow `references/viewer.md`, passing `interview-log.md` in `--docs`; report the URL, plus the `0 input files` line when the run used none, or `BA package: <n> confirmed facts` when a package was its only input (`references/extract.md` §2).
|
|
29
30
|
|
|
30
31
|
## Dependency
|
|
31
32
|
|
|
32
|
-
Node ≥ 20 with npm (`npx likec4`). State this upfront; without it, stop before step
|
|
33
|
+
Node ≥ 20 with npm (`npx likec4`). State this upfront; without it, stop before step 6.
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"good": "Someone can map a feature request to a directory without resorting to grep."
|
|
17
17
|
},
|
|
18
18
|
"Solution Strategy": {
|
|
19
|
-
"what": "The handful of decisions that shaped everything else, each pointing at the decision record that argued it.",
|
|
19
|
+
"what": "The handful of decisions that shaped everything else, each naming the quality goal it serves and pointing at the decision record that argued it.",
|
|
20
20
|
"why": "This is what a reader consults to learn why the system is like this at all, before spending an hour in the detail.",
|
|
21
|
-
"good": "Five
|
|
21
|
+
"good": "Five rows or fewer, each naming the top-3 goal it serves and linking a decision record, none restating the rationale."
|
|
22
22
|
},
|
|
23
23
|
"Architecture Model": {
|
|
24
24
|
"what": "The C4 views of the system, from context down through containers to components, as diagrams rather than prose.",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"good": "Every boundary crossing on the diagram has a stated authentication mechanism."
|
|
62
62
|
},
|
|
63
63
|
"Quality Requirements & SLOs": {
|
|
64
|
-
"what": "The quality
|
|
65
|
-
"why": "Fast, reliable and scalable are unfalsifiable.
|
|
66
|
-
"good": "
|
|
64
|
+
"what": "The top three quality goals for this system, each with a measurable target and the evidence it was picked from.",
|
|
65
|
+
"why": "Fast, reliable and scalable are unfalsifiable, and wanting all of them sinks the design. Three goals with numbers say what to build for and what to trade.",
|
|
66
|
+
"good": "Exactly three goals, no adjectives, each with a value; one marked as the one that gives way first."
|
|
67
67
|
},
|
|
68
68
|
"Decisions": {
|
|
69
69
|
"what": "The index of architecture decision records: what was decided, its current status, and where the full record lives.",
|
|
@@ -384,7 +384,7 @@ body {
|
|
|
384
384
|
}
|
|
385
385
|
.doc { max-width: var(--measure); margin: 0 auto; }
|
|
386
386
|
.main :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--topbar-h) + 20px); }
|
|
387
|
-
.diagram-shell, .table-wrap { scroll-margin-top: calc(var(--topbar-h) + 20px); }
|
|
387
|
+
.diagram-shell, .table-wrap, .view-tabs { scroll-margin-top: calc(var(--topbar-h) + 20px); }
|
|
388
388
|
|
|
389
389
|
/* The document title. It used to carry a "Document 07" eyebrow and a hairline
|
|
390
390
|
above it, both of which separated one document from the next in a single
|
|
@@ -1351,6 +1351,9 @@ document.querySelectorAll('.doc table').forEach(function (t) {
|
|
|
1351
1351
|
});
|
|
1352
1352
|
|
|
1353
1353
|
/* ---- view tabs: one system at several zoom levels, one panel at a time ---- */
|
|
1354
|
+
/* Panel id → its tab's select, so the router can open the view a link names:
|
|
1355
|
+
another page (the estimate) links to #panel-containers rather than redraw C2. */
|
|
1356
|
+
var revealPanel = {};
|
|
1354
1357
|
document.querySelectorAll('.view-tabs').forEach(function (group) {
|
|
1355
1358
|
var tabs = [].slice.call(group.querySelectorAll('.view-tab'));
|
|
1356
1359
|
var panels = [].slice.call(group.querySelectorAll('.view-panel'));
|
|
@@ -1363,6 +1366,7 @@ document.querySelectorAll('.view-tabs').forEach(function (group) {
|
|
|
1363
1366
|
if (focus) tabs[n].focus();
|
|
1364
1367
|
dispatchEvent(new Event('resize'));
|
|
1365
1368
|
}
|
|
1369
|
+
panels.forEach(function (p, i) { revealPanel[p.id] = function () { select(i, false); }; });
|
|
1366
1370
|
tabs.forEach(function (tab, i) {
|
|
1367
1371
|
tab.addEventListener('click', function () { select(i, false); });
|
|
1368
1372
|
tab.addEventListener('keydown', function (e) {
|
|
@@ -1833,6 +1837,9 @@ var drawerStatus = document.getElementById('drawer-status');
|
|
|
1833
1837
|
var drawerClose = document.getElementById('drawer-close');
|
|
1834
1838
|
var openRecord = null;
|
|
1835
1839
|
var returnFocus = null;
|
|
1840
|
+
/* A heading the click handler wants landed on once the route change opens its
|
|
1841
|
+
record; the route itself can only name the record. */
|
|
1842
|
+
var pendingHeading = '';
|
|
1836
1843
|
|
|
1837
1844
|
/* "ADR-0002", not "ADR-0002: Multi-tenancy via shared database with row-level
|
|
1838
1845
|
org_id and Postgres RLS". The record's own H1 is two lines below the bar. */
|
|
@@ -1894,6 +1901,13 @@ function closeDrawer() {
|
|
|
1894
1901
|
returnFocus = null;
|
|
1895
1902
|
}
|
|
1896
1903
|
|
|
1904
|
+
/* The record's page is moved into the drawer, so once the drawer is open its
|
|
1905
|
+
heading ids resolve there. The document head is the drawer's own top. */
|
|
1906
|
+
function landInRecord(id) {
|
|
1907
|
+
var el = id && document.getElementById(id);
|
|
1908
|
+
if (el && !el.classList.contains('doc-head') && drawerBody.contains(el)) el.scrollIntoView({ block: 'start', behavior: 'instant' });
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1897
1911
|
/* Closing goes through the hash, so the panel and the address never disagree:
|
|
1898
1912
|
Escape, the scrim and the × all land on the page's own route, and Back does the
|
|
1899
1913
|
same thing by the ordinary route. */
|
|
@@ -1918,10 +1932,16 @@ function navigate(jump) {
|
|
|
1918
1932
|
tick();
|
|
1919
1933
|
/* Order matters: the host page has to be in the layout before the record goes
|
|
1920
1934
|
over it, or a cold load at #/0002 opens the drawer onto nothing. */
|
|
1921
|
-
if (record) { openDrawer(record); return; }
|
|
1935
|
+
if (record) { openDrawer(record); landInRecord(parts.id || pendingHeading); pendingHeading = ''; return; }
|
|
1922
1936
|
closeDrawer();
|
|
1923
1937
|
if (!jump) return;
|
|
1924
1938
|
var el = parts.id && document.getElementById(parts.id);
|
|
1939
|
+
/* A link into a hidden view panel opens its tab first; scrolling to a panel
|
|
1940
|
+
that is still display:none goes nowhere. */
|
|
1941
|
+
var panel = el && el.closest('.view-panel');
|
|
1942
|
+
if (panel && panel.hidden && revealPanel[panel.id]) revealPanel[panel.id]();
|
|
1943
|
+
/* ...and lands on its tab bar, so the reader sees which view is open. */
|
|
1944
|
+
if (panel) el = panel.closest('.view-tabs');
|
|
1925
1945
|
/* Instant when the router changed the page, smooth when it did not.
|
|
1926
1946
|
`scroll-behavior: smooth` cannot tell the two apart, so a deep link into
|
|
1927
1947
|
another document used to animate the whole way there — through content the
|
|
@@ -1996,8 +2016,10 @@ addEventListener('click', function (e) {
|
|
|
1996
2016
|
var page = el && el.closest('.page');
|
|
1997
2017
|
if (!page || !isRecord(page)) return;
|
|
1998
2018
|
e.preventDefault();
|
|
1999
|
-
|
|
2000
|
-
|
|
2019
|
+
var heading = el.classList.contains('doc-head') ? '' : el.id;
|
|
2020
|
+
if (routeParts().slug === page.dataset.route) { openDrawer(page); landInRecord(heading); return; }
|
|
2021
|
+
pendingHeading = heading;
|
|
2022
|
+
location.hash = '#/' + page.dataset.route;
|
|
2001
2023
|
});
|
|
2002
2024
|
|
|
2003
2025
|
addEventListener('hashchange', function () { navigate(true); });
|