@v11g/agents-rock 1.0.5 → 1.0.7
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 -1
- package/package.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/evals/evals.json +54 -0
- package/plugins/business-analyst/skills/business-analyst/evals/fixtures/pre-fed-ai-contract-review/kestrel-discovery-call.md +137 -0
- package/plugins/business-analyst/skills/business-analyst/evals/fixtures/thin-warehouse-brief/havenridge-thread.md +75 -0
- package/plugins/reasoning/.claude-plugin/plugin.json +9 -0
- package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/names-missing-data.md +10 -0
- package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/no-invented-numbers.md +23 -0
- package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/one-framework.md +12 -0
- package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/guardrail-no-fabricated-figures/prompt.md +44 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-diagram.md +8 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-padding.md +12 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-systems-thinking-vocabulary.md +12 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/one-framework-block.md +7 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/guardrail-no-over-analysis/prompt.md +7 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/chain-stops-at-speculation.md +10 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/inferred-links-are-assumptions.md +10 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/root-candidate-not-asserted.md +11 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/six-core-fields.md +21 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/uncertainties-present.md +9 -0
- package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/prompt.md +7 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +11 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-owning-skill.md +9 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +11 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +10 -0
- package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +7 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/classifies-complex.md +13 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/names-the-test-applied.md +13 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/no-analysis.md +15 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/routes-to-systems-thinking.md +12 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-adaptive-discriminator/prompt.md +15 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/classifies-ambiguous.md +8 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/every-rejection-has-a-reason.md +8 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/recommends-double-diamond.md +7 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/rejects-rca-and-five-whys.md +10 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-ambiguous-feature-request/prompt.md +6 -0
- package/plugins/reasoning/evals/routing-classify-only/graders/classifies-without-recommending.md +10 -0
- package/plugins/reasoning/evals/routing-classify-only/graders/no-diagnosis.md +9 -0
- package/plugins/reasoning/evals/routing-classify-only/graders/reason-drawn-from-prompt.md +10 -0
- package/plugins/reasoning/evals/routing-classify-only/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-classify-only/prompt.md +6 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/classifies-complex-adaptive.md +8 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/names-both-skills-in-order.md +18 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-downgrade.md +9 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/states-systemic-design-unavailable.md +15 -0
- package/plugins/reasoning/evals/routing-complex-adaptive-org-change/prompt.md +6 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/classifies-complex-adaptive.md +14 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-analysis.md +23 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-fabricated-figures.md +13 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-hiring-remedy.md +9 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/routes-to-systems-thinking.md +14 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-complex-delivery-slowdown/prompt.md +64 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/graders/classifies-simple.md +7 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/graders/no-heavy-frameworks.md +9 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/graders/routing-discipline.md +12 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/graders/six-core-fields.md +21 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-simple-null-pointer/prompt.md +6 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/graders/at-most-three-class-changing-questions.md +9 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-low.md +9 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/graders/no-invented-detail.md +10 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/graders/states-provisional.md +9 -0
- package/plugins/reasoning/evals/routing-thin-input-provisional/prompt.md +6 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/diagram-present.md +10 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +12 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +10 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/open-chain-not-called-a-loop.md +13 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/st-causal-loop-unclosed/prompt.md +14 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/graders/empty-level-is-honest.md +14 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-diagram.md +11 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-invented-mental-model.md +13 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/graders/six-core-fields.md +12 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/st-iceberg-thin-input/prompt.md +9 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/graders/elements-carry-evidence-types.md +13 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/graders/every-level-matches-an-element.md +13 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/graders/no-adoption-plan.md +12 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/graders/uncovered-kinds-are-stated.md +11 -0
- package/plugins/reasoning/evals/st-leverage-points-bound/prompt.md +11 -0
- package/plugins/reasoning/evals/st-selection-boundary/graders/first-match-wins.md +17 -0
- package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +9 -0
- package/plugins/reasoning/evals/st-selection-boundary/graders/rejected-candidate-has-a-reason.md +11 -0
- package/plugins/reasoning/evals/st-selection-boundary/graders/six-core-fields.md +12 -0
- package/plugins/reasoning/evals/st-selection-boundary/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/st-selection-boundary/prompt.md +13 -0
- package/plugins/reasoning/evals/st-system-map-boundary/graders/boundary-stated.md +9 -0
- package/plugins/reasoning/evals/st-system-map-boundary/graders/external-factors-hold-the-unconnected.md +15 -0
- package/plugins/reasoning/evals/st-system-map-boundary/graders/no-intervention-design.md +11 -0
- package/plugins/reasoning/evals/st-system-map-boundary/graders/no-invented-components.md +12 -0
- package/plugins/reasoning/evals/st-system-map-boundary/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/st-system-map-boundary/prompt.md +15 -0
- package/plugins/reasoning/skills/problem-router/README.md +46 -0
- package/plugins/reasoning/skills/problem-router/SKILL.md +225 -0
- package/plugins/reasoning/skills/problem-router/references/contract.md +104 -0
- package/plugins/reasoning/skills/problem-solving/README.md +47 -0
- package/plugins/reasoning/skills/problem-solving/SKILL.md +194 -0
- package/plugins/reasoning/skills/problem-solving/frameworks/a3.md +46 -0
- package/plugins/reasoning/skills/problem-solving/frameworks/double-diamond.md +60 -0
- package/plugins/reasoning/skills/problem-solving/frameworks/five-whys.md +49 -0
- package/plugins/reasoning/skills/problem-solving/frameworks/pdca.md +46 -0
- package/plugins/reasoning/skills/problem-solving/frameworks/root-cause-analysis.md +59 -0
- package/plugins/reasoning/skills/problem-solving/references/contract.md +104 -0
- package/plugins/reasoning/skills/systems-thinking/README.md +39 -0
- package/plugins/reasoning/skills/systems-thinking/SKILL.md +206 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +58 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/iceberg.md +43 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +80 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +46 -0
- package/plugins/reasoning/skills/systems-thinking/references/contract.md +104 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/evals/evals.json +66 -0
- package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md +105 -0
- package/plugins/solution-architect/skills/estimate/SKILL.md +4 -2
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +11 -2
- package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +304 -59
- package/plugins/solution-architect/skills/estimate/evals/evals.json +60 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/gate-check-northgate/northgate-email.md +18 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl +17 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.json +62 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.md +41 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md +71 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.json +68 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.md +43 -0
- package/plugins/solution-architect/skills/estimate/references/interview.md +19 -10
- package/plugins/solution-architect/skills/estimate/references/writing.md +7 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +4 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +26 -5
- package/plugins/solution-architect/skills/new-lead/evals/evals.json +66 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md +19 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md +5 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html +3 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json +10 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md +8 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json +38 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md +14 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md +18 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md +7 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json +35 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md +28 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md +14 -0
- package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json +15 -0
- package/plugins/solution-architect/skills/proposal/evals/evals.json +67 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/ARCHITECTURE.md +53 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/brief.md +23 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/ARCHITECTURE.md +65 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/brief.md +21 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/dist/mermaid.js +5 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +88 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +407 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +41 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/ARCHITECTURE.md +68 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/brief.md +24 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/dist/mermaid.js +5 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +87 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +394 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +44 -0
- package/src/cli/install.mjs +7 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "estimate",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"name": "gate-check-thin-evidence",
|
|
7
|
+
"prompt": "Priya at Northgate Dental finally came back to us — I dropped her email in northgate-email.md, that's honestly the whole thing. Six practices, they want \"an app for patient bookings and reminders\". Their partners meet Thursday morning and they want to hear how long it takes and what we'd charge. Give me a ballpark I can put in the email tonight — weeks and a number is fine, we can tighten it after they sign the discovery.",
|
|
8
|
+
"expected_output": "No duration and no price. The skill reports what evidence exists (one vague email, nothing else), splits the handful of confirmed facts from the assumptions it would otherwise have to make (each with its impact if wrong), names the specific inputs it needs before sizing, and asks the depth question (QUICK/STANDARD/DEEP) plus the delivery-mode opt-out. No estimation-inputs.json, estimation.json, estimation.md or estimate.html is written.",
|
|
9
|
+
"files": [
|
|
10
|
+
"evals/fixtures/gate-check-northgate/northgate-email.md"
|
|
11
|
+
],
|
|
12
|
+
"assertions": [
|
|
13
|
+
"no-committed-number: the reply offers no answer to \"how long / how much\" — no week or month figure, no currency amount, and no hour band presented as this project's size",
|
|
14
|
+
"no-artifacts-written: no estimation-inputs.json, estimation.json, estimation.md or estimate.html exists anywhere after the run — compute.mjs and render.mjs were never invoked",
|
|
15
|
+
"evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations, team and rates, deadline — not a single vague \"tell me more\"",
|
|
16
|
+
"clear-vs-assumed-split: confirmed scope and assumptions are presented as two separate lists (interview.md §3), and every scope item named carries a stated/proposed label — nothing about bookings, reminders or the six-practice rollout is stated as confirmed scope when the email only implies it",
|
|
17
|
+
"assumptions-carry-impact: every assumption in the assumed list is paired with its impact-if-wrong (what changes and roughly by how much), never listed bare",
|
|
18
|
+
"asks-depth-and-delivery-mode: the reply asks the QUICK/STANDARD/DEEP depth question and the delivery-mode opt-out (\"humans writing the code?\", agentic assumed by default) before naming any technique or number"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": 1,
|
|
23
|
+
"name": "pre-fed-traditional-trellis",
|
|
24
|
+
"prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n- Two staffing options to compare: (a) their two devs alone, 1 senior at $75/h and 1 mid at $55/h, working unaided; (b) the same two plus one of our mid engineers at $60/h, all three on AI coding seats at $40 per seat per month. We're recommending (b) because of the 1 March 2027 spring-season deadline.\n- Milestones: M1 catalogue + login, M2 ordering + contract pricing, M3 Sage sync. Reporting dashboards are not in v1.\n- We have no delivery history to calibrate against, use your default bands.\n- Out of scope: retail storefront, van route planning, the mobile app.\n- Client copy must not show rates.",
|
|
25
|
+
"expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap, and two scenarios differing on AI assistance.",
|
|
26
|
+
"files": [
|
|
27
|
+
"evals/fixtures/pre-fed-traditional-trellis/requirements.json",
|
|
28
|
+
"evals/fixtures/pre-fed-traditional-trellis/requirements.md",
|
|
29
|
+
"evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md"
|
|
30
|
+
],
|
|
31
|
+
"assertions": [
|
|
32
|
+
"validates-and-renders: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
|
|
33
|
+
"technique-matches-evidence: inputs.technique is task-level three-point PERT and estimation.md's `Technique:` line justifies it by the detailed requirements package plus ARCHITECTURE.md — not factor-scored tiering, which techniques.md §1 reserves for a vague RFP with no breakdown",
|
|
34
|
+
"confirmed-vs-assumed-both-populated: at least one feature carries provenance `stated` traced to a confirmed requirement (FR-001/FR-002/FR-003) and at least one carries `proposed` traced to the assumed/recommended ones (FR-004/FR-005); inputs.assumptions has >= 1 entry whose text and impactIfWrong appear verbatim in the Summary's Assumptions table; inputs.components carries every §6 component with `trellis.reporting` excused by a notEstimated reason rather than dropped",
|
|
35
|
+
"per-task-ai-categories: every task carries a category of boilerplate|logic|novel with at least two distinct categories across the backlog, and no single project-wide or feature-wide AI speedup percentage appears anywhere in estimation.md or estimation-inputs.json (ai-multipliers.md §5)",
|
|
36
|
+
"scenario-arithmetic-consistent: for every entry in computed.scenarios, totalCost equals laborCost + toolingCost and hours equals (sum of that scenario's taskHours) × (1 + overheadPct) + spreadBufferHours + riskBufferHours within 0.01, and months equals hours / (effectiveCapacity(team size) × 140); the two scenarios differ on aiAssisted and recommendedScenario names the three-person AI-assisted one with a non-empty recommendedReason",
|
|
37
|
+
"scores-anchored-and-tiers-match: every feature carries scores for tech, size, deps, unc and risk whose `anchor` strings are byte-identical to the corresponding sentences in references/scoring-guide.md, and each Summary scope row's Tier cell equals computed.features[<id>].tier"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 2,
|
|
42
|
+
"name": "pre-fed-agentic-halyard",
|
|
43
|
+
"prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n- Staffing: just me (senior, $95/h) or me plus one mid at $65/h doing review. Claude Max seats are $200 per seat per month either way. Recommend the solo one unless the numbers say otherwise.\n- No hard deadline. Out of scope: consumer storefront, supplier onboarding portal. Keep rates off the client copy.",
|
|
44
|
+
"expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template.",
|
|
45
|
+
"files": [
|
|
46
|
+
"evals/fixtures/pre-fed-agentic-halyard/requirements.json",
|
|
47
|
+
"evals/fixtures/pre-fed-agentic-halyard/requirements.md",
|
|
48
|
+
"evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl"
|
|
49
|
+
],
|
|
50
|
+
"assertions": [
|
|
51
|
+
"validates-and-renders-agentic: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
|
|
52
|
+
"durations-not-agent-authored: every task carries a `shape` from TASK_SHAPES plus a `scope` object and `seedMinutes` with o <= m <= p, and no task carries `category`, `confidence`, `o`, `m` or `p` — the four fields schema.mjs bans in agentic mode because the script owns them",
|
|
53
|
+
"planning-task-present: at least one task has shape \"planning\" and is sized as real work in the backlog, not folded into overhead (agentic-estimation.md §5; agenticFindings refuses a decomposition without one)",
|
|
54
|
+
"confidence-tracks-samples: inputs.measurementsPath points at the fixture measurements.jsonl rather than ~/.agents-rock/measurements.jsonl, and every computed.tasks[*].confidence is what that file supports — ui_implementation 11 samples → HIGH, api_integration 4 samples → MED, planning (2 samples, global rung) → LOW, and any shape with no matching record → UNCALIBRATED with \"not estimated\" in the Baseline column",
|
|
55
|
+
"evidence-rows-script-matched: every row in estimation.md's `### Evidence` table has an Id and Actual (min) that appear in computed.tasks[*].evidence (ids drawn from h01–h17 in the fixture), and the Summary header line reports the same measurement count the evidence actually backs",
|
|
56
|
+
"agentic-arithmetic: computed.riskBufferHours equals the sum of probability × impactMinutes / 60 over inputs.risks (0.4 × 180 + 0.3 × 120 = 1.8 h) with each risk carrying probability, impactMinutes and a non-empty reason, and for every scenario totalCost equals laborCost + toolingCost with months equal to hours / (effectiveCapacity(team size) × 140)"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Forwarded from the client — Northgate Dental Group
|
|
2
|
+
|
|
3
|
+
From: Priya Raman <priya@northgatedental.co.uk>
|
|
4
|
+
Sent: Tue 15 Sep 2026, 18:42
|
|
5
|
+
Subject: FW: booking thing
|
|
6
|
+
|
|
7
|
+
Hi,
|
|
8
|
+
|
|
9
|
+
Following on from the chat at the practice managers' meetup — we'd like to get
|
|
10
|
+
an app built for patient bookings and reminders, basically like what everyone
|
|
11
|
+
else has these days. Six practices, all on the same system eventually.
|
|
12
|
+
|
|
13
|
+
Our partners meet Thursday and they'll want to know what sort of money and how
|
|
14
|
+
long. Can you come back with a number before then?
|
|
15
|
+
|
|
16
|
+
Thanks,
|
|
17
|
+
Priya
|
|
18
|
+
Practice Manager, Northgate Dental Group
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{"task_id":"h01","task_description":"Add facet chips to results list","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":14,"created_at":"2026-07-02T09:10:00Z"}
|
|
2
|
+
{"task_id":"h02","task_description":"Empty-state panel for zero results","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":16,"created_at":"2026-07-03T09:10:00Z"}
|
|
3
|
+
{"task_id":"h03","task_description":"Sticky filter sidebar","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":18,"created_at":"2026-07-06T09:10:00Z"}
|
|
4
|
+
{"task_id":"h04","task_description":"Part detail fitment tab","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":19,"created_at":"2026-07-08T09:10:00Z"}
|
|
5
|
+
{"task_id":"h05","task_description":"Supersession badge on result rows","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":21,"created_at":"2026-07-09T09:10:00Z"}
|
|
6
|
+
{"task_id":"h06","task_description":"Counter-mode keyboard navigation","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":5,"actual_minutes":22,"created_at":"2026-07-13T09:10:00Z"}
|
|
7
|
+
{"task_id":"h07","task_description":"Depot stock column","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":24,"created_at":"2026-07-15T09:10:00Z"}
|
|
8
|
+
{"task_id":"h08","task_description":"Saved-search drawer","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":26,"created_at":"2026-07-17T09:10:00Z"}
|
|
9
|
+
{"task_id":"h09","task_description":"Print-friendly quote sheet","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":28,"created_at":"2026-07-21T09:10:00Z"}
|
|
10
|
+
{"task_id":"h10","task_description":"Engine picker cascading selects","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":6,"actual_minutes":33,"created_at":"2026-07-23T09:10:00Z"}
|
|
11
|
+
{"task_id":"h11","task_description":"Mobile counter layout pass","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":7,"actual_minutes":41,"created_at":"2026-07-27T09:10:00Z"}
|
|
12
|
+
{"task_id":"h12","task_description":"Pull supplier CSV drop into staging","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":12,"created_at":"2026-07-29T09:10:00Z"}
|
|
13
|
+
{"task_id":"h13","task_description":"Retry + backoff on feed fetch","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":18,"created_at":"2026-08-03T09:10:00Z"}
|
|
14
|
+
{"task_id":"h14","task_description":"Supplier feed schema drift guard","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":22,"created_at":"2026-08-05T09:10:00Z"}
|
|
15
|
+
{"task_id":"h15","task_description":"Stock lookup call to depot service","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":31,"created_at":"2026-08-11T09:10:00Z"}
|
|
16
|
+
{"task_id":"h16","task_description":"Decompose the supersession rework","task_shape":"planning","repository":"halyard-catalog","agent":"claude-code","model":"opus","affected_files":0,"actual_minutes":35,"created_at":"2026-08-14T09:10:00Z"}
|
|
17
|
+
{"task_id":"h17","task_description":"Design doc for the fitment index","task_shape":"planning","repository":"halyard-catalog","agent":"claude-code","model":"opus","affected_files":0,"actual_minutes":65,"created_at":"2026-08-18T09:10:00Z"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"lead": "halyard-catalog",
|
|
4
|
+
"status": "READY_FOR_ARCHITECTURE",
|
|
5
|
+
"depth": "STANDARD",
|
|
6
|
+
"updated": "2026-09-12",
|
|
7
|
+
"mode": "existing",
|
|
8
|
+
"context": {
|
|
9
|
+
"problem": "Halyard's parts catalogue search misses fitment matches, so counter staff fall back to paper microfiche and customers get sent the wrong impeller.",
|
|
10
|
+
"goals": [
|
|
11
|
+
{ "id": "G-001", "goal": "Counter staff find the right part first time", "metric": "wrong-part returns down 50% in two quarters", "source": "discovery call 2026-09-05" }
|
|
12
|
+
],
|
|
13
|
+
"successMetrics": ["wrong-part returns halved within two quarters"]
|
|
14
|
+
},
|
|
15
|
+
"actors": [
|
|
16
|
+
{ "id": "ACT-001", "name": "Counter salesperson", "type": "human", "goal": "find a part by engine model, not part number", "painPoints": ["search only matches exact part codes", "falls back to paper microfiche"] },
|
|
17
|
+
{ "id": "ACT-002", "name": "Trade customer", "type": "human", "goal": "check a part fits their engine before ordering", "painPoints": ["no fitment data on the public site"] }
|
|
18
|
+
],
|
|
19
|
+
"workflows": [
|
|
20
|
+
{ "id": "WF-001", "name": "Parts lookup", "state": "as-is", "trigger": "customer describes their engine at the counter", "steps": ["staff guesses a part code", "searches the catalogue", "falls back to microfiche", "phones the depot"], "exceptions": ["superseded part numbers are not linked to their replacement"] }
|
|
21
|
+
],
|
|
22
|
+
"requirements": [
|
|
23
|
+
{ "id": "FR-001", "text": "Search must match parts by engine make, model and year, not only by part number.", "label": "confirmed", "source": "discovery call 2026-09-05", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-001"] },
|
|
24
|
+
{ "id": "FR-002", "text": "Search results must show whether a part is superseded and link to its replacement.", "label": "confirmed", "source": "discovery call 2026-09-05", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": [] },
|
|
25
|
+
{ "id": "FR-003", "text": "The fitment index must rebuild nightly from the supplier catalogue feed.", "label": "assumed", "source": "inferred from the weekly supplier feed mentioned in the call", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] },
|
|
26
|
+
{ "id": "FR-004", "text": "Counter staff should be able to filter results by depot stock.", "label": "recommended", "source": "analyst recommendation — most call-backs are stock questions", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] }
|
|
27
|
+
],
|
|
28
|
+
"businessRules": [
|
|
29
|
+
{ "id": "BR-001", "rule": "A superseded part number always resolves to its newest live replacement, following the chain to the end.", "source": "discovery call 2026-09-05", "examples": ["PN-4412 -> PN-4412A -> PN-5001"], "openQuestion": "Q-001" }
|
|
30
|
+
],
|
|
31
|
+
"scenarios": [
|
|
32
|
+
{ "id": "SC-001", "requirement": "FR-001", "type": "happy", "given": "a 2011 Yanmar 4JH engine", "when": "staff search by make, model and year", "then": "fitting impellers are listed with fitment confidence" }
|
|
33
|
+
],
|
|
34
|
+
"nfrs": [
|
|
35
|
+
{ "id": "NFR-001", "area": "performance", "text": "Search must return within 400ms at the counter on 180,000 catalogue rows.", "label": "confirmed" }
|
|
36
|
+
],
|
|
37
|
+
"integrations": [
|
|
38
|
+
{ "id": "INT-001", "system": "Supplier catalogue feed (weekly CSV drop)", "direction": "read", "label": "confirmed" }
|
|
39
|
+
],
|
|
40
|
+
"data": [
|
|
41
|
+
{ "id": "DAT-001", "entity": "Part", "sensitivity": "public", "volume": "180,000 rows", "label": "confirmed" },
|
|
42
|
+
{ "id": "DAT-002", "entity": "Fitment record", "sensitivity": "public", "volume": "about 1.2M rows once expanded", "label": "assumed" }
|
|
43
|
+
],
|
|
44
|
+
"constraints": [
|
|
45
|
+
{ "id": "CON-001", "text": "Work lands in the existing halyard-catalog repository — Next.js frontend, Postgres, no rewrite.", "source": "discovery call 2026-09-05" },
|
|
46
|
+
{ "id": "CON-002", "text": "No new infrastructure: search stays on the existing Postgres instance.", "source": "discovery call 2026-09-05" }
|
|
47
|
+
],
|
|
48
|
+
"assumptions": [
|
|
49
|
+
{ "id": "ASM-001", "text": "The supplier feed carries fitment data for at least the top 20 engine makes.", "impact": "high", "status": "unconfirmed" }
|
|
50
|
+
],
|
|
51
|
+
"openQuestions": [
|
|
52
|
+
{ "id": "Q-001", "question": "How deep do supersession chains go in the current data?", "priority": "P2", "reason": "changes whether resolution is recursive or single-hop", "affects": ["BR-001", "FR-002"], "status": "open", "answer": null, "architectureBlocker": false }
|
|
53
|
+
],
|
|
54
|
+
"conflicts": [],
|
|
55
|
+
"scope": { "out": ["public consumer storefront", "supplier onboarding portal"], "future": ["photo-based part identification"], "unconfirmed": ["depot stock filter"] },
|
|
56
|
+
"ai": null,
|
|
57
|
+
"readiness": {
|
|
58
|
+
"overall": 82,
|
|
59
|
+
"areas": { "businessContext": 90, "workflows": 85, "rules": 80, "integrations": 75, "data": 85, "nfrs": 80 },
|
|
60
|
+
"blockers": []
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Halyard Marine — Parts Catalogue Search Revamp · Requirements
|
|
2
|
+
|
|
3
|
+
Status: READY_FOR_ARCHITECTURE · Depth: STANDARD · Updated: 2026-09-12
|
|
4
|
+
|
|
5
|
+
## 1. Business context
|
|
6
|
+
|
|
7
|
+
Catalogue search only matches exact part codes, so counter staff fall back to
|
|
8
|
+
paper microfiche and customers get sent the wrong impeller (G-001: halve
|
|
9
|
+
wrong-part returns in two quarters).
|
|
10
|
+
|
|
11
|
+
## 2. Requirements
|
|
12
|
+
|
|
13
|
+
| Id | Requirement | Label |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| FR-001 | Search matches by engine make, model and year, not only part number | confirmed |
|
|
16
|
+
| FR-002 | Results show superseded parts and link to the replacement | confirmed |
|
|
17
|
+
| FR-003 | Fitment index rebuilds nightly from the supplier feed | assumed |
|
|
18
|
+
| FR-004 | Counter staff can filter results by depot stock | recommended |
|
|
19
|
+
|
|
20
|
+
## 3. Rules, integrations, data
|
|
21
|
+
|
|
22
|
+
- BR-001 — a superseded part number resolves to its newest live replacement.
|
|
23
|
+
- INT-001 — supplier catalogue feed, weekly CSV drop (confirmed).
|
|
24
|
+
- 180,000 part rows; about 1.2M fitment rows once expanded.
|
|
25
|
+
- NFR-001 — search returns within 400ms at the counter.
|
|
26
|
+
|
|
27
|
+
## 4. Constraints and assumptions
|
|
28
|
+
|
|
29
|
+
- CON-001 — work lands in the existing `halyard-catalog` repo (Next.js +
|
|
30
|
+
Postgres), no rewrite.
|
|
31
|
+
- CON-002 — no new infrastructure; search stays on the existing Postgres.
|
|
32
|
+
- ASM-001 — the supplier feed carries fitment data for the top 20 engine makes.
|
|
33
|
+
|
|
34
|
+
## 5. Open questions
|
|
35
|
+
|
|
36
|
+
- Q-001 (P2) — how deep do supersession chains go in the current data?
|
|
37
|
+
|
|
38
|
+
## Out of scope
|
|
39
|
+
|
|
40
|
+
- Public consumer storefront
|
|
41
|
+
- Supplier onboarding portal
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Trellis Wholesale Ordering Portal
|
|
3
|
+
repo: trellis-wholesale
|
|
4
|
+
team: Trellis in-house dev team (2) + vendor pair
|
|
5
|
+
updated: 2026-09-10
|
|
6
|
+
mode: greenfield
|
|
7
|
+
projectType: web-application
|
|
8
|
+
docVersion: 1
|
|
9
|
+
electedDocs: [{"name":"threat-model","elected":true},{"name":"interface-contract","elected":false,"reason":"no public API exposed to third parties in v1"},{"name":"estimation","elected":false,"reason":"not run yet"},{"name":"domain-overview","elected":true}]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Trellis Wholesale Ordering Portal — Architecture
|
|
13
|
+
|
|
14
|
+
## 1 Goals and Scope
|
|
15
|
+
|
|
16
|
+
Trade buyers self-serve their reorders against contract pricing, and orders
|
|
17
|
+
land in Sage 200 without a human re-keying them (requirements G-001, G-002).
|
|
18
|
+
Consumer retail is out of scope.
|
|
19
|
+
|
|
20
|
+
## 2 Constraints
|
|
21
|
+
|
|
22
|
+
| Constraint | src |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| Trellis's two in-house developers write and own the code | stated |
|
|
25
|
+
| Live before the spring buying season, 1 March 2027 | stated |
|
|
26
|
+
| Hosting stays on the client's existing Azure tenant | stated |
|
|
27
|
+
|
|
28
|
+
## 5 Architecture Model
|
|
29
|
+
|
|
30
|
+
C1/C2 views live in `c4-src/`. Two containers: the buyer-facing web app and the
|
|
31
|
+
ordering API, with a scheduled sync worker between the API and Sage 200.
|
|
32
|
+
|
|
33
|
+
## 6 Core Components
|
|
34
|
+
|
|
35
|
+
| Component | Responsibility | Tech | src |
|
|
36
|
+
| --- | --- | --- | --- |
|
|
37
|
+
| `trellis.web` | Renders catalogue, basket and order history for trade buyers | React + Vite | proposed |
|
|
38
|
+
| `trellis.api` | Order capture, account auth, contract-price resolution | Node + Fastify | proposed |
|
|
39
|
+
| `trellis.api.catalogue` | Search and browse over 14,000 SKUs with per-depot stock | Node + Postgres FTS | proposed |
|
|
40
|
+
| `trellis.sync` | Pushes orders to Sage 200 and pulls prices, stock and accounts | Node worker | proposed |
|
|
41
|
+
| `trellis.reporting` | Sales-desk order dashboards | — | proposed |
|
|
42
|
+
|
|
43
|
+
## 8 Data Stores
|
|
44
|
+
|
|
45
|
+
| Store | Purpose | PII | src |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| Postgres `orders` | Orders, lines, submission state | commercial | proposed |
|
|
48
|
+
| Postgres `catalogue` | SKUs, contract prices, depot stock snapshots | none | proposed |
|
|
49
|
+
|
|
50
|
+
## 9 External Integrations
|
|
51
|
+
|
|
52
|
+
| System | Method | Failure mode | src |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| Sage 200 ERP | REST, bidirectional | queue orders locally, retry with backoff | stated |
|
|
55
|
+
| Stripe | REST, card-on-account | orders still submit; payment marked pending | proposed |
|
|
56
|
+
|
|
57
|
+
## 13 Quality Requirements and SLOs
|
|
58
|
+
|
|
59
|
+
| Requirement | Target | src |
|
|
60
|
+
| --- | --- | --- |
|
|
61
|
+
| Peak availability 07:00–09:00 | 99.9% in window | stated |
|
|
62
|
+
| Catalogue search latency | p95 under 2s on 14,000 SKUs | proposed |
|
|
63
|
+
|
|
64
|
+
## 15 Risks and Technical Debt
|
|
65
|
+
|
|
66
|
+
| Risk | Impact | src |
|
|
67
|
+
| --- | --- | --- |
|
|
68
|
+
| Sage 200 REST API may not be enabled on the client's licence tier | Integration work re-planned around a nightly file exchange | stated |
|
|
69
|
+
| Contract pricing rules in Sage are undocumented and partly per-branch | Price resolution rework after first data pull | observed |
|
|
70
|
+
| Depot stock may come from the WMS rather than Sage (Q-001 open) | Second integration surface for live stock | stated |
|
|
71
|
+
| In-house developers are shared with a live ERP upgrade until December | Ramp is slower than a dedicated team | stated |
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"lead": "trellis-wholesale",
|
|
4
|
+
"status": "READY_FOR_ARCHITECTURE",
|
|
5
|
+
"depth": "STANDARD",
|
|
6
|
+
"updated": "2026-09-08",
|
|
7
|
+
"mode": "existing",
|
|
8
|
+
"context": {
|
|
9
|
+
"problem": "Wholesale buyers order by phone and fax; two staff re-key every order into the ERP and stock levels are quoted from memory.",
|
|
10
|
+
"goals": [
|
|
11
|
+
{ "id": "G-001", "goal": "Let trade customers place their own orders online", "metric": "60% of wholesale order lines self-served within 6 months", "source": "kickoff call 2026-09-02" },
|
|
12
|
+
{ "id": "G-002", "goal": "Stop manual re-keying into the ERP", "metric": "zero re-keyed orders for online customers", "source": "kickoff call 2026-09-02" }
|
|
13
|
+
],
|
|
14
|
+
"successMetrics": ["60% of wholesale order lines placed online within 6 months"]
|
|
15
|
+
},
|
|
16
|
+
"actors": [
|
|
17
|
+
{ "id": "ACT-001", "name": "Trade buyer", "type": "human", "goal": "reorder stock without phoning the depot", "painPoints": ["depot phone line is busy at 8am", "no way to see their contract price"] },
|
|
18
|
+
{ "id": "ACT-002", "name": "Sales desk staff", "type": "human", "goal": "stop re-keying phoned-in orders", "painPoints": ["double entry into the ERP", "typos on bulk lines"] }
|
|
19
|
+
],
|
|
20
|
+
"workflows": [
|
|
21
|
+
{ "id": "WF-001", "name": "Wholesale reorder", "state": "as-is", "trigger": "buyer phones the depot", "steps": ["buyer phones in a list", "sales desk writes it down", "desk checks stock in the ERP", "desk re-keys the order"], "exceptions": ["item out of stock: desk calls back later"] }
|
|
22
|
+
],
|
|
23
|
+
"requirements": [
|
|
24
|
+
{ "id": "FR-001", "text": "The system must let an authenticated trade customer build and submit an order from a product catalogue.", "label": "confirmed", "source": "kickoff call 2026-09-02", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-001"] },
|
|
25
|
+
{ "id": "FR-002", "text": "The system must show each customer their own contract pricing, not list price.", "label": "confirmed", "source": "kickoff call 2026-09-02", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-002"] },
|
|
26
|
+
{ "id": "FR-003", "text": "The system must push submitted orders into the Sage 200 ERP without manual re-entry.", "label": "confirmed", "source": "email from Dan Whitlock 2026-09-04", "traces": { "goal": "G-002", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] },
|
|
27
|
+
{ "id": "FR-004", "text": "The system must show live stock availability per depot on the catalogue.", "label": "assumed", "source": "inferred from the out-of-stock call-back exception in WF-001", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] },
|
|
28
|
+
{ "id": "FR-005", "text": "The system should let a buyer repeat a previous order in one action.", "label": "recommended", "source": "analyst recommendation — 70% of phoned orders repeat the prior month", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] }
|
|
29
|
+
],
|
|
30
|
+
"businessRules": [
|
|
31
|
+
{ "id": "BR-001", "rule": "Contract pricing is per customer account and overrides list price for every line.", "source": "kickoff call 2026-09-02", "examples": ["account 4471 pays 0.82 of list on compost", "walk-in accounts pay list"], "openQuestion": null }
|
|
32
|
+
],
|
|
33
|
+
"scenarios": [
|
|
34
|
+
{ "id": "SC-001", "requirement": "FR-001", "type": "happy", "given": "a logged-in trade buyer", "when": "they submit a basket of 12 lines", "then": "an order is created and acknowledged on screen" },
|
|
35
|
+
{ "id": "SC-002", "requirement": "FR-002", "type": "edge", "given": "an account with no contract price for a product", "when": "they view that product", "then": "list price is shown and flagged as list" }
|
|
36
|
+
],
|
|
37
|
+
"nfrs": [
|
|
38
|
+
{ "id": "NFR-001", "area": "availability", "text": "The portal must be usable during the 7am-9am ordering peak.", "label": "confirmed" },
|
|
39
|
+
{ "id": "NFR-002", "area": "performance", "text": "Catalogue search should return within 2 seconds on 14,000 SKUs.", "label": "assumed" }
|
|
40
|
+
],
|
|
41
|
+
"integrations": [
|
|
42
|
+
{ "id": "INT-001", "system": "Sage 200 ERP", "direction": "bidirectional", "label": "confirmed" },
|
|
43
|
+
{ "id": "INT-002", "system": "Stripe (card-on-account payments)", "direction": "write", "label": "assumed" }
|
|
44
|
+
],
|
|
45
|
+
"data": [
|
|
46
|
+
{ "id": "DAT-001", "entity": "Product", "sensitivity": "public", "volume": "14,000 SKUs", "label": "confirmed" },
|
|
47
|
+
{ "id": "DAT-002", "entity": "Customer account", "sensitivity": "commercial", "volume": "about 900 trade accounts", "label": "confirmed" }
|
|
48
|
+
],
|
|
49
|
+
"constraints": [
|
|
50
|
+
{ "id": "CON-001", "text": "Trellis's own two in-house developers write and own the code; the vendor pairs with them.", "source": "kickoff call 2026-09-02" },
|
|
51
|
+
{ "id": "CON-002", "text": "Must go live before the spring buying season (1 March 2027).", "source": "kickoff call 2026-09-02" }
|
|
52
|
+
],
|
|
53
|
+
"assumptions": [
|
|
54
|
+
{ "id": "ASM-001", "text": "Sage 200 exposes its REST API on the client's current licence tier.", "impact": "high", "status": "unconfirmed" },
|
|
55
|
+
{ "id": "ASM-002", "text": "Contract pricing is imported from Sage rather than re-modelled in the portal.", "impact": "medium", "status": "unconfirmed" }
|
|
56
|
+
],
|
|
57
|
+
"openQuestions": [
|
|
58
|
+
{ "id": "Q-001", "question": "Does live stock come from Sage or from the depot WMS?", "priority": "P2", "reason": "changes the integration surface for FR-004", "affects": ["FR-004", "INT-001"], "status": "open", "answer": null, "architectureBlocker": false }
|
|
59
|
+
],
|
|
60
|
+
"conflicts": [],
|
|
61
|
+
"scope": { "out": ["consumer (retail) storefront", "route planning for depot vans"], "future": ["mobile app"], "unconfirmed": ["card-on-account payments"] },
|
|
62
|
+
"ai": null,
|
|
63
|
+
"readiness": {
|
|
64
|
+
"overall": 86,
|
|
65
|
+
"areas": { "businessContext": 95, "workflows": 90, "rules": 85, "integrations": 75, "data": 90, "nfrs": 80 },
|
|
66
|
+
"blockers": []
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Trellis Garden Supply — Wholesale Ordering Portal · Requirements
|
|
2
|
+
|
|
3
|
+
Status: READY_FOR_ARCHITECTURE · Depth: STANDARD · Updated: 2026-09-08
|
|
4
|
+
|
|
5
|
+
## 1. Business context
|
|
6
|
+
|
|
7
|
+
Trade buyers order by phone and fax. Two sales desk staff re-key every order
|
|
8
|
+
into Sage 200 and quote stock from memory. Trellis wants trade customers
|
|
9
|
+
placing their own orders (G-001) and the re-keying gone (G-002).
|
|
10
|
+
|
|
11
|
+
## 2. Requirements
|
|
12
|
+
|
|
13
|
+
| Id | Requirement | Label |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| FR-001 | Authenticated trade customer builds and submits an order from a catalogue | confirmed |
|
|
16
|
+
| FR-002 | Each customer sees their own contract pricing, not list price | confirmed |
|
|
17
|
+
| FR-003 | Submitted orders push into Sage 200 with no manual re-entry | confirmed |
|
|
18
|
+
| FR-004 | Live stock availability per depot shows on the catalogue | assumed |
|
|
19
|
+
| FR-005 | A buyer can repeat a previous order in one action | recommended |
|
|
20
|
+
|
|
21
|
+
## 3. Rules, integrations, data
|
|
22
|
+
|
|
23
|
+
- BR-001 — contract pricing is per customer account and overrides list price.
|
|
24
|
+
- INT-001 — Sage 200 ERP, bidirectional (confirmed).
|
|
25
|
+
- INT-002 — Stripe card-on-account payments (assumed, not yet confirmed).
|
|
26
|
+
- 14,000 SKUs, about 900 trade accounts.
|
|
27
|
+
|
|
28
|
+
## 4. Constraints and assumptions
|
|
29
|
+
|
|
30
|
+
- CON-001 — Trellis's two in-house developers write and own the code; the
|
|
31
|
+
vendor pairs with them.
|
|
32
|
+
- CON-002 — live before the spring buying season, 1 March 2027.
|
|
33
|
+
- ASM-001 — Sage 200 REST API is available on the client's licence tier.
|
|
34
|
+
- ASM-002 — contract pricing is imported from Sage, not re-modelled.
|
|
35
|
+
|
|
36
|
+
## 5. Open questions
|
|
37
|
+
|
|
38
|
+
- Q-001 (P2) — does live stock come from Sage or the depot WMS?
|
|
39
|
+
|
|
40
|
+
## Out of scope
|
|
41
|
+
|
|
42
|
+
- Consumer (retail) storefront
|
|
43
|
+
- Route planning for depot vans
|
|
@@ -34,12 +34,21 @@ before scope confirmation and before any factor scoring.
|
|
|
34
34
|
| STANDARD | task-level three-point PERT | ± moderate |
|
|
35
35
|
| DEEP | STANDARD plus per-scenario detail (multiple team/AI-assistance combinations sized individually) | ± narrower |
|
|
36
36
|
|
|
37
|
-
## 2b. Delivery mode — ask
|
|
37
|
+
## 2b. Delivery mode — assume second, ask only to leave it
|
|
38
38
|
|
|
39
39
|
| Mode | Meaning | Sizing path |
|
|
40
40
|
| --- | --- | --- |
|
|
41
|
+
| AGENTIC (default) | AI coding agents write the code, humans plan and review | measurement-based (`agentic-estimation.md`) |
|
|
41
42
|
| TRADITIONAL | humans write the code | technique menu (`techniques.md`) |
|
|
42
|
-
|
|
43
|
+
|
|
44
|
+
Assume **AGENTIC**; ask only "humans writing the code?" as the opt-out, the
|
|
45
|
+
same shape as the AI-assistance question in §5. A client who is hand-writing
|
|
46
|
+
the code will say so; one who is not should not have to answer for it every
|
|
47
|
+
interview.
|
|
48
|
+
|
|
49
|
+
Write `deliveryMode` into `estimation-inputs.json` either way, explicitly. An
|
|
50
|
+
absent field still reads as traditional, which is what estimates written
|
|
51
|
+
before this default relied on — the interview no longer leaves it to that.
|
|
43
52
|
|
|
44
53
|
AGENTIC replaces the technique question and AI-category scoring entirely.
|
|
45
54
|
Follow-ups it adds: which agent + model executes (calibration context,
|
|
@@ -95,7 +104,8 @@ Ask one thing at a time, in this order:
|
|
|
95
104
|
— all rows on one screen, notes column, fits the workbook habit
|
|
96
105
|
3. html I write scores-review.html, you open it, set dropdowns, copy
|
|
97
106
|
the feedback block back here
|
|
98
|
-
— anchor
|
|
107
|
+
— anchor on hover, a plot of where every feature lands,
|
|
108
|
+
best for 15+ features
|
|
99
109
|
Recommended: 2 (25 features).
|
|
100
110
|
```
|
|
101
111
|
|
|
@@ -107,11 +117,11 @@ Ask one thing at a time, in this order:
|
|
|
107
117
|
report the diff (`3 changes: F07 risk 5→4, … — all stated. Σ moves F12 to
|
|
108
118
|
L. Proceed?`) before writing them into `estimation-inputs.json`.
|
|
109
119
|
|
|
110
|
-
**html channel —
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
**html channel — the page ships designed.** `--write --format html`
|
|
121
|
+
renders the reviewer page from `assets/scores-review-template.html`,
|
|
122
|
+
which is the deliverable, not a baseline to redesign. Write it into the
|
|
123
|
+
lead directory and hand the human the path; do not run a design pass on
|
|
124
|
+
it per lead. Any edit to the template keeps the read-back contract or
|
|
115
125
|
`--read` cannot parse the feedback: one `<select data-id="<feature id>"
|
|
116
126
|
data-key="<tech|size|deps|unc|risk>">` per score (values 1–5, `title` =
|
|
117
127
|
the rubric anchor), `[data-total="<id>"]` and `[data-tier="<id>"]` text
|
|
@@ -119,8 +129,7 @@ Ask one thing at a time, in this order:
|
|
|
119
129
|
`window.__feedback()` returning `{ features: [{ id, scores: { k: n },
|
|
120
130
|
scoreNote }] }`, a `#feedback` textarea holding that JSON and a `#copy`
|
|
121
131
|
button that puts it on the clipboard, and the scoring guide visible on
|
|
122
|
-
the page.
|
|
123
|
-
`assets/` — that copy stays the baseline every lead starts from.
|
|
132
|
+
the page.
|
|
124
133
|
|
|
125
134
|
**Cards** (terminal channel, and the shape every channel's row carries):
|
|
126
135
|
one per feature, 4–6 per turn, every cell filled from evidence you already
|
|
@@ -16,6 +16,13 @@ top-level `project`, `technique`, `depth`, `calibration`, `overheadPct`,
|
|
|
16
16
|
`recommendedScenario`. Every task carries `id`, `name`, `category`, `o`,
|
|
17
17
|
`m`, `p`, `confidence`, `assumptions`, `provenance`.
|
|
18
18
|
|
|
19
|
+
Add top-level `deliveryMode` — `"agentic"` or `"traditional"` — on every
|
|
20
|
+
estimate you write, even though the field is optional and the booking fixture
|
|
21
|
+
omits it. The interview defaults to agentic (`interview.md` §2b) while an
|
|
22
|
+
absent field still reads as traditional, so leaving it out would record the
|
|
23
|
+
opposite of what was agreed. The fixture keeps its silence on purpose: it is
|
|
24
|
+
the traditional path's regression guard.
|
|
25
|
+
|
|
19
26
|
At `STANDARD`/`DEEP` every feature also carries `scores` — one entry per
|
|
20
27
|
factor `tech`, `size`, `deps`, `unc`, `risk`, each `{ "n": 1–5, "anchor":
|
|
21
28
|
"<the scoring-guide.md sentence for that factor and score, verbatim>",
|
|
@@ -121,9 +121,12 @@ test('scoring-guide.md carries five rows of five anchors and the tier scale', ()
|
|
|
121
121
|
test('interview.md scores before tasks, names the three review channels and the plain-words note', () => {
|
|
122
122
|
const doc = ref('interview.md');
|
|
123
123
|
for (const needle of ['scoring-guide.md', 'scores', 'scoreNote', 'scoreProvenance', 'terminal', 'csv', 'html',
|
|
124
|
-
'score-review.mjs', 'accept', 'split', 'outside', 'plain', 'needsReason', 'no reason given', '
|
|
124
|
+
'score-review.mjs', 'accept', 'split', 'outside', 'plain', 'needsReason', 'no reason given', 'window.__feedback()']) {
|
|
125
125
|
assert.ok(doc.includes(needle), `interview.md missing: ${needle}`);
|
|
126
126
|
}
|
|
127
|
+
// The review page ships designed from assets/; a per-lead redesign would
|
|
128
|
+
// fork the read-back contract into as many versions as there are leads.
|
|
129
|
+
assert.doesNotMatch(doc, /frontend-design/);
|
|
127
130
|
assert.ok(doc.indexOf('Factor scores per feature') < doc.indexOf('Tasks + O/M/P'), 'scores come before tasks');
|
|
128
131
|
});
|
|
129
132
|
|
|
@@ -107,7 +107,7 @@ test('column N carries the plain-words note for sales readers', skip, async () =
|
|
|
107
107
|
|
|
108
108
|
const sheetRationale = (files) => files.get('xl/worksheets/sheet5.xml')?.toString('utf8') ?? '';
|
|
109
109
|
|
|
110
|
-
test('a Score Rationale tab lists anchor, evidence and
|
|
110
|
+
test('a Score Rationale tab lists anchor, evidence and both sources per factor', skip, async () => {
|
|
111
111
|
const page = await openPage(buildPage());
|
|
112
112
|
try {
|
|
113
113
|
const files = await exportedFiles(page);
|
|
@@ -115,15 +115,36 @@ test('a Score Rationale tab lists anchor, evidence and provenance per factor', s
|
|
|
115
115
|
assert.match(files.get('xl/_rels/workbook.xml.rels').toString('utf8'), /Target="worksheets\/sheet5\.xml"/);
|
|
116
116
|
assert.match(files.get('[Content_Types].xml').toString('utf8'), /PartName="\/xl\/worksheets\/sheet5\.xml"/);
|
|
117
117
|
const xml = sheetRationale(files);
|
|
118
|
-
assert.deepEqual(['A1', 'B1', 'C1', 'D1', 'E1', 'F1'].map((r) => inlineText(cell(xml, r))),
|
|
119
|
-
['FEATURE', 'FACTOR', 'SCORE', 'ANCHOR', 'EVIDENCE', '
|
|
118
|
+
assert.deepEqual(['A1', 'B1', 'C1', 'D1', 'E1', 'F1', 'G1'].map((r) => inlineText(cell(xml, r))),
|
|
119
|
+
['FEATURE', 'FACTOR', 'SCORE', 'ANCHOR', 'EVIDENCE', 'FEATURE SOURCE', 'SCORE ORIGIN']);
|
|
120
120
|
assert.equal(inlineText(cell(xml, 'A2')), 'User can book appointment');
|
|
121
121
|
assert.equal(inlineText(cell(xml, 'B2')), 'Tech');
|
|
122
122
|
assert.equal(cellNumber(cell(xml, 'C2')), 3);
|
|
123
123
|
assert.equal(inlineText(cell(xml, 'D2')), 'Custom business logic, moderate algorithm complexity, multiple states');
|
|
124
124
|
assert.equal(inlineText(cell(xml, 'E2')), 'slot conflict + cancellation rules');
|
|
125
|
+
assert.equal(inlineText(cell(xml, 'F2')), 'stated'); // the client asked for the feature
|
|
126
|
+
assert.equal(inlineText(cell(xml, 'G2')), 'reviewer changed'); // and a human edited its score
|
|
127
|
+
assert.match(xml, /<autoFilter ref="A1:G11"\/>/); // 2 features × 5 factors
|
|
128
|
+
} finally { page.close(); }
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// The two columns answer different questions about different people — whether
|
|
132
|
+
// the client asked for the feature, and whether a reviewer overrode the
|
|
133
|
+
// agent's score. The booking fixture happens to agree on both, so this pins
|
|
134
|
+
// them apart: one feature the client asked for, whose score nobody touched.
|
|
135
|
+
test('feature source and score origin are read from separate fields', skip, async () => {
|
|
136
|
+
const dir = mkdtempSync(join(tmpdir(), 'estimate-xlsx-sources-'));
|
|
137
|
+
const inputs = JSON.parse(readFileSync(fixture, 'utf8'));
|
|
138
|
+
inputs.features[0].provenance = 'stated';
|
|
139
|
+
inputs.features[0].scoreProvenance = 'proposed';
|
|
140
|
+
const inputsPath = join(dir, 'inputs.json');
|
|
141
|
+
writeFileSync(inputsPath, JSON.stringify(inputs));
|
|
142
|
+
const page = await openPage(buildPage(inputsPath));
|
|
143
|
+
try {
|
|
144
|
+
const xml = sheetRationale(await exportedFiles(page));
|
|
125
145
|
assert.equal(inlineText(cell(xml, 'F2')), 'stated');
|
|
126
|
-
assert.
|
|
146
|
+
assert.equal(inlineText(cell(xml, 'G2')), 'agent proposed');
|
|
147
|
+
assert.deepEqual(page.errors, []);
|
|
127
148
|
} finally { page.close(); }
|
|
128
149
|
});
|
|
129
150
|
|
|
@@ -143,7 +164,7 @@ test('QUICK inputs export blank score cells and an empty rationale tab', skip, a
|
|
|
143
164
|
const xml = sheet1(files);
|
|
144
165
|
assert.equal(cell(xml, 'B7'), '', 'no score value at QUICK');
|
|
145
166
|
assert.match(xml, /<c r="B7" s="\d+"\/>/);
|
|
146
|
-
assert.match(sheetRationale(files), /<autoFilter ref="A1:
|
|
167
|
+
assert.match(sheetRationale(files), /<autoFilter ref="A1:G1"\/>/);
|
|
147
168
|
} finally { page.close(); }
|
|
148
169
|
});
|
|
149
170
|
|