FlxWoo logoFlxWoo

Documentation

Implementation and operational reference — pipeline integration, API surface, operational tooling, cache configuration, and debugging workflows.

Getting started

  1. 1

    Initialize FlxWoo

    Load FlxWoo in your environment. This registers Core, Render, and Control subsystems and makes the pipeline API available.

  2. 2

    Enable the pipeline

    Activate pipeline execution. Checkout requests will pass through the five-phase sequence: Registration → Resolution → Validation → Render → Output.

  3. 3

    Verify execution

    Run a checkout request and inspect the pipeline trace. Confirm all five phases executed, review field registration, resolved values, and render output.

  4. 4

    Verify cache configuration

    Run the cache verification tool to confirm checkout endpoints are excluded from page cache and CDN edge cache. See cache configuration below before proceeding to production.

  5. 5

    Run smoke tests

    Execute the pipeline integrity smoke tests. These verify field registration, validation, and render phases against a known-good input set and confirm deployment health.

Core concepts

These terms are defined in full in the architecture specification.

Integration flow

Integrating with FlxWoo means registering fields into the pipeline and consuming rendered output.

  1. 1

    Define field providers

    A field provider declares which fields it contributes and at what priority. Priority determines resolution order when multiple providers register the same field key.

  2. 2

    Register fields into Core

    Fields are submitted to the registry during the Registration phase. After registration closes, the registry is immutable.

  3. 3

    Execute pipeline

    Control runs the five-phase pipeline. Registered fields are resolved, validated, and rendered in sequence.

  4. 4

    Receive rendered output with trace

    The pipeline returns final checkout output plus a structured trace. Use the trace for verification, debugging, and operational auditing.

Execution example

Field registration, pipeline execution, and trace inspection.

// Register fields during Registration phase
registerField({
  key: "billing_email",
  type: "email",
  required: true,
  priority: 10,
})

registerField({
  key: "billing_phone",
  type: "tel",
  required: false,
  priority: 20,
})

// Execute the full five-phase pipeline
const result = runPipeline()

// result.trace — structured execution log
// {
//   requestId: "flx_req_01J...",
//   phases: {
//     registration: { status: "complete", fieldCount: 2, duration: 4 },
//     resolution:   { status: "complete", resolved: 2, null: 0 },
//     validation:   { status: "complete", failures: [] },
//     render:       { status: "complete", duration: 12 },
//     output:       { status: "complete" },
//   },
// }

// result.output  — rendered checkout HTML
// result.errors  — structured validation failures, if any
// [{ field: "billing_email", rule: "required", message: "Required" }]

Configuration

Operational tooling

FlxWoo includes tooling for production validation, debugging, and operational workflows.

Cache configuration

Incorrect cache configuration is one of the most common causes of inconsistent checkout behavior.

Checkout execution is stateful and deterministic. A cached checkout response reflects a previous request's resolved field state, session context, and validation output — not the current request's. Serving cached checkout responses corrupts execution determinism.

Cloudflare configuration

Add a Cache Rule bypassing cache for checkout, cart, account, and API endpoints. Set cache status to BYPASS for all paths matching WooCommerce session-bearing routes. Verify with the CF-Cache-Status response header.

Page cache exclusions

The following paths must be excluded from page caching at the server or plugin level:

WooCommerce session handling

Requests bearing WooCommerce session cookies (woocommerce_session_*, woocommerce_cart_hash) must not be served from cache. Configure cache rules to bypass on cookie presence, not just on path.

API no-cache requirements

All WooCommerce REST API endpoints and AJAX endpoints must return Cache-Control: no-store, no-cache. These endpoints carry session state and pipeline results. Caching them produces stale checkout state.

CDN edge behavior

Authenticated requests must bypass CDN edge caches. Verify that your CDN is not normalizing or stripping cookies before cache key evaluation. Edge caches that do not vary on session cookies will serve incorrect checkout state to different users.

Verification

Use the FlxWoo cache verification tool to confirm exclusions are applied correctly. The tool checks response headers for checkout, cart, and API endpoints against expected no-cache behavior and reports any endpoints returning cached responses.

Debugging

FlxWoo checkout failures are reproducible and traceable. The pipeline produces structured artifacts at every execution.

API overview

The API surface is organized by subsystem. Each function operates within its subsystem's boundary.

Core

  • registerField — add a field to the registry
  • resolveField — resolve a field's value from sources
  • validateField — run validation rules against a field
  • getRegistry — inspect the current registry

Render

  • renderField — produce output for a single field
  • renderFieldGroup — produce output for a field group
  • setRenderOverride — override default render for a field

Control

  • runPipeline — execute the full five-phase pipeline
  • getPipelineTrace — retrieve execution trace by request ID
  • getPhaseStatus — check completion status of a phase

Operational

  • runSmokeTest — execute pipeline integrity tests
  • replayExecution — replay a past execution from trace
  • verifyCacheConfig — check endpoint cache exclusions
  • auditLogIntegrity — validate execution log completeness

Further reading