Shipment readiness / Developer integration

Screen changed orders, then resolve one shipment exception.

Use the CLI to find current shipment blockers, then continue the same native case in an SDK-powered desk when a scoped confirmation arrives.

Jonathan Nacionales 8 min read

Company records join retained shipment cases and pass through a CLI review into a shipment exception queue for responsible owners.

The case in brief

At stake. Overnight order revisions and changed carrier records leave Maya unsure which shipment proposals still protect Friday's launch, while missed booking cutoffs could remove her remaining options.

How it resolves. At 8 a.m., the CLI queue retains a $4,000 Direct proposal for one shipment, identifies two needing current confirmation or authority, and flags a currency error for data correction. Owners receive specific next steps. Maya can continue each retained review with its records and history intact; responsible people still authorize, book and deliver the shipments.

Purchase orders and carrier records changed overnight. Maya needs the cases that require intervention before their booking windows close. Her team already has exports, owners and a dashboard. The developer uses the CLI to repeat the authored assessment across orders, then opens one retained exception in a focused React desk.

This integration uses a cost-first operating profile with Direct, Backup and Consolidated. It is a distinct fictional case from the Marketplace registration-and-verification story. The same native run can continue between these compatible CLI and SDK clients; matching titles alone do not make other workflow definitions interchangeable.

Screen the current orders, not yesterday's headlines.

The adapter maps the complete current source snapshot into the pinned app: order revision, all units, quotes, capacity, cutoffs and scope-specific confirmations. It preserves what each received document actually says. It does not quietly change an old confirmation to cover a new revision.

Calculate the connected workflow through the public CLI · src/batch.mjs, lines 262–264
          const solved = await invokeCLI(['workflow', 'solve', '--run', preparedFile,
            '--created-at', createdAt, '--timeout-ms', String(options.timeoutMs ?? 30000),
            '--output', path.join(directory, 'review.json')], transcript);

The CLI evaluates the connected workflow. Company code organizes its findings into the intervention queue. A successful command can yield a complete blocked finding; a malformed currency or incomplete assessment is a different state.

Queue itemFindingNext work
Unchanged supported shipmentDirect remains supported at $4,000 at 8 a.m.Consider the current proposal.
ORD-105 revision 2Direct has capacity for 99 of 100 units; Backup costs $6,000 above the $5,000 limit; Consolidated has an old-scope confirmation.Obtain genuine current confirmation or reconsider the response.
Authority or input exceptionA specific required record is absent or the source cannot be evaluated.Route the record or correction to its owner.

The complete worked queue retains all rows. The company owns its mappings and attention labels; the authored assessments establish the findings.

Continue ORD-105 without reconstructing its basis.

The CLI saves a native workflow run, including its exact definition, inputs, original promise, source references and calculated history. The SDK desk verifies compatibility before reopening it:

Open the exact retained native workflow · src/reviewJourney.js, lines 95–96
export function openReviewJourney({ lab, value, app, definition, compatibleDefinitions = [] }) {
  const run = lab.workflows.openRun(value);

React owns the record forms, persistence and browser lifecycle. The SDK owns validation, dependent-result staleness, evaluation and report output. Opening an unchanged current run neither creates a choice nor resets it merely to obtain a fresh headline.

One new scoped confirmation changes the available response.

The carrier issues SLOT-SHIP-105-REV2 for ORD-105 revision 2, Consolidated at SP-B, destination DC-X and the required loading interval. Its reference and covered revision differ from the old document because this is new evidence. The validity interval, order, quotes, Direct capacity and $5,000 limit stay fixed.

Old confirmation covers revision 1.

None of the three supplied complete responses passes for ORD-105 revision 2.

The shipping SDK example: blocked.
The shipping SDK example: blocked.View full size

New confirmation covers revision 2.

Consolidated is preferred at $5,000. The other options' capacity and expense failures remain.

A received confirmation for the current shipment revision makes the consolidated arrangement usable.
A received confirmation for the current shipment revision makes the consolidated arrangement usable.View full size

Before the new confirmation, none of the supplied complete arrangements passes. After applying it and recalculating, Consolidated is preferred at $5,000, arriving Thursday at 6 p.m. Direct remains capacity-blocked and Backup remains over budget. The received document resolves one requirement; it waives no other condition.

Recalculate relevant dependencies and reuse current complete results · src/reviewJourney.js, lines 182–182
  return lab.workflows.solve({ run: current, ...(execution ? { execution } : {}), createdAt: atTime(at) });

Unapplied edits remain drafts. Applied changes make dependent earlier results stale until recalculated. The desk presents the output through the shared report host:

Present the SDK output through the shared workflow report component · src/App.jsx, lines 379–381
      : <WorkflowReportsView output={output} definition={desk.journey?.definition} pending={desk.hasDraft}
          blockedReason={status === REVIEW_STATE.INVALID ? 'Resolve the displayed input issues before using a current finding.' : ''}
          busy={running} readOnly />}

WorkflowReportsView renders the authored Decision summary, Supporting reports and Decision process. Configuration supplies shipment wording and bindings. Changing the React interface introduces no second set of shipment rules.

Keep the proposal separate from what the business did.

Maya can choose the supported response. The worked continuation then retains separately scoped fictional records:

RecordWhat it supports
FIN-SHIP-105Specific authority for the $5,000 selected arrangement.
BOOK-SHIP-105The carrier reservation linked to the current quote, order and authority.
POD-SHIP-105All 100 units accepted Thursday at 6 p.m., before the original Friday 5 p.m. promise.

The authored operating checks examine that linked basis. A feasible proposal is not a booking, and a booking is not accepted delivery. Downloading the native continuation preserves those distinctions and lets the CLI reopen the same case. It does not authenticate a document or perform the shipment.

The developer has built an exception-handling path around the existing assessments: screen current records, direct attention to the blocker, apply genuinely new evidence and carry the same case through a supported response. The company still supplies its source integration, access controls, durable storage and operational authority.

Sources and scope

Business context

The CLI/SDK continuation uses a calculation-mode definition with supplied inputs and complete current findings. The operating app, company forms and actual-event checks belong to this integration; the Marketplace registration example remains a separate business case.

Terry Clear’s 8th & Walton Walmart launch case, June 4, 2025, describes corrected order alignment, cancelled and reissued purchase orders, and changed freight terms. It motivates this fictional scenario and does not establish a Decision Lab customer deployment.

Walmart’s Supplier Checklist, page 11, is the series’ original ship-point setup reference. The cases, confirmation policy, cutoffs, authority and delivery records here are teaching declarations.

Source and captures

The sample repository contains the related public examples. The retained calculation-mode implementation preserves the source behind these excerpts; its source manifest identifies the files. The earlier public revision remains a separate reference.

The fresh custom-client figures have their own current native capture and calculation receipt. That independently built SDK client is distinct from the Marketplace runtime. The earlier paired-view receipt and retained shared-report preview preserve their historical source and build identities. No capture receipt by itself establishes a public deployment.

Worked-example boundaries

The assessment uses an explicit November 17, 2026 business clock, UTC−06:00. The fictional operating records include November 17 authorization and reservation and November 19 delivery. Every event was entered through the normal form; no booking, delivery or source authentication occurred externally.

The cost-first app and operating workflow preserve the original promise separately from revised terms. The latest supplied complete record of each kind on the selected assessment and plan determines current support; negative or mismatched replacements cannot revive an older positive.

The complete continuation in this walkthrough is retained through native CLI reopening. The full worked history was imported, saved to IndexedDB and restored with its content hash intact. A production integration still needs its own durable storage, access controls and retention policy.

The sample stipulates independent resources and one reviewed registration state. Unresolved factual alternatives need an explicit evidence model. Shared allocation, identity verification, live carrier connections and complete execution management require additional models and integrations. The tool records and checks external assertions; it does not issue authority, arrange freight or perform physical work.