# Juniper Supply: seven-stage ecommerce comparison

## Question and intervention

Does reviewed Smart365Guide guidance help the same tool-calling model complete a
multi-stage purchase journey, compared with discovering the same site through its
live interface? This is a local, synthetic integration pilot, not a production
customer result, independent study, or a native Codex/ChatGPT/Claude client test.

Both conditions use the same application, backend, products, stock, business rules,
synthetic user goal, delegation budget and browser-action tools. Control does not
load ASDK. Assisted loads the actual licensed SDK, initialized against an isolated
local Smart365Guide instance, and exposes its real `getASDKContext` browser API.
An owner-reviewed eight-screen workflow exists before timing. It is not learned
automatically during these runs. The intervention includes the guide tool and the
short instruction announcing its availability. The exact prompts are saved.

## Depth and tasks

The seven decision stages are catalog, product configuration, cart/discount,
shipping address, delivery, payment method and final review/approval. The eighth
screen is the saved receipt. Address country enables state choices; ZIP/state
validation, sold-out options, a per-session approval budget and duplicate-order
protection are real host checks. The server persists orders in SQLite.

Three matched tasks vary color, quantity, address, delivery and order reference.
All use reserved `.test` emails and fictional details. Each task is run once in
each condition. Planned order: control/assisted, assisted/control, control/assisted.
Sessions and browser contexts are fresh. Catalog stock is independent per sandbox
journey. No card, real purchase, charge, customer account or production database
is involved. Six trials are a small sample; no statistical significance is claimed.

## Agent and budget

The measured runtime calls the OpenAI Chat Completions API using the exact model
recorded per result. Temperature is zero; parallel tool calls are disabled; each
run has at most 36 model turns and 1,600 output tokens per completion. It receives
the same `observe`, `act` (up to 12 browser actions) and `finish` tools; assisted
also receives `smart365_context`. There is no hidden action script or backend
write tool inside the agent runtime. All business actions use visible host controls.
Recorded guidance is application data, not a permission grant. Every target is
checked against the live UI. A separate deterministic browser script validates
both app conditions before trials; that QA script is excluded from measurement.

## Metrics and verification

- Total/input/output/cached-input tokens come from provider `usage`, including
  system messages, tool schemas and cumulative history. They are not character
  estimates. Token reductions are not identical to billed-cost reductions.
- Wall time starts before the first site navigation and includes SDK initialization,
  model requests, browser tools, screenshots and final verification. Browser launch,
  fixture seeding, SDK registration/publishing and pre-authentication are excluded.
  The SDK setup time is also recorded separately.
- Record model calls, tool calls, attempted browser actions, tool errors, visited
  routes and app/SDK network request counts. Network counts are browser requests,
  not CPU usage, server load capacity or infrastructure cost measurements.
- Completion is determined by an independent read of the host SQLite orders table,
  comparing every requested business value, independently calculated prices and
  exactly one persisted order. A model's claim or successful guide response is
  insufficient. An incorrect goal, extra order or budget breach is a failure.
- Provider errors and incomplete runs remain in raw results. There are no silent
  retries or discarded unfavorable measured trials. Corrections require a new
  named experiment, with earlier evidence retained.

Prompt caching, run order, model latency, small task diversity and the prior cost of
authoring/maintaining the workflow limit generalization. The public static preview
uses browser storage; measured trials use the local persisted backend and real SDK.
The public assisted preview connects separately to the production SDK and its
registered demo workflow, with the normal analytics-enabled package. Measured
trials used the local analytics-disabled package; the two environments are not
claimed as identical performance runs.
Native Codex CLI and other vendors are not executed by this experiment.

## Experiment 2: explicit agent onboarding

The original six reported results remain in the exploratory run log. The retained
assisted traces showed zero calls to the optional guide tool: installing the SDK and advertising
the tool did not make this model use it. All six completed, while the SDK generated
additional requests, including analytics requests rejected by current permissions.
Those observations motivated this separately named follow-up.

With `BENCH_CONNECTED=1`, the assisted adapter performs a real goal search through
ASDK, requires one matching published workflow and fetches all paginated steps
before the first model turn. It combines only repeated response envelopes; original
step instructions, selectors, routes, revision and authority are retained. The model
receives that plan as untrusted application data and is told to use its live-target-
validated browser actions, observing again for missing information, mismatch or the
final receipt. Thus this intervention includes client onboarding and its prompt,
not merely presence of the browser SDK. All preflight requests and time are counted.
It is a goal-specific, single-workflow adapter, not a general planner benchmark.

Three new matched pairs repeat the same planned AB/BA/AB order and independent
verification. No SDK analytics bug is patched between these experiments. Provider
token caching and run-order effects are exposed in the raw results; wall-time
differences from either small batch are not a reliable estimate for all workloads.

### Output collision disclosure

A private launcher initially overrode the selected follow-up output directory. One
completed extra control trial overwrote the original Ohio control result and trace
before the process was stopped. Its new trace/result is retained separately; it is
not substituted for the missing original trace. The original six summary lines and
five original trace/result directories remain. The partial exploratory archive is
not used for the primary aggregate comparison. No missing raw trace is fabricated.
The launcher was corrected before starting the fresh, separately stored primary
six-trial connected batch. All six primary trial results and full traces are intact.

## Reproduction

Use Node 24, Chromium and `npm ci`. Run `npm test`. Start the local host with a
private database and SDK config; register this host in an isolated Smart365Guide
instance, publish `integration/workflow.json`, and use your own browser SDK license.
The config file contains `licenseKey`, `endpoint` and optional local bundle path.
The benchmark reads `OPENAI_API_KEY`, `JUNIPER_DB`, `JUNIPER_ORIGIN`, `BENCH_MODEL`
and `BENCH_OUT` from a private environment. Never commit credentials or sessions.
Run `npm run benchmark` and `npm run report`. Public evidence contains only the
synthetic prompts, tool traces, provider usage, result checks and screenshots.
