@v11g/agents-rock 1.0.6 → 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/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/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/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/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,105 @@
|
|
|
1
|
+
# Triage Service — build spec v0.4
|
|
2
|
+
|
|
3
|
+
Status: approved for build. Nothing here is implemented yet — there is no repo.
|
|
4
|
+
Owner: Platform squad. Reviewed by Legal (2026-08-11) and SRE (2026-08-19).
|
|
5
|
+
|
|
6
|
+
## 1. What it does
|
|
7
|
+
|
|
8
|
+
Inbound customer support email lands in a shared mailbox. Today two humans read
|
|
9
|
+
every message and drag it into a queue in Zendesk. The Triage Service replaces
|
|
10
|
+
the reading step: it classifies each message into a queue, assigns a priority,
|
|
11
|
+
extracts the customer's order reference if one is present, and writes the result
|
|
12
|
+
back to Zendesk as a ticket with tags. A human still owns every reply.
|
|
13
|
+
|
|
14
|
+
Out of scope for v1: drafting replies, closing tickets, any outbound email,
|
|
15
|
+
non-English messages (they route to `queue-manual` untouched).
|
|
16
|
+
|
|
17
|
+
## 2. Actors
|
|
18
|
+
|
|
19
|
+
| Actor | What they do |
|
|
20
|
+
|---|---|
|
|
21
|
+
| Customer | Sends the inbound email. Never interacts with this service directly. |
|
|
22
|
+
| Support agent | Works the queues in Zendesk. Sees our tags and priority. |
|
|
23
|
+
| Triage reviewer | A support agent on rotation who audits the daily sample of low-confidence classifications. |
|
|
24
|
+
| Platform on-call | Gets paged when the service drops messages. |
|
|
25
|
+
|
|
26
|
+
## 3. Vocabulary
|
|
27
|
+
|
|
28
|
+
- **Message** — one inbound email, as delivered by the mail provider webhook.
|
|
29
|
+
- **Classification** — one model output: queue, priority, confidence, extracted
|
|
30
|
+
order reference. Immutable once written.
|
|
31
|
+
- **Queue** — one of six fixed destinations: billing, shipping, returns,
|
|
32
|
+
technical, abuse, manual. Not configurable at runtime.
|
|
33
|
+
- **Confidence floor** — 0.72. Below it the classification is still stored but
|
|
34
|
+
the ticket is created in `queue-manual` and flagged for the daily audit.
|
|
35
|
+
- **Replay** — re-running classification for a message we already stored, after
|
|
36
|
+
a prompt or model change. Produces a new Classification; never mutates the old.
|
|
37
|
+
|
|
38
|
+
## 4. Interfaces we consume and expose
|
|
39
|
+
|
|
40
|
+
| Interface | Direction | Notes |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Mail provider webhook (Postmark inbound) | inbound | HTTPS POST, JSON, signed with a shared secret in the `X-Postmark-Signature` header. At-least-once: duplicates are expected and must be idempotent on `MessageID`. |
|
|
43
|
+
| Zendesk Tickets API | outbound | REST, OAuth2 client credentials. Rate limit 700 requests/minute on our plan. |
|
|
44
|
+
| Anthropic Messages API | outbound | Classification. Model pinned per deploy, never "latest". |
|
|
45
|
+
| Internal admin HTTP API | exposed | Used only by the reviewer UI: list low-confidence classifications, trigger a replay. Behind the corporate SSO proxy, no public route. |
|
|
46
|
+
|
|
47
|
+
## 5. Data and sensitivity
|
|
48
|
+
|
|
49
|
+
Inbound email bodies contain customer PII: names, postal addresses, order
|
|
50
|
+
references, and occasionally card last-four digits pasted by the customer.
|
|
51
|
+
Legal's ruling (2026-08-11):
|
|
52
|
+
|
|
53
|
+
- Message bodies are **personal data under GDPR**. Store in eu-central-1 only.
|
|
54
|
+
- Retention: raw message body 30 days, then hard delete. Classification rows
|
|
55
|
+
(no body, no address) retained 24 months for model-quality analysis.
|
|
56
|
+
- The card last-four is redacted before the body is sent to the model or stored.
|
|
57
|
+
Redaction failures fail the message closed — the message routes to
|
|
58
|
+
`queue-manual` and the body is not persisted.
|
|
59
|
+
- Right-to-erasure requests must delete every row for a customer email within
|
|
60
|
+
72 hours.
|
|
61
|
+
- No customer data may leave the EU. The model vendor must be called through an
|
|
62
|
+
EU endpoint or the design must state the residency gap explicitly.
|
|
63
|
+
|
|
64
|
+
## 6. Deployment target
|
|
65
|
+
|
|
66
|
+
Decided, not open for discussion:
|
|
67
|
+
|
|
68
|
+
- AWS, `eu-central-1`, single region. No multi-region for v1.
|
|
69
|
+
- ECS Fargate, two services behind one ALB: the webhook receiver and the
|
|
70
|
+
classification worker. Worker scales on queue depth.
|
|
71
|
+
- Amazon SQS between them, with a dead-letter queue after 5 receives.
|
|
72
|
+
- Amazon RDS for PostgreSQL 16, Multi-AZ, encrypted at rest with a customer-
|
|
73
|
+
managed KMS key.
|
|
74
|
+
- Secrets in AWS Secrets Manager. No secret in an environment variable or image.
|
|
75
|
+
- CI/CD is GitHub Actions → ECR → ECS rolling deploy. Two environments, staging
|
|
76
|
+
and production. No manual deploys.
|
|
77
|
+
|
|
78
|
+
## 7. Quality requirements
|
|
79
|
+
|
|
80
|
+
| Attribute | Target | Why this number |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| Durability of inbound messages | Zero dropped messages. Every accepted webhook is either classified or in the DLQ. | This is the one thing we cannot be wrong about — a dropped message is a customer who never got an answer. |
|
|
83
|
+
| Latency | p99 under 45 seconds from webhook accept to Zendesk ticket created. | Agents start their shift at 08:00 and want the overnight queue already sorted. |
|
|
84
|
+
| Availability | 99.5% monthly for the webhook receiver. | The mail provider retries for 12 hours, so a short receiver outage is recoverable. |
|
|
85
|
+
| RPO | 5 minutes (RDS automated backups + SQS retention cover this). | |
|
|
86
|
+
| RTO | 4 hours. | Manual triage is the fallback and it works; it is just slow. |
|
|
87
|
+
| Classification accuracy | ≥ 88% agreement with the reviewer on the daily sample. | Below that, agents stop trusting the tags and the service is worse than nothing. |
|
|
88
|
+
|
|
89
|
+
## 8. Constraints
|
|
90
|
+
|
|
91
|
+
- Budget ceiling: $1,400/month all-in for production at 40k messages/month.
|
|
92
|
+
- Team: three engineers, no dedicated SRE. Anything that needs a human at 03:00
|
|
93
|
+
will not get one.
|
|
94
|
+
- Must ship a first production message by 2026-11-30.
|
|
95
|
+
- Company standard is TypeScript on Node 22. Python is not approved for
|
|
96
|
+
production services here.
|
|
97
|
+
- Mandated: every LLM call and its output is logged to the existing audit log
|
|
98
|
+
service (`audit-log`, already running, gRPC, owned by the Security team).
|
|
99
|
+
|
|
100
|
+
## 9. Known risks flagged by the reviewers
|
|
101
|
+
|
|
102
|
+
- Prompt injection from the email body. An attacker controls the entire input.
|
|
103
|
+
- Model vendor residency: unresolved at spec time, see §5.
|
|
104
|
+
- Zendesk rate limit during a morning burst after an overnight outage.
|
|
105
|
+
- Cost drift if message volume grows past 40k/month.
|
|
@@ -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
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "new-lead",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"name": "skips-to-proposal",
|
|
7
|
+
"prompt": "ok so Meridian Freight came back to us and they want a proposal by Friday. their RFP is already sitting in leads/meridian-freight-portal/. can you just run new-lead and hand me the finished proposal out the other end? I really don't have time to sit through the interview stuff today - make reasonable assumptions wherever you need to and fill the gaps in.",
|
|
8
|
+
"expected_output": "The fixture is staged as the working directory (an existing leads root). The skill refuses to jump to /proposal: it reports that /proposal hard-requires both ARCHITECTURE.md and estimation.json, neither of which exists for this lead, names the ordered chain, and stops and hands control back rather than running the chain unattended or inventing scope to fill the gaps. No document is written.",
|
|
9
|
+
"files": [
|
|
10
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json",
|
|
11
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md"
|
|
12
|
+
],
|
|
13
|
+
"assertions": [
|
|
14
|
+
"no-artifacts-written: after the turn, leads/meridian-freight-portal/ still contains only rfp.md - no proposal.md, proposal-figures.json, estimation.json, ARCHITECTURE.md, requirements.json or dist/ was created",
|
|
15
|
+
"proposal-prerequisites-named: the response states that /proposal requires both ARCHITECTURE.md and estimation.json and that neither exists for this lead yet",
|
|
16
|
+
"chain-order-stated: the response names the ordered chain - /business-analyst (when installed) then /analyze-requirements, /estimate, /proposal - instead of offering to draft a proposal directly",
|
|
17
|
+
"chain-not-run-unattended: the transcript shows at most one sub-skill invoked; /analyze-requirements, /estimate and /proposal are not run back-to-back in the same turn",
|
|
18
|
+
"no-fabricated-lead-facts: no fact absent from rfp.md (auth approach, TMS API, go-live date, budget, data ownership) is stated as a decision or assumption of record, and leads.json is byte-identical to the fixture - no invented client, title, value or scenario written",
|
|
19
|
+
"hands-back-to-human: the turn ends by asking the human to confirm the next step, not by reporting the proposal as produced or partially produced"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 1,
|
|
24
|
+
"name": "fresh-lead-northwind",
|
|
25
|
+
"prompt": "new lead - Northwind Analytics. came in through Priya on the AWS partner team, she intro'd us to their CTO Marcus Feld (marcus.feld@northwindanalytics.com). rough scope: they want to kill their nightly SFTP CSV drop and give their grocery customers a real web app for the forecasts - Okta SSO, CSV + Parquet export, audit log on exports. their RFP is at ./rfp-northwind.md. first call was 2026-09-15 and they want something back by 2026-10-02. set the workspace up for me, nothing exists in this folder yet, this is the first lead we're tracking here.",
|
|
26
|
+
"expected_output": "No leads.json exists anywhere up-tree, so the skill confirms the root with the user and runs `node scripts/init-root.mjs --root <dir>`, producing the exact workspace layout from SKILL.md (leads.json, start.sh at the root, leads/, scripts/ with serve.mjs, the dashboard pages, lib/ and vendor/). It creates leads/northwind-analytics-<project>/ in kebab-case, moves/copies the RFP in, registers the lead through scripts/lead-upsert.mjs with a created date, then stops and names /business-analyst as the next step. It does not run the chain.",
|
|
27
|
+
"files": [
|
|
28
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md"
|
|
29
|
+
],
|
|
30
|
+
"assertions": [
|
|
31
|
+
"exact-workspace-layout: `scripts/init-root.mjs` was run and all of <root>/leads.json, <root>/start.sh, <root>/leads/, <root>/scripts/serve.mjs, <root>/scripts/index.html, <root>/scripts/detail.html, <root>/scripts/stats.mjs, <root>/scripts/vendor/reactflow-bundle.js and <root>/scripts/lib/registry.mjs exist; no index.html or serve.mjs sits flat at the root",
|
|
32
|
+
"lead-dir-under-leads: the lead directory is <root>/leads/<id>/ (not <root>/<id>/), <id> matches ^[a-z0-9]+(-[a-z0-9]+)*$, and the Northwind RFP file is inside that directory",
|
|
33
|
+
"registry-entry-fields: <root>/leads.json parses, has version 1, and holds exactly one lead whose id equals the leads/ folder name verbatim, with client \"Northwind Analytics\", a non-empty title, status \"active\", created matching ^\\d{4}-\\d{2}-\\d{2}$, closed null, value null and scenario null",
|
|
34
|
+
"registry-written-via-upsert: the transcript shows `scripts/lead-upsert.mjs --root <root> --id <id> --patch '{...}'` with created in the patch; leads.json is never authored or edited with a file-write tool",
|
|
35
|
+
"validate-passes: `node scripts/validate.mjs --file <root>/leads.json` exits 0 with no findings printed",
|
|
36
|
+
"next-skill-handoff-and-stop: the response names /business-analyst as the next step (or names /analyze-requirements plus a one-line recommendation to install the business-analyst plugin) and stops there - no ARCHITECTURE.md, estimation.json or proposal.md is produced in this turn"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": 2,
|
|
41
|
+
"name": "existing-root-pipeline",
|
|
42
|
+
"prompt": "new lead: Sable Dental. our contact there is Naomi Okafor (naomi@sabledental.co.uk) - came off the back of the Harborline referral, their ops manager used to work at Sable. intro call was yesterday 2026-09-15 and my notes are already in leads/sable-dental-booking/rfp.md. 11 practices, online booking sitting on top of Dentally, circa 150k and they want it phased, first two practices live before the March recall season. add it and then show me where everything else stands - I've got a pipeline review with Dan tomorrow morning.",
|
|
43
|
+
"expected_output": "The fixture is staged as the working directory: an existing leads root with leads.json (3 entries) and leads/ folders. The skill finds that root via findLeadsRoot rather than creating a new one (refreshing scripts/ via init-root.mjs is fine), adopts leads/sable-dental-booking through lead-upsert.mjs, and prints the lead state table - zephyr-hr-portal is an orphan (entry, no folder) reported and not deleted, harborline-logistics-tms is done, vellum-books-checkout is WIP resuming at /estimate. It names the dashboard start command and the next skill for Sable, and stops.",
|
|
44
|
+
"files": [
|
|
45
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json",
|
|
46
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md",
|
|
47
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json",
|
|
48
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md",
|
|
49
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json",
|
|
50
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md",
|
|
51
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html",
|
|
52
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md",
|
|
53
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md",
|
|
54
|
+
"plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md"
|
|
55
|
+
],
|
|
56
|
+
"assertions": [
|
|
57
|
+
"existing-root-reused: the fixture's own leads.json is the file that gets updated - no second leads.json is created in a subdirectory or a new root, and its version stays 1",
|
|
58
|
+
"prior-entries-untouched: harborline-logistics-tms, vellum-books-checkout and zephyr-hr-portal keep their exact prior values for client, title, status, created, closed, value and scenario; the zephyr-hr-portal entry is still present",
|
|
59
|
+
"new-entry-matches-folder: leads.json gains exactly one entry with id \"sable-dental-booking\" (the leads/ folder name verbatim, not a re-derived slug), client \"Sable Dental\", a non-empty title, status \"active\", closed null and created matching ^\\d{4}-\\d{2}-\\d{2}$, written via `scripts/lead-upsert.mjs --root ... --id ... --patch`",
|
|
60
|
+
"validate-passes: `node scripts/validate.mjs --file <root>/leads.json` exits 0 after the write",
|
|
61
|
+
"state-table-correct: the printed state table marks zephyr-hr-portal orphan (report only, entry not deleted), harborline-logistics-tms done, vellum-books-checkout WIP resuming at /estimate (ARCHITECTURE.md present, estimation.json and proposal.md missing), and sable-dental-booking new",
|
|
62
|
+
"dashboard-and-next-step: the response names the dashboard start command at the root (`sh <root>/start.sh` or `./start.sh`, 127.0.0.1:4600) and names the next skill for sable-dental-booking (/business-analyst, else /analyze-requirements), without running the chain or writing any artifact into a lead folder"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Harborline TMS — Architecture
|
|
2
|
+
|
|
3
|
+
## 1. Introduction & Goals
|
|
4
|
+
|
|
5
|
+
Replace the in-house TMS with a modular system that keeps the existing EDI
|
|
6
|
+
gateway in place.
|
|
7
|
+
|
|
8
|
+
## 6. Core Components
|
|
9
|
+
|
|
10
|
+
| Component | Responsibility |
|
|
11
|
+
|---|---|
|
|
12
|
+
| `harbor.dispatch` | Load planning and carrier tendering |
|
|
13
|
+
| `harbor.settle` | Carrier settlement and invoicing |
|
|
14
|
+
| `harbor.track` | Customer-facing track-and-trace |
|
|
15
|
+
|
|
16
|
+
## 7. Runtime Behaviour
|
|
17
|
+
|
|
18
|
+
`harbor.dispatch` tenders a load, `harbor.settle` prices it once delivered,
|
|
19
|
+
and `harbor.track` reads status events from both.
|