{
  "schema": "glemo.launch.conversion.contract.v1",
  "version": "0.1.0-candidate",
  "date": "2026-10-16",
  "status": "candidate_specs_not_deployed_backend",
  "integrationOwner": "GlemO CTO: candidate architecture, integration and acceptance review; no production approval inferred.",
  "artifacts": [
    "conversion-contract.json",
    "conversion-openapi.json",
    "conversion-schema.sql",
    "conversion-erd.mmd"
  ],
  "sources": [
    {
      "path": "launch/conversion_en.txt",
      "use": "Canonical six-language scope; English original governs."
    },
    {
      "path": "launch/conversion-model.js",
      "use": "Illustrative reference behavior only; no real authority, demand, agreement, delivery, cash or revenue."
    },
    {
      "path": "launch/handoff-contract.json",
      "use": "Upstream campaign revisions and non-binding interests; candidate design."
    },
    {
      "path": "development/offer-fit/negotiation-contract.json",
      "use": "Reuse native identity, external-offer, RFQ/quote/order/evidence and settlement ownership."
    }
  ],
  "boundaries": {
    "referenceRecords": "Illustrative evidence only, including records labelled reconciled. Never import them as authenticated executed transactions.",
    "allowed": [
      "Candidate conversion attribution and evidence projection",
      "References to already existing native records",
      "Planned acceptance requirements and tests"
    ],
    "excluded": [
      "Deployed API or database migration",
      "Implemented authentication, authorization or security",
      "Live orders, reservations or RFQs",
      "Agreement signing",
      "Custody, balances, private keys or a second settlement ledger",
      "Provider calls, transfers, payment instructions, invitations, analytics beacons or messages"
    ],
    "financialApproval": "Engineering estimate, storage, event bus and incremental analytics cost remain unapproved. No new cost or schedule is added to the US$650K technology envelope or company forecast.",
    "sqlPrerequisite": "The existing.* relations below are logical binding contracts, not claims about deployed table names. Parent must map them to existing authoritative tables or adapters, verify keys/types and ownership, and review migrations. SQL intentionally does not create these models. No SQL was applied."
  },
  "externalRelations": [
    {
      "relation": "existing.tenant",
      "key": [
        "tenant_id"
      ],
      "owner": "Existing tenant service"
    },
    {
      "relation": "existing.identity",
      "key": [
        "tenant_id",
        "identity_id"
      ],
      "owner": "Existing market identity; company or professional individual, no fabricated SaaS company"
    },
    {
      "relation": "existing.external_offer_version",
      "key": [
        "tenant_id",
        "offer_id",
        "offer_version"
      ],
      "owner": "Existing external-offer mirror and publication workflow"
    },
    {
      "relation": "existing.campaign_revision",
      "key": [
        "tenant_id",
        "campaign_id",
        "offer_version",
        "offer_id"
      ],
      "owner": "Existing Launch campaign_revision; offer_id must resolve to its external_offer_id"
    },
    {
      "relation": "existing.expression_of_interest",
      "key": [
        "tenant_id",
        "interest_id",
        "campaign_id",
        "offer_version",
        "buyer_id"
      ],
      "owner": "Existing non-binding Launch expression_of_interest"
    },
    {
      "relation": "existing.discussion",
      "key": [
        "tenant_id",
        "discussion_id",
        "offer_id",
        "buyer_id",
        "seller_id"
      ],
      "owner": "Existing native discussion/RFQ workflow"
    },
    {
      "relation": "existing.quote_version",
      "key": [
        "tenant_id",
        "quote_id",
        "quote_version"
      ],
      "owner": "Existing immutable native quote; no second quote engine"
    },
    {
      "relation": "existing.external_order",
      "key": [
        "tenant_id",
        "order_id"
      ],
      "owner": "Existing external order; explicit native conversion remains separate"
    },
    {
      "relation": "existing.evidence_version",
      "key": [
        "tenant_id",
        "evidence_id",
        "evidence_version"
      ],
      "owner": "Existing evidence service; version, provenance, scope, expiry and access must be checked"
    },
    {
      "relation": "existing.external_agreement",
      "key": [
        "tenant_id",
        "agreement_id"
      ],
      "owner": "Existing external agreement workflow"
    },
    {
      "relation": "existing.external_instruction",
      "key": [
        "tenant_id",
        "instruction_id"
      ],
      "owner": "Existing external settlement workflow; reference only, never sends an instruction"
    },
    {
      "relation": "existing.external_delivery",
      "key": [
        "tenant_id",
        "delivery_id"
      ],
      "owner": "Existing external settlement receipt workflow"
    },
    {
      "relation": "existing.external_reconciliation",
      "key": [
        "tenant_id",
        "reconciliation_id"
      ],
      "owner": "Existing independent reconciliation workflow"
    }
  ],
  "entities": [
    {
      "table": "conversion_cohort",
      "key": [
        "tenant_id",
        "cohort_id"
      ],
      "purpose": "Immutable first channel, UTC cohort time, campaign/offer version and identity/policy snapshot binding; eligible_view is an observation, not a case stage."
    },
    {
      "table": "conversion_case",
      "key": [
        "tenant_id",
        "case_id"
      ],
      "purpose": "One projection per cohort and existing interest, current stage and monotonically increasing aggregate version."
    },
    {
      "table": "conversion_proposal",
      "key": [
        "tenant_id",
        "case_id",
        "proposal_version"
      ],
      "purpose": "Immutable terms snapshot referencing an existing quote version."
    },
    {
      "table": "conversion_confirmation",
      "key": [
        "tenant_id",
        "case_id",
        "proposal_version"
      ],
      "purpose": "Explicit opposite-party acceptance of exactly that proposal; separate from legal agreement."
    },
    {
      "table": "conversion_agreement",
      "key": [
        "tenant_id",
        "case_id"
      ],
      "purpose": "Reviewed external agreement reference bound to the current confirmed proposal."
    },
    {
      "table": "conversion_instruction",
      "key": [
        "tenant_id",
        "case_id"
      ],
      "purpose": "Evidence of an already recorded external instruction and native order, network and opaque destination reference."
    },
    {
      "table": "conversion_delivery",
      "key": [
        "tenant_id",
        "case_id",
        "delivery_id"
      ],
      "purpose": "Append-only delivery attempts, mismatches and corrections; prior attempts are retained."
    },
    {
      "table": "conversion_reconciliation",
      "key": [
        "tenant_id",
        "case_id"
      ],
      "purpose": "Independent matching-evidence decision and illustrative allocation snapshot, never a custody ledger."
    },
    {
      "table": "conversion_native_link",
      "key": [
        "tenant_id",
        "link_id"
      ],
      "purpose": "Append-only reviewed attribution to an existing discussion with exact offer/buyer/seller IDs."
    },
    {
      "table": "conversion_cost",
      "key": [
        "tenant_id",
        "cost_id"
      ],
      "purpose": "Evidence-backed observed acquisition cost, inherited campaign/channel/UTC cohort; absence means unknown."
    },
    {
      "table": "conversion_request",
      "key": [
        "tenant_id",
        "idempotency_key"
      ],
      "purpose": "Immutable command fingerprint, actor and original status/response/ETag for exact replay."
    },
    {
      "table": "conversion_event",
      "key": [
        "tenant_id",
        "event_id"
      ],
      "purpose": "Append-only applied and rejected decisions, before/after version and authenticated provenance candidate."
    }
  ],
  "identityAndConcurrency": {
    "tenant": "Every entity, unique key, lookup and FK is tenant scoped. tenantId path is a selector, not authority. Derive identity, role and membership from authenticated server context; do not accept browser role claims.",
    "cohortKey": [
      "tenant_id",
      "buyer_id",
      "campaign_id",
      "offer_version"
    ],
    "immutable": [
      "campaign_id",
      "offer_id",
      "offer_version",
      "buyer_id",
      "buyer_revision",
      "seller_id",
      "policy_version",
      "snapshot_evidence_id/version",
      "cohort_at",
      "channel"
    ],
    "firstTouch": "First eligible observation fixes cohort time/channel; absent observation, existing interest creation does. Unknown is retained. Later observations or interests never overwrite first touch. eligibleObserved derives from applied observation events, so a later view can be retained without mutating the cohort.",
    "newVersion": "Fresh explicit offer reconfirmation creates a distinct cohort. Existing Launch active-interest uniqueness and supersession rules still apply; no duplicate active interest or silent case rebinding.",
    "request": "Require Idempotency-Key for every POST, scoped to tenant and bound to authenticated actor, operation, target and canonical complete body. Serialize competing requests. Exact retry returns stored original status/body/ETag even after later case mutations; conflicting reuse is 409. Recheck current read authorization before replay, then replay before stale-version evaluation.",
    "version": "Case commands require expectedVersion and a strong If-Match ETag of the form \"v7\"; they must agree. Lock/CAS current version, then atomically append evidence/event, increment version once and persist response. A failed command never changes stage/version; retain a rejected audit decision. Missing If-Match is 428; mismatch is 412.",
    "create": "Creation attaches an existing interest; it never creates another interest. Unique cohort/interest conflict returns 409 with authorized existing case reference. Same-key retry returns the original 201. Observation duplicates with a new key return the first immutable cohort."
  },
  "stateMachine": {
    "sequence": [
      "interested",
      "reviewed",
      "negotiating",
      "agreed",
      "external_pending",
      "delivered",
      "reconciled"
    ],
    "sideStates": [
      "lost",
      "withdrawn",
      "exception"
    ],
    "transitions": [
      {
        "action": "review",
        "from": [
          "interested"
        ],
        "to": "reviewed",
        "role": "reviewer",
        "requires": [
          "all five current gates with evidence",
          "fresh immutable binding"
        ]
      },
      {
        "action": "propose",
        "from": [
          "reviewed",
          "negotiating",
          "agreed"
        ],
        "to": "negotiating",
        "role": "buyer_or_seller",
        "requires": [
          "no recorded agreement",
          "existing native quote version",
          "exact in-range principal",
          "explicit payers",
          "new proposal version invalidates all earlier confirmations"
        ]
      },
      {
        "action": "confirm",
        "from": [
          "negotiating"
        ],
        "to": "agreed",
        "role": "opposite_buyer_or_seller",
        "requires": [
          "current proposal version",
          "distinct actor and opposite party",
          "authenticated native confirmation evidence"
        ]
      },
      {
        "action": "agreement",
        "from": [
          "agreed"
        ],
        "to": "agreed",
        "role": "reviewer",
        "requires": [
          "current confirmed proposal",
          "distinct reviewed external agreement and evidence IDs",
          "agreement not already recorded"
        ]
      },
      {
        "action": "instruct",
        "from": [
          "agreed"
        ],
        "to": "external_pending",
        "role": "rails",
        "requires": [
          "reviewed agreement for current proposal",
          "existing order and instruction evidence",
          "network and destination reference"
        ]
      },
      {
        "action": "deliver",
        "from": [
          "external_pending"
        ],
        "to": "delivered_or_exception",
        "role": "rails",
        "requires": [
          "payment and asset evidence",
          "compare exact principal, units, network and destination"
        ]
      },
      {
        "action": "correct",
        "from": [
          "exception"
        ],
        "to": "delivered_or_exception",
        "role": "rails",
        "requires": [
          "reason",
          "new evidence",
          "prior delivery ID",
          "retain original mismatched delivery"
        ]
      },
      {
        "action": "reconcile",
        "from": [
          "delivered"
        ],
        "to": "reconciled",
        "role": "auditor",
        "requires": [
          "latest delivery matches all four fields",
          "payment and asset evidence independently checked",
          "reviewer differs from buyer, seller, instruction operator and delivery reporter"
        ]
      },
      {
        "action": "withdraw",
        "from": [
          "interested",
          "reviewed",
          "negotiating",
          "agreed"
        ],
        "to": "withdrawn",
        "role": "buyer",
        "requires": [
          "no recorded agreement",
          "explicit reason code and note"
        ]
      },
      {
        "action": "close",
        "from": [
          "interested",
          "reviewed",
          "negotiating",
          "agreed"
        ],
        "to": "lost",
        "role": "reviewer",
        "requires": [
          "no recorded agreement",
          "explicit reason code and note"
        ]
      },
      {
        "action": "link",
        "from": [
          "reviewed",
          "negotiating",
          "agreed"
        ],
        "to": "unchanged",
        "role": "reviewer",
        "requires": [
          "fresh binding",
          "validated existing discussion, offer, buyer, seller and mapping evidence"
        ]
      },
      {
        "action": "cost",
        "from": [
          "interested",
          "reviewed",
          "negotiating",
          "agreed",
          "external_pending",
          "delivered",
          "reconciled",
          "lost",
          "withdrawn",
          "exception"
        ],
        "to": "unchanged",
        "role": "reviewer",
        "requires": [
          "positive exact observed cost",
          "unique tenant cost reference",
          "cost evidence"
        ]
      }
    ],
    "handoffGates": [
      "seller_authority_and_external_offer",
      "country_investor_eligibility_and_contact_consent",
      "mirror_inventory_and_document_version",
      "promotion_route_and_fee_disclosure",
      "offer_buyer_and_negotiation_mapping"
    ],
    "freshness": "For review, propose, confirm, agreement, instruct and link: recheck current offer version/status, inventory, identity revision, policy, jurisdiction, investor permissions, consent, evidence expiry/revocation and time windows. Input booleans are not verification. Historical delivery evidence may be retained after expiry without authorizing a new external action or clearing a native exception.",
    "terminal": "No inactivity timeout creates lost/withdrawn. Terminal states retain history. Further cost evidence is allowed. Reconciliation reversal/dispute handling belongs to the existing settlement owner and needs a separate reviewed contract; this bounded candidate exposes no reversal command."
  },
  "nativeLink": {
    "attributionOnly": true,
    "validation": "Resolve tenant-scoped platformOfferId, platformBuyerId and discussionId. Require exact case offer, buyer, seller, current immutable version and authorized discussion participation; validate mapping evidence. Fail closed with linkMismatch on disagreement.",
    "sideEffects": "None in native workflows: never create an RFQ, quote, order, agreement or transfer; never accept terms or reserve inventory.",
    "context": "Only an opaque case ID may enter navigation URLs. Keep buyer, ticket and mapping context in a case-scoped session/server context with access checks; revalidate all IDs at the destination."
  },
  "commercial": {
    "currency": "USD only in this bounded candidate; reject other currencies and implicit FX.",
    "wire": "Money and unit price: decimal strings, up to 12 integer digits and 2 fractional digits. Quantity: decimal strings, up to 12 integer digits and 8 fractional digits. Positive input only. Reject exponents, signs, NaN, Infinity and binary JSON numbers. Computed principal must fit the same money bounds and be exactly representable in cents.",
    "storage": "PostgreSQL numeric with scale checks before rounding, or integer minor units; no float/double. SQL unscaled numeric domains reject excess scale instead of silently coercing it.",
    "principal": "quantity * unitPrice exactly; reject fractional cents. Enforce immutable offer minimum and fresh available capacity through the existing inventory owner. Interest ticket is non-binding and not inferred into proposal terms.",
    "fees": [
      {
        "kind": "glemo",
        "rate": "0.0100",
        "basisPoints": 100,
        "classification": "illustrative gross GlemO fee"
      },
      {
        "kind": "gateway",
        "rate": "0.0020",
        "basisPoints": 20,
        "classification": "estimate only, third-party allocation, not GlemO revenue"
      },
      {
        "kind": "additional_agent",
        "rate": "0.0100",
        "basisPoints": 100,
        "classification": "optional additional commission only when explicitly selected/contracted"
      }
    ],
    "payers": "feePayer must explicitly be buyer or seller for GlemO plus gateway. agentPayer must explicitly be buyer, seller or none; none makes agent fee exactly zero. No payer default.",
    "rounding": "Round each fee independently to cents, half up: floor((principalCents * basisPoints + 5000) / 10000). Version this policy with the confirmed proposal.",
    "balance": "buyerPays = principal + buyer-paid fees; sellerReceives = principal - seller-paid fees; buyerPays = sellerReceives + glemoFee + gatewayEstimate + agentFee. All allocations nonnegative and exact. This projection is not posting money; production receipts and atomic double-entry remain with the existing settlement/accounting owner.",
    "recognition": "Only independently reconciled, matching and otherwise eligible native evidence may contribute to illustrative principal/fee totals. Mismatch, unresolved native exception or missing reconciliation contributes exactly zero principal and zero fees. Delivery alone never recognizes either.",
    "unknown": "Unrecorded acquisition costs, taxes, FX, gas, bank charges, actual cash received, actual revenue, actual volume and profit remain null, never zero estimates. An observed zero must have separate explicit evidence/policy; this candidate accepts positive acquisition costs only."
  },
  "analytics": {
    "funnel": [
      "eligible_view",
      "interested",
      "reviewed",
      "negotiating",
      "agreed",
      "external_pending",
      "delivered",
      "reconciled"
    ],
    "scope": "Tenant plus campaign/channel and inclusive UTC from/to dates applied to immutable cohort_at, including acquisition cost rows. SQL date filter uses [from 00:00Z, dayAfter(to) 00:00Z). Reject reversed or invalid dates.",
    "counts": "Unique cohort keys ever reaching each stage from applied events; distinguish current case stage counts. eligible_view counts actual eligible observations only, not all interests. A case can exist without a view.",
    "previousRate": "Size of current-stage cohort set intersected with previous-stage set divided by previous-stage set size; empty denominator returns null. Preserve history after counters, withdrawals, losses and corrections.",
    "costs": "Sum evidence-backed recorded costs only in the same selected cohort. No cost records or empty case/deal denominator yields null cost-per-interest/deal. Label partial cost coverage; recorded costs are not complete CAC. Represent non-terminating ratios exactly as decimal-string numerator and positive integer-string denominator; round only for display.",
    "labels": "All reference-model counts, amounts, fees and outcomes remain illustrative and do not validate buyer demand or collected revenue."
  },
  "referenceModelGaps": [
    "Model has no tenant authentication, protected provenance, database atomicity or immutable production audit log.",
    "Model uses offer.id as campaign key; parent must bind campaign_id and external offer_id explicitly rather than assume equality.",
    "specSections journey wording assigns agreement recording to external operator; conversion-model.js requires reviewer. Candidate follows model reviewer action, then rails records existing instruction. Parent must confirm owner mapping before production.",
    "Model idempotent run returns the current record rather than stored original response after later mutations. Candidate requires immutable original response replay.",
    "Model throws on rejected commands before appending history. Candidate requires retained failed reconciliation/rejected decision audit, without advancing the case.",
    "Model overwrites current proposal/delivery/link fields. Candidate preserves immutable revisions, attempts and corrections; current projection may change. Later eligible observations derive from events while all analytics retain the same initial cohort date.",
    "Model allocation uses rounded integer cents but analytics can divide into JavaScript numbers. Candidate requires exact arithmetic and decimal serialization throughout."
  ],
  "requirements": [
    {
      "id": "LC-R001",
      "sourceSection": "Scope and boundaries",
      "rule": "Candidate only, illustrative evidence, no live side effects or custody.",
      "testIds": [
        "LC-T001"
      ]
    },
    {
      "id": "LC-R002",
      "sourceSection": "CTO handoff",
      "rule": "Reuse existing native ownership and tenant-scoped external references.",
      "testIds": [
        "LC-T002"
      ]
    },
    {
      "id": "LC-R003",
      "sourceSection": "Attribution and funnel",
      "rule": "Immutable unique cohort/version/first touch, explicit reconfirmation.",
      "testIds": [
        "LC-T003"
      ]
    },
    {
      "id": "LC-R004",
      "sourceSection": "Journey and responsibilities",
      "rule": "Only defined states, actors and evidence-backed transitions.",
      "testIds": [
        "LC-T004"
      ]
    },
    {
      "id": "LC-R005",
      "sourceSection": "Production acceptance",
      "rule": "Current immutable snapshots, five gates, permissions, revocation and expiry.",
      "testIds": [
        "LC-T005"
      ]
    },
    {
      "id": "LC-R006",
      "sourceSection": "Journey and responsibilities",
      "rule": "Opposite-party current proposal confirmation; counter invalidates old acceptance.",
      "testIds": [
        "LC-T006"
      ]
    },
    {
      "id": "LC-R007",
      "sourceSection": "Journey and responsibilities",
      "rule": "Distinct reviewed external agreement required before instruction evidence.",
      "testIds": [
        "LC-T007"
      ]
    },
    {
      "id": "LC-R008",
      "sourceSection": "Commercial and reconciliation",
      "rule": "Four-field mismatch blocks recognition; append-only correction and independent reconciliation.",
      "testIds": [
        "LC-T008",
        "LC-T009"
      ]
    },
    {
      "id": "LC-R009",
      "sourceSection": "Commercial and reconciliation",
      "rule": "Exact USD decimals, canonical rates, explicit payers and balanced allocation.",
      "testIds": [
        "LC-T010"
      ]
    },
    {
      "id": "LC-R010",
      "sourceSection": "Attribution and funnel",
      "rule": "Same UTC cohort, cumulative/current distinction and intersection rates.",
      "testIds": [
        "LC-T011"
      ]
    },
    {
      "id": "LC-R011",
      "sourceSection": "Commercial and reconciliation",
      "rule": "Unknown costs/cash/profit null; no invented financial forecast.",
      "testIds": [
        "LC-T012"
      ]
    },
    {
      "id": "LC-R012",
      "sourceSection": "Errors, storage and privacy",
      "rule": "Atomic idempotency, optimistic concurrency and immutable original replay.",
      "testIds": [
        "LC-T013"
      ]
    },
    {
      "id": "LC-R013",
      "sourceSection": "Errors, storage and privacy",
      "rule": "Append-only applied/rejected history with corrections and safe recovery.",
      "testIds": [
        "LC-T014"
      ]
    },
    {
      "id": "LC-R014",
      "sourceSection": "Link to existing platform workflows",
      "rule": "Validated native discussion attribution only, opaque navigation context.",
      "testIds": [
        "LC-T015"
      ]
    },
    {
      "id": "LC-R015",
      "sourceSection": "Production acceptance",
      "rule": "Authenticated ordered native provenance; no client stage-label promotion.",
      "testIds": [
        "LC-T016"
      ]
    },
    {
      "id": "LC-R016",
      "sourceSection": "Production acceptance",
      "rule": "Production gates must have independently retained acceptance evidence.",
      "testIds": [
        "LC-T017"
      ]
    }
  ],
  "acceptanceTests": [
    {
      "id": "LC-T001",
      "status": "planned_not_executed",
      "scenario": "Inspect all artifacts and instrument reference flow: illustrative labels retained, zero order creation, messages, provider calls, payment or custody side effects."
    },
    {
      "id": "LC-T002",
      "status": "planned_not_executed",
      "scenario": "Reject cross-tenant IDs and inaccessible native references on reads, commands, metrics and replay; validate every parent binding and FK without creating replacement native models."
    },
    {
      "id": "LC-T003",
      "status": "planned_not_executed",
      "scenario": "Race duplicate observations/cases; preserve first unknown/channel/time; new explicitly reconfirmed offer version creates separate cohort while old case remains immutable and native active-interest rules apply."
    },
    {
      "id": "LC-T004",
      "status": "planned_not_executed",
      "scenario": "Exercise every transition and reject skips, wrong roles, unrelated actor IDs, post-agreement withdrawal and inactivity abandonment; rejected actions do not increment case version."
    },
    {
      "id": "LC-T005",
      "status": "planned_not_executed",
      "scenario": "Independently fail each of five gates; change offer, identity, inventory, policy, jurisdiction, consent, expiry and revocation at UTC boundaries; block new progression and retain historical evidence."
    },
    {
      "id": "LC-T006",
      "status": "planned_not_executed",
      "scenario": "Buyer proposal needs seller confirmation and vice versa. Reject same party/identity and stale proposal version. Counter increments proposal version and requires a new opposite-party confirmation."
    },
    {
      "id": "LC-T007",
      "status": "planned_not_executed",
      "scenario": "Proposal acceptance alone cannot record external_pending. Require distinct native agreement evidence bound to confirmed current proposal plus existing order/instruction; no signing or instruction dispatch."
    },
    {
      "id": "LC-T008",
      "status": "planned_not_executed",
      "scenario": "Individually mismatch amount, quantity, network and destination: each enters exception and contributes zero principal and fees. Correction references prior attempt and retains both; repeated mismatch stays exception."
    },
    {
      "id": "LC-T009",
      "status": "planned_not_executed",
      "scenario": "Reject auditor who is a party, instruction operator or delivery reporter, unchecked legs, superseded delivery, missing provenance or unresolved native exception. Only independent matching reconciliation recognizes illustrative principal/fees once."
    },
    {
      "id": "LC-T010",
      "status": "planned_not_executed",
      "scenario": "Reject numeric JSON money, exponents, negatives, excess scale, fractional-cent products and overflow. For USD 100.00 require GlemO 1.00, gateway estimate 0.20 and optional additional agent 1.00; for USD 0.50 GlemO rounds half-up to 0.01. Exercise every explicit payer combination and exact debit/credit equality."
    },
    {
      "id": "LC-T011",
      "status": "planned_not_executed",
      "scenario": "Apply campaign/channel/inclusive UTC cohort filters to all stages and costs; case without eligible_view does not inflate view count or numerator; terminal cases retain cumulative stages; empty denominators return null."
    },
    {
      "id": "LC-T012",
      "status": "planned_not_executed",
      "scenario": "Missing costs and actual cash/revenue/volume/profit are null. Partial evidence is labelled recorded only; no FX/tax/gas assumptions or change to company forecast."
    },
    {
      "id": "LC-T013",
      "status": "planned_not_executed",
      "scenario": "Race same and different request keys; exact retry after a later command returns original body/status/ETag, conflicting reuse is 409, stale If-Match is 412 and missing is 428. Crash between projection/event/receipt commits yields no partial advance or duplicated fee."
    },
    {
      "id": "LC-T014",
      "status": "planned_not_executed",
      "scenario": "Attempt audit and immutable-snapshot edits/deletes; retain failed reconciliation and original correction evidence. Corrupt local data is not silently replaced. Demonstrate transactional recovery and restore without fabricated success."
    },
    {
      "id": "LC-T015",
      "status": "planned_not_executed",
      "scenario": "Reject mismatched offer/buyer/seller/discussion/tenant/version and unauthorized conversation. Valid link adds attribution only; assert native RFQ/order counts unchanged and URLs contain no buyer or ticket data."
    },
    {
      "id": "LC-T016",
      "status": "planned_not_executed",
      "scenario": "Reject untrusted emitter, forged evidence, reordered, duplicate and conflicting source events. Source receipt is atomically deduplicated; native unresolved exceptions stay ineligible despite a manual reconciled label."
    },
    {
      "id": "LC-T017",
      "status": "planned_not_executed",
      "scenario": "Require owners and retained production acceptance evidence for all gates below; reference-model or static artifact checks cannot satisfy these gates."
    }
  ],
  "productionGates": [
    {
      "id": "LC-PG001",
      "status": "not_satisfied_by_handoff",
      "owner": "Identity/security owner",
      "requires": "Server tenant/resource/role enforcement, verified separation of duties, private exports and replay authorization",
      "testIds": [
        "LC-T002",
        "LC-T004",
        "LC-T009"
      ]
    },
    {
      "id": "LC-PG002",
      "status": "not_satisfied_by_handoff",
      "owner": "Launch/market owner",
      "requires": "Approved external relation bindings, immutable snapshots, current legal/identity/inventory/consent checks and agreement responsibility mapping",
      "testIds": [
        "LC-T003",
        "LC-T005",
        "LC-T007",
        "LC-T015"
      ]
    },
    {
      "id": "LC-PG003",
      "status": "not_satisfied_by_handoff",
      "owner": "Native negotiation/settlement owner",
      "requires": "Authenticated event provenance, duplicate/reordering handling, independent receipts, native exception propagation and no live dispatch in conversion projection",
      "testIds": [
        "LC-T006",
        "LC-T008",
        "LC-T009",
        "LC-T016"
      ]
    },
    {
      "id": "LC-PG004",
      "status": "not_satisfied_by_handoff",
      "owner": "Backend/data owner",
      "requires": "Reviewed migrations, transactional uniqueness/CAS/response receipts, append-only permissions, crash and restore tests; DDL alone does not prove security",
      "testIds": [
        "LC-T002",
        "LC-T013",
        "LC-T014"
      ]
    },
    {
      "id": "LC-PG005",
      "status": "not_satisfied_by_handoff",
      "owner": "Finance/settlement owner",
      "requires": "Approved currency/scale/rounding and payer policy, atomic double-entry and receipts in existing owner, explicit optional agent contract and no estimated gateway cost claimed as paid",
      "testIds": [
        "LC-T010",
        "LC-T012"
      ]
    },
    {
      "id": "LC-PG006",
      "status": "not_satisfied_by_handoff",
      "owner": "Privacy/operations/analytics owners",
      "requires": "Retention, deletion and legal holds for private evidence, minimized audit data, monitoring, recovery and UTC cohort/cost completeness semantics",
      "testIds": [
        "LC-T011",
        "LC-T012",
        "LC-T014"
      ]
    },
    {
      "id": "LC-PG007",
      "status": "not_satisfied_by_handoff",
      "owner": "GlemO CTO",
      "requires": "Integrated review, test evidence, deployment approval, approved estimate/storage/event bus/budget without changing forecast from illustrative records",
      "testIds": [
        "LC-T001",
        "LC-T017"
      ]
    }
  ]
}
