@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
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
"id": 0,
|
|
6
6
|
"name": "unknowns-gate-interview",
|
|
7
7
|
"prompt": "we've got a compliance audit in three weeks and the auditors want \"architecture documentation\" for our internal expense reimbursement tool. I don't have the repo checked out on this machine and I'm not going to get VPN access before Thursday. can you write the architecture doc - C4 diagrams, ADRs, the whole set? it's a Node app, about four years old, and the dev who originally built it left last year.",
|
|
8
|
-
"expected_output": "The skill stops before writing. It states the detected mode (greenfield/no source available, overridable) and the Node >= 20 + npx likec4 dependency up front, then asks the human the unknowables via AskUserQuestion cards - at minimum the deployment target, the quality
|
|
8
|
+
"expected_output": "The skill stops before writing. It states the detected mode (greenfield/no source available, overridable) and the Node >= 20 + npx likec4 dependency up front, then asks the human the unknowables via AskUserQuestion cards - at minimum the deployment target, the top-3 quality goals card (or its open-question fallback on thin input). No ARCHITECTURE.md, no .c4 model, no ADRs are written in this turn, and no component, datastore or cloud service is asserted as a fact about this system.",
|
|
9
9
|
"files": [],
|
|
10
10
|
"assertions": [
|
|
11
11
|
"no-artifacts-written-before-answers: no ARCHITECTURE.md, no docs/architecture/model/*.c4, no docs/adr/*.md and no threat-model.md exists on disk after this turn - the skill stopped at the interview instead of writing",
|
|
12
12
|
"no-invented-components: the response names zero concrete components, datastores, queues or cloud services as belonging to this system (no 'Postgres', 'Redis', 'API Gateway', 'S3', 'Express API' etc. stated as fact); any technology mentioned appears only inside an explicit question or an option the user must confirm",
|
|
13
|
-
"asks-
|
|
13
|
+
"asks-quality-goals-from-evidence: if the turn ends at the client-inputs card (extract.md §2 - the run's first call, on its own), this passes when no fixed availability or RPO/RTO question was asked; otherwise the questions include the target deployment environment AND a §13 quality-goals card; with this thin prompt the card either proposes candidates each backed by a quote from the prompt (e.g. \"compliance audit\") or, lacking 3 quoted candidates, asks the open 'which quality matters most, with a measurable target' question - it never asks a fixed availability or RPO/RTO question for a goal nobody raised",
|
|
14
14
|
"asks-about-data-sensitivity-or-tags-it: the PII/data-sensitivity of reimbursement data is either asked about, or any statement made about it is explicitly tagged 'stated'/'proposed' or rendered as 'Not provided - <reason>' - never asserted bare",
|
|
15
15
|
"mode-and-dependency-stated: the response states the detected mode (brownfield vs greenfield) as overridable AND states the Node >= 20 / npx likec4 dependency before proposing to write anything",
|
|
16
|
-
"question-budget-respected: the interview stays within 12 questions total, delivered as AskUserQuestion cards with at most 4 options per card and at most 3 cards per call"
|
|
16
|
+
"question-budget-respected: the interview stays within 12 questions total, delivered as AskUserQuestion cards with at most 4 options per card and at most 3 cards per call",
|
|
17
|
+
"asks-for-inputs-first: the first AskUserQuestion call is a single card asking for client material (call transcripts, emails, notes or specs), its first option 'Added to inputs/ — continue (Recommended)', and it comes before any §13 quality-goals card"
|
|
17
18
|
]
|
|
18
19
|
},
|
|
19
20
|
{
|
|
@@ -42,7 +43,8 @@
|
|
|
42
43
|
"provenance-on-every-row: every table in ARCHITECTURE.md except the §14 Decisions and §16 Glossary indexes has 'src' as its last column header, and every row's src value is exactly one of observed / stated / researched [<source>] / proposed - the pre-fed interview answers (SLO, constraints, owner) are 'stated', the code-derived rows are 'observed'",
|
|
43
44
|
"deployment-not-applicable-cli: §10 Deployment and Infrastructure renders the CLI/library variant as an honest absence ('Not applicable - no deployment: distributed as a binary/package') and does NOT invent containers, environments or a CI/CD pipeline table for this package",
|
|
44
45
|
"elections-frontmatter-complete: ARCHITECTURE.md frontmatter has electedDocs as a one-line JSON array with all four entries (threat-model, interface-contract, estimation, domain-overview), each with a boolean 'elected' and a non-empty 'reason' when false - estimation is elected:false because the user declined estimates",
|
|
45
|
-
"likec4-model-and-embed-markers: docs/architecture/model/ contains .c4 source declaring views named index, containers and components-<container>; §5/§7/§10 embed them via '<!-- likec4:view <id> -->' markers, and any mermaid appears only in §8 (ER) and §12 (DFD) - never a hand-drawn mermaid stand-in for a modeled C4 view"
|
|
46
|
+
"likec4-model-and-embed-markers: docs/architecture/model/ contains .c4 source declaring views named index, containers and components-<container>; §5/§7/§10 embed them via '<!-- likec4:view <id> -->' markers, and any mermaid appears only in §8 (ER) and §12 (DFD) - never a hand-drawn mermaid stand-in for a modeled C4 view",
|
|
47
|
+
"top3-from-preanswered-prompt: §13 has columns Goal · Target · Brief says · src and exactly 3 rows; 'Reliability' (zero partial installs across 100 interrupted runs) is a stated goal with that target; no availability or RPO/RTO row is presented as a goal (the user said n/a); any slot the prompt does not support is either a 'proposed' goal with a quote from the prompt or 'Not provided - <reason>'; no AskUserQuestion card is shown"
|
|
46
48
|
]
|
|
47
49
|
},
|
|
48
50
|
{
|
|
@@ -56,10 +58,52 @@
|
|
|
56
58
|
"assertions": [
|
|
57
59
|
"no-observed-provenance-in-greenfield: no table row or prose tag anywhere in the doc set carries provenance 'observed' - there is no code to observe - and §3 Project Structure renders exactly one 'Not applicable - <reason>' line rather than an invented directory tree",
|
|
58
60
|
"no-invented-components: every component, datastore, queue and external system named in §6/§8/§9/§10 traces to an entity the spec fixture actually names (Postmark inbound webhook, Zendesk Tickets API, Anthropic Messages API, audit-log gRPC service, SQS + DLQ, RDS PostgreSQL 16, ECS Fargate, ALB, Secrets Manager, KMS) or is tagged 'proposed' - no unclaimed vendor, service or table is presented as decided",
|
|
59
|
-
"stated-vs-proposed-split: facts lifted from the spec (the 45s p99, 99.5% availability, 5min RPO / 4h RTO, eu-central-1, the $1,400/month ceiling, the 0.72 confidence floor, the 30-day body retention)
|
|
61
|
+
"stated-vs-proposed-split: facts lifted from the spec (the 45s p99, 99.5% availability, 5min RPO / 4h RTO, eu-central-1, the $1,400/month ceiling, the 0.72 confidence floor, the 30-day body retention) carry `stated` with a citation wherever they appear — in the row's src, or inline right after the value when the row itself is proposed (writing.md §3, D21); every design decision the skill originated is tagged 'proposed'; any 'researched' row is followed by a bracketed source",
|
|
60
62
|
"threat-model-llm-variant: threat-model.md exists, is framed on OWASP LLM Top 10 2025 (not generic STRIDE) as project-types.md prescribes for an AI/LLM app, and contains all four parts - a DFD, named trust boundaries, a threat list including prompt injection from the email body, and a mitigation per threat",
|
|
61
63
|
"mermaid-er-parses-and-matches: §8's ```mermaid erDiagram block parses as valid mermaid and every entity name in it appears as a row in the §8 Data Stores table (and vice versa); §12's DFD is likewise a parsing mermaid block - neither section uses a LikeC4 view marker",
|
|
62
|
-
"elections-recorded-with-reasons: frontmatter electedDocs is a one-line JSON array with all four companions; threat-model is elected:true, estimation is elected:false with a reason naming the user's declining it, and every other elected:false entry carries a non-empty reason"
|
|
64
|
+
"elections-recorded-with-reasons: frontmatter electedDocs is a one-line JSON array with all four companions; threat-model is elected:true, estimation is elected:false with a reason naming the user's declining it, and every other elected:false entry carries a non-empty reason",
|
|
65
|
+
"top3-from-spec: §13 has exactly 3 goal rows from the quality-goals catalogue, each with a 'Brief says' quote found in triage-service-spec.md, exactly one marked '(gives way first)', and an 'Also considered' list naming at least one rejected candidate with its reason",
|
|
66
|
+
"strategy-serves-goals: §4 is a Decision · Serves · ADR · src table; every Serves name is one of the §13 goals; every §13 goal is served by at least one row; node scripts/validate.mjs prints no 'FAIL [strategy]' line"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": 3,
|
|
71
|
+
"name": "transcript-citations",
|
|
72
|
+
"prompt": "greenfield - new ticketing platform for Lumen Tickets, no code yet. The kickoff call transcript (C1-kickoff-call.txt, 2026-09-10) and Maya's intro email (E1-intro-email.md, 2026-09-08) are in this folder - treat them as the client inputs. I'm Sam, the PO. Don't ask me anything: take your recommended option on every card and log it. Write ARCHITECTURE.md and ADRs; don't start the viewer.",
|
|
73
|
+
"expected_output": "The skill extracts facts from both files with workflows/extract.js and verifies them with check-quotes.mjs before writing, never reading the files wholesale into its own reasoning. ARCHITECTURE.md cites every stated fact: input facts as stated [C1 · 2026-09-10](...) \"exact quote\", answers as stated [Qn · date](interview-log.md#qn). interview-log.md exists. validate.mjs prints no FAIL and no 'stated has no citation' warning.",
|
|
74
|
+
"files": [
|
|
75
|
+
"plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/C1-kickoff-call.txt",
|
|
76
|
+
"plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/E1-intro-email.md"
|
|
77
|
+
],
|
|
78
|
+
"assertions": [
|
|
79
|
+
"extract-then-check: the run invokes workflows/extract.js on both input files and runs scripts/check-quotes.mjs on its output before any interview card or document is written",
|
|
80
|
+
"spike-goal-quoted: §13 includes Spike handling with a 'Brief says' quote copied exactly from C1 ('ten times the orders in the first five minutes')",
|
|
81
|
+
"seat-reliability-from-email: Reliability is a §13 goal or an 'Also considered' line, backed by the E1 quote 'never sell the same seat twice'",
|
|
82
|
+
"vague-speed-not-invented: no numeric speed target is attributed to C1; 'Checkout must be fast' leads to a Speed target that is proposed, logged as an interview answer, or 'Not provided - ...'",
|
|
83
|
+
"azure-constraint-cited: §2 lists Azure hosting as stated [C1 · 2026-09-10](...) with the quote 'We pay for Azure already, so it has to run there'",
|
|
84
|
+
"stripe-not-top3: Security is not in the §13 top 3; it appears under 'Also considered' with Stripe handling card data as the reason",
|
|
85
|
+
"noise-absent: nothing about jazz or the cafe appears in any written document",
|
|
86
|
+
"every-stated-cites: every stated src cell in ARCHITECTURE.md carries a [label](path) citation, and interview-log.md has a ### Qn entry for each answer cited"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": 4,
|
|
91
|
+
"name": "ba-package-citations",
|
|
92
|
+
"prompt": "greenfield - court booking app for Courtside Club, no code yet. The business-analyst package (requirements.json and requirements.md) is in this folder; write ARCHITECTURE.md beside it. I'm Sam, the PO. Don't ask me anything: take your recommended option on every card and log it. Write ARCHITECTURE.md and ADRs; don't start the viewer.",
|
|
93
|
+
"expected_output": "The skill reads requirements.json with scripts/ba-facts.mjs, never extracts requirements.md, cites confirmed rows as stated [<id> · <source>](requirements.json), keeps assumed and recommended rows out of stated, and validates with requirements.json in --inputs with no FAIL.",
|
|
94
|
+
"files": [
|
|
95
|
+
"plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.json",
|
|
96
|
+
"plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.md"
|
|
97
|
+
],
|
|
98
|
+
"assertions": [
|
|
99
|
+
"json-by-script: the run invokes scripts/ba-facts.mjs on requirements.json and never invokes workflows/extract.js on requirements.md",
|
|
100
|
+
"md-never-cited: no citation in any written document points at requirements.md",
|
|
101
|
+
"confirmed-cited-by-id: the double-booking rule is cited stated [FR-002 · kickoff call 2026-09-20](requirements.json) with no quote",
|
|
102
|
+
"constraint-cited: AWS eu-west-1 appears in §2 cited stated [CON-001 · client IT policy](requirements.json)",
|
|
103
|
+
"assumed-not-stated: the 99.95% uptime figure is never on a stated row or citation; it is proposed, asked, or absent",
|
|
104
|
+
"recommended-not-stated: the online deposit is never cited stated [FR-003 ...]",
|
|
105
|
+
"spike-goal-from-package: §13 includes Spike handling backed by the NFR-002 text about Monday 7am",
|
|
106
|
+
"validate-clean: validate.mjs runs with requirements.json in --inputs and prints no FAIL"
|
|
63
107
|
]
|
|
64
108
|
}
|
|
65
109
|
]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"lead": "courtside-club",
|
|
4
|
+
"status": "READY_FOR_ARCHITECTURE",
|
|
5
|
+
"depth": "QUICK",
|
|
6
|
+
"updated": "2026-10-01",
|
|
7
|
+
"mode": "greenfield",
|
|
8
|
+
"context": { "problem": "Members book padel courts by phone; the front desk double-books at peak hours.", "goals": [{ "id": "G-001", "goal": "Members book courts themselves without double-booking" }] },
|
|
9
|
+
"actors": [{ "id": "ACT-001", "name": "Member", "type": "human", "goal": "book a court in under a minute", "painPoints": ["phone line busy at 6pm"] }],
|
|
10
|
+
"workflows": [],
|
|
11
|
+
"requirements": [
|
|
12
|
+
{ "id": "FR-001", "text": "Members book up to 4 courts per week.", "label": "confirmed", "source": "kickoff call 2026-09-20", "scope": "in" },
|
|
13
|
+
{ "id": "FR-002", "text": "Two members can never hold the same court and hour.", "label": "confirmed", "source": "kickoff call 2026-09-20", "scope": "in" },
|
|
14
|
+
{ "id": "FR-003", "text": "Members pay a deposit online when booking.", "label": "recommended", "source": "BA recommendation", "scope": "in" }
|
|
15
|
+
],
|
|
16
|
+
"businessRules": [],
|
|
17
|
+
"scenarios": [],
|
|
18
|
+
"nfrs": [
|
|
19
|
+
{ "id": "NFR-001", "area": "availability", "text": "The booking page is up 99.95% of the time.", "label": "assumed" },
|
|
20
|
+
{ "id": "NFR-002", "area": "load", "text": "Bookings for the week open Monday 7am and most members book in the first ten minutes.", "label": "confirmed", "source": "kickoff call 2026-09-20" }
|
|
21
|
+
],
|
|
22
|
+
"integrations": [{ "id": "INT-001", "system": "Club membership spreadsheet", "direction": "read", "label": "confirmed", "source": "PO brief" }],
|
|
23
|
+
"data": [{ "id": "DAT-001", "entity": "Booking", "sensitivity": "personal", "volume": "about 900 per week", "label": "confirmed", "source": "PO brief" }],
|
|
24
|
+
"constraints": [{ "id": "CON-001", "text": "Must run in AWS eu-west-1.", "source": "client IT policy" }],
|
|
25
|
+
"assumptions": [{ "id": "ASM-001", "text": "Members log in with their email address.", "impact": "medium", "status": "unconfirmed" }],
|
|
26
|
+
"openQuestions": [{ "id": "Q-001", "question": "Should members pay a deposit online when booking?", "priority": "P2", "status": "open", "affects": ["FR-003"], "architectureBlocker": false }],
|
|
27
|
+
"conflicts": [],
|
|
28
|
+
"scope": { "out": ["coaching sessions"], "future": [], "unconfirmed": [] },
|
|
29
|
+
"ai": null,
|
|
30
|
+
"readiness": { "overall": 80, "areas": { "businessContext": 80, "workflows": 80, "rules": 80, "integrations": 80, "data": 80, "nfrs": 80 }, "blockers": [] }
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Courtside Club — requirements
|
|
2
|
+
|
|
3
|
+
## Part 1 — Context
|
|
4
|
+
|
|
5
|
+
Members book padel courts by phone; the front desk double-books at peak hours.
|
|
6
|
+
|
|
7
|
+
## Part 3 — Requirements
|
|
8
|
+
|
|
9
|
+
| ID | Requirement | Label | Scope |
|
|
10
|
+
| --- | --- | --- | --- |
|
|
11
|
+
| FR-001 | Members book up to 4 courts per week. | confirmed | in |
|
|
12
|
+
| FR-002 | Two members can never hold the same court and hour. | confirmed | in |
|
|
13
|
+
| FR-003 | Members pay a deposit online when booking. | recommended | in |
|
|
14
|
+
|
|
15
|
+
NFR-001 (assumed): The booking page is up 99.95% of the time.
|
|
16
|
+
NFR-002 (confirmed): Bookings for the week open Monday 7am and most members book in the first ten minutes.
|
|
17
|
+
CON-001: Must run in AWS eu-west-1.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Kickoff call - Lumen Tickets - 2026-09-10
|
|
2
|
+
Participants: Maya Chen (founder, Lumen Tickets), Sam (PO, Code Engine Studio)
|
|
3
|
+
|
|
4
|
+
Sam: Tell me what happens when a big show goes on sale.
|
|
5
|
+
Maya: We open sales at 10am sharp. For a headline act we get ten times the orders in the first five minutes, and last spring the old site just fell over.
|
|
6
|
+
Sam: What did that cost you?
|
|
7
|
+
Maya: About forty thousand dollars in refunds and a lot of angry fans.
|
|
8
|
+
Sam: How do customers pay?
|
|
9
|
+
Maya: Payments go through Stripe, we don't want to touch card data ourselves.
|
|
10
|
+
Sam: Any hosting preference?
|
|
11
|
+
Maya: We pay for Azure already, so it has to run there.
|
|
12
|
+
Maya: Sorry, the cafe downstairs is playing jazz again, ignore that.
|
|
13
|
+
Sam: Anything on speed?
|
|
14
|
+
Maya: Checkout must be fast. People abandon if it hangs.
|
|
15
|
+
Sam: Budget?
|
|
16
|
+
Maya: We are small. Running costs need to stay under two thousand dollars a month outside sale days.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
From: Maya Chen
|
|
2
|
+
Date: 2026-09-08
|
|
3
|
+
Subject: Ticketing rebuild
|
|
4
|
+
|
|
5
|
+
Hi Sam,
|
|
6
|
+
|
|
7
|
+
As discussed, our box office staff still reconcile sales in a spreadsheet every night. We want seat inventory to be the single source of truth so we never sell the same seat twice.
|
|
8
|
+
|
|
9
|
+
Maya
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Extract — client inputs to quoted facts
|
|
2
|
+
|
|
3
|
+
Read at SKILL.md step 3, before the interview, on every run: it asks for
|
|
4
|
+
client material (§2) and turns it into quoted facts (§3).
|
|
5
|
+
|
|
6
|
+
## 1. Inputs
|
|
7
|
+
|
|
8
|
+
- Client files live in `inputs/` beside ARCHITECTURE.md, unless the user
|
|
9
|
+
points elsewhere — then cite them where they are.
|
|
10
|
+
- Each file has an ID: `C` call, `E` email, `N` note, `D` other document,
|
|
11
|
+
numbered per kind in date order (`C1`, `C2`, `E1`). Named
|
|
12
|
+
`<ID>-<slug>.<txt|md>` when the skill files them; an existing name is
|
|
13
|
+
kept and the ID recorded on the `**Inputs**` line of `interview-log.md` instead.
|
|
14
|
+
- The skill reads inputs, never edits them (hard rule 5: not ours).
|
|
15
|
+
|
|
16
|
+
## 2. Ask for inputs
|
|
17
|
+
|
|
18
|
+
Evidence before questions: a fact quoted from a client file is checked word
|
|
19
|
+
for word, while a fact from an interview answer is only as good as the
|
|
20
|
+
answer. So unless client files were given or `inputs/` already holds files, the
|
|
21
|
+
run's first card asks for them. It is one card in its own `AskUserQuestion`
|
|
22
|
+
call, and it counts toward the interview's 12-question cap:
|
|
23
|
+
|
|
24
|
+
- Question: "Client material makes this document stronger: every fact taken
|
|
25
|
+
from it carries a checked quote. Do you have call transcripts, emails,
|
|
26
|
+
notes or specs?"
|
|
27
|
+
- Options, in this order:
|
|
28
|
+
1. `Added to inputs/ — continue (Recommended)` → list `inputs/`, give
|
|
29
|
+
each file its ID (§1), then run §3.
|
|
30
|
+
2. `The brief is in my message — save it` → §2.1, then §3.
|
|
31
|
+
3. `None — interview only` → log the answer. The final report says
|
|
32
|
+
`0 input files: <n> stated facts cite the interview only`.
|
|
33
|
+
- If option 1 is picked but `inputs/` is still empty, say so and continue
|
|
34
|
+
as option 3.
|
|
35
|
+
- A business-analyst package beside ARCHITECTURE.md (§2.2) is client material:
|
|
36
|
+
the card still asks for raw files, with these options instead —
|
|
37
|
+
1. `BA package only — continue (Recommended)` → §2.2 only.
|
|
38
|
+
2. `Added raw client files to inputs/ — use both` → §2.2, then §3 on `inputs/`.
|
|
39
|
+
- Whenever no card is shown (client files given, `inputs/` already holds
|
|
40
|
+
files, or the user said not to ask), a brief in the opening message is
|
|
41
|
+
still saved per §2.1. With no brief and no files, continue as option 3.
|
|
42
|
+
|
|
43
|
+
### 2.1 Saving a brief from chat
|
|
44
|
+
|
|
45
|
+
Write the part of the user's message that describes the project to
|
|
46
|
+
`inputs/N<n>-brief.md`, using the next free `N` number. Copy it exactly as
|
|
47
|
+
the user wrote it: no heading, no summary, no fixes. Date it the day it
|
|
48
|
+
arrived, on the log's `**Inputs**` line (`N1 = brief, 2026-10-14`). From then on it is an input like any other: extracted (§3), never
|
|
49
|
+
edited, never recorded or drift-gated. A later brief gets the next number
|
|
50
|
+
and never overwrites an earlier one.
|
|
51
|
+
|
|
52
|
+
### 2.2 A business-analyst package
|
|
53
|
+
|
|
54
|
+
The business-analyst skill writes `requirements.json` (for machines) and
|
|
55
|
+
`requirements.md` (for people) into the lead folder. Look for them beside
|
|
56
|
+
ARCHITECTURE.md.
|
|
57
|
+
|
|
58
|
+
- **Both present → read the json only.** Run
|
|
59
|
+
`node scripts/ba-facts.mjs --json <path> --out <tmp>/ba.json`. Never extract
|
|
60
|
+
`requirements.md` too: it is the same package, and every fact would arrive twice.
|
|
61
|
+
- **Only `requirements.md` → fallback.** Treat it as input `D<n>` at its own path
|
|
62
|
+
(§1) and run §3 with `ba: true` on its file entry.
|
|
63
|
+
- `ba.json` holds `facts` (the BA marked them `confirmed`) and `proposed`
|
|
64
|
+
(`assumed` or `recommended`). Only `facts` may be `stated` (§5). A `proposed`
|
|
65
|
+
row is written `proposed`, or asked in the interview when it would change a
|
|
66
|
+
decision. The package's assumptions and open questions are never `stated`.
|
|
67
|
+
- Pass the package file to `validate.mjs --inputs` like any input.
|
|
68
|
+
|
|
69
|
+
A package is read whether or not the card was shown. It is an input file, so
|
|
70
|
+
the run never reports `0 input files`; report `BA package: <n> confirmed facts`
|
|
71
|
+
instead.
|
|
72
|
+
|
|
73
|
+
## 3. Run
|
|
74
|
+
|
|
75
|
+
Skip this section when there are no input files.
|
|
76
|
+
|
|
77
|
+
1. Invoke `workflows/extract.js` with
|
|
78
|
+
`args = { files: [{ id, path: <absolute>, date: 'YYYY-MM-DD' }] }`.
|
|
79
|
+
**Never read an input file into the main context yourself.**
|
|
80
|
+
2. Save the returned `facts` as `{ "facts": [...] }` to a temp file and run
|
|
81
|
+
`node scripts/check-quotes.mjs --facts <tmp>/facts.json --out <tmp>/checked.json`.
|
|
82
|
+
3. Exit 1: re-invoke `extract.js` once, with only the files that missed and
|
|
83
|
+
`fix: <that file's misses>` on each. Append the returned facts to
|
|
84
|
+
`checked.json`'s `facts`, run `check-quotes` again on them, and stop.
|
|
85
|
+
Whatever still misses is dropped.
|
|
86
|
+
4. Surface `dropped` (from `extract.js`) and the dropped misses to the user
|
|
87
|
+
before the interview, as research does (`research.md` §4).
|
|
88
|
+
|
|
89
|
+
## 4. Follow-up questions
|
|
90
|
+
|
|
91
|
+
When writing needs something the facts do not cover ("what does C1 say
|
|
92
|
+
about hosting?"), invoke `extract.js` with that one file and
|
|
93
|
+
`question: '<the question>'`, then `check-quotes` its facts. One file, one
|
|
94
|
+
question — never re-extract everything.
|
|
95
|
+
|
|
96
|
+
## 5. Using the facts
|
|
97
|
+
|
|
98
|
+
- A verified fact is `stated`, cited
|
|
99
|
+
`stated [<src> · <date>](<path relative to ARCHITECTURE.md>) "<quote>"`.
|
|
100
|
+
- A `ba-facts` fact is cited by its row id, with no quote:
|
|
101
|
+
`stated [<cite>](<path relative to ARCHITECTURE.md>)`, where `cite` is
|
|
102
|
+
given (`FR-001 · kickoff call 2026-08-20`). A confirmed `quality` row can
|
|
103
|
+
back a quality-goal candidate; its `fact` becomes the `Brief says` cell.
|
|
104
|
+
- Quality-goal candidates (`quality-goals.md`) come from facts whose
|
|
105
|
+
`section` is `quality…`; the quote becomes the `Brief says` cell.
|
|
106
|
+
- Research (`research.md`) gets `statedFacts: [{ claim: fact }]` as before;
|
|
107
|
+
keep each fact's citation yourself and write it back — research never
|
|
108
|
+
changes a citation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interview — question bank, card batching, skip rules
|
|
2
2
|
|
|
3
|
-
Read during the interview phase (SKILL.md step
|
|
3
|
+
Read during the interview phase (SKILL.md step 4). Defines what may be asked, in
|
|
4
4
|
what shape, and when to stay silent instead.
|
|
5
5
|
|
|
6
6
|
## Hard rules
|
|
@@ -10,7 +10,8 @@ what shape, and when to stay silent instead.
|
|
|
10
10
|
3. Never ask what the scan already observed or research already answered — skip
|
|
11
11
|
on sight; don't ask a question only to discard the answer.
|
|
12
12
|
4. Every answer is recorded with provenance `stated` — including confirmations
|
|
13
|
-
of a detected default.
|
|
13
|
+
of a detected default — and written to `interview-log.md` the moment the
|
|
14
|
+
card returns (see "Interview log").
|
|
14
15
|
5. Domain questions (terms, actors, processes, rules) are asked **while the
|
|
15
16
|
mattpocock `domain-modeling` skill is invoked**, so resolved terms land in
|
|
16
17
|
`CONTEXT.md` inline — never batched for later.
|
|
@@ -19,11 +20,12 @@ what shape, and when to stay silent instead.
|
|
|
19
20
|
|
|
20
21
|
| spine section | question | mode | skip when |
|
|
21
22
|
|---|---|---|---|
|
|
23
|
+
| client inputs (`extract.md` §2) | Do you have call transcripts, emails, notes or specs? | both | files were given or `inputs/` already holds files, or the user said not to ask |
|
|
22
24
|
| §1 Goals & Scope | What is the primary goal of this system, and who are its intended users? | both | an existing README/pitch doc/ARCHITECTURE.md already states it |
|
|
23
25
|
| §2 Constraints | What constraints must the architecture respect — budget, compliance regime, timeline, mandated tech or vendor? | both | constraints are already documented (compliance docs, existing ADRs, a constraints file the scan found) |
|
|
24
|
-
| §13 Quality Requirements & SLOs |
|
|
25
|
-
| §13 Quality Requirements & SLOs |
|
|
26
|
-
| §13 Quality Requirements & SLOs |
|
|
26
|
+
| §13 Quality Requirements & SLOs | Quality goals: confirm the proposed top 3 (candidates with quotes, per `quality-goals.md`) | both | the user said not to ask — then propose the top 3 from quotes, no card (`quality-goals.md` §4); otherwise skip only goals the user already named |
|
|
27
|
+
| §13 Quality Requirements & SLOs | Trade-off: which of the three gives way first? | both | fewer than 2 goals, or the user said not to ask (the weakest quote gives way first) |
|
|
28
|
+
| §13 Quality Requirements & SLOs | Target for each picked goal (one card per goal, ≤ 3) | both | the user already gave a measurable target for that goal, or the user said not to ask |
|
|
27
29
|
| CONTEXT.md (terms) | What are the key domain terms in this system, and how do you define each precisely? | greenfield or thin CONTEXT.md | `CONTEXT.md` already has 5 or more resolved terms |
|
|
28
30
|
| DOMAIN-OVERVIEW.md (actors) | Who are the actors/personas that interact with or are affected by this system? | greenfield or thin CONTEXT.md | same as above, or the project is not domain-heavy |
|
|
29
31
|
| DOMAIN-OVERVIEW.md (processes) | What are the key business processes, described as actor-level steps? | greenfield or thin CONTEXT.md | same as above |
|
|
@@ -37,8 +39,13 @@ what shape, and when to stay silent instead.
|
|
|
37
39
|
- Group cards by spine section — one `AskUserQuestion` call per section, not
|
|
38
40
|
one call per question.
|
|
39
41
|
- **Max 3 cards per call.**
|
|
42
|
+
- The client-inputs card (`extract.md` §2) is the run's first call, on its
|
|
43
|
+
own: extraction must finish before any card proposes from evidence.
|
|
40
44
|
- Within a card, the recommended option is listed first and labeled
|
|
41
45
|
`(Recommended)`.
|
|
46
|
+
- §13 is two calls (`quality-goals.md` §3): round 1 = goals + trade-off
|
|
47
|
+
cards, round 2 = one target card per pick. Together ≤ 5 cards of the
|
|
48
|
+
12-question cap (≤ 6 on thin input, `quality-goals.md` §4).
|
|
42
49
|
|
|
43
50
|
## Honest absence
|
|
44
51
|
|
|
@@ -51,3 +58,30 @@ Not provided — <who declined/why>
|
|
|
51
58
|
```
|
|
52
59
|
|
|
53
60
|
Provenance: `stated`.
|
|
61
|
+
|
|
62
|
+
## Interview log
|
|
63
|
+
|
|
64
|
+
`interview-log.md` sits beside ARCHITECTURE.md. One entry per answer,
|
|
65
|
+
written as soon as the card returns:
|
|
66
|
+
|
|
67
|
+
# Interview log
|
|
68
|
+
**Inputs** C1 = <kept file name>
|
|
69
|
+
|
|
70
|
+
### Q3
|
|
71
|
+
**Asked** 2026-10-14 · **Answered by** Truong Vu (PO), on behalf of Trellis
|
|
72
|
+
**Card** Quality goals — "Recommended top 3: Uptime, Integration, Speed"
|
|
73
|
+
**Answer** Confirm top 3
|
|
74
|
+
|
|
75
|
+
- **Inputs** is only needed when an existing input file name is kept (it
|
|
76
|
+
has no `<ID>-<slug>` name); it maps the ID to that name. It also carries
|
|
77
|
+
a chat brief's date (`extract.md` §2.1).
|
|
78
|
+
- Append-only: never passed to the drift gate, recorded at the end of the run.
|
|
79
|
+
- Numbering continues across runs; an existing entry is never edited or
|
|
80
|
+
renumbered — other documents cite it.
|
|
81
|
+
- **Answered by** names the person and role; "on behalf of <client>" when
|
|
82
|
+
the PO answers for the client. An answer given in the user's opening
|
|
83
|
+
message is logged too, with **Card** `— (in the request)`, unless that
|
|
84
|
+
message was saved as a brief (`extract.md` §2.1): then cite the brief's
|
|
85
|
+
quote, and log only answers the brief does not contain.
|
|
86
|
+
- A declined question is logged with **Answer** `declined`, so the
|
|
87
|
+
`Not provided — …` cell that follows can cite it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project Types — detection, elections, table variants
|
|
2
2
|
|
|
3
|
-
Read to detect project type (SKILL.md step
|
|
3
|
+
Read to detect project type (SKILL.md step 4) and to pick per-type companion
|
|
4
4
|
elections and table-column variants when writing (`writing.md`).
|
|
5
5
|
|
|
6
6
|
## Detection
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Quality goals — catalogue, filter, top 3
|
|
2
|
+
|
|
3
|
+
Read during the interview (SKILL.md step 4), before any §13 card. Defines
|
|
4
|
+
which quality goals may be proposed, how a candidate earns a place, and how
|
|
5
|
+
the top 3 are confirmed. Method from *Fundamentals of Software Architecture*
|
|
6
|
+
(Richards & Ford, ch. 4–5), in our own words.
|
|
7
|
+
|
|
8
|
+
## 1. Catalogue
|
|
9
|
+
|
|
10
|
+
Propose only these names, spelled exactly as here — §4 `Serves` and the
|
|
11
|
+
validator match on them.
|
|
12
|
+
|
|
13
|
+
| Goal | Book term | Changes the design when… |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| Speed | performance | a user waits on a step with a number attached |
|
|
16
|
+
| Spike handling | elasticity | load jumps by a stated multiple in a short window |
|
|
17
|
+
| Growth | scalability | users or data grow steadily past one machine |
|
|
18
|
+
| Uptime | availability | an outage window costs money or trust |
|
|
19
|
+
| Data recovery | recoverability (RPO/RTO) | lost or late data has a stated cost |
|
|
20
|
+
| Reliability | reliability | a failure must never leave wrong or half-written state |
|
|
21
|
+
| Security | security | data or actions need protection beyond standard login |
|
|
22
|
+
| Integration | interoperability | a named external system is the source of record |
|
|
23
|
+
| Low cost | cost | a budget or running-cost ceiling is stated |
|
|
24
|
+
| Ease of change | evolvability | rules, partners or products change often |
|
|
25
|
+
| Simplicity | simplicity | a small team or short timeline must maintain it |
|
|
26
|
+
|
|
27
|
+
## 2. Filter — what makes a candidate
|
|
28
|
+
|
|
29
|
+
A goal is a candidate only when both hold:
|
|
30
|
+
|
|
31
|
+
1. **The input shows it** — an exact quote from the user's message, a
|
|
32
|
+
document they supplied, or the code scan. No quote, no candidate.
|
|
33
|
+
2. **It changes the design** — something must be built differently for it.
|
|
34
|
+
A goal every system has but that needs nothing special (card payments
|
|
35
|
+
handled by the payment provider → Security) is not a candidate; it goes
|
|
36
|
+
to "Also considered" with that reason.
|
|
37
|
+
|
|
38
|
+
Show 4–6 candidates, never the whole catalogue. Recommend 3, unranked.
|
|
39
|
+
|
|
40
|
+
## 3. Cards
|
|
41
|
+
|
|
42
|
+
Skip both rounds when the user said not to ask (§4).
|
|
43
|
+
|
|
44
|
+
Round 1 — one `AskUserQuestion` call, two cards:
|
|
45
|
+
|
|
46
|
+
- **Quality goals.** Question text lists each candidate with its quote, ★ on
|
|
47
|
+
the recommended 3. Options: `Confirm top 3 (Recommended)` · `Swap in
|
|
48
|
+
<strongest runner-up>` · `Swap in <second runner-up>`. Further runners-up
|
|
49
|
+
stay in the question text; the user reaches them through Other.
|
|
50
|
+
- **Trade-off.** "If budget forces it, which gives way first?" Options: the
|
|
51
|
+
three picks, the one with the weakest quote first and `(Recommended)`.
|
|
52
|
+
|
|
53
|
+
Round 2 — one call, one card per pick (≤ 3): "<Goal> target?" Options: two
|
|
54
|
+
measurable targets drawn from the input (recommended first), then `No
|
|
55
|
+
target yet`.
|
|
56
|
+
|
|
57
|
+
## 4. Thin input and pre-answered goals
|
|
58
|
+
|
|
59
|
+
- Fewer than 3 candidates: round 1 carries ONE open card — "Which qualities
|
|
60
|
+
matter most for this system (up to <n>), each with a measurable target?"
|
|
61
|
+
(<n> = empty slots) — answered through Other. Its answer fills every
|
|
62
|
+
empty slot it can. When the
|
|
63
|
+
picks are not known in round 1, the trade-off card moves to round 2 with
|
|
64
|
+
the target cards (still max 3 cards per call; split into a second call if
|
|
65
|
+
needed). §13 never exceeds 6 cards of the 12-question cap.
|
|
66
|
+
- A goal the user already named in their message is answered — no card for
|
|
67
|
+
it (interview.md hard rule 3); its Target, when given, is `stated`.
|
|
68
|
+
- The user said not to ask ("don't ask me any"): no card. Fill a slot
|
|
69
|
+
only with a candidate that passes §2 on its own quote — never pad to 3.
|
|
70
|
+
The weakest quote gives way first. Target from the input, else `Not
|
|
71
|
+
provided — not asked`.
|
|
72
|
+
- A slot still empty (declined, or fewer than 3 candidates) renders its
|
|
73
|
+
Goal cell as `Not provided — <who declined/why>` (e.g. `Not provided —
|
|
74
|
+
user named only 1`). Never invent a goal to
|
|
75
|
+
fill a row.
|
|
76
|
+
- `No target yet` renders the Target cell `Not provided — no target set`.
|
|
77
|
+
|
|
78
|
+
## 5. Provenance
|
|
79
|
+
|
|
80
|
+
`src` is the source of the Target (writing.md §3a), never of the pick: a
|
|
81
|
+
Target quoted from the input or an answer is `stated`; one you suggested is
|
|
82
|
+
`proposed`. A `Not provided` Target has no source, so its `src` is
|
|
83
|
+
`proposed`, never `stated`. An unconfirmed pick does not change `src`. The trade-off pick
|
|
84
|
+
is recorded only by the "(gives way first)" label.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Research — phase order, workflow invocation, provenance rules
|
|
2
2
|
|
|
3
|
-
Read during the research phase (SKILL.md step
|
|
3
|
+
Read during the research phase (SKILL.md step 5), after the interview and
|
|
4
4
|
before any writing starts. Defines the order research runs in, exactly how to
|
|
5
5
|
invoke `workflows/research.js`, and how provenance travels from its result
|
|
6
6
|
into ARCHITECTURE.md.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rewriting — what is already on disk
|
|
2
2
|
|
|
3
|
-
Read before step
|
|
3
|
+
Read before step 6 writes anything. The gate (§3) runs on every run, before the
|
|
4
4
|
first write; the recording (§5) closes every run. Only what they find differs —
|
|
5
5
|
a first run has no record to compare against, and the documents it finds
|
|
6
6
|
already on disk are, by that fact, not ours.
|
|
@@ -34,6 +34,11 @@ Before writing, run:
|
|
|
34
34
|
List every file this run intends to write. Paths are relative to the state
|
|
35
35
|
file. Exit codes: `0` nothing drifted, `2` something drifted, `1` usage error.
|
|
36
36
|
|
|
37
|
+
`interview-log.md` is not passed to the gate: the skill owns it and only
|
|
38
|
+
appends (step 4 writes it before this gate runs), so the gate would flag the
|
|
39
|
+
skill's own entries as `untracked` or `drifted`. `record.mjs` still records
|
|
40
|
+
it at the end of the run.
|
|
41
|
+
|
|
37
42
|
| verdict | meaning | what to do |
|
|
38
43
|
|---|---|---|
|
|
39
44
|
| `unchanged` | matches what we wrote | write it |
|
|
@@ -59,7 +64,7 @@ No merge. No three-way resolution. Detect, show, ask which wins, obey.
|
|
|
59
64
|
## 5. Recording what you wrote
|
|
60
65
|
|
|
61
66
|
The gate can only compare against a record, and nothing writes that record on
|
|
62
|
-
its own. **The last thing step
|
|
67
|
+
its own. **The last thing step 6 does**, once every document is on disk:
|
|
63
68
|
|
|
64
69
|
node scripts/record.mjs --state <package>/architecture-state.json \
|
|
65
70
|
--files ARCHITECTURE.md docs/architecture/validation-plan.md docs/adr/0001-….md
|
|
@@ -170,16 +170,17 @@ Four steps, in order — each feeds the next:
|
|
|
170
170
|
|
|
171
171
|
| Href | Becomes |
|
|
172
172
|
|---|---|
|
|
173
|
-
| relative path resolving to a document in the set | in-page anchor, fragment
|
|
173
|
+
| relative path resolving to a document in the set | in-page anchor; a fragment naming one of the target's h2/h3 headings jumps to it, any other fragment falls back to the document |
|
|
174
174
|
| any other relative path — `.c4`, a directory, `/site/root` | `.ext-ref` span, path kept in `title` |
|
|
175
|
-
| `#anchor` | untouched |
|
|
175
|
+
| `#anchor` | resolved against this document's own h2/h3 headings; anything else (a view panel, a doc head) untouched |
|
|
176
176
|
| `https:`, `mailto:`, `//host` | untouched |
|
|
177
177
|
|
|
178
178
|
The test is "is this a relative path", not a list of extensions: a `.c4` model
|
|
179
179
|
or a `docs/` directory can never be a document in the set, so it is exactly as
|
|
180
|
-
dead as an unresolved `.md` and reads better as text.
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
dead as an unresolved `.md` and reads better as text. A fragment is resolved to the heading id the page carries: outside
|
|
181
|
+
ARCHITECTURE.md every h2/h3 id is prefixed with its document's file slug
|
|
182
|
+
(`0007-cache__context`), so the same heading in two documents never collides
|
|
183
|
+
and `#context` inside an ADR stays in that ADR.
|
|
183
184
|
|
|
184
185
|
Unwrapping is also a cheap link check: anything that comes out as `.ext-ref`
|
|
185
186
|
either lives outside the set or does not exist. In the EOS set it surfaced
|
|
@@ -236,7 +237,7 @@ recorded next to `SPINE_TITLES` in `section-help.mjs`:
|
|
|
236
237
|
surrounding spaces, so `Goals & Scope` slugifies to `goals--scope` — a shape
|
|
237
238
|
nobody would guess from the JSON key `"Goals & Scope"`.
|
|
238
239
|
- `h2` and `h3` ids share one dedupe registry (`scripts/lib/slug-registry.mjs`)
|
|
239
|
-
|
|
240
|
+
within one document. An `h3` in the spine named "Security" ahead of
|
|
240
241
|
§12 would take the plain `security` slug and demote the real Security
|
|
241
242
|
heading to `security-2`, with nothing to flag it. Heading text does not
|
|
242
243
|
move when an unrelated document changes; a slug can.
|
|
@@ -647,6 +648,9 @@ Four things that are easy to get wrong:
|
|
|
647
648
|
`#doc-adr-0002-multi-tenancy` while the panel says ADR 0002, and neither is what
|
|
648
649
|
somebody would paste. The listener is on `document`, not `.doc`, because an open
|
|
649
650
|
record is no longer inside `.doc` and one record links to another.
|
|
651
|
+
- **A link to a heading inside a record** opens the drawer scrolled to that
|
|
652
|
+
heading (D20). The address bar then shows only the record's route
|
|
653
|
+
`#/<record>`, so a copied URL reopens the record at its top.
|
|
650
654
|
- **`inert` has to come off on close.** It is set on three elements and cleared in
|
|
651
655
|
`closeDrawer`, which runs on every path out — leaving it on makes the whole page
|
|
652
656
|
unfocusable with no visible cause.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Writing — spine contract, one-home-per-fact, src-column rules
|
|
2
2
|
|
|
3
|
-
Read during the writing phase (SKILL.md step
|
|
3
|
+
Read during the writing phase (SKILL.md step 6), after research completes.
|
|
4
4
|
This file is the writer's single source for ARCHITECTURE.md's structure and
|
|
5
5
|
for the conventions every companion and mattpocock-convention file follows.
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ frontmatter: name · repo · team · updated · mode · projectType · docVersio
|
|
|
24
24
|
1 Goals & Scope
|
|
25
25
|
2 Constraints
|
|
26
26
|
3 Project Structure brownfield only: fs-generated tree depth ≤2 + boundary map
|
|
27
|
-
4 Solution Strategy ≤5
|
|
27
|
+
4 Solution Strategy table, ≤5 rows: Decision · Serves · ADR · src; never restates rationale
|
|
28
28
|
5 Architecture Model LikeC4 C1/C2/C3 views, no prose
|
|
29
29
|
6 Core Components table: responsibility, tech, deploy unit, key paths, context, invariants
|
|
30
30
|
7 Runtime Behaviour 2–4 LikeC4 dynamic views, named flows only
|
|
@@ -35,7 +35,7 @@ frontmatter: name · repo · team · updated · mode · projectType · docVersio
|
|
|
35
35
|
11 Crosscutting Concepts observability, error handling, validation, config/secrets,
|
|
36
36
|
auth mechanics, testing strategy
|
|
37
37
|
12 Security mermaid DFD + trust boundaries, authz model, link to threat model
|
|
38
|
-
13 Quality Requirements & SLOs
|
|
38
|
+
13 Quality Requirements & SLOs table, 3 rows: Goal · Target · Brief says · src; + "Also considered" list
|
|
39
39
|
14 Decisions generated index of docs/adr/ (root + per-context)
|
|
40
40
|
15 Risks & Technical Debt
|
|
41
41
|
16 Glossary generated from all CONTEXT.md files; omitted if <5 terms, and says so
|
|
@@ -116,10 +116,52 @@ two homes is a defect, not redundancy:
|
|
|
116
116
|
- Values are one of the four provenance words: `observed` · `stated` ·
|
|
117
117
|
`researched` · `proposed`. `researched` is always followed by a bracketed
|
|
118
118
|
source: `researched [source]`.
|
|
119
|
+
- `stated` is always followed by its citation:
|
|
120
|
+
- from a client input: `stated [C1 · 2026-09-10](inputs/C1-kickoff-call.txt) "exact quote"` —
|
|
121
|
+
the quote copied from a fact `check-quotes.mjs` verified, in straight
|
|
122
|
+
double quotes; if the span holds double quotes itself, quote a shorter span without double quotes or `|` (a pipe splits the table cell);
|
|
123
|
+
- from the interview: `stated [Q3 · 2026-10-14](interview-log.md#q3)` — no quote.
|
|
124
|
+
- from a business-analyst package: `stated [FR-001 · kickoff call 2026-08-20](requirements.json)` —
|
|
125
|
+
row id and the BA's source, no quote. `validate.mjs` fails an id that is not
|
|
126
|
+
in the package or a row the BA did not mark confirmed.
|
|
127
|
+
The path is relative to ARCHITECTURE.md. `validate.mjs` checks the quote
|
|
128
|
+
word for word; a bare `stated` is a `WARN`.
|
|
129
|
+
- A row's `src` covers the whole row. When a `proposed` (or `researched`)
|
|
130
|
+
row carries a value the client stated — a threshold, a limit, a name —
|
|
131
|
+
cite that value in its cell, right after it, and leave the row's tag
|
|
132
|
+
alone: `applies the 0.72 floor (stated [D1 · 2026-10-01](inputs/D1-spec.md) "confidence below 0.72")`.
|
|
133
|
+
`validate.mjs` checks an inline quote exactly like one in `src`. Never
|
|
134
|
+
re-tag the row `stated` to keep the value: the design is still yours.
|
|
135
|
+
- In the viewer an interview citation jumps to its answer (`#q3`) in the log; an input citation
|
|
136
|
+
shows as text with its path on hover (inputs are not part of the page).
|
|
119
137
|
- Generated-index tables are exempt: `Decisions` (§14) and `Glossary` (§16)
|
|
120
138
|
carry no `src` column — they're derived from `docs/adr/` and `CONTEXT.md`
|
|
121
139
|
files, not asserted facts.
|
|
122
140
|
|
|
141
|
+
## 3a. §4 and §13 — the top-3 tie
|
|
142
|
+
|
|
143
|
+
- **§13** has exactly 3 rows, columns `Goal · Target · Brief says · src`.
|
|
144
|
+
Goal names come from `quality-goals.md` §1, spelled exactly. One Goal cell
|
|
145
|
+
ends ` (gives way first)` when there are 2+ goals. An empty slot is a row
|
|
146
|
+
whose Goal is `Not provided — <reason>`. `Brief says` is the quote the goal
|
|
147
|
+
was picked from; `src` is the source of the Target.
|
|
148
|
+
- Under the table, `Also considered:` — one bullet per runner-up or rejected
|
|
149
|
+
candidate, with the reason, ending in its backticked provenance word.
|
|
150
|
+
- **§4** is a table, ≤ 5 rows, `Decision · Serves · ADR · src`. `Serves`
|
|
151
|
+
lists one or more §13 goals, comma-separated, spelled as in §13. Every
|
|
152
|
+
§13 goal appears in at least one `Serves`. The reasoning lives in the ADR;
|
|
153
|
+
`Serves` is a pointer, not a rationale.
|
|
154
|
+
- `validate.mjs` (`validate-strategy.mjs`) enforces the 3-row count, the
|
|
155
|
+
gives-way-first count, every Serves name being a §13 goal, and every goal
|
|
156
|
+
being served. When §13 has no real goal (all `Not provided`), the Serves
|
|
157
|
+
checks are skipped. Catalogue spelling, ≤ 5 rows, Brief says and Also
|
|
158
|
+
considered are on the writer. A set written before it (bullets in §4, no
|
|
159
|
+
Goal column in §13) only warns.
|
|
160
|
+
|
|
161
|
+
| Decision | Serves | ADR | src |
|
|
162
|
+
| --- | --- | --- | --- |
|
|
163
|
+
| Single web app + one database | Uptime, Low cost | [ADR-001](docs/adr/0001-single-app.md) | proposed |
|
|
164
|
+
|
|
123
165
|
## 3b. Diagram embed convention
|
|
124
166
|
|
|
125
167
|
- **LikeC4 views**: a marker on its own line, `<!-- likec4:view <view-id> -->`.
|