<?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: Hasnain Qureshi</title>
    <description>The latest articles on DEV Community by Hasnain Qureshi (@hasnainqureshi).</description>
    <link>https://dev.to/hasnainqureshi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261409%2F16d47ad4-258d-4123-b041-cd637699a41d.jpg</url>
      <title>DEV Community: Hasnain Qureshi</title>
      <link>https://dev.to/hasnainqureshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasnainqureshi"/>
    <language>en</language>
    <item>
      <title>Model Consolidation as a History of Membership, Not a List of Current Contents</title>
      <dc:creator>Hasnain Qureshi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 21:26:29 +0000</pubDate>
      <link>https://dev.to/hasnainqureshi/model-consolidation-as-a-history-of-membership-not-a-list-of-current-contents-5pd</link>
      <guid>https://dev.to/hasnainqureshi/model-consolidation-as-a-history-of-membership-not-a-list-of-current-contents-5pd</guid>
      <description>&lt;p&gt;Picture a bag that left the hub this afternoon. This morning it held twelve customer packages. One was pulled for review before departure. Tonight a destination team wants to know what actually traveled, and a customer wants to know which handling fees apply to the package that stayed behind.&lt;/p&gt;

&lt;p&gt;If the platform stores only the group's current contents, both answers may already be gone. The bag now looks as though the removed package was never there. Billing cannot tell a service performed on the package from a charge that belonged to the group. Customer status has nothing reliable to show.&lt;/p&gt;

&lt;p&gt;This is the records problem behind consolidation at a multi-market hub. I have worked on a Caribbean cross-border forwarding platform for a Miami hub serving 9+ markets, where receiving, grouping, destination-specific charges, and handoffs have to remain explainable after the freight has moved. The design note below is a recommended model. It is not a dump of a client's production database.&lt;/p&gt;

&lt;p&gt;GS1 identifies a logistics unit with an SSCC, and GS1 materials on shipping management describe relationships between units, shipments, and consolidated consignments. An SSCC should not be treated as interchangeable with a parcel carrier's tracking number. You do not need to adopt every identifier standard on day one. You do need identities that grouping cannot destroy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four identities, plus an event log
&lt;/h2&gt;

&lt;p&gt;I would distinguish:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The individual package the customer cares about.&lt;/li&gt;
&lt;li&gt;Any physical grouping (a bag, carton, pallet, or master unit).&lt;/li&gt;
&lt;li&gt;The onward dispatch or shipment that is supposed to leave the hub.&lt;/li&gt;
&lt;li&gt;External references: inbound tracking, an SSCC if you use one, a carrier tracking number for the onward movement.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The current membership of a group can be a view. It should not be the only table you have.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;package&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                   &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;customer_account_id&lt;/span&gt;  &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;origin_reference&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;-- inbound tracking or purchase ref&lt;/span&gt;
  &lt;span class="n"&gt;destination_market&lt;/span&gt;   &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- a specific market, not a catch-all&lt;/span&gt;
  &lt;span class="n"&gt;current_status&lt;/span&gt;       &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;    &lt;span class="c1"&gt;-- received, held, assigned,&lt;/span&gt;
                                        &lt;span class="c1"&gt;-- departed, arrived, exception&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;logistics_unit&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                      &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;unit_type&lt;/span&gt;               &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- package, bag, carton, pallet, master&lt;/span&gt;
  &lt;span class="n"&gt;sscc&lt;/span&gt;                    &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;-- optional; not a parcel tracking number&lt;/span&gt;
  &lt;span class="n"&gt;carrier_tracking_number&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;purpose&lt;/span&gt;                 &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- receiving, consolidation, onward_shipment&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt;              &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- A package may also be represented as a logistics_unit of type 'package'.&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;package_unit&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;package_id&lt;/span&gt;  &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;package&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;unit_id&lt;/span&gt;     &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;unique&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;logistics_unit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;unit_membership_event&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;              &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;child_unit_id&lt;/span&gt;   &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;logistics_unit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parent_unit_id&lt;/span&gt;  &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;logistics_unit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;event_type&lt;/span&gt;      &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- assigned, removed, held, handed_over, received&lt;/span&gt;
  &lt;span class="n"&gt;occurred_at&lt;/span&gt;     &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;actor_id&lt;/span&gt;        &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;          &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;location_id&lt;/span&gt;     &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;-- hub or destination office&lt;/span&gt;
  &lt;span class="n"&gt;evidence&lt;/span&gt;        &lt;span class="kt"&gt;text&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;dispatch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                   &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;destination_market&lt;/span&gt;   &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;master_unit_id&lt;/span&gt;       &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;logistics_unit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;planned_departure_at&lt;/span&gt; &lt;span class="kt"&gt;timestamptz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;departed_at&lt;/span&gt;          &lt;span class="kt"&gt;timestamptz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;arrived_at&lt;/span&gt;           &lt;span class="kt"&gt;timestamptz&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- A point-in-time list of what was expected or what actually moved.&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;dispatch_membership_snapshot&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;               &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;dispatch_id&lt;/span&gt;      &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;package_id&lt;/span&gt;       &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;package&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;included&lt;/span&gt;         &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;snapshot_at&lt;/span&gt;      &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;snapshot_reason&lt;/span&gt;  &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- planned, departed, arrived&lt;/span&gt;
  &lt;span class="k"&gt;unique&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dispatch_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;package_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;snapshot_reason&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;snapshot_at&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Current contents can then be derived, instead of being edited in place:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Latest membership event per child/parent pair.&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;view&lt;/span&gt; &lt;span class="n"&gt;unit_current_membership&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt;
&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;distinct&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;child_unit_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parent_unit_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;child_unit_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parent_unit_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;event_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;occurred_at&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;unit_membership_event&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;child_unit_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parent_unit_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;occurred_at&lt;/span&gt; &lt;span class="k"&gt;desc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;desc&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A package is in a group now only if its latest event for that parent is &lt;code&gt;assigned&lt;/code&gt; or &lt;code&gt;handed_over&lt;/code&gt;, not &lt;code&gt;removed&lt;/code&gt; or &lt;code&gt;held&lt;/code&gt;. That rule should be explicit in code. Do not infer it from a missing row.&lt;/p&gt;

&lt;h2&gt;
  
  
  Departed means "verified membership at the handoff," not "everyone who was ever assigned"
&lt;/h2&gt;

&lt;p&gt;The bug I want to prevent is this: a package is assigned, then removed; the dispatch later departs; a report of "packages on dispatch X" is written as &lt;code&gt;where dispatch_id = X&lt;/code&gt; against a current-contents table that no longer mentions the removal. The destination team cannot see the hole. Billing may still attach a group-level fee to a package that never left, or fail to bill a hold that did occur.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function removePackageFromDispatch(package, dispatch, actor, reason):
  parent = dispatch.master_unit
  child  = unit for package

  append unit_membership_event(
    child, parent,
    event_type = "removed",
    occurred_at = now(),
    actor, reason,
    location = current hub
  )

  set package.current_status = "held" or "exception",
      according to the reason

  mark any group-level checks as needing review
    (weight, piece count, documents, seal)

  do not edit earlier membership events
  do not assume destination charges or handling fees
    should move to the group or disappear

function closeDispatchForDeparture(dispatch, actor):
  members = packages whose latest event on dispatch.master_unit
            is an included type (assigned or handed_over)

  write dispatch_membership_snapshot(
    dispatch,
    every package ever assigned, with included = true/false,
    snapshot_reason = "departed",
    snapshot_at = now()
  )

  set dispatch.departed_at = now()
  set current_status = "departed" only for members actually included

  packages removed or held stay on their own status
  their history remains queryable against the same dispatch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two billing rules fall out of the same model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A service performed on the package (repacking, storage, a hold, a destination charge for that market) should reference the package, the account, and the time it was recorded.&lt;/li&gt;
&lt;li&gt;A service charged to the group (a master-bag handling fee, a shared transport cost) should reference the dispatch and the snapshot that was in effect, not a later rewrite of membership.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you only store the second kind of charge, and membership is a mutable list, you will not be able to explain either one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test a difficult dispatch, not only a clean bag
&lt;/h2&gt;

&lt;p&gt;Walk the model through four cases before you trust a "add to consolidation" button:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A normal consolidation that departs as planned.&lt;/li&gt;
&lt;li&gt;A package removed before departure, with a reason and an owner.&lt;/li&gt;
&lt;li&gt;A held item that never joins a dispatch.&lt;/li&gt;
&lt;li&gt;A destination discrepancy: the arrived snapshot does not match the departed snapshot.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For each case, ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which record explains what was expected?&lt;/li&gt;
&lt;li&gt;Which record confirms what was handed over?&lt;/li&gt;
&lt;li&gt;Can staff trace the package without opening the group?&lt;/li&gt;
&lt;li&gt;Can billing distinguish package-level services from group-level services?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those questions are the requirements. The schema above is only useful if it can answer them after the freight has left the building.&lt;/p&gt;

&lt;p&gt;This is the kind of exception that &lt;a href="https://blinkshift.net/cross-border-logistics-software/" rel="noopener noreferrer"&gt;custom cross-border forwarding software&lt;/a&gt; has to hold if a corridor app only tracks the group that exists right now. Buy the existing product if it already preserves membership history, departed snapshots, and package-level charges. Extend or build when that history still lives in a spreadsheet.&lt;/p&gt;

&lt;p&gt;This article is a rewritten engineering treatment of a subject I first discussed for operators, originally published on &lt;a href="https://blinkshift.net/consolidation-individual-package-history/" rel="noopener noreferrer"&gt;Consolidation Should Not Erase Individual Package History&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Hasnain Qureshi is co-founder of &lt;a href="https://blinkshift.net/" rel="noopener noreferrer"&gt;BlinkShift&lt;/a&gt;, which builds custom software for forwarding, consolidation, and destination-charge workflows.&lt;/p&gt;

</description>
      <category>logistics</category>
      <category>postgres</category>
      <category>architecture</category>
      <category>database</category>
    </item>
    <item>
      <title>Don't Store "EEI Not Required" Until Someone Has Actually Decided</title>
      <dc:creator>Hasnain Qureshi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 21:25:46 +0000</pubDate>
      <link>https://dev.to/hasnainqureshi/dont-store-eei-not-required-until-someone-has-actually-decided-4dn</link>
      <guid>https://dev.to/hasnainqureshi/dont-store-eei-not-required-until-someone-has-actually-decided-4dn</guid>
      <description>&lt;p&gt;Most shipping screens can store an answer to "is an export filing required?" Far fewer store the decision. I have seen operators tick "no" and move on, while the record keeps neither the reason, nor the person who was allowed to say so, nor the commodity and value information the answer was based on.&lt;/p&gt;

&lt;p&gt;That is a software design problem, not a small UI defect. On a high-value jewelry shipment, the same job may also be waiting on a coverage review or a credit hold. If those decisions share a single "approved" flag with the export question, a shipment can look ready to tender while an unresolved filing review is still sitting in someone's inbox.&lt;/p&gt;

&lt;p&gt;This article is about the records I want in the system. It is not a filing determination for any shipment. Authorized business owners and filing specialists define the applicable rules, exceptions, and responsibilities. Trade.gov's AES overview describes filing requirements that include classification-based value considerations and mandatory filing circumstances. The U.S. Census Bureau maintains the Foreign Trade Regulations and related resources. A checkbox driven by one total-value test is not a complete decision model, and a software team should not pretend it is.&lt;/p&gt;

&lt;p&gt;BlinkShift builds the software. We do not sell insurance, and we do not make the export decision that the record has to preserve.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate the review queue from the filing result
&lt;/h2&gt;

&lt;p&gt;High-value shipping already stops work for a reason. An address that fails validation should not silently print a label. A declared value, commodity, or destination that triggers a coverage rule should go to a reviewer. Export review belongs in the same family of controls: a pending state, an owner, and a step it blocks.&lt;/p&gt;

&lt;p&gt;I would keep two ideas apart in the schema.&lt;/p&gt;

&lt;p&gt;First, a generic exception-review item: something about this shipment needs a person with the right permission, and the shipment may not proceed past a defined step until that item is resolved.&lt;/p&gt;

&lt;p&gt;Second, an EEI/AES filing record: the assessment of whether filing is required, the basis for that assessment, and — only when the approved process says filing is required — the state of the filing itself. Assessment status and filing status are not the same column. "Not required" is a completed assessment. "Not yet assessed" is not.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;shipment&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                       &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;account_id&lt;/span&gt;               &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;origin_country&lt;/span&gt;           &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;destination_country&lt;/span&gt;      &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;service_code&lt;/span&gt;             &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;commodity_description&lt;/span&gt;    &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;-- classification is versioned elsewhere; this is the code in force&lt;/span&gt;
  &lt;span class="c1"&gt;-- on this shipment at the time of the last assessment&lt;/span&gt;
  &lt;span class="n"&gt;classification_code&lt;/span&gt;      &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;classification_system&lt;/span&gt;    &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;-- e.g. schedule_b, as approved&lt;/span&gt;
  &lt;span class="n"&gt;declared_value_amount&lt;/span&gt;    &lt;span class="kt"&gt;numeric&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;declared_value_currency&lt;/span&gt;  &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;current_status&lt;/span&gt;           &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;  &lt;span class="c1"&gt;-- draft, in_review, ready, tendered, cancelled&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;review_queue_item&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;              &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;shipment_id&lt;/span&gt;     &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;shipment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;review_type&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- coverage_eligibility, credit_hold, eei_filing, address&lt;/span&gt;
  &lt;span class="n"&gt;status&lt;/span&gt;          &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- pending, in_review, resolved, needs_reassessment&lt;/span&gt;
  &lt;span class="n"&gt;assigned_to&lt;/span&gt;     &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;-- authorized reviewer&lt;/span&gt;
  &lt;span class="n"&gt;blocks_step&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- label_create, tender, invoice&lt;/span&gt;
  &lt;span class="n"&gt;opened_at&lt;/span&gt;       &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;trigger_reason&lt;/span&gt;  &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resolved_at&lt;/span&gt;     &lt;span class="kt"&gt;timestamptz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resolved_by&lt;/span&gt;     &lt;span class="kt"&gt;bigint&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;eei_filing_record&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                     &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;shipment_id&lt;/span&gt;            &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;shipment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;-- assessment is complete only after an authorized decision&lt;/span&gt;
  &lt;span class="n"&gt;assessment_status&lt;/span&gt;      &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- not_yet_assessed, in_review, required,&lt;/span&gt;
                                         &lt;span class="c1"&gt;-- not_required, exemption&lt;/span&gt;
  &lt;span class="n"&gt;assessment_basis&lt;/span&gt;       &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;-- inputs and rule references actually used&lt;/span&gt;
  &lt;span class="n"&gt;exemption_citation&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reviewer_id&lt;/span&gt;            &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;assessed_at&lt;/span&gt;            &lt;span class="kt"&gt;timestamptz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;-- filing columns stay null until assessment_status = required&lt;/span&gt;
  &lt;span class="n"&gt;filing_status&lt;/span&gt;          &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;-- not_started, submitted, accepted,&lt;/span&gt;
                                         &lt;span class="c1"&gt;-- rejected, cancelled&lt;/span&gt;
  &lt;span class="n"&gt;provider_reference&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;-- e.g. an ITN, when the process produces one&lt;/span&gt;
  &lt;span class="n"&gt;classification_snapshot&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;value_snapshot&lt;/span&gt;         &lt;span class="kt"&gt;numeric&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;value_basis&lt;/span&gt;            &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;destination_snapshot&lt;/span&gt;   &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parties_snapshot&lt;/span&gt;       &lt;span class="kt"&gt;jsonb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;filed_at&lt;/span&gt;               &lt;span class="kt"&gt;timestamptz&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;evidence_uri&lt;/span&gt;           &lt;span class="kt"&gt;text&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;shipment_change_event&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;                     &lt;span class="kt"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;shipment_id&lt;/span&gt;            &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="nf"&gt;shipment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;changed_fields&lt;/span&gt;         &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- value, commodity, classification,&lt;/span&gt;
                                           &lt;span class="c1"&gt;-- destination, parties, service&lt;/span&gt;
  &lt;span class="n"&gt;changed_at&lt;/span&gt;             &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;changed_by&lt;/span&gt;             &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;requires_reassessment&lt;/span&gt;  &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The snapshots on &lt;code&gt;eei_filing_record&lt;/code&gt; are deliberate. If the commodity classification or the value later changes, you still need to know what was assessed. Classification itself also needs a change process — codes become obsolete, and overwriting history hides what was filed — but that is a separate record. The filing row should not be treated as a live view of whatever is currently on the product master.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do not let a prior decision ride along after a material change
&lt;/h2&gt;

&lt;p&gt;The dangerous default is to copy yesterday's "not required" onto today's shipment because the operator is in a hurry and the checkbox is already ticked.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function onShipmentAmended(shipment, changedFields):
  material = {"value", "commodity", "classification",
              "destination", "parties", "service"}

  if changedFields ∩ material is empty:
    return

  record shipment_change_event(
    shipment,
    changedFields,
    requires_reassessment = true
  )

  for each open or resolved review_queue_item on shipment
      where review_type needs this field:
    set item.status = needs_reassessment
    keep item.blocks_step in force

  filing = eei_filing_record for shipment
  if filing exists and filing.assessment_status != not_yet_assessed:
    set filing.assessment_status = in_review
    clear filing.assessed_at as the current decision
    keep the previous snapshots and basis as history
      (insert a new filing record rather than overwriting,
       if you need a full audit trail)

  if shipment.current_status is ready or later:
    move shipment back to in_review
    do not request a label, or void a draft, according to
      the approved operational rule
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few rules I would enforce in application code, not only in documentation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is no path that writes &lt;code&gt;assessment_status = not_required&lt;/code&gt; without a reviewer, or without an approved automatic rule whose inputs are stored on the same row.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;not_required&lt;/code&gt; and &lt;code&gt;exemption&lt;/code&gt; are allowed outcomes. They are not placeholders for "we have not looked yet."&lt;/li&gt;
&lt;li&gt;A successful carrier label is not evidence that the export decision is complete, and a failed label is not a reason to discard a review that already happened.&lt;/li&gt;
&lt;li&gt;Coverage review, credit hold, and export review can block the same operational step, but they should remain separate queue items. One resolved item should not close the others.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Review the workflow with three cases, not one happy path
&lt;/h2&gt;

&lt;p&gt;Before you call this done, walk a redacted high-value shipment through three paths with the people who actually own the process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A normal case where the approved rules produce a clear assessment and the shipment can move.&lt;/li&gt;
&lt;li&gt;A case that lacks enough commodity or value information and must sit in pending review. Confirm that the interface cannot honestly say "not required."&lt;/li&gt;
&lt;li&gt;A case that was assessed, then changed destination, classification, or value. Confirm that the earlier decision is reopened and that the first basis is still readable.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the responsible team cannot explain the decision from the stored record, or if missing information is only noticed after the operational deadline, the schema is not finished — even if the checkbox works.&lt;/p&gt;

&lt;p&gt;This kind of exception queue is one of the reasons teams look at &lt;a href="https://blinkshift.net/shipping-insurance-platforms/" rel="noopener noreferrer"&gt;software for high-value shipping workflows&lt;/a&gt; rather than adding another field to a label screen. Buy an existing product if it can hold the exception, including the reassessment path. Build or extend only if the unresolved filing decision still lives outside the system.&lt;/p&gt;

&lt;p&gt;This article is a rewritten engineering treatment of a subject I first discussed for operators, originally published on &lt;a href="https://blinkshift.net/eei-export-workflow-evidence/" rel="noopener noreferrer"&gt;Your Export Workflow Needs More Than an EEI Checkbox&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Hasnain Qureshi is co-founder of &lt;a href="https://blinkshift.net/" rel="noopener noreferrer"&gt;BlinkShift&lt;/a&gt;, which builds custom software for shipping, coverage workflows, and export documentation. BlinkShift does not sell insurance.&lt;/p&gt;

</description>
      <category>logistics</category>
      <category>postgres</category>
      <category>architecture</category>
      <category>compliance</category>
    </item>
  </channel>
</rss>
