Gift-kit readiness / Developer integration

Screen campaigns, then continue the gift-kit exception.

Use the CLI to identify campaigns needing attention, then continue one retained case in an SDK-powered desk without rebuilding its assessment.

Jonathan Nacionales 5 min read

Several campaign files become a focused intervention queue, each retaining its owner, sources and complete calculation case.

The case in brief

At stake. Leah must protect several 120-kit handoffs within each campaign’s $600 correction limit. Reviewing every record manually leaves Jordan less time to resolve the cases that actually need intervention.

How it resolves. A company-owned CLI integration calculates six current campaign snapshots and gives Jordan a focused intervention queue. He continues one urgent case in an SDK-powered desk, where changes are assessed against the same original promise and rules.

Leah has several gift-kit campaigns to protect. Each promises 120 usable kits by its original one-day cutoff, with a $600 correction limit. Jordan needs to know which campaign requires a booking, a narrower diagnosis or a different commitment before the remaining time disappears.

A workbook or custom script could produce that queue. The team would maintain its formulas, evidence interpretation, complete-package checks and case history. Here the developer uses the CLI to repeat the existing authored review, while company code supplies the input mappings and attention report.

Start with the current campaign snapshot.

The integration’s manifest connects the campaign to its responsible owner and source case:

Identify the campaign, owner and source snapshot · fixtures/journey-v3/campaigns.json, lines 11–15
      "id": "GIFT-321",
      "owner": "Jordan Reed",
      "case": "cases/urgent-window.json",
      "screeningCase": "screening/urgent-window.json"
    },

That case includes the original quantity and cutoff, diagnostic reports, current insert and checkout revisions, quotes, resources, permissions and booking records. Their source, scope and timing matter. A campaign ID and a new price cannot replace the underlying case.

The sample derives its conservative screen from this current business snapshot and checks that the mapping preserves the pinned planning rules. Company code owns that mapping; the CLI evaluates the supplied model. An old screening file with a matching ID would not be enough.

Calculate the review, then organize the intervention.

The selected excerpt invokes the public CLI through the sample’s command wrapper:

Calculate evidence and planning through the public CLI · src/journeyPreflight.mjs, line 104
        await command(['workflow', 'solve', '--run', currentPath, '--created-at', at, '--timeout-ms', '30000']);

command supplies the invocation and error handling; workflow solve calculates the connected evidence and planning assessments. A successful command does not imply that any correction passes. The integration retains unavailable or incomplete calculations separately from a completed finding that no listed package works.

Six independent campaigns; each retains its original 1,440-minute cutoff.
CampaignCalculated findingJordan’s next action
GIFT-320 · time available$300 in-house complete correction.Review the supported proposal.
GIFT-321 · thirty minutes remain$400 external complete correction.Review the urgent response and its booking.
GIFT-322 · booking missingNo supplied complete package fits.Obtain the missing record or escalate.
GIFT-323 · booking covers old insertNo supplied complete package fits.Obtain genuine current-scope confirmation.
GIFT-324 · narrower supported fault$100 printed-insert replacement.Review the diagnostic basis for the smaller correction.
GIFT-325 · start too lateNo declared package protects the cutoff.Escalate or explicitly reconsider the promise.

The queue’s owners, presentation and next-action wording belong to the sample integration. The authored assessments supply the findings beneath them. Campaigns use independently allocated resources; passing them individually does not prove that they can share one production team simultaneously.

The queue retains the diagnostic basis as well as the proposed package. The diagnosis story explains how the supported faults determine what needs correcting.

Open the flagged campaign in a focused desk.

Jordan opens GIFT-321's native continuation with the same definition, pinned app, original promise, sources and current findings. The React client verifies compatibility before reopening it:

Open the retained native workflow through the SDK · src/reviewJourney.js, lines 96–96
  const run = lab.workflows.openRun(value);

When a relevant premise changes, Jordan applies it through the SDK and recalculates the authored evidence-to-planning chain. The earlier result remains historical while dependent current findings are stale. Forms, storage and lifecycle belong to the custom client; the assessment logic remains in the SDK and authored app.

Calculate the authored evidence-to-planning dependency chain · src/reviewJourney.js, lines 182–182
  return lab.workflows.solve({ run: current, ...(execution ? { execution } : {}), createdAt: atTime(at) });

The desk passes the workflow output and definition to the shared report host:

Present the SDK output and authored definition through the shared report host · src/JourneyReports.jsx, lines 6–7
  return <WorkflowReportsView output={output} definition={definition} pending={dirty}
    blockedReason={blockedReason} readOnly />;

The CLI and SDK retain one case rather than copying a headline between systems. The Decision summary gives Leah the current proposal; supporting reports explain its requirements. Inspecting a report selects no work and creates no authority.

The same custom gifting workflow exposes the correction that can fit the remaining handoff window.
The same custom gifting workflow exposes the correction that can fit the remaining handoff window.View full size

Jordan can act on the exception instead of rebuilding it.

The urgent campaign has a supported $400 complete correction, with its requirements and original cutoff intact. Jordan can examine its current booking and take the proposal to the people responsible for carrying it out. Changing the interface has not changed the rules or turned a calculated proposal into completed work.

The native export carries the applied case and its history to the next compatible client. Separate authorization and operating records remain available in the complete CLI-to-React implementation. The company still owns its sources, access control, durable storage and actual production.

Sources and scope

Implementation and captures

The Gift-kit Preflight CLI and Gift-kit Handoff Desk repositories contain the related public examples. The retained implementation preserves the exact source behind these excerpts; its source manifest records file identities. The cost-first app remains version 3; this calculation workflow is version 4.1.

The current SDK continuation figures have their own fresh native capture receipt identifying the independently built client and calculated case. The optional CLI queue image remains an identified historical capture. Neither record by itself claims a public deployment. The capture and operating verification retains the six campaign outcomes, CLI-to-browser import, native exports, inspection checks, completion and later failed rehearsal. Exact built asset identities and source-file identities are recorded separately. Historical capture receipts remain intact.

Worked-example boundaries

Leah, Jordan, campaigns, quotes, diagnostic reports and operating assertions are fictional. Each campaign has independently allocated resources. The finite model checks authored fault combinations, packages and candidate starts; it does not infer probabilities or discover unlisted recoveries. The planned ten-minute rehearsal is distinct from the five-minute model minimum and an actual passed test.

The company owns trustworthy sources, input mappings, identity, storage and external integrations. Native case history preserves assertions and their calculation basis; it does not authenticate records, authorize spending or perform work. Shared-resource planning and partial-delivery aggregation need additional modeling.