Causal Couture Week 4: Preparing the Phase 4 Architecture

Ushasvi Rachel lays out the backend blueprint for Causal Couture's Phase 4 decision intelligence layer, built around a modular scorecard and structured recommendations.

4:33 video4 min readWatch on YouTube

By week three of this project, the scenario intelligence framework, user experience, and modular backend direction were already designed. Week four is where that design turns into an actual architectural plan: the analytical and backend structure needed to build phase four without duplicating work already done in earlier phases.

Why reuse, not rebuild

The starting point was reviewing how the existing phase three analytical logic could support several downstream capabilities without being rebuilt from scratch for each one. The central architectural goal was to reuse underlying calculations instead of duplicating them across different parts of the application. The existing business scorecard already evaluated four analytical dimensions: demand pressure, stock risk, engagement momentum, and conversion strength. Those four dimensions remain the foundation the planned phase four intelligence layer builds on top of, feeding into an overall signal that gets translated into a business recommendation.

A modular, reusable scorecard structure

Keeping that scorecard-to-recommendation flow consistent as the platform grows required rethinking the scorecard's structure. The plan calls for each analytical signal to be calculated independently rather than bundled together, which lets the same signals get reused by different parts of the platform instead of being recalculated separately each time. That includes defining reusable analytical functions for individual score components, so downstream features can rely on the same analytical foundation instead of rebuilding a calculation from scratch every time a new feature needs it. Underpinning this is a consistent 0 to 100 scoring structure, which lets different analytical outputs be compared and presented consistently without changing what each one is individually responsible for.

Structuring recommendations, not just returning text

The recommendation layer also needed more structure than plain text output. The plan defines a consistent output organized around four fields: action, priority, confidence, and reason. The eventual system would be able to distinguish between action categories such as reorder, monitor, hold, and deprioritize. It's worth being clear that these are defined as possible structured outputs for the architecture, not observed recommendations that have already come out of this period of work. The benefit of structuring recommendations this way is that a dashboard, scenario analysis, alerts, and the front end can all consume the same structured recommendation consistently, interpreting the same fields without each one inventing its own recommendation format.

Defensive engineering for incomplete data

Because fashion business datasets are often small or incomplete, the analytical functions also needed defensive handling for missing or non-numeric values. This wasn't an afterthought; it was treated as necessary so incomplete data doesn't make the entire analytical workflow unstable.

Five responsibilities and the data flow

The planned phase four architecture organizes around five responsibilities: core analytics, scenario intelligence, trend intelligence, alert intelligence, and dashboard aggregation. Core analytics provides reusable baseline scores and recommendation logic, while the other four components apply hypothetical changes, evaluate period-to-period patterns, identify signal combinations that need attention, and aggregate results for the front end. Because these components depend on some of the same underlying calculations, the architecture uses one shared analytical layer instead of separate versions of the scorecard for the dashboard and the scenario lab. The intended flow runs from the unified dataset into core analytics, then into trends, alerts, and scenario analysis, then into the dashboard, and finally into a business decision. This preserves the existing phase one through phase three ingestion and preprocessing pipeline rather than rebuilding the data foundation; phase four adds a new intelligence layer on top of it.

A methodological line is drawn deliberately here too: observed signals describe patterns in uploaded data, scenario simulations are user-driven hypothetical changes, and causal effects require a separate causal inference methodology that this architecture does not itself produce.

Key takeaways

  • The central goal of week four was architectural reuse: sharing analytical calculations across features instead of duplicating them.
  • A modular scorecard separates four analytical dimensions (demand pressure, stock risk, engagement momentum, conversion strength) into independently reusable components on a consistent 0-100 scale.
  • Recommendations are structured into four fields, action, priority, confidence, and reason, so different parts of the platform can consume them consistently.
  • Defensive handling for missing or non-numeric values keeps the analytical workflow stable on small or incomplete datasets.
  • The architecture organizes around five responsibilities, feeding a unified dataset through core analytics into trends, alerts, scenario analysis, and finally a dashboard.
  • Observed signals, scenario simulations, and causal effects are treated as methodologically distinct, with causal effects explicitly requiring separate causal inference methods.

Who this is for

This is a useful watch for anyone interested in how a small analytics team plans a backend architecture before building it, particularly in data-constrained domains like fashion retail. This update comes from Ushasvi Rachel as part of the Humanitarians AI Fellows Causal Couture project.

Chapters

  1. 0:00Week 4: Preparing the Phase 4 Architecture
  2. 0:22Reusing Calculations: The Modular 0–100 Scorecard
  3. 0:50Structuring Recommendations: Action, Priority, Confidence, and Reason
  4. 1:18Defensive Engineering: Handling Missing and Non-Numeric Values
  5. 1:45The 5 Core Backend Responsibilities
  6. 2:10The Data Flow: Unified Dataset to Executive Dashboard
Full transcript(auto-generated, with timestamps)

Week 4: Preparing the Phase 4 Architecture

[0:00]Week three ended with the scenario intelligence framework, user experience, and modular back-end direction designed. The next step was preparing the analytical and back-end architecture required for phase 4 implementation. I reviewed how the existing phase 3 analytical logic would support several downstream capabilities. The central

Reusing Calculations: The Modular 0–100 Scorecard

[0:22]Architectural goal was to reuse the underlying calculations instead of duplicating them across the application. The existing business scorecard evaluated four analytical dimensions. Demand pressure, stock risk, engagement momentum, and conversion strength. These remain the foundation of the planned phase for intelligence layer. The four dimensions feed an overall signal which is then translated into a business recommendation.

Structuring Recommendations: Action, Priority, Confidence, and Reason

[0:50]This established scorecard torecommendation flow needed to remain consistent as the platform expanded. I planned a more modular scorecard structure in which each analytical signal could be calculated independently. Separating the components would make the same signals available to different parts of the platform. This included defining reusable analytical functions for the individual score components. Instead of rebuilding a calculation for every feature, downstream components

Defensive Engineering: Handling Missing and Non-Numeric Values

[1:20]Could rely on the same analytical foundation. I also established a consistent 0 to 100 scoring structure. The shared range would allow the different analytical outputs to be compared and presented consistently without changing their individual responsibilities. The recommendation layer also needed more structure. Rather than returning only plain text, I defined a consistent output organized as

The 5 Core Backend Responsibilities

[1:45]Action, priority, confidence, and reason. The eventual system could distinguish between action categories such as reorder, monitor, hold, and dep prioritize. These were defined as possible structured outputs, not as observed recommendations from this period. A structured recommendation could later be consumed consistently by the dashboard, scenario analysis, alerts, and the front

The Data Flow: Unified Dataset to Executive Dashboard

[2:11]End. Each component could interpret the same fields without inventing its own recommendation format. The analytical functions also needed defensive handling for missing or non-numeric values. This was important because small or incomplete fashion business data sets should not make the analytical workflow unstable. I organized the planned phase for architecture around five responsibilities. Core analytics, scenario intelligence, trend intelligence, alert intelligence, and dashboard aggregation. Core analytics would provide reusable baseline scores and recommendation logic. The other components would apply hypothetical changes, evaluate periodto period patterns, identify signal combinations requiring attention, and aggregate the results for the front end. These components depend on some of the same calculations. The architecture therefore used a shared analytical layer instead of implementing separate versions of the scorecard for the dashboard and scenario lab. The input to this architecture remained the existing unified date by SKU data set. That data set would feed core

Analytics before its signals were used by the planned phase four intelligence components. The intended flow became unified data set, core analytics, trends, alerts and scenario analysis, then dashboard and finally business decision. This approach preserved the phase 1 through phase 3 ingestion and preprocessing pipeline. Phase 4 would add a new intelligence layer on top of the unified data set rather than rebuilding the existing data foundation. The methodological boundaries also remained explicit. Observed signals describe patterns in uploaded data. Scenario simulations are userdriven hypothetical changes. Causal effects require a separate causal inference methodology and are not produced by this architecture. By the end of week four, the analytical and backend architecture for phase 4 had been prepared. a modular scorecard, structured recommendations, defined component responsibilities, and an integration path from the unified data set into scenario, trend, alert, and dashboard layers. I'm Ashaz Vi Rachel for humanitarians AI.

More from HAI

Humanitarians AI Lyrical Literacy Project