<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hanieh Khanmohamad</title>
    <description>The latest articles on DEV Community by Hanieh Khanmohamad (@hanieh_khanmohamad_d9d783).</description>
    <link>https://dev.to/hanieh_khanmohamad_d9d783</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4123087%2F91c0b316-b6ae-4648-b2f3-3fa8ea9eba1e.webp</url>
      <title>DEV Community: Hanieh Khanmohamad</title>
      <link>https://dev.to/hanieh_khanmohamad_d9d783</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hanieh_khanmohamad_d9d783"/>
    <language>en</language>
    <item>
      <title>Designing a Food Traceability Event Model That Survives Real-World Handoffs</title>
      <dc:creator>Hanieh Khanmohamad</dc:creator>
      <pubDate>Tue, 10 Nov 2026 11:42:10 +0000</pubDate>
      <link>https://dev.to/mazehnameh1405/designing-a-food-traceability-event-model-that-survives-real-world-handoffs-333</link>
      <guid>https://dev.to/mazehnameh1405/designing-a-food-traceability-event-model-that-survives-real-world-handoffs-333</guid>
      <description>&lt;p&gt;A dashboard that says “shipment delivered” is not a traceability system. During a food recall, the useful questions are much harder: Which ingredient lots were combined into this finished batch? Where did those transformations happen? Which customers received the affected products?&lt;/p&gt;

&lt;p&gt;A system can answer these questions without requiring an elaborate blockchain or a large data platform. What matters first is a trustworthy model of events and relationships.&lt;br&gt;
An event is not a current inventory balance&lt;br&gt;
An inventory table tells you what you believe is in a warehouse now. A traceability event records something that happened to a product or lot at a particular time and location.&lt;/p&gt;

&lt;p&gt;The GS1 EPCIS standard describes visibility data using events that help answer what, when, where, and why. EPCIS 2.0 also supports contextual observations such as temperature. In practice, partners need a shared vocabulary as much as they need a shared API.&lt;/p&gt;

&lt;p&gt;For a minimal prototype, begin with six event categories:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Created — a production or receipt lot is assigned an identity.&lt;/li&gt;
&lt;li&gt;Packed — units are grouped into cases, pallets, or containers.&lt;/li&gt;
&lt;li&gt;Shipped — custody moves from a defined location.&lt;/li&gt;
&lt;li&gt;Received — another location acknowledges the movement.&lt;/li&gt;
&lt;li&gt;Transformed — one or more input lots become one or more output lots.&lt;/li&gt;
&lt;li&gt;Disposed — stock leaves the usable chain through destruction or another recorded disposition.
These are illustrative application events, not an exhaustive or official list of EPCIS event types or of the FDA's Critical Tracking Events.
Start with a small, explicit record
Here is an intentionally simplified event. It is not an EPCIS-compliant JSON document. A production integration should adopt the official GS1 data model and controlled vocabularies.
{
"event_id": "evt-2026-0114",
"event_type": "received",
"occurred_at": "2026-11-09T08:42:00Z",
"lot_id": "LOT-PEAR-204",
"product_id": "SKU-PEAR-BOX-10KG",
"location_id": "WH-02",
"quantity": 125,
"unit": "box",
"previous_event_id": "evt-2026-0113",
"operator_id": "team-03"
}
The field names are less important than their meanings. Document the unit of measure, the identity of each organization, and the distinction between a product identifier and a particular production lot. If a receiver measures kilograms while a shipper records cases, preserve both measurements and the conversion rule rather than quietly rewriting history.
Five implementation decisions that make or break a recall&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keep an append-only audit trail. A corrected quantity should generate a new correction record tied to the earlier event. An update that silently replaces the original record may conceal precisely the discrepancy investigators need to understand. This does not mean the entire application must use event sourcing; the audit history just needs to remain inspectable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Model transformations as relationships. Suppose flour lots F-17 and F-18 are used in production batch B-55. A scan of the finished batch is not enough. You need explicit edges from both inputs to the output, including measured or estimated quantities. The resulting graph allows a query to move backward toward suppliers or forward toward customers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use globally unambiguous identities where necessary. Human-readable names such as “Warehouse 2” are prone to collisions. Keep identifiers stable across organizational boundaries, and map partner-specific codes to a canonical identity with documented ownership.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Treat time and sensors carefully. Store timestamps with offsets or in UTC, preserve the observed local context, and record device identity and calibration metadata for temperature readings. Missing samples are unknown, not evidence that the cold chain remained within limits.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Protect commercially sensitive data. A downstream buyer may need confirmation that a lot passed an inspection; it rarely needs unrelated supplier prices or employee records. Implement field-level permissions and log access to shared records.&lt;br&gt;
A recall drill is a better test than a dashboard demo&lt;br&gt;
Pick a hypothetical finished food lot and ask the application to return the full chain of input lots, processing events, storage locations and customer shipments. Time how long it takes, then reverse the query from an input lot and identify every affected output lot.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try four failure cases: a scanner working offline, a late data upload, a duplicate receiving record, and a partner using an unexpected unit of measure. A credible system must explain gaps rather than return a confident-looking but incomplete answer.&lt;/p&gt;

&lt;p&gt;Useful metrics include time to reconstruct a lot's history, percentage of shipments with complete handoff records, and number of unresolved identity mismatches. “We collected a million events” is not a safety metric.&lt;/p&gt;

&lt;p&gt;In the United States, the FDA's Food Traceability Rule also requires specific Key Data Elements (KDEs) around Critical Tracking Events (CTEs) for certain foods. As of November 2026, the agency states that Congress directed it not to enforce the rule before July 20, 2028. A prototype data model should never be mistaken for a compliance assessment: map each relevant legal requirement independently. See the FDA's rule overview.&lt;br&gt;
The problem continues beyond the API&lt;br&gt;
Food traceability is ultimately a cooperation problem. One organization can build a flawless event store and still fail if a carrier, co-packer or retailer cannot match its identifiers or deliver its records during an investigation.&lt;/p&gt;

&lt;p&gt;For readers examining the commercial and regional dimensions of food production, distribution and logistics, Mazehnameh provides Persian-language &lt;a href="https://mazehnameh.ir/" rel="noopener noreferrer"&gt;food supply-chain&lt;/a&gt; analysis. The technical architecture and the operational reality should inform one another.&lt;/p&gt;

&lt;p&gt;Start with one product family and a small set of partners. Rehearse both forward and backward tracing. Add features only after a real gap appears in the drill.&lt;br&gt;
References and further reading&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GS1 — What is Electronic Product Code Information Services (EPCIS)?&lt;/li&gt;
&lt;li&gt;GS1 — EPCIS 2.0 standard&lt;/li&gt;
&lt;li&gt;US FDA — Food Traceability Rule overview
Editorial disclosure: This educational article was drafted with generative AI assistance. It contains a simplified illustrative record, not production software or legal compliance advice. Subject-matter review is recommended before implementing its design.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Which Business Tasks Should You Delegate to AI? A Practical 2x2 Decision Matrix</title>
      <dc:creator>Hanieh Khanmohamad</dc:creator>
      <pubDate>Sun, 13 Sep 2026 11:57:24 +0000</pubDate>
      <link>https://dev.to/hanieh_khanmohamad_d9d783/which-business-tasks-should-you-delegate-to-ai-a-practical-2x2-decision-matrix-127h</link>
      <guid>https://dev.to/hanieh_khanmohamad_d9d783/which-business-tasks-should-you-delegate-to-ai-a-practical-2x2-decision-matrix-127h</guid>
      <description>&lt;p&gt;AI adoption inside companies often fails for a simple reason: managers start with tools instead of decisions.&lt;/p&gt;

&lt;p&gt;The useful question is not, “Where can we use AI?” It is, “Which tasks should be delegated to AI, which should stay human-led, and which should use a hybrid model?”&lt;/p&gt;

&lt;p&gt;A practical way to answer that is to score work across two dimensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repeatability:&lt;/strong&gt; How structured, frequent, and rules-based is the task?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judgment sensitivity:&lt;/strong&gt; How much context, accountability, empathy, negotiation, or strategic interpretation does the task require?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That creates a simple 2x2 matrix.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. High repeatability, low judgment: delegate aggressively
&lt;/h2&gt;

&lt;p&gt;These are the strongest candidates for AI automation.&lt;/p&gt;

&lt;p&gt;Typical examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;formatting recurring reports,&lt;/li&gt;
&lt;li&gt;classifying support tickets,&lt;/li&gt;
&lt;li&gt;summarizing standard documents,&lt;/li&gt;
&lt;li&gt;extracting structured data,&lt;/li&gt;
&lt;li&gt;producing first-pass meeting notes,&lt;/li&gt;
&lt;li&gt;monitoring predefined metrics,&lt;/li&gt;
&lt;li&gt;generating routine variations of internal content.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The management objective here is straightforward: reduce cycle time and free people from mechanical work.&lt;/p&gt;

&lt;p&gt;The main risk is not usually “bad strategy.” It is process quality. If inputs are inconsistent, the AI will automate inconsistency faster. Before deployment, standardize the workflow and define exception handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. High repeatability, high judgment: use a human-in-the-loop model
&lt;/h2&gt;

&lt;p&gt;These tasks look automatable because they happen frequently, but the consequences of a wrong decision can be significant.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;reviewing customer complaints,&lt;/li&gt;
&lt;li&gt;drafting performance feedback,&lt;/li&gt;
&lt;li&gt;evaluating sales opportunities,&lt;/li&gt;
&lt;li&gt;preparing credit or risk assessments,&lt;/li&gt;
&lt;li&gt;screening contracts,&lt;/li&gt;
&lt;li&gt;recommending pricing changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI can do valuable preparatory work: summarize evidence, identify patterns, rank alternatives, and flag anomalies. But a human should remain accountable for the final call.&lt;/p&gt;

&lt;p&gt;This is where many companies get the biggest productivity gain without creating unnecessary governance risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Low repeatability, low judgment: assist rather than automate
&lt;/h2&gt;

&lt;p&gt;One-off or occasional tasks may not justify building an automated workflow, but AI can still accelerate them.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;brainstorming workshop agendas,&lt;/li&gt;
&lt;li&gt;comparing software options,&lt;/li&gt;
&lt;li&gt;creating a first draft of a project brief,&lt;/li&gt;
&lt;li&gt;summarizing unfamiliar background material,&lt;/li&gt;
&lt;li&gt;exploring alternative ways to structure a presentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The right mental model is “copilot,” not “autopilot.” The goal is speed of exploration.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Low repeatability, high judgment: keep humans in charge
&lt;/h2&gt;

&lt;p&gt;This quadrant contains work where organizational context and accountability matter more than processing speed.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;choosing a new market,&lt;/li&gt;
&lt;li&gt;handling a major negotiation,&lt;/li&gt;
&lt;li&gt;terminating a senior employee,&lt;/li&gt;
&lt;li&gt;defining company positioning,&lt;/li&gt;
&lt;li&gt;responding to a reputational crisis,&lt;/li&gt;
&lt;li&gt;making a large capital allocation decision.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI may still support the process by stress-testing assumptions, generating scenarios, or exposing blind spots. But delegating ownership of the decision itself is usually the wrong design choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add a third variable: cost of error
&lt;/h2&gt;

&lt;p&gt;The 2x2 matrix becomes more useful when managers add one more question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What happens if the AI is wrong?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A mistake in an internal meeting summary is very different from a mistake in a regulatory filing or a major customer commitment.&lt;/p&gt;

&lt;p&gt;For each candidate task, estimate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;frequency,&lt;/li&gt;
&lt;li&gt;time currently consumed,&lt;/li&gt;
&lt;li&gt;degree of repeatability,&lt;/li&gt;
&lt;li&gt;judgment required,&lt;/li&gt;
&lt;li&gt;cost of error,&lt;/li&gt;
&lt;li&gt;reversibility of the decision.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;High-frequency, repeatable, low-cost-of-error work should move to the front of the AI adoption queue.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple implementation process
&lt;/h2&gt;

&lt;p&gt;A manager can operationalize the matrix in five steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Inventory tasks, not job titles
&lt;/h3&gt;

&lt;p&gt;Do not ask whether a “marketing manager” or “financial analyst” can be automated. Break each role into individual tasks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Score every task
&lt;/h3&gt;

&lt;p&gt;Use a 1–5 scale for repeatability, judgment sensitivity, and cost of error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Pick a narrow pilot
&lt;/h3&gt;

&lt;p&gt;Choose one high-repeatability, low-risk task. Define a baseline for time, quality, and error rate before introducing AI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Measure the result
&lt;/h3&gt;

&lt;p&gt;Compare before and after performance. Productivity without quality control is not a meaningful improvement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Expand only when the process is stable
&lt;/h3&gt;

&lt;p&gt;Once the workflow performs consistently, move to the next task rather than trying to automate an entire department at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  The management principle behind the matrix
&lt;/h2&gt;

&lt;p&gt;AI strategy should be treated as a portfolio of delegation decisions.&lt;/p&gt;

&lt;p&gt;The highest-value organizations will probably not be the ones that automate the most tasks. They will be the ones that draw the clearest boundary between machine leverage and human accountability.&lt;/p&gt;

&lt;p&gt;For managers who want a compact version of this framework, ForsatNet has published &lt;a href="https://www.forsatnet.ir/ai-management-delegation-matrix.html" rel="noopener noreferrer"&gt;a practical AI delegation matrix for managers&lt;/a&gt; that applies the same logic to business decision-making.&lt;/p&gt;

&lt;p&gt;The core rule is simple: &lt;strong&gt;automate structure, augment judgment, and keep accountability human.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>management</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
