@v11g/agents-rock 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +2 -2
- package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
- package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
- package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
- package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
- package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
- package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
- package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
- package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
- package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
- package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
- package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
- package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -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
package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
# Hidden work by project type — human reference
|
|
2
|
+
|
|
3
|
+
Researched add-ons for six project types (78 sources). **Not an agent input**: in testing they made the linker over-link and gave the reviewer no surviving adds. Architects read them when reviewing ARCHITECTURE.md §6 before an estimate. Source and test data: `docs/research/2026-10-06-linking-rubric/`.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Add-on: web/mobile business application (SPA or mobile app + API + database)
|
|
9
|
+
|
|
10
|
+
Read with ../linking-v3-core.md. Rubric numbers below refer to its questions 1–8.
|
|
11
|
+
|
|
12
|
+
## Components this type usually has
|
|
13
|
+
|
|
14
|
+
| Component kind | What it does | Rubric question that finds it | Source |
|
|
15
|
+
|---|---|---|---|
|
|
16
|
+
| Web SPA / mobile app | Screens a person uses; calls the API over HTTP | 1 (who acts) | [1] |
|
|
17
|
+
| Web API / front-end service | Handles client requests, owns business rules and the ordinary tables behind them | 2 (what rule, what data) | [1][2] |
|
|
18
|
+
| Background worker | Long-running, batch or scheduled work, triggered by queue messages or a schedule | 3 (no person) | [1] |
|
|
19
|
+
| Message queue | Decouples API from worker; stateless on both sides | 3, but 8 (link only when a new queue/topic is added) | [1] |
|
|
20
|
+
| Identity provider / login | Authenticates users; often a managed service (Entra ID, Cognito, Firebase) | 8 (link only when sign-in flow changes) | [1][2] |
|
|
21
|
+
| Permission / authorization module | Enforces roles or attributes server-side on every request; least privilege | 2 for a new rule, 8 for reuse | [10] |
|
|
22
|
+
| Relational database | Tables and constraints; one or several ("polyglot persistence") | 5 (store-specific work only) | [1][2] |
|
|
23
|
+
| Cache | Session state and semi-static data for fast reads | 5 / 8 | [1] |
|
|
24
|
+
| Object store + CDN | Uploaded files and static assets; files kept out of the web root | 5 (new bucket, retention) | [1][13] |
|
|
25
|
+
| Upload pipeline | Issues presigned/expiring upload URLs, validates, renames, scans and re-encodes files | 2 + 3 (scan runs without a person) | [13][14] |
|
|
26
|
+
| Notification sender | Sends email / SMS / push via remote providers; owns templates | 1 (who is told) + 4 (outside) | [1][7][15] |
|
|
27
|
+
| Push token registry | Stores a registration token per app instance so the server can target a device | 2 (data this feature needs) | [7] |
|
|
28
|
+
| Offline local store + sync engine (mobile) | Local DB as source of truth; push/pull queues; conflict resolution | 2 + 3 (sync starts on a timer / connectivity) | [5][6] |
|
|
29
|
+
| Audit log | Records who changed what, when, old and new values; tamper-evident, retained per regulation | 2 | [11][12] |
|
|
30
|
+
| Tenant onboarding / tenant mapping (SaaS) | Provisions and configures a new tenant; maps tenant → deployment | 2 + 3 (self-serve or provider-run) | [3][4] |
|
|
31
|
+
| Telemetry / monitoring | Request and dependency logs, health model, alerts | 8 (link only when a new signal is required) | [2] |
|
|
32
|
+
|
|
33
|
+
## Work estimates for this type usually miss
|
|
34
|
+
|
|
35
|
+
- **Offline sync is server work too.** The app needs a local store as source of truth, write queues drained when online, and conflict resolution by timestamp or version; the API must expose `updatedAt`/version fields and incremental (delta) reads. Missed because "works offline" sounds like a client switch. Lands in: mobile app (store + sync) AND the API module that owns the data. [5][6]
|
|
36
|
+
- **Push notifications need a token registry and store compliance.** The server must store registration tokens per app instance and send through FCM/APNs; App Store rules require opt-in for promotional pushes and an in-app opt-out, and the app must work without push. Missed because it is priced as "send a message". Lands in: notification sender, push token registry, mobile app settings screen. [7][8]
|
|
37
|
+
- **App-store release is a feature-sized task.** Review demo account with backend switched on, privacy-policy link in metadata and in-app, in-app account deletion if sign-up exists, store listing, testing tracks, release notes per language, staged rollout. Missed because none of it appears in the feature list. Lands in: mobile app; account deletion also in the API user module. [8][9]
|
|
38
|
+
- **A new role is not a dropdown value.** Authorization must be validated on every request server-side; a new role or "only X may" rule changes the permission module and every endpoint that now enforces it, plus tests for the denial paths. Missed because the UI change looks small. Lands in: permission module + each affected API module. [10]
|
|
39
|
+
- **File upload is a pipeline, not a form field.** Allow-listed extensions, signature check (Content-Type can be spoofed), generated filenames, size caps, antivirus/CDR, image re-encoding, storage outside the web root; presigned URLs expire and must match the declared content type. Missed because the first demo "just uploads". Lands in: API (URL issuer + metadata), worker (scan/re-encode), object store only if a new bucket or retention rule is needed. [13][14]
|
|
40
|
+
- **Every notification type is a template.** Stored templates carry subject, HTML and text parts with placeholders; rendering failures need an event path so bad data is caught. Missed because email is listed as "a remote service". Lands in: notification sender. [1][15]
|
|
41
|
+
- **Audit trail must be designed, not assumed.** What to log is set "during requirements and design": auth success/failure, access-control failures, admin actions, sensitive-data access, with when/where/who/what and old/new values; tamper detection and retention per legal obligation. Missed because framework logs feel free. Lands in: audit log component + each module whose actions must be recorded. [11][12]
|
|
42
|
+
- **Accessibility is per screen.** WCAG 2.2 success criteria at level A/AA apply to web and web-on-mobile content; every new screen inherits them. Missed because it is non-functional and untested until audit. Lands in: SPA / mobile app. [16]
|
|
43
|
+
- **Tenant onboarding orchestrates several components.** Creating a tenant means provisioning identity, configuration and possibly per-tenant databases or stamps, and recording the tenant → deployment mapping; isolation must be tested. Missed because "sign-up" reads as one form. Lands in: tenant onboarding component, identity, database (Q5 when a per-tenant store is created). [3][4]
|
|
44
|
+
- **Write-then-enqueue can lose the second half.** If the API writes the DB and then fails before posting the queue message, the worker never runs; a transactional outbox is extra work. Missed because the happy path hides it. Lands in: API module + worker. [1]
|
|
45
|
+
|
|
46
|
+
## Reviewer questions
|
|
47
|
+
|
|
48
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
49
|
+
|
|
50
|
+
- Does any feature promise to work offline? If so, are both the mobile app (local store + sync queue) and the API module owning the data (version fields, delta endpoint) linked — and does the feature actually change them, or only use them?
|
|
51
|
+
- Does any feature notify a user? If so, is the notification sender linked, plus the channel piece (push → token registry + opt-in screen; email → that template) — and does the feature actually change them (a new template, a new channel), or only use them?
|
|
52
|
+
- Does any feature add a role or an "only X may…" rule? If so, are the permission module and each API module whose endpoints now enforce it linked — and does the feature actually change them (a new rule), or only reuse an existing role (Q8, nothing shared)?
|
|
53
|
+
- Does any feature accept a file? If so, are the API (URL issuer, metadata) and the worker (scan/re-encode) linked — and does the feature actually change the object store (a new bucket or retention rule, Q5), or only use it?
|
|
54
|
+
- Does any feature need to be auditable or show change history? If so, are the audit log and each module that must emit records linked — and does the feature actually change them (new record kinds), or only use existing platform telemetry?
|
|
55
|
+
- Does any feature change what a tenant gets (plan, isolation, region)? If so, is tenant onboarding/mapping linked — and does the feature actually change it, or only use the sign-up screen?
|
|
56
|
+
|
|
57
|
+
## Sources
|
|
58
|
+
|
|
59
|
+
1. Web-Queue-Worker architecture style — Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/web-queue-worker
|
|
60
|
+
2. Basic web application — Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/web-apps/app-service/architectures/basic-web-app
|
|
61
|
+
3. Tenancy models for a multitenant solution — Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/considerations/tenancy-models
|
|
62
|
+
4. Tenant onboarding — AWS Well-Architected SaaS Lens. https://docs.aws.amazon.com/wellarchitected/latest/saas-lens/tenant-onboarding.html
|
|
63
|
+
5. Build an offline-first app — Android Developers. https://developer.android.com/topic/architecture/data-layer/offline-first
|
|
64
|
+
6. Offline data sync for mobile apps — Microsoft Learn (Azure Mobile Apps, archived). https://learn.microsoft.com/en-us/previous-versions/azure/developer/mobile-apps/azure-mobile-apps/howto/data-sync
|
|
65
|
+
7. FCM architectural overview — Firebase. https://firebase.google.com/docs/cloud-messaging/fcm-architecture
|
|
66
|
+
8. App Store Review Guidelines — Apple Developer. https://developer.apple.com/app-store/review/guidelines/
|
|
67
|
+
9. Prepare and roll out a release — Google Play Console Help. https://support.google.com/googleplay/android-developer/answer/9859348
|
|
68
|
+
10. Authorization Cheat Sheet — OWASP. https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html
|
|
69
|
+
11. Logging Cheat Sheet — OWASP. https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html
|
|
70
|
+
12. Audit Log — Martin Fowler. https://martinfowler.com/eaaDev/AuditLog.html
|
|
71
|
+
13. File Upload Cheat Sheet — OWASP. https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html
|
|
72
|
+
14. Uploading objects with presigned URLs — Amazon S3 User Guide. https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html
|
|
73
|
+
15. Using templates to send personalized email — Amazon SES Developer Guide. https://docs.aws.amazon.com/ses/latest/dg/send-personalized-email-api.html
|
|
74
|
+
16. WCAG 2 Overview — W3C Web Accessibility Initiative. https://www.w3.org/WAI/standards-guidelines/wcag/
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
# Add-on: data pipeline / analytics platform
|
|
79
|
+
|
|
80
|
+
Applies on top of ../linking-v3-core.md. Covers batch + streaming ingestion,
|
|
81
|
+
lakehouse/warehouse transformation (bronze → silver → gold), and dashboards.
|
|
82
|
+
|
|
83
|
+
## Components this type usually has
|
|
84
|
+
|
|
85
|
+
| Component kind | What it does | Rubric Q | Source |
|
|
86
|
+
|---|---|---|---|
|
|
87
|
+
| Batch connector jobs | Copy/CDC from source DBs, files, SaaS into a landing zone on a schedule | 3, 4 | [1], [7] |
|
|
88
|
+
| Event ingest hub | Receives streams, partitions by key, buffers for consumers | 3, 4 | [8], [9] |
|
|
89
|
+
| Schema registry / contract | Stores event schemas; enforces compatibility when producers change shape | 2 | [11] |
|
|
90
|
+
| Bronze (raw) loader | Appends raw records with ingest time, source, batch id; no business logic | 2 | [3] |
|
|
91
|
+
| Stream processor | Joins streams, windows, watermarks, enriches with lookups | 3 | [8] |
|
|
92
|
+
| Silver transforms | Dedup, type cast, schema enforcement, late/out-of-order handling | 2 | [3] |
|
|
93
|
+
| Gold marts / modelling layer | Dimensional models and aggregates for one business use | 2 | [3], [5] |
|
|
94
|
+
| Data quality tests + freshness | Assertions per model/source; warn/error when a source stops updating | 2, 1 | [5] |
|
|
95
|
+
| Dead-letter / quarantine handler | Captures malformed or unschema'd records for review and metrics | 3 | [10], [8] |
|
|
96
|
+
| Orchestrator / scheduler | DAGs, retries, backfill by data interval, idempotent reruns | 3 | [6] |
|
|
97
|
+
| Catalog, lineage, governance | Metadata scans, classification, central access policies | 8 (only when changed) | [2], [7] |
|
|
98
|
+
| Serving SQL endpoint | Query interface over gold; row-level security per tenant/role | 1, 5 | [7] |
|
|
99
|
+
| Semantic model + dashboards | Measures, reports, alerts on visuals delivered by email/Teams | 1 | [7] |
|
|
100
|
+
| Pipeline monitoring | Run logs, malformed-record gauges, SLA/freshness alerts to owners | 1 | [8], [12] |
|
|
101
|
+
| Privacy erasure / retention job | Propagates deletes bronze→silver→gold, upstream queues; vacuums history | 5, 3 | [4] |
|
|
102
|
+
|
|
103
|
+
## Work estimates for this type usually miss
|
|
104
|
+
|
|
105
|
+
- **Backfill / reprocessing.** Changing a transform means re-running history, not just new data. Missed because only the new logic is counted. Lands in Orchestrator (backfill runner) + the changed transform. [6], [2] (keep raw to repeat ETL).
|
|
106
|
+
- **Schema evolution across layers.** A new field or event type touches registry version, bronze (store as string/VARIANT), silver cast, gold column, semantic model. Missed as "just a new column". Lands in Schema registry + every layer crossed. [11], [3].
|
|
107
|
+
- **Late-arriving and out-of-order data.** Streaming aggregates need watermark and window decisions and a restatement path. Missed because batch thinking assumes complete data. Lands in Stream processor / Silver. [3], [8].
|
|
108
|
+
- **Dead-letter path.** Malformed records need a sink, a metric, and a review flow or data silently vanishes. Missed because only the happy path is designed. Lands in Dead-letter handler + Pipeline monitoring. [10], [8].
|
|
109
|
+
- **Tests and freshness per new dataset.** Each new source/model needs `not_null`/`unique` tests and a freshness threshold; a stalled source otherwise fails silently. Lands in Data quality tests. [5].
|
|
110
|
+
- **Idempotent loads.** Reruns must upsert or overwrite a partition, never append; `datetime.now()` in logic breaks reruns. Missed because INSERT looks simpler. Lands in Bronze loader / Silver transforms. [6].
|
|
111
|
+
- **Privacy deletes propagate.** One DELETE is not enough: silver, gold, streaming tables, upstream Kafka/queues, and VACUUM of 30-day history all need work. Lands in Privacy erasure job + lakehouse store settings. [4].
|
|
112
|
+
- **Catalog registration and access policy.** A new dataset must be scanned, classified, and granted centrally. Missed as "platform stuff". Lands in Catalog only when a new classification or policy is needed. [2], [7].
|
|
113
|
+
- **Monitoring for the new pipeline.** Someone must be told when a run fails or data is stale. Lands in Pipeline monitoring. [8], [12] (DataOps undercurrent).
|
|
114
|
+
|
|
115
|
+
## Reviewer questions
|
|
116
|
+
|
|
117
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
118
|
+
|
|
119
|
+
- Does any feature add a new source or event type? If so, is each layer the data crosses linked — connector/ingest hub, schema registry, bronze loader, silver transform, gold mart, data quality tests — and does the feature actually change each one (new schema, cast, column, test), or does the data only pass through it unchanged?
|
|
120
|
+
- Does any feature change a metric definition? If so, are the gold mart and the semantic model linked, plus the backfill runner when history must be restated — and does the feature actually change them, or only read them?
|
|
121
|
+
- Does any feature promise "live" data or "within N minutes"? If so, are the stream processor and pipeline monitoring (freshness alert) linked rather than the batch scheduler — and does the feature actually change them (a new window, a new alert), or only use an existing stream?
|
|
122
|
+
- Does any feature delete or retain personal data? If so, are the erasure job and the lakehouse store (vacuum/retention rules — the one common case where the store itself gets work, Q5) linked — and does the feature actually change them, or only use them?
|
|
123
|
+
- Does any feature add a dashboard over existing gold tables? If so, is the semantic model/dashboards linked — and does the feature actually change any pipeline layer beneath, or only read from it?
|
|
124
|
+
- Does any feature include a step triggered by a schedule or an arriving file, or by an arriving event? If so, is the orchestrator (schedule/file) or the stream processor (event) linked — and does the feature actually change it (a new DAG, a new stream job), or only use an existing run?
|
|
125
|
+
|
|
126
|
+
## Sources
|
|
127
|
+
|
|
128
|
+
1. Modern Data Analytics Reference Architecture on AWS — https://docs.aws.amazon.com/reference-architecture-diagrams/latest/modern-data-analytics-on-aws/modern-data-analytics-on-aws.html
|
|
129
|
+
2. AWS Well-Architected Data Analytics Lens, Characteristics — https://docs.aws.amazon.com/wellarchitected/latest/analytics-lens/characteristics-1.html
|
|
130
|
+
3. Databricks, What is the medallion lakehouse architecture? — https://docs.databricks.com/aws/en/lakehouse/medallion
|
|
131
|
+
4. Azure Databricks, Prepare your data for GDPR compliance — https://learn.microsoft.com/en-us/azure/databricks/security/privacy/gdpr-delta
|
|
132
|
+
5. dbt Docs, Add sources to your DAG (source freshness, source tests) — https://docs.getdbt.com/docs/build/sources
|
|
133
|
+
6. Apache Airflow, Best Practices (idempotency, partitions, testing DAGs) — https://airflow.apache.org/docs/apache-airflow/stable/best-practices.html
|
|
134
|
+
7. Azure Architecture Center, Analytics end-to-end with Microsoft Fabric — https://learn.microsoft.com/en-us/azure/architecture/example-scenario/dataplate2e/data-platform-end-to-end
|
|
135
|
+
8. Azure Architecture Center, Stream processing with Azure Databricks — https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/data/stream-processing-databricks
|
|
136
|
+
9. Google Cloud blog, Pub/Sub launches direct path to BigQuery — https://cloud.google.com/blog/products/data-analytics/pub-sub-launches-direct-path-to-bigquery-for-streaming-analytics
|
|
137
|
+
10. Google Cloud blog, Goodbye Hadoop: building a streaming pipeline (Qubit; dead-letter topic) — https://cloud.google.com/blog/products/data-analytics/goodbye-hadoop-building-a-streaming-data-processing-pipeline-on-google-cloud
|
|
138
|
+
11. Confluent, Schema Evolution and Compatibility — https://docs.confluent.io/platform/current/schema-registry/fundamentals/schema-evolution.html
|
|
139
|
+
12. Joe Reis (co-author, Fundamentals of Data Engineering), The Data Engineering Lifecycle and Undercurrents, 4 Years Later — https://joereis.substack.com/p/the-data-engineering-lifecycle-and
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
# Add-on: LLM application (chat/assistant, RAG, agents) — `llm-rag`
|
|
144
|
+
|
|
145
|
+
Use with ../linking-v3-core.md. Question numbers below refer to the core rubric.
|
|
146
|
+
|
|
147
|
+
## Components this type usually has
|
|
148
|
+
|
|
149
|
+
| Component kind | What it does | Rubric question that finds it | Source |
|
|
150
|
+
|---|---|---|---|
|
|
151
|
+
| Chat UI (streaming + citation rendering) | The screen a person types in; streams tokens, shows cited passages, collects thumbs up/down | 1 | [8], [4] |
|
|
152
|
+
| Orchestrator / agent loop | Routes the request, calls the model, runs the tool loop, enforces stop conditions (max iterations, budget) | 2 | [1], [3] |
|
|
153
|
+
| Prompt registry | Versioned system prompts and tool lists; owns cache-breakpoint order (tools → system → messages) | 2, 8 | [2], [8] |
|
|
154
|
+
| Retriever | Embeds the query, runs vector/hybrid search, reranks, applies metadata and permission filters | 2 | [6], [9] |
|
|
155
|
+
| Ingestion pipeline (connector → parser → chunker → embedder → indexer) | Pulls source documents on a schedule or event, splits, embeds, upserts, removes stale chunks | 3 | [9], [6] |
|
|
156
|
+
| Vector index / store | Stores chunk vectors + metadata; indexes (HNSW), ACL columns, tombstones, retention | 5 | [9], [10] LLM08 |
|
|
157
|
+
| Conversation store | Persists sessions and message history for multi-turn context; retention and ownership checks | 2, 5 | [8] |
|
|
158
|
+
| Tool gateway + tool adapters | Tool schemas and descriptions, execution, allow-list, confirmation gates, `is_error` handling | 4 | [3], [10] LLM06 |
|
|
159
|
+
| Guardrail filter | Checks user input and model output: injection, denied topics, PII masking, grounding check | 2 | [7], [10] LLM01/05 |
|
|
160
|
+
| Eval runner + golden set + judge | Replays a question set, scores faithfulness / context recall / relevancy, stores results | 3 | [9], [11] |
|
|
161
|
+
| Trace / usage logger | Per-call tokens, cache hits, latency, tool spans, cost per conversation; feeds alerts | 2 | [8], [5] |
|
|
162
|
+
| Feedback capture | Turns a thumbs-down or "report" into a review item and an eval candidate | 1 | [8], [9] |
|
|
163
|
+
|
|
164
|
+
## Work estimates for this type usually miss
|
|
165
|
+
|
|
166
|
+
- **Eval-set upkeep.** Every new document type, tool, or prompt change needs new golden questions and a judge rubric; missed because "testing" is read as unit tests. Lands in Eval runner. [9], [11]
|
|
167
|
+
- **Deletes and re-syncs.** Updated or removed source documents must drop their stale chunks, or the assistant keeps answering from them; missed because ingestion is priced as a one-time upload. Lands in Ingestion indexer + Vector index. [6], [9]
|
|
168
|
+
- **Permission-aware retrieval.** Document ACLs have to be captured at ingest and filtered at query time; missed because "auth" is assumed to be covered by login. Lands in Connector, Retriever, Vector index. [6], [10] LLM02/LLM08
|
|
169
|
+
- **Tool safety.** Least-privilege credentials per tool, parameter validation, human confirmation before side effects, error results returned to the model; missed because a tool call looks like one API call. Lands in Tool gateway. [1], [3], [10] LLM06
|
|
170
|
+
- **Guardrails on both sides.** Input filtering for injection plus output checks for PII and grounding; missed because the model is assumed to "handle safety". Lands in Guardrail filter. [7], [10] LLM01/LLM05
|
|
171
|
+
- **Cache layout.** Prompt caching is a prefix match; any change to tools or system text invalidates everything after it, so breakpoint placement and hit-rate monitoring are real work. Lands in Prompt registry + Orchestrator. [2]
|
|
172
|
+
- **Token and cost telemetry.** `max_tokens` caps, per-user quotas, rate limits, cost per conversation; missed because billing is assumed to be the vendor's problem. Lands in Trace logger + Orchestrator. [8], [10] LLM10, [5]
|
|
173
|
+
- **Model and prompt pinning.** Pinning model versions and re-running evals when the provider ships a new model; missed because it is seen as config. Lands in Prompt registry + Eval runner. [8]
|
|
174
|
+
- **Parsing per document type.** PDFs with tables, scanned pages, slides, and spreadsheets each need parser work; missed because "documents" is one word in the brief. Lands in Parser/chunker. [6]
|
|
175
|
+
- **Conversation retention.** Purging stale conversations and bounding history length; missed because history is "just a table". Lands in Conversation store. [8]
|
|
176
|
+
|
|
177
|
+
## Reviewer questions
|
|
178
|
+
|
|
179
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
180
|
+
|
|
181
|
+
- Does any RAG feature add a new document type or source? If so, are the Connector, Parser/chunker, Embedding indexer and Eval runner (new golden questions) linked — and does the feature actually change each one (a new parser, a new chunking rule, new questions), or only pass documents through it?
|
|
182
|
+
- Does any feature let the agent act on the outside (ticket, email, write)? If so, are the Tool gateway, the adapter, the Guardrail filter and the Chat UI confirmation step linked, not the adapter alone — and does the feature actually change each one (a new tool schema, a new allow-list entry, a new confirmation gate), or only use it?
|
|
183
|
+
- Does any feature decide who may see what? If so, are the Retriever (filter), the Vector index (ACL column/index — Q5 applies) and the Connector (ACL capture) linked — and does the feature actually change them, or only use an existing filter?
|
|
184
|
+
- Does any feature change the system prompt, tool list or model? If so, are the Prompt registry and Eval runner linked — and does the feature actually change the Orchestrator (cache breakpoints move), or only use it?
|
|
185
|
+
- Does any feature need a new index, metadata column, tombstone or retention rule on the Vector index? If so, is the Vector index linked — and does the feature actually change it, or only upsert ordinary chunks through the Embedding indexer?
|
|
186
|
+
- Does any feature tell the knowledge team something? If so, is the component that integrates with the channel (Q1/Q4) linked rather than the dashboard that merely displays the same data — and does the feature actually change it (a new message kind, a new channel), or only use it?
|
|
187
|
+
|
|
188
|
+
## Sources
|
|
189
|
+
|
|
190
|
+
1. Anthropic — Building effective agents — https://www.anthropic.com/research/building-effective-agents
|
|
191
|
+
2. Anthropic — Prompt caching — https://platform.claude.com/docs/en/build-with-claude/prompt-caching
|
|
192
|
+
3. Anthropic — Tool use with Claude (overview) — https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview
|
|
193
|
+
4. Anthropic — Citations — https://platform.claude.com/docs/en/build-with-claude/citations
|
|
194
|
+
5. AWS — Well-Architected Generative AI Lens — https://docs.aws.amazon.com/wellarchitected/latest/generative-ai-lens/generative-ai-lens.html
|
|
195
|
+
6. AWS — Amazon Bedrock Knowledge Bases — https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
|
|
196
|
+
7. AWS — Amazon Bedrock Guardrails — https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
|
|
197
|
+
8. Microsoft — Baseline Foundry chat reference architecture — https://learn.microsoft.com/en-us/azure/architecture/ai-ml/architecture/baseline-openai-e2e-chat
|
|
198
|
+
9. Google Cloud — Infrastructure for a RAG-capable generative AI application using Vertex AI — https://docs.cloud.google.com/architecture/rag-capable-gen-ai-app-using-vertex-ai
|
|
199
|
+
10. OWASP — Top 10 for LLM Applications 2025 — https://genai.owasp.org/llm-top-10/
|
|
200
|
+
11. Ragas — Available metrics — https://docs.ragas.io/en/stable/concepts/metrics/available_metrics/
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
# Add-on: public API / developer platform (read linking-v3-core.md first)
|
|
205
|
+
|
|
206
|
+
## Components this type usually has
|
|
207
|
+
|
|
208
|
+
| Component kind | What it does | Rubric q. | Source |
|
|
209
|
+
|---|---|---|---|
|
|
210
|
+
| Gateway / key authenticator | Terminates TLS, validates API key or OAuth token, resolves key -> tenant/plan; keys identify, they do not authorize | 1, 8 | [1][3] |
|
|
211
|
+
| Rate limiter + quota enforcer | Per-key throttling (rate/burst) and per-period quotas; returns 429 + `x-ratelimit-*` headers | 2, 8 | [1][10] |
|
|
212
|
+
| Scoped-key / permission model | Restricted keys with per-resource permissions, test vs live mode, IP/ASN access policies | 2, 8 | [8][4] |
|
|
213
|
+
| Version negotiator | Reads version header, routes to handler, applies compat transforms; date-named versions with 24-month support | 2 | [7][11][12] |
|
|
214
|
+
| Idempotency layer | Stores first response per `Idempotency-Key` (~24h), replays it, rejects same key with different params | 2, 5 | [6] |
|
|
215
|
+
| Standard error + validation envelope | One error schema, request validation against OpenAPI, pagination/filter conventions | 2 | [14] |
|
|
216
|
+
| Long-running operation handler | For >10s work returns an Operation resource the client polls | 2, 3 | [13] |
|
|
217
|
+
| Event outbox + webhook dispatcher | Signs (HMAC + timestamp), delivers, retries with backoff for days, no ordering guarantee | 3, 4 | [5] |
|
|
218
|
+
| Usage meter / aggregator | Rolls access logs into per-key usage, emits meter events to billing, exposes usage to the developer | 3, 4 | [9][2] |
|
|
219
|
+
| Key lifecycle worker | Rotation with grace window, expiry, unused-key limiting, compromise revocation | 3 | [8] |
|
|
220
|
+
| Developer portal | Signup, org/app management, key console, webhook endpoint console, usage view | 1 | [2] |
|
|
221
|
+
| API reference + changelog | Docs rendered from the spec, per-version changelog, deprecation/sunset notices | 1 | [11][7] |
|
|
222
|
+
| SDK + spec pipeline | Lints spec, diffs for breaking changes, regenerates typed SDKs pinned to a version | 8 | [7][12] |
|
|
223
|
+
| Analytics / access log export | Per-key request logs to observability (Datadog, Prometheus); feeds support + abuse detection | 2 | [3][2] |
|
|
224
|
+
| Inventory / environment registry | Which versions and endpoints are live where; retires debug and old versions | 8 | [4] |
|
|
225
|
+
|
|
226
|
+
## Work estimates for this type usually miss
|
|
227
|
+
|
|
228
|
+
- **Every new endpoint is also a version diff and an SDK release.** A
|
|
229
|
+
required field or type change is breaking under a date-pinned scheme, and
|
|
230
|
+
typed SDKs pin a version; missed because "it's one more field". Lands in:
|
|
231
|
+
version negotiator, SDK + spec pipeline, changelog. [7][11][12]
|
|
232
|
+
- **Every new event type is webhook work, not a log line.** A new
|
|
233
|
+
`shipment.delivered` needs an outbox write, a payload schema per API
|
|
234
|
+
version, signing, retries, a portal toggle and docs. Lands in: event
|
|
235
|
+
outbox + dispatcher, webhook endpoint console, API reference. [5]
|
|
236
|
+
- **Every billable action needs a meter.** Charging per label means a
|
|
237
|
+
meter event with a stable idempotency identifier, aggregation rule, and a
|
|
238
|
+
surface where the developer sees it; missed because billing is "Stripe's
|
|
239
|
+
job". Lands in: usage aggregator, usage view, billing integration. [9]
|
|
240
|
+
- **Every new resource needs object-level authorization.** Ownership check
|
|
241
|
+
on every ID (BOLA) and property-level filtering of response fields; missed
|
|
242
|
+
because the gateway "already authenticates". Lands in: the resource module
|
|
243
|
+
and the scoped-key permission model. [4][1]
|
|
244
|
+
- **Non-idempotent POST.** A create endpoint without idempotency double-charges
|
|
245
|
+
on client retry; missed as "the client's problem". Lands in: idempotency layer. [6]
|
|
246
|
+
- **Rate limits are a product decision per endpoint.** Expensive endpoints
|
|
247
|
+
need their own cost or point budget (secondary limits); missed because one
|
|
248
|
+
global limit was assumed. Lands in: rate limiter config, docs. [10][4]
|
|
249
|
+
- **Test mode is a second environment.** Sandbox keys must hit fake carriers
|
|
250
|
+
and never touch live data; missed when only the live path is priced. Lands
|
|
251
|
+
in: key authenticator, resource modules, external adapters. [8]
|
|
252
|
+
|
|
253
|
+
## Reviewer questions
|
|
254
|
+
|
|
255
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
256
|
+
|
|
257
|
+
- Does any feature add or change a response field? If so, are the resource
|
|
258
|
+
module, the version negotiator and the SDK + spec pipeline linked — and does
|
|
259
|
+
the feature actually change each one (a new compat transform, a regenerated
|
|
260
|
+
SDK), or only use them?
|
|
261
|
+
- Does any feature fire a new event? If so, are the event outbox, the webhook
|
|
262
|
+
dispatcher config (new type), the webhook console and the docs linked — and
|
|
263
|
+
does the feature actually change each one, or only use an existing event type?
|
|
264
|
+
- Does any feature make a call billable? If so, are the usage aggregator and
|
|
265
|
+
the billing integration linked — and does the feature actually change the
|
|
266
|
+
usage ledger store (a new partition or retention rule), or only write through it?
|
|
267
|
+
- Does any feature create a resource? If so, is the idempotency layer linked —
|
|
268
|
+
and does the feature actually change the idempotency cache store (TTL or key
|
|
269
|
+
scope), or only use it?
|
|
270
|
+
- Does any feature change key permissions, modes or limits? If so, are the
|
|
271
|
+
scoped-key model and the key console linked — and does the feature actually
|
|
272
|
+
change them (a new permission, mode or limit), or only check a key?
|
|
273
|
+
- Does any feature add a long-running action? If so, are the operation handler
|
|
274
|
+
and the worker linked — and does the feature actually change them (a new
|
|
275
|
+
operation type, a new job), or only use an existing one?
|
|
276
|
+
|
|
277
|
+
## Sources
|
|
278
|
+
|
|
279
|
+
1. AWS — Usage plans and API keys for REST APIs. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html
|
|
280
|
+
2. Google Cloud — What is Apigee? https://docs.cloud.google.com/apigee/docs/api-platform/get-started/what-apigee
|
|
281
|
+
3. Kong — Gateway plugin hub. https://developer.konghq.com/plugins/
|
|
282
|
+
4. OWASP — API Security Top 10 (2023). https://api-security.owasp.org/editions/2023/en/0x11-t10/
|
|
283
|
+
5. Stripe — Receive events in your webhook endpoint. https://docs.stripe.com/webhooks
|
|
284
|
+
6. Stripe — Idempotent requests. https://docs.stripe.com/api/idempotent_requests
|
|
285
|
+
7. Stripe — API versioning. https://docs.stripe.com/api/versioning
|
|
286
|
+
8. Stripe — API keys. https://docs.stripe.com/keys
|
|
287
|
+
9. Stripe — Record usage for billing. https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage
|
|
288
|
+
10. GitHub — Rate limits for the REST API. https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
|
|
289
|
+
11. GitHub — REST API versions. https://docs.github.com/en/rest/about-the-rest-api/api-versions
|
|
290
|
+
12. Google AIP-180 — Backwards compatibility. https://google.aip.dev/180
|
|
291
|
+
13. Google AIP-151 — Long-running operations. https://google.aip.dev/151
|
|
292
|
+
14. Google AIP — General guidance index (pagination, errors, request identification). https://google.aip.dev/general
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# Add-on: ML-heavy product (custom-trained models in production)
|
|
297
|
+
|
|
298
|
+
Scope: systems that train their own models and run them live — training
|
|
299
|
+
pipeline, feature store, registry, serving, drift monitoring, retraining.
|
|
300
|
+
Not LLM-API apps (separate add-on). Sculley et al. show the model code is a
|
|
301
|
+
small box inside a much larger system of data, serving and monitoring
|
|
302
|
+
plumbing [2]; estimates that price "the model" miss most of the work.
|
|
303
|
+
|
|
304
|
+
## Components this type usually has
|
|
305
|
+
|
|
306
|
+
| Component kind | What it does | Rubric question that finds it | Source |
|
|
307
|
+
|---|---|---|---|
|
|
308
|
+
| Feature pipeline (batch and/or streaming) | Computes model inputs from raw events on a schedule or stream (e.g. "txns per card, last 10 min") | 3 (runs without a person) | [1], [7] |
|
|
309
|
+
| Online feature store | Low-latency key lookup of precomputed features at prediction time | 2 (data read), 5 if a new store/TTL rule | [1], [3], [7] |
|
|
310
|
+
| Offline feature store + feature registry | Point-in-time-correct training sets; shared feature definitions so training and serving agree | 2 | [1], [7] |
|
|
311
|
+
| Data validation step | Schema and distribution checks on incoming training data; blocks the run on anomalies | 3 | [1] |
|
|
312
|
+
| Training pipeline / orchestrator | DAG: extract → validate → prepare → train → evaluate → register | 3 | [1], [4], [5] |
|
|
313
|
+
| Model evaluation & validation gate | Candidate vs champion on holdout and slices; fairness/responsible-AI checks; decides registration | 2 (owns the promotion rule) | [1], [3], [5] |
|
|
314
|
+
| Model registry | Versions, lineage (data, code, params), stage (staging/prod), approvals | 2, 5 if new metadata or stage | [3], [4], [5] |
|
|
315
|
+
| Metadata / experiment store | Records each pipeline run: params, metrics, artifacts | 2 | [1], [4] |
|
|
316
|
+
| Prediction service (online endpoint or batch scorer) | Loads the approved model, fetches features, returns a score | 1 (what the caller uses), 4 (if the caller is external) | [4], [5] |
|
|
317
|
+
| Model loader / rollout controller | Hot-swaps versions; routes traffic for shadow, canary, A/B | 2 | [3], [4], [7] |
|
|
318
|
+
| Decision / policy layer | Turns a score into an action (thresholds, overrides, rules) | 2 (owns the business rule) | [2] action limits |
|
|
319
|
+
| Prediction logger | Writes inputs, features, score, model version per request ("log and wait") | 2, 5 for the log table's partition/retention | [7] |
|
|
320
|
+
| Label / feedback joiner | Joins delayed ground truth (chargebacks, clicks, analyst verdicts) to logged predictions | 3, 4 (labels often arrive from outside) | [6], [2] feedback loops |
|
|
321
|
+
| Drift & performance monitor | Two-sample tests on feature and prediction distributions vs training baseline; realized accuracy once labels land | 3, 1 (who is told) | [1], [5], [6] |
|
|
322
|
+
| Retraining trigger | Schedule / drift event / new-label count → starts the training pipeline | 3 | [1], [5] |
|
|
323
|
+
| Labeling / review UI | Humans confirm, correct or label cases; their verdicts become training labels | 1 | [5] (CV labeling), [2] |
|
|
324
|
+
|
|
325
|
+
## Work estimates for this type usually miss
|
|
326
|
+
|
|
327
|
+
- **Writing every feature twice.** Training code computes a feature in SQL/pandas; serving recomputes it in the request path. Mismatch = training-serving skew [1], [7]. Missed because the feature "already exists" in the notebook. Lands in the feature pipeline AND the online store, not the model.
|
|
328
|
+
- **Point-in-time joins.** A training set that joins today's feature values to last year's events leaks the future. Missed because it looks like an ordinary join. Lands in the offline feature store / training pipeline [1], [7].
|
|
329
|
+
- **Getting labels at all.** Ground truth arrives late — seconds for clicks, months for fraud [6]. Someone must store predictions, wait, join, and store the outcome. Missed because teams assume accuracy is measurable at launch. Lands in the prediction logger, the label joiner, and a new warehouse table (Q5) [6], [7].
|
|
330
|
+
- **A baseline to drift against.** The monitor needs the training-time distribution snapshot stored with the model. Missed because "monitoring" sounds like dashboards. Lands in the registry (what is stored per version) and the monitor [1], [6].
|
|
331
|
+
- **The promotion gate.** Candidate vs champion, per-slice metrics, bias checks, human approval before prod [3], [5]. Missed because teams plan "train then deploy". Lands in the evaluation gate and the registry's stage model.
|
|
332
|
+
- **Multi-version serving.** Shadow, canary and rollback need the serving layer to hold two models and split traffic [4], [7]. Missed because the first deploy only has one model. Lands in the model loader / rollout controller.
|
|
333
|
+
- **Downstream consumers of a score.** Changing a model changes everything that reads its output (CACE, undeclared consumers) [2]. Missed because the change request names only the model. Lands in the decision layer and any consumer that re-tunes thresholds.
|
|
334
|
+
- **Configuration as a first-class artifact.** Feature lists, thresholds, hyperparameters must be versioned with the model or runs are not reproducible [2], [4]. Missed because config "is just a YAML". Lands in the registry and the training pipeline.
|
|
335
|
+
- **Validating new upstream data.** Each new source is an unstable data dependency [2]; it needs schema checks before it enters training [1]. Missed because the source "is just another table". Lands in the data validation step.
|
|
336
|
+
- **Retraining compute and cost.** Stateless weekly retraining re-reads all data; stateful fine-tuning cuts cost ~45x in one reported case [7]. Missed because training is budgeted once. Lands in the training pipeline and trigger.
|
|
337
|
+
|
|
338
|
+
## Reviewer questions
|
|
339
|
+
|
|
340
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
341
|
+
|
|
342
|
+
- Does any feature add a new model input? If so, are the feature pipeline, the offline and online feature stores, data validation and the training pipeline linked rather than only "the model" — and does the feature actually change each one (a new computation, a new schema check), or only read an existing feature?
|
|
343
|
+
- Does any feature change what the model predicts (new label, new class, new target)? If so, are the label joiner, the evaluation gate and the monitor linked — and does the feature actually change them (new ground truth, new metrics), or only use the existing ones?
|
|
344
|
+
- Does any feature show a score to a person or act on it? If so, is the decision/policy layer linked, not just the prediction service — and does the feature actually change it (a new threshold, override or rule), or only read a score?
|
|
345
|
+
- Does any feature start retraining, drift alerts or label ingestion without a person? If so, are the trigger or worker (Q3) and the component that tells the ML engineer (Q1) linked — and does the feature actually change them (a new trigger condition, a new alert), or only use an existing schedule?
|
|
346
|
+
- Does any feature change what is stored or decided about a model (new stage, approval, metadata)? If so, is the registry linked — and does the feature actually change it, or only load a model from it?
|
|
347
|
+
- Does any feature create a prediction-log or label table? If so, is the warehouse/object store linked (Q5 — partitioning and retention rules) — and does the feature actually change the store, or only write rows into an existing table?
|
|
348
|
+
|
|
349
|
+
## Sources
|
|
350
|
+
|
|
351
|
+
1. Google Cloud — MLOps: Continuous delivery and automation pipelines in machine learning — https://cloud.google.com/architecture/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning
|
|
352
|
+
2. Sculley et al. — Hidden Technical Debt in Machine Learning Systems (NeurIPS 2015) — https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf
|
|
353
|
+
3. AWS Well-Architected Framework — Machine Learning Lens — https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-lens/machine-learning-lens.html
|
|
354
|
+
4. Microsoft Learn — MLOps: Model management, deployment and monitoring with Azure Machine Learning — https://learn.microsoft.com/en-us/azure/machine-learning/concept-model-management-and-deployment
|
|
355
|
+
5. Azure Architecture Center — Machine learning operations (MLOps v2) — https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/machine-learning-operations-v2
|
|
356
|
+
6. Chip Huyen — Data Distribution Shifts and Monitoring (Designing Machine Learning Systems, ch. 8 excerpt) — https://huyenchip.com/2022/02/07/data-distribution-shifts-and-monitoring.html
|
|
357
|
+
7. Chip Huyen — Real-time machine learning: challenges and solutions — https://huyenchip.com/2022/01/02/real-time-machine-learning-challenges-and-solutions.html
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
# Add-on: IoT / connected devices
|
|
362
|
+
|
|
363
|
+
Extends ../linking-v3-core.md. Rubric question numbers refer to that file.
|
|
364
|
+
|
|
365
|
+
## Components this type usually has
|
|
366
|
+
|
|
367
|
+
| Component kind | What it does | Rubric question that finds it | Source |
|
|
368
|
+
|---|---|---|---|
|
|
369
|
+
| Device firmware / edge agent | Samples sensors, runs local rules, reconnects with backoff | 3 (runs without a person) | [2] |
|
|
370
|
+
| Store-and-forward buffer (on device) | Durable FIFO of messages while offline; replays on reconnect | 3, 2 | [2] |
|
|
371
|
+
| Device identity module | Per-device X.509 key in secure element; cert refresh and replacement | 4, 8 (changes only) | [1] |
|
|
372
|
+
| Provisioning service + template/hook | Swaps a claim credential for a unique cert, registers the thing, assigns groups; custom pre-provisioning check | 3, 4 | [8], [11] |
|
|
373
|
+
| Message broker / cloud gateway | MQTT/AMQP ingress, persistent sessions, connect/disconnect lifecycle events | 3 | [10], [15] |
|
|
374
|
+
| Device registry + groups + fleet index | Thing metadata (model, firmware, site), static/dynamic groups, search | 2 | [3] |
|
|
375
|
+
| Device twin / shadow | Desired vs reported state, delta, works while device offline | 2, 3 | [6], [12] |
|
|
376
|
+
| Routing / rules engine | Filters and fans telemetry out to streams, stores, alerts; error action | 3 | [9], [14] |
|
|
377
|
+
| Ingestion stream + normalizer | Queue between broker and compute; validates schema versions | 3 | [4] |
|
|
378
|
+
| Telemetry stores (hot time-series, cold raw archive) | Recent queryable readings; raw archive for reprocessing | 5 (only for retention/partition/new store) | [4] |
|
|
379
|
+
| OTA / jobs orchestrator + device update agent | Signed image, staged rollout, abort threshold, timeout, A/B rollback | 3, 4 | [7], [13] |
|
|
380
|
+
| Fleet management console + API layer | Ops UI and the API that insulates users from the MQTT data plane | 1 | [1], [13] |
|
|
381
|
+
| Device health / security monitor | Offline detection from lifecycle events, cert-expiry audit, anomaly quarantine | 3 | [2], [5] |
|
|
382
|
+
| Alert / notification sender | Delivers fleet alerts to people (SMS, email, push) | 1, 4 | [2] |
|
|
383
|
+
| Installer / companion app | Trusted-user provisioning, Wi-Fi credentials, device-to-site binding | 1 | [8] |
|
|
384
|
+
|
|
385
|
+
## Work estimates for this type usually miss
|
|
386
|
+
|
|
387
|
+
- **Offline replay and late data.** Device must buffer to disk, cap the buffer, replay FIFO; ingestion must accept out-of-order and duplicate readings. Missed because the happy path assumes an always-on link. Lands in: edge buffer, ingestion normalizer. [2], [4]
|
|
388
|
+
- **Twin reconciliation on reconnect.** Device must subscribe, fetch the full desired document, drop stale versions. Missed because "remote config" looks like a console form. Lands in: device-side shadow sync client. [12], [6]
|
|
389
|
+
- **Rollout safety for firmware.** Canary group, rollout rate, abort criteria, timeout, fallback version. Missed because "ship v2" sounds like a file upload. Lands in: jobs orchestrator, update agent, registry groups. [7], [13]
|
|
390
|
+
- **Certificate lifecycle.** Expiry audit, rotation via an OTA job, revocation list. Missed because devices outlive their certs and nobody prices year two. Lands in: identity module, health monitor, CA integration. [1]
|
|
391
|
+
- **Provisioning claim hardening.** Allow-list of manufactured serials, pre-provisioning hook, disabling a misused claim. Missed because provisioning looks fully managed. Lands in: provisioning hook, registry. [8], [3]
|
|
392
|
+
- **Schema versions coexisting in the fleet.** Normalizer must accept N firmware payload versions at once. Missed because the fleet is imagined homogeneous. Lands in: ingestion normalizer. [4]
|
|
393
|
+
- **Connectivity state machine.** Lifecycle events + keep-alive + wait-before-alert so brief drops don't page anyone. Missed because "tell me when it goes dark" sounds like a dashboard filter. Lands in: device health monitor. [3], [2]
|
|
394
|
+
- **Decommissioning.** Block connection, revoke cert, erase device and cloud data, support ownership change. Missed as "delete the row". Lands in: registry, identity module, CA, telemetry stores (retention). [16], [17], [18]
|
|
395
|
+
- **Device diagnostics to the cloud.** Separate diagnostics topic and remote troubleshooting path, distinct from telemetry. Lands in: edge agent, routing rules. [2]
|
|
396
|
+
- **User API layer over the data plane.** Users never touch MQTT directly; every user-facing read of device state needs the API layer with per-user authorization. Lands in: console API. [1]
|
|
397
|
+
- **Topic namespace and per-device policy.** A new message kind means new topics and policy changes bound to the device identity. Lands in: broker policy (Q8 — it changes). [1]
|
|
398
|
+
|
|
399
|
+
## Reviewer questions
|
|
400
|
+
|
|
401
|
+
Each question can only ADD a link the linker missed, and only when the feature changes that component. Do not propose a link for pass-through use.
|
|
402
|
+
|
|
403
|
+
- Does any feature set something on a device remotely? If so, are the console API, the twin/shadow and the device-side sync client linked — and does the feature actually change each one (a new desired-state field, new apply logic after reconnect), or only use an existing setting path?
|
|
404
|
+
- Does any feature need readings from an outage? If so, are the on-device buffer and the ingestion normalizer (dedupe, late data) linked — and does the feature actually change the time-series store (retention or partitioning), or only write through it?
|
|
405
|
+
- Does any feature change firmware or certificates? If so, are the update agent, the jobs/rollout orchestrator and the registry groups it targets linked, plus the identity module when certs rotate — and does the feature actually change them (a new job type, a new group, a new cert flow), or only run an existing job?
|
|
406
|
+
- Does any feature add a new sensor or message kind? If so, are the firmware sampler, the broker topic/policy (Q8, because it changes), the ingestion normalizer and the hot store schema linked — and does the feature actually change each one (a new topic, a new schema version, a new column), or does the message only pass through unchanged?
|
|
407
|
+
- Does any feature onboard a device? If so, are the installer app, the provisioning template/hook, the registry and any CA or ERP lookup linked — and does the feature actually change them (a new hook check, a new group assignment), or only use the managed broker, which is pass-through?
|
|
408
|
+
- Does any feature alert a person? If so, are the alert evaluator (Q3) and the notification sender (Q1/Q4) linked rather than the console — and does the feature actually change them (a new alert condition, a new channel), or only display in the console?
|
|
409
|
+
|
|
410
|
+
## Sources
|
|
411
|
+
|
|
412
|
+
1. AWS Well-Architected IoT Lens — Identity and access management — https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/identity-and-access-management.html
|
|
413
|
+
2. AWS Well-Architected IoT Lens — Failure management — https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/failure-management.html
|
|
414
|
+
3. AWS Well-Architected IoT Lens — Prepare — https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/prepare.html
|
|
415
|
+
4. AWS Well-Architected IoT Lens — Workload architecture — https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/workload-architecture.html
|
|
416
|
+
5. AWS Well-Architected IoT Lens — Operate — https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/operate.html
|
|
417
|
+
6. AWS IoT Core Developer Guide — Device Shadow service — https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html
|
|
418
|
+
7. AWS IoT Core Developer Guide — Job configurations (rollout, abort, timeout, retry) — https://docs.aws.amazon.com/iot/latest/developerguide/job-rollout-abort.html
|
|
419
|
+
8. AWS IoT Core Developer Guide — Fleet provisioning — https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html
|
|
420
|
+
9. AWS IoT Core Developer Guide — Rules for AWS IoT — https://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html
|
|
421
|
+
10. Microsoft Learn — Introduction to Azure IoT (reference architecture) — https://learn.microsoft.com/en-us/azure/iot/iot-introduction
|
|
422
|
+
11. Microsoft Learn — Overview of Azure IoT Hub Device Provisioning Service — https://learn.microsoft.com/en-us/azure/iot-dps/about-iot-dps
|
|
423
|
+
12. Microsoft Learn — Understand Azure IoT Hub device twins — https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins
|
|
424
|
+
13. Microsoft Learn — Introduction to Device Update for Azure IoT Hub — https://learn.microsoft.com/en-us/azure/iot-hub-device-update/understand-device-update
|
|
425
|
+
14. Microsoft Learn — Understand Azure IoT Hub message routing — https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-d2c
|
|
426
|
+
15. Eclipse Hono — Component view — https://eclipse.dev/hono/docs/architecture/component-view/
|
|
427
|
+
16. IoT Security Foundation — IoT Security Assurance Framework Release 3.0 — https://iotsecurityfoundation.org/wp-content/uploads/2021/11/IoTSF-IoT-Security-Assurance-Framework-Release-3.0-Nov-2021-1.pdf
|
|
428
|
+
17. Industrial Internet Consortium — Industrial Internet Reference Architecture v1.9 — https://www.digitaltwinconsortium.org/pdf/IIRA-v1.9.pdf
|
|
429
|
+
18. ETSI EN 303 645 V2.1.1 — Cyber Security for Consumer IoT: Baseline Requirements — https://www.etsi.org/deliver/etsi_en/303600_303699/303645/02.01.01_60/en_303645v020101p.pdf
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Linking features to components — rubric v4 (core)
|
|
2
|
+
|
|
3
|
+
A feature is a business piece the client asked for. A component is a piece
|
|
4
|
+
engineers build, listed in ARCHITECTURE.md §6 (inside a C4 container). One
|
|
5
|
+
component can build many features; one feature is built by one or more
|
|
6
|
+
components. Link a feature to every component that has to change or be built
|
|
7
|
+
for that feature to work.
|
|
8
|
+
|
|
9
|
+
Answer these per feature, from ARCHITECTURE.md (§5 C4 views, §6 components,
|
|
10
|
+
§9 external integrations) and the requirements package:
|
|
11
|
+
|
|
12
|
+
1. **Who acts? Who is told?** For each person or role who performs a step
|
|
13
|
+
of this feature, link the component they use to do it (the app or screen
|
|
14
|
+
component that person uses, per the C4 person → container relations).
|
|
15
|
+
If a person must be told something (an alert, a status update reaching
|
|
16
|
+
them), link the component that delivers it.
|
|
17
|
+
2. **What rule? What does it read?** Link the component whose
|
|
18
|
+
Responsibility owns the business rule or the data this feature creates
|
|
19
|
+
or changes. If the feature needs data another module owns and that
|
|
20
|
+
module does not expose it yet, link that module too — the new read is
|
|
21
|
+
work inside it.
|
|
22
|
+
3. **No person?** If any step starts without a person — an inbound message,
|
|
23
|
+
a schedule, a timer, a sync — link the background/worker component that
|
|
24
|
+
runs it.
|
|
25
|
+
4. **Outside?** If the feature talks to an external system (§9), link the
|
|
26
|
+
component that integrates with it.
|
|
27
|
+
5. **Store-specific work?** Link a database or object store only when the
|
|
28
|
+
feature needs work inside the store itself: a constraint that enforces a
|
|
29
|
+
business rule ("one editor per row", "no double booking"), a new store
|
|
30
|
+
or bucket, partitioning, retention or locking rules. Ordinary tables and
|
|
31
|
+
ordinary file writes belong to the module that owns them — do not link
|
|
32
|
+
the store for them.
|
|
33
|
+
6. **Why?** Every link carries a `why`: one short sentence naming the part
|
|
34
|
+
of the component's Responsibility that this feature needs. If you cannot
|
|
35
|
+
write one, drop the link.
|
|
36
|
+
7. **Most specific.** Link the component, never the container that holds
|
|
37
|
+
it. Link a container only when ARCHITECTURE.md gives it no components
|
|
38
|
+
(e.g. one "Office Web App" block), and then link it as-is.
|
|
39
|
+
8. **Used is not changed.** Login, permissions middleware, the app shell,
|
|
40
|
+
shared notification plumbing, monitoring, routing, normalizers and
|
|
41
|
+
shared infrastructure (CI, hosting): link only when this feature changes
|
|
42
|
+
them — a new role, a new permission, a new kind of notification, a new
|
|
43
|
+
rule. A component the feature's data merely flows through, unchanged, is
|
|
44
|
+
not a link, even if the feature would not work without it.
|
|
45
|
+
|
|
46
|
+
## Task rubric (the reviewer reads this; tasks live on components)
|
|
47
|
+
|
|
48
|
+
1. **Covers its links.** Every feature a component builds has at least one
|
|
49
|
+
task that serves it.
|
|
50
|
+
2. **No double work.** The same work does not appear in two components.
|
|
51
|
+
3. **Right shape.** Each task's `shape` (`estimate/classic/references/task-shapes.md`)
|
|
52
|
+
matches the work described.
|
|
53
|
+
|
|
54
|
+
## Evidence
|
|
55
|
+
|
|
56
|
+
Tested on 8 projects / 48 features (3 real leads, 5 reference fixtures):
|
|
57
|
+
the core rubric found 42 of 48 links and missed no whole feature; the
|
|
58
|
+
review workflow's Verify phase rejected 6 of 6 wrong additions. Full
|
|
59
|
+
artifacts: `docs/research/2026-10-06-linking-rubric/`.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Builds assets/estimate-components.html (the Component-based page) from the
|
|
2
|
+
// score-review template: the same page read-only (FINAL), plus tasks and
|
|
3
|
+
// hours, the price sections and the workbook export — what the mockup's
|
|
4
|
+
// build-score.py does for estimate-feature-mockup.html. Every change is a
|
|
5
|
+
// rep(); build-pages.test.mjs pins the output. Usage: node build-components-template.mjs [--out <file>]
|
|
6
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
|
|
10
|
+
const M = at('../../../../../../docs/mockups/estimate-workflow-mode/');
|
|
11
|
+
const outFlag = process.argv.indexOf('--out');
|
|
12
|
+
const OUT = outFlag > 0 ? process.argv[outFlag + 1] : at('../assets/estimate-components.html');
|
|
13
|
+
let html = readFileSync(at('../assets/score-review.html'), 'utf8');
|
|
14
|
+
const py = readFileSync(`${M}build-score.py`, 'utf8');
|
|
15
|
+
const est = readFileSync(`${M}estimate.src.html`, 'utf8');
|
|
16
|
+
|
|
17
|
+
// `to` may be a function; a string is wrapped so `$'` in inserted scripts is never expanded.
|
|
18
|
+
function rep(from, to) {
|
|
19
|
+
const next = html.replace(from, typeof to === 'function' ? to : () => to);
|
|
20
|
+
if (next === html) throw new Error(`components template builder: nothing matched ${String(from).slice(0, 60)}`);
|
|
21
|
+
html = next;
|
|
22
|
+
}
|
|
23
|
+
function between(src, start, end) {
|
|
24
|
+
const a = src.indexOf(start);
|
|
25
|
+
const b = src.indexOf(end, a + start.length);
|
|
26
|
+
if (a < 0 || b < 0) throw new Error(`components template builder: no ${start}`);
|
|
27
|
+
return src.slice(a + start.length, b);
|
|
28
|
+
}
|
|
29
|
+
// The final page's CSS, exactly as build-score.py assembles FCSS.
|
|
30
|
+
const cut = (a, b) => est.slice(est.indexOf(a), est.indexOf(b));
|
|
31
|
+
const fcss = between(py, "FCSS = '''", "'''") + cut('/* summary */', '/* systems */')
|
|
32
|
+
+ cut('/* roadmap */', '/* internal-only').replace('repeat(3,minmax(0,1fr))', 'repeat(4,minmax(0,1fr))')
|
|
33
|
+
+ between(py, "repeat(4,minmax(0,1fr))') + '''", "'''");
|
|
34
|
+
|
|
35
|
+
rep('</style>', `${fcss}</style>`);
|
|
36
|
+
rep('<title><!-- slot:TITLE --> — score review</title>', '<title><!-- slot:TITLE --> — estimate (component-based)</title>');
|
|
37
|
+
rep('<h1><!-- slot:TITLE --> — score review', '<h1><!-- slot:TITLE --> — estimate');
|
|
38
|
+
rep(/<p class="sub">After the PO's scope review · <span id="subcount"><\/span>[^<]*<\/p>/,
|
|
39
|
+
'<p class="sub">Component-based view · <span id="subcount"></span> · scores signed off in the score review</p>');
|
|
40
|
+
rep(' <button class="btn" id="theme" type="button">Dark</button>\n </div>',
|
|
41
|
+
' <div class="head-ctl"><nav class="view pages" aria-label="Estimate view"><a href="estimate.html">Workflow-based</a><a href="estimate-components.html" aria-current="page">Component-based</a></nav>\n <button class="btn" id="theme" type="button">Dark</button></div>\n </div>');
|
|
42
|
+
rep(/<p class="lead">[\s\S]*?<\/p>/, `<p class="lead">The engineer's view of the estimate: the signed-off score review, read-only, with the price on top. <b>Scoring</b> shows each feature's scores and price; <b>Effort</b> shows the components behind it, with their hours and tasks. The client receives the proposal.</p>
|
|
43
|
+
<section class="card" id="summary"><h2>Summary</h2><p class="sec-lead">The price for this scope, from the features below.</p>
|
|
44
|
+
<div class="headline" id="headline"></div><div class="buildup" id="buildup"></div>
|
|
45
|
+
<p><button class="btn" id="xlsx" type="button" title="every feature as the v2 estimator workbook">download xlsx</button> <span class="quiet">Adjust stack familiarity or any score in the workbook; it reprices itself.</span></p></section>`);
|
|
46
|
+
rep(' <details class="guide">', ` <section class="card" id="roadmap"><h2>Milestones</h2><p class="sec-lead">Each milestone lists the client's features it finishes. Its range is its share of the build applied to the project range.</p><div class="ms" id="ms"></div></section>
|
|
47
|
+
<section class="card" id="register"><h2>Assumptions & exclusions</h2><p class="sec-lead">Shared word for word with the proposal.</p>
|
|
48
|
+
<div class="twocol"><div><h3>Assumptions</h3><ul id="assume"></ul></div><div><h3>Exclusions</h3><ul id="exclude"></ul></div></div></section>
|
|
49
|
+
<section class="card" id="method"><h2>Method</h2><p class="sec-lead">Estimator v2: five weighted scores per feature price it on continuous bands; the project roll-up adds the work feature scoring never captures.</p>
|
|
50
|
+
<div class="twocol"><div><h3>Project context factors</h3><table class="kv" id="ctx"></table></div><div><h3>Work outside the features</h3><table class="kv" id="ovh"></table></div></div>
|
|
51
|
+
<div class="twocol"><div><h3>Contingency</h3><table class="kv" id="cont"></table></div><div><h3>Range</h3><table class="kv" id="rng"></table></div></div>
|
|
52
|
+
<h3>Cross-check: the engineering work behind the price</h3><p class="sec-lead">If the implied rate sits far from what the team costs, the scores or the task list need another look.</p><table class="kv" id="xcheck" style="max-width:40rem"></table></section>
|
|
53
|
+
<details class="guide">`);
|
|
54
|
+
rep(/<span class="howto-page">You score the <b>features<\/b>[\s\S]*?<\/span>/,
|
|
55
|
+
'<span class="howto-page"><b>Scoring</b> shows each feature's scores and price; <b>Effort</b> the components behind it, with tasks and hours. Containers and components are the ones in the architecture document: <a class="archlink" href="index.html#panel-containers" target="_blank" rel="noopener">C2 containers ↗</a></span>');
|
|
56
|
+
rep('const FINAL = false;', 'const FINAL = true;');
|
|
57
|
+
rep('const TASKS = {};', 'const TASKS = PAGE.tasks;');
|
|
58
|
+
rep('const pert = ([, o, m, pp]) => (o + 4 * m + pp) / 6;', 'const pert = (x) => x[2]; // expected hours from estimation.json (agentic baselines)');
|
|
59
|
+
rep('<th class="r">O / M / P h</th>', '<th class="r">Low / Expected / High h</th>');
|
|
60
|
+
rep(/draw\(\)\.then\(\(\) => \{ if \(FINAL\) setTimeout\(pinFromHash, 150\); \}\);\n/, (m) => `${m}${readFileSync(at('./template/view.js'), 'utf8')}
|
|
61
|
+
viewSummary(PAGE.view); viewRoadmap(PAGE); viewMethod(PAGE.view);
|
|
62
|
+
const XLSX_SOURCE = {
|
|
63
|
+
rows: () => PAGE.xlsx.rows, container: (row) => row.container, levels: () => PAGE.xlsx.levels,
|
|
64
|
+
template: () => PAGE.xlsx.template, system: (row) => row.system, // the SYSTEM / MODULE workbook (estimator-system.xlsx)
|
|
65
|
+
register: () => PAGE.xlsx.register, // project name, assumptions, exclusions
|
|
66
|
+
};
|
|
67
|
+
{ // the shared workbook export, block-scoped so its helpers never collide with this page's
|
|
68
|
+
<!-- slot:XLSX -->
|
|
69
|
+
}
|
|
70
|
+
$('#xlsx').onclick = () => { window.__downloadXlsx(); $('#xlsx-remind').showModal(); }; // the download runs on; the reminder shows meanwhile
|
|
71
|
+
`);
|
|
72
|
+
|
|
73
|
+
// After the download: the Roll-up tab holds what the scores never price.
|
|
74
|
+
rep('<dialog id="dlg">', `<dialog id="xlsx-remind" aria-labelledby="xlsx-remind-title" style="max-width:32rem"><p><b id="xlsx-remind-title">Review the Project Roll-up tab</b></p>
|
|
75
|
+
<p>The workbook's last tab, Project Roll-up, sets the project context levels, the work outside features (foundation, QA, DevOps, PM…) and contingency. These change the final cost. Review and update them before you use the workbook's price.</p>
|
|
76
|
+
<div class="dlg-foot"><form method="dialog"><button class="btn primary">Got it</button></form></div></dialog>
|
|
77
|
+
<dialog id="dlg">`);
|
|
78
|
+
|
|
79
|
+
writeFileSync(OUT, html);
|
|
80
|
+
console.log(OUT);
|