Agentic AI Atlasby a5c.ai
OverviewWikiGraphFor AgentsEdgesSearchWorkspace
/
GitHubDocsDiscord
i.2Wiki
Agentic AI Atlas · Composition: Smart Product Recommendations (DDD + Hypothesis-Driven Development + BDD + Kanban) (Library)
library/composition-smart-product-recommendationsa5c.ai
Search the atlas/
Wiki · linked records

Article and nearby pages

I.Current articlepp. 1 - 1
accessibility (Library)Aerospace Engineering Specialization (Library)AI Agents and Conversational AI Specialization (Library)Algorithms and Optimization Specialization (Library)Arts and Culture Specialization (Library)ATDD/TDD Methodology (Library)
II.Documented nodesrefs · 1
specialization:composition-smart-product-recommendations
I.
Wiki article

library/composition-smart-product-recommendations

Reading · 7 min

Composition: Smart Product Recommendations (DDD + Hypothesis-Driven Development + BDD + Kanban) (Library) reference

Implements methodology backlog Example 1 (AI-powered product recommendations engine). See

Page nodewiki/library/composition-smart-product-recommendations.mdNearby pages · 135Documents · 1

Continue reading

Nearby pages in the same section.

accessibility (Library)Aerospace Engineering Specialization (Library)AI Agents and Conversational AI Specialization (Library)Algorithms and Optimization Specialization (Library)Arts and Culture Specialization (Library)ATDD/TDD Methodology (Library)authoring (Library)AutoMaker (Library)Automotive Engineering Specialization (Library)Backend Development (Library)BDD/Specification by Example (Library)Bioinformatics and Genomics Specialization (Library)Biomedical Engineering Specialization (Library)BMAD Method (Library)business/ (folded) (Library)Business Analysis and Consulting (Library)Business Strategy and Operations (Library)Business Strategy Specialization (Library)CC10X Methodology (Library)CCPM - Claude Code PM Methodology (Library)Chemical Engineering Specialization (Library)Civil Engineering Specialization (Library)ClaudeKit Methodology (Library)Cleanroom Software Engineering (Library)CLI and MCP Development Specialization (Library)Code Migration and Modernization Specialization (Library)COG Second Brain (Library)collaboration (Library)common-utilities (Library)Communication specialization (Library)Composition: Aerospace Flight Control (Waterfall + V-Model + Cleanroom + inline Formal Verification) (Library)Composition: Legacy Modernization (Event Storming + DDD + FDD + Strangler Fig + RUP) (Library)Composition: Open Source Data-Validation Framework (TDD + BDD + Kanban + XP + Continuous Deployment) (Library)Composition: Regulated Greenfield (V-Model + DDD + Cleanroom + Waterfall) (Library)Composition: SaaS Analytics Dashboard (JTBD + Impact Mapping + Spec-Kit + Kanban + XP) (Library)Composition: Startup MVP (Shape Up + Example Mapping + TDD + Scrum) (Library)Computer Science Specialization (Library)Cryptography and Blockchain Development Specialization (Library)Customer Experience and Support Specialization (Library)customer-support (Library)Data Engineering, Analytics, and BI Specialization (Library)Data Privacy Compliance (Library)Data Science and Machine Learning Specialization (Library)Intelligence, Decision Support and Decision Making (Library)Desktop Product Development Specialization (Library)developer-relations (Library)DevOps, SRE, and Platform Engineering Specialization (Library)Digital Marketing and Content Strategy Specialization (Library)Domain-Driven Design (DDD) Methodology (Library)Double Diamond Methodology (Library)Education and Learning Specialization (Library)Electrical Engineering Specialization (Library)Embedded Systems Engineering Specialization (Library)Entrepreneurship and Startup Processes (Library)Environmental Engineering Specialization (Library)Event Storming (Library)Everything Claude Code Methodology (Library)Example Mapping Methodology (Library)Extreme Programming (XP) (Library)Feature-Driven Development (FDD) (Library)Finance, Accounting, and Economics Specialization (Library)FPGA Programming and Hardware Description Specialization (Library)Game Product Development Specialization (Library)Gas Town Methodology (Library)GPU Programming and Parallel Computing (Library)GSD-Adapted Workflows for Babysitter SDK (Library)Healthcare and Medical Management Specialization (Library)Human Resources and People Operations Specialization (Library)Humanities and Anthropology Specialization (Library)Hypothesis-Driven Development (Library)Impact Mapping Methodology (Library)Incident Management (Library)Industrial Engineering Specialization (Library)internationalization (Library)Jobs to Be Done (JTBD) Methodology (Library)Kanban (Library)Knowledge Management (Library)Legal and Compliance Specialization (Library)Logistics and Operations Specialization (Library)Maestro App Factory (Library)Marketing and Brand Management Specialization (Library)Materials Science Specialization (Library)Mathematics Specialization (Library)Mechanical Engineering Specialization (Library)media (Library)Meta Specialization - Process, Skill, and Agent Creation (Library)Metaswarm Methodology (Library)MLOps (Library)Mobile Product Development Specialization (Library)Nanotechnology Specialization (Library)Network Programming and Protocols Specialization (Library)Observability specialization (Library)Enhanced Ontology-Driven Development (ODD) Methodology (Library)Operations Management Specialization (Library)Performance Optimization and Profiling Specialization (Library)Philosophy and Theology Specialization (Library)Physics Specialization (Library)Pilot Shell Methodology for Babysitter SDK (Library)Planning with Files (Library)Procurement — business domain specialization (Library)Product Management and Product Strategy Specialization (Library)Production contract (Library)Programming Languages and Compilers Development Specialization (Library)Project Management and Leadership Specialization (Library)Public Relations and Communications Specialization (Library)QA, Testing, and Test Automation (Library)Quantum Computing Specialization (Library)Release Engineering (Library)Research Specialization (Library)Robotics and Simulation Engineering Specialization (Library)RPIKit Methodology (Library)Ruflo Methodology (Library)RUP (Rational Unified Process) (Library)Sales and Business Development Specialization (Library)Scientific Discovery and Problem Solving Specialization (Library)Scrum (Library)SDK, Platform, and Systems Development (Library)Security, Compliance, and Risk Management Specialization (Library)Security Research and Vulnerability Analysis Specialization (Library)Shape Up (Library)Shared (Cross-Domain Assets) (Library)Social Sciences Specialization (Library)Software Architecture and Design Patterns Specialization (Library)sourcing/ (folded) (Library)Spec Kit Methodology (Library)Spiral Model (Library)Superpowers Extended Methodology (Library)Supply Chain Management Specialization (Library)Technical Documentation Specialization (Library)Travel (Curated-Dataset + SQL-Tool Pattern) (Library)UX/UI Design and User Experience Specialization (Library)V-Model Methodology (Library)Venture Capital and Investment Due Diligence Specialization (Library)Waterfall Methodology (Library)Web Product Development Specialization (Library)

Documented graph nodes

Records linked directly from this page’s Page node.

specialization:composition-smart-product-recommendations

Composition: Smart Product Recommendations (DDD + Hypothesis-Driven Development + BDD + Kanban)

Implements methodology backlog **Example 1** (AI-powered product recommendations engine). See ../backlog.md (~line 1744, Status **📝 Not Implemented**): "Smart Product Recommendations". This composition supersedes that *Not Implemented* status only — no code module is replaced.

Why this composition

bounded contexts, a context map, and a ubiquitous language. The artifact that crosses its seam is the **domain model** (bounded contexts + ubiquitous language), which the strategist turns into candidate uplift levers.

falsifiable hypothesis with a primary metric, a quantified uplift target, guardrail metrics, and a measurement plan. The artifact that crosses its seam is the **hypothesis + measurement plan**.

Given/When/Then recommendation scenarios (cold-start, personalization relevance, diversity/guardrails, **no-fallback ranking**), authored **in parallel per bounded context**, each scenario id embedding its contextId and hypothesisId. The artifact that crosses its seam is the **executable gherkin suite**.

implemented so their mapped scenarios execute green, with flow metrics drawn from real card history. The artifact that crosses its seam is the **implemented, tested build**.

  • **Domain-Driven Design** owns the map: it models the catalog/shopper domain into subdomains,
  • **Hypothesis-Driven Development** owns measurable uplift: each candidate lever becomes a
  • **BDD / Specification by Example** owns executable behavior: every hypothesis is specified as
  • **Kanban** owns delivery flow: scenarios become WIP-limited cards pulled through the board,

The seam this composition exists to encode: **domain model -> hypotheses -> executable scenarios -> tested build -> validated experiment -> production rollout**, with an adversarial executed-evidence gate re-checking every seam.

Seam map

PhaseMethodologyArtifact inArtifact outCombinator used
P0 kip recall + interview(memory)topicprior seam insights, clarified requirementskipRecall, routedBreakpoint (requirements-interview, conditional)
P1 domain modelingDDD (imported)catalog description + insightsdomain model + hypothesis candidatesadversarialGate (csr.seam.domain-to-hypothesis)
P2 hypothesis formulationHypothesis-Driven (imported)candidateshypotheses + measurement plans + behavior backlog—
P3 scenario authoringBDD (csr authoring + imported execution)behavior backlog per contextexecutable gherkin + card backlog (parallel per context)adversarialGate (csr.seam.hypothesis-to-scenarios), ctx.parallel.all
P4 implementation flowKanban (imported) + csr cardscards + scenariostested build, flow metrics, scenario->test mapadversarialGate (csr.seam.flow-to-experiment), ctx.parallel.all
P5 launch + validationHypothesis-Driven (imported analysis) + csr lanestested buildlaunch + lane metrics + analysisroutedBreakpoint (experiment-launch-approval), adversarialGate (csr.experiment-validation), ctx.parallel.all
P6 rollout(release; policy-gated)validation evidencerollout decision (guarded)routedBreakpoint (recommendations-production-rollout)
P7 closeKanban retro (imported) + memorycycle recordretro, seam report, kip factskipAssert

Inputs

Code
{
  storefrontName: string (required),
  catalogDescription: string (required),
  recommendationGoals: string (required),
  boundedContextHints?: string[],
  experimentLanes?: [{ laneId, variant, description }]  (if absent, derived from validated hypotheses),
  upliftTargets?: object   (explicit per-metric uplift targets; else formulated in P2),
  requirementsClear?: boolean (default false — when false, P0 runs the interview + breakpoint),
  maxParallelContexts?: number (default 3 — parallel authoring/build chunk size),
  maxFixAttempts?: number (default 2 — adversarial-gate fix budget),
  kipEnabled?: boolean (default true),
  kipDir?: string (default '.a5c/kip'),
  kipModel?: string (default 'sonnet')
}

Outputs

Code
{
  success: boolean,
  domainModel: { subdomains, boundedContexts, contextMapPath, ubiquitousLanguage },
  hypotheses: [{ hypothesisId, statement, contextId, primaryMetric, upliftTarget, guardrailMetrics, measurementPlanPath }],
  scenarios: [{ contextId, gherkinPath, stepDefPath, scenarioIds }],
  flow: { boardPath, wipLimits, flowMetrics, cardsImplemented },
  seamGates: { domainToHypothesis, hypothesisToScenarios, flowToExperiment } each { passed, attempts, escalated, issues, evidence },
  experiment: { launch, lanes: [{ laneId, computedMetrics, rawDataPath }], analysis, validationGate },
  rollout: { approved, breakpointId, expert, autoApproved, rolledOut, response },
  retro,
  kipFactsAsserted: number,
  artifacts: array,
  metadata: { processId, runId, breakpointsHit }
}

success is true only if all three seam gates passed, experiment validation passed, the launch was approved, and (if rollout was approved) the model was rolled out. A failed seam gate, a rejected launch, or a failed validation returns an explicit success: false shape with nothing downstream ever invoked — never a silent fallback that resumes the pipeline.

Policy-gated actions

ActionbreakpointIdExpertPhaseExecutor guard
Launch live recommendation experimentexperiment-launch-approvalgrowth-product-leadP5csr.launch-experiment + csr.experiment-lane run ONLY if approved === true
Roll recommendation model to productionrecommendations-production-rolloutproduct-ownerP6csr.production-rollout runs ONLY if approved === true

Both are raised via routedBreakpoint with breakpointId = actionId, tags ['policy-gated', 'csr', <phase-tag>], strategy single, and **no** autoApproveAfterN — the process never auto-approves a policy gate. Provenance { approved, autoApproved, breakpointId, expert, response } is always recorded (autoApproved reflects response?.autoApproved === true set by an external rule). Ready for adapters/policy YAML gating on the policy-gated tag. A conditional requirements-interview breakpoint (growth-product-lead) is raised in P0 only when requirementsClear !== true.

Adversarial seam gates (executed evidence)

Every methodology handoff carries an adversarialGate reducing to { passed, issues, evidence } with mandatory evidence; three independent IRON-LAW critics fan out in parallel (none is the drafting agent, none sees another's verdict), a bounded fixer loop runs maxFixAttempts rounds between critic rounds, and exhaustion escalates to owner via the combinator-owned <gateId>.gate-escalation breakpoint.

GateSeamExecuted evidenceIron law (abridged)
csr.seam.domain-to-hypothesisDDD -> Hypothesisdesign seam (re-derive model artifacts)re-derive boundaries + language from artifacts; a metric not measurable online is a FAIL
csr.seam.hypothesis-to-scenariosHypothesis -> BDD**yes** — execute authored gherkin (expect RED/pending)every hypothesis traces to >= 1 scenario and every scenario to a hypothesis; a non-executable scenario is a FAIL
csr.seam.flow-to-experimentBDD/Kanban -> Experiment**yes** — re-run full BDD suite greenevery in-scope scenario maps to an EXECUTED passing test; any silent fallback ranking branch is a FAIL
csr.experiment-validationExperiment -> Rollout**yes** — recompute metrics from raw data + re-run BDDan uplift not reproducible from rawDataPath is a FAIL; a breached guardrail is a FAIL regardless of primary uplift

The executed-evidence gates use the imported executeTestsTask to produce executed output threaded into the critics' context.

Composed modules

defineBoundedContextsTask, createContextMapTask, buildUbiquitousLanguageTask

formulateHypothesisTask, createMeasurementPlanTask, analyzeResultsTask

pullSystemTask, flowMetricsTask, retrospectiveTask

  • `../domain-driven-design/` — identifySubdomainsTask,
  • `../hypothesis-driven-development/` —
  • `../bdd-specification-by-example/` — executeTestsTask
  • `../kanban/` — boardVisualizationTask, wipLimitManagementTask,

Combinators come from `../../specializations/common-utilities/routed-gate-combinators.js` (routedBreakpoint, adversarialGate, kipRecall, kipAssert). Phase interiors compose **by import** where ingredient exports exist; csr.* tasks are defined only for cross-methodology seams, recommendation-domain authoring/execution, and the two guarded policy executors.

Usage

js
const result = await orchestrate('methodologies/composition-smart-product-recommendations', {
  storefrontName: 'NovaMart',
  catalogDescription: 'Mid-size fashion storefront: 40k SKUs, returning + cold-start shoppers',
  recommendationGoals: 'Lift average order value and PDP click-through with cross-sell + personalization',
  requirementsClear: false,
});

Design rules honored

performed BY agents who paste executed output as evidence.

failed validation each return an explicit success: false shape; the recommendation ranking itself must specify missing-signal handling as an explicit behavior (enforced by no-fallback-ranking-critic) — never a silent alternate path. pickWinningLane returns an honest null when no lane qualifies rather than defaulting to an arbitrary lane.

requirements-interview and the combinator-owned gate escalations.

per-context authoring, P4 parallelSafe-card fan-out, P5 experiment lanes), each bounded by maxParallelContexts via chunk; dependent cards are awaited in dependsOn order via orderByDependencies, never speculatively co-scheduled.

approved === true — ready for adapters/policy YAML gating on the policy-gated tag.

  • **No shell subtasks**: every csr.* task is kind: 'agent'; scenario and metric execution is
  • **No fallbacks**: invalid inputs throw; a failed seam gate, a rejected experiment launch, and a
  • **Sparse breakpoints**: exactly the two policy gates plus a conditional
  • **Bounded loops**: each adversarial gate fixer runs at most maxFixAttempts.
  • **Honest scheduling**: ctx.parallel.all is used at exactly three sites in process code (P3
  • **Provenance recorded** for both policy gates; executors are strictly guarded on

Trail

Wiki

Library

Composition: Smart Product Recommendations (DDD + Hypothesis-Driven Development + BDD + Kanban) (Library)

Continue reading

accessibility (Library)
Aerospace Engineering Specialization (Library)
AI Agents and Conversational AI Specialization (Library)
Algorithms and Optimization Specialization (Library)
Arts and Culture Specialization (Library)
ATDD/TDD Methodology (Library)
authoring (Library)
AutoMaker (Library)

Page record

Open node ledger

wiki/library/composition-smart-product-recommendations.md

Documents

specialization:composition-smart-product-recommendations