changedInput schema / properties / payload / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "buyerRoles": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "criteria": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "exclusionCriteria": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "segment",
- "type": "string"
- },
- "market": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "criteria",
- "buyerRoles",
- "market"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "currentSolution": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "impact": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "problem",
- "type": "string"
- },
- "problem": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "segmentId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "trigger": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "uncertainty": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "segmentId",
- "problem",
- "currentSolution",
- "trigger",
- "impact",
- "uncertainty"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "direction": {
- "enum": [
- "supports",
- "contradicts",
- "neutral"
- ],
- "type": "string"
- },
- "evidenceKind": {
- "enum": [
- "research",
- "customer_statement",
- "observed_behavior"
- ],
- "type": "string"
- },
- "kind": {
- "const": "evidence",
- "type": "string"
- },
- "leadId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "limitations": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "observation": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "observedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "origin": {
- "additionalProperties": false,
- "properties": {
- "fingerprint": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "id": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "kind": {
- "enum": [
- "sales_call",
- "b2b_target",
- "search_console"
- ],
- "type": "string"
- }
- },
- "required": [
- "kind",
- "id",
- "fingerprint"
- ],
- "type": "object"
- },
- "problemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "source": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "problemId",
- "evidenceKind",
- "observation",
- "source",
- "observedAt",
- "limitations",
- "direction"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "answers": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "budget": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "buyingProcess": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "contactId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "currentSolution": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "decisionMaker": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "evidenceIds": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "maxItems": 6,
- "type": "array"
- },
- "format": {
- "const": "discovery",
- "description": "Use discovery for a contact conversation: problemStatement, currentSolution, budget and decisionMaker are required. Record unknowns explicitly; never invent them. Without format, the existing full interview fields and problemId remain required.",
- "type": "string"
- },
- "kind": {
- "const": "interview",
- "type": "string"
- },
- "leadId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "occurredAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "openQuestions": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "problemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "problemStatement": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "questions": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "willingnessToPay": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "occurredAt",
- "evidenceIds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "alternative",
- "type": "string"
- },
- "observedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "problemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "solution": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "source": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- },
- "strengths": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "weaknesses": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "problemId",
- "solution",
- "strengths",
- "weaknesses",
- "source",
- "observedAt"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "alternativeIds": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "maxItems": 6,
- "minItems": 1,
- "type": "array"
- },
- "differentiation": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "evidenceIds": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "maxItems": 6,
- "minItems": 1,
- "type": "array"
- },
- "kind": {
- "const": "positioning",
- "type": "string"
- },
- "outcome": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "problemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "problemId",
- "outcome",
- "differentiation",
- "evidenceIds",
- "alternativeIds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "commercialEffect": {
- "const": "none",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- },
- "exclusions": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "offer",
- "type": "string"
- },
- "outcome": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "positioningId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "prerequisites": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "priceBasis": {
- "enum": [
- "net",
- "gross"
- ],
- "type": "string"
- },
- "priceMinor": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "scope": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "terms": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "positioningId",
- "outcome",
- "scope",
- "exclusions",
- "prerequisites",
- "currency",
- "priceMinor",
- "priceBasis",
- "terms",
- "commercialEffect"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "approach": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "attributionRule": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "channelKind": {
- "enum": [
- "search",
- "advertising",
- "outreach",
- "partner",
- "referral",
- "integration"
- ],
- "type": "string"
- },
- "executionSource": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "fingerprint": {
- "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "id": {
- "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "marketing_campaign",
- "type": "string"
- },
- "label": {
- "description": "Copy the returned source label unchanged; retained as historical display provenance.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "id",
- "fingerprint",
- "label"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fingerprint": {
- "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "id": {
- "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "partner_program",
- "type": "string"
- },
- "label": {
- "description": "Copy the returned source label unchanged; retained as historical display provenance.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "id",
- "fingerprint",
- "label"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fingerprint": {
- "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "host": {
- "description": "Copy the exact published host returned by the source list.",
- "maxLength": 253,
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "service_order_api",
- "type": "string"
- },
- "label": {
- "description": "Copy the returned source label unchanged; retained as historical display provenance.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "transport": {
- "description": "Copy the reviewed access transport; this does not identify a third-party application.",
- "enum": [
- "rest",
- "mcp"
- ],
- "type": "string"
- }
- },
- "required": [
- "kind",
- "id",
- "fingerprint",
- "label",
- "host",
- "transport"
- ],
- "type": "object"
- }
- ]
- },
- "kind": {
- "const": "channel",
- "type": "string"
- },
- "partnerAccountId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "segmentId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "source": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "segmentId",
- "channelKind",
- "approach",
- "attributionRule"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "campaignResultSource": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "asOf": {
- "description": "Inclusive observed cutoff, no later than the original experiment end or current time.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "campaignId": {
- "description": "Copy the campaign ID returned by campaignExperimentId; never a tenant selector.",
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "channelRevision": {
- "description": "Original channel revision from the experiment's first started version.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "experimentRevision": {
- "description": "Exact reviewed current experiment revision; must match expectedRevision when attaching.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "fingerprint": {
- "description": "Copy the exact reviewed source fingerprint. Source changes conflict; no execution or spending authority.",
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "kind": {
- "const": "marketing_campaign",
- "description": "Recorded outcome source of the campaign bound to the original experiment channel.",
- "type": "string"
- },
- "startsAt": {
- "description": "Inclusive original experiment start, copied unchanged from the reviewed source.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "campaignId",
- "experimentRevision",
- "channelRevision",
- "startsAt",
- "asOf",
- "fingerprint"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Reviewed campaign provenance from get_sales_learning campaignExperimentId. Omission preserves an existing reference; null explicitly removes it. No amounts or execution authority."
- },
- "channelId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "endsAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "evidenceIds": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "maxItems": 6,
- "type": "array"
- },
- "hypothesis": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "kind": {
- "const": "experiment",
- "type": "string"
- },
- "limitations": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "metric": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "offerId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "problemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "result": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "sampleDefinition": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "startsAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "state": {
- "enum": [
- "planned",
- "running",
- "completed",
- "stopped"
- ],
- "type": "string"
- },
- "successCriterion": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "problemId",
- "offerId",
- "channelId",
- "hypothesis",
- "metric",
- "successCriterion",
- "startsAt",
- "endsAt",
- "sampleDefinition",
- "state",
- "evidenceIds",
- "limitations"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "action": {
- "enum": [
- "continue",
- "change",
- "stop",
- "expand"
- ],
- "type": "string"
- },
- "dueAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "evidenceIds": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "maxItems": 6,
- "minItems": 1,
- "type": "array"
- },
- "experimentId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "kind": {
- "const": "decision",
- "type": "string"
- },
- "nextAction": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "rationale": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "resourceContext": {
- "additionalProperties": false,
- "properties": {
- "budget": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- "revision": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "revision"
- ],
- "type": "object"
- },
- "goal": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maxLength": 160,
- "minLength": 1,
- "type": "string"
- },
- "revision": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "revision"
- ],
- "type": "object"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "kind",
- "experimentId",
- "action",
- "rationale",
- "evidenceIds",
- "nextAction",
- "dueAt"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "channelId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "decisionProcess": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "experimentId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "kind": {
- "const": "opportunity",
- "type": "string"
- },
- "leadId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "offerId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "outcomeSource": {
- "enum": [
- "sales_lead",
- "pipeline_item"
- ],
- "type": "string"
- },
- "participants": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "pipelineItemId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "qualification": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "offerId",
- "channelId",
- "qualification",
- "decisionProcess",
- "participants",
- "outcomeSource"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "activity": {
- "enum": [
- "acquisition",
- "proposal",
- "support",
- "delivery"
- ],
- "type": "string"
- },
- "basis": {
- "enum": [
- "recorded",
- "estimated"
- ],
- "type": "string"
- },
- "completionSource": {
- "additionalProperties": false,
- "properties": {
- "fingerprint": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "taskId": {
- "pattern": "^pipeline_task_[a-f0-9]{64}$",
- "type": "string"
- }
- },
- "required": [
- "taskId",
- "fingerprint"
- ],
- "type": "object"
- },
- "kind": {
- "const": "effort",
- "type": "string"
- },
- "minutes": {
- "maximum": 10080,
- "minimum": 0,
- "type": "integer"
- },
- "notes": {
- "maxLength": 4000,
- "minLength": 1,
- "type": "string"
- },
- "occurredAt": {
- "description": "With completionSource this is the original completion-recording timestamp, not independently observed human work time.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "opportunityId": {
- "pattern": "^[a-zA-Z0-9_-]{1,100}$",
- "type": "string"
- },
- "source": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "opportunityId",
- "activity",
- "occurredAt",
- "minutes",
- "basis",
- "source",
- "notes"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "buyerRoles": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "criteria": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "exclusionCriteria": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "segment",
+ "type": "string"
+ },
+ "market": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "criteria",
+ "buyerRoles",
+ "market"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currentSolution": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "impact": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "problem",
+ "type": "string"
+ },
+ "problem": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "segmentId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "trigger": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "uncertainty": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "segmentId",
+ "problem",
+ "currentSolution",
+ "trigger",
+ "impact",
+ "uncertainty"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "direction": {
+ "enum": [
+ "supports",
+ "contradicts",
+ "neutral"
+ ],
+ "type": "string"
+ },
+ "evidenceKind": {
+ "enum": [
+ "research",
+ "customer_statement",
+ "observed_behavior"
+ ],
+ "type": "string"
+ },
+ "kind": {
+ "const": "evidence",
+ "type": "string"
+ },
+ "leadId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "limitations": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "observation": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "observedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "origin": {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "id": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "sales_call",
+ "b2b_target",
+ "search_console"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "id",
+ "fingerprint"
+ ],
+ "type": "object"
+ },
+ "problemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "problemId",
+ "evidenceKind",
+ "observation",
+ "source",
+ "observedAt",
+ "limitations",
+ "direction"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "answers": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "budget": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "buyingProcess": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "contactId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "currentSolution": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "decisionMaker": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "evidenceIds": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "maxItems": 6,
+ "type": "array"
+ },
+ "format": {
+ "const": "discovery",
+ "description": "Use discovery for a contact conversation: problemStatement, currentSolution, budget and decisionMaker are required. Record unknowns explicitly; never invent them. Without format, the existing full interview fields and problemId remain required.",
+ "type": "string"
+ },
+ "kind": {
+ "const": "interview",
+ "type": "string"
+ },
+ "leadId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "occurredAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "openQuestions": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "problemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "problemStatement": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "questions": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "willingnessToPay": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "occurredAt",
+ "evidenceIds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "alternative",
+ "type": "string"
+ },
+ "observedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "problemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "solution": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "strengths": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "weaknesses": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "problemId",
+ "solution",
+ "strengths",
+ "weaknesses",
+ "source",
+ "observedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "alternativeIds": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "maxItems": 6,
+ "minItems": 1,
+ "type": "array"
+ },
+ "differentiation": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "evidenceIds": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "maxItems": 6,
+ "minItems": 1,
+ "type": "array"
+ },
+ "kind": {
+ "const": "positioning",
+ "type": "string"
+ },
+ "outcome": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "problemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "problemId",
+ "outcome",
+ "differentiation",
+ "evidenceIds",
+ "alternativeIds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "commercialEffect": {
+ "const": "none",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ },
+ "economicsPlan": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acquisitionCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "basis": {
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "deliveryCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "hourlyCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "otherCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "overheadCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "paymentCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "plannedMinutes": {
+ "maximum": 10000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "planningCoverageConfirmed": {
+ "const": true,
+ "type": "boolean"
+ },
+ "supportCostMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "targetMarginBasisPoints": {
+ "maximum": 9999,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unitScope": {
+ "maxLength": 240,
+ "minLength": 1,
+ "type": "string"
+ },
+ "version": {
+ "const": "offer_economics_plan.v1",
+ "type": "string"
+ }
+ },
+ "required": [
+ "version",
+ "unitScope",
+ "basis",
+ "acquisitionCostMinor",
+ "deliveryCostMinor",
+ "supportCostMinor",
+ "overheadCostMinor",
+ "paymentCostMinor",
+ "otherCostMinor",
+ "plannedMinutes",
+ "hourlyCostMinor",
+ "targetMarginBasisPoints",
+ "planningCoverageConfirmed"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "exclusions": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "offer",
+ "type": "string"
+ },
+ "outcome": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "positioningId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "prerequisites": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "priceBasis": {
+ "enum": [
+ "net",
+ "gross"
+ ],
+ "type": "string"
+ },
+ "priceMinor": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "scope": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "terms": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "positioningId",
+ "outcome",
+ "scope",
+ "exclusions",
+ "prerequisites",
+ "currency",
+ "priceMinor",
+ "priceBasis",
+ "terms",
+ "commercialEffect"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "approach": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributionRule": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "channelKind": {
+ "enum": [
+ "search",
+ "advertising",
+ "outreach",
+ "partner",
+ "referral",
+ "integration"
+ ],
+ "type": "string"
+ },
+ "executionSource": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "id": {
+ "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "marketing_campaign",
+ "type": "string"
+ },
+ "label": {
+ "description": "Copy the returned source label unchanged; retained as historical display provenance.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "id",
+ "fingerprint",
+ "label"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "id": {
+ "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "partner_program",
+ "type": "string"
+ },
+ "label": {
+ "description": "Copy the returned source label unchanged; retained as historical display provenance.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "id",
+ "fingerprint",
+ "label"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "description": "Copy the returned current source fingerprint unchanged. Changed sources conflict; this is not execution authority.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "host": {
+ "description": "Copy the exact published host returned by the source list.",
+ "maxLength": 253,
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "description": "Exact source ID returned by get_sales_learning with executionSourceKind; never a tenant ID.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "service_order_api",
+ "type": "string"
+ },
+ "label": {
+ "description": "Copy the returned source label unchanged; retained as historical display provenance.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "transport": {
+ "description": "Copy the reviewed access transport; this does not identify a third-party application.",
+ "enum": [
+ "rest",
+ "mcp"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "id",
+ "fingerprint",
+ "label",
+ "host",
+ "transport"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "kind": {
+ "const": "channel",
+ "type": "string"
+ },
+ "partnerAccountId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "segmentId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "segmentId",
+ "channelKind",
+ "approach",
+ "attributionRule"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "campaignResultSource": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "asOf": {
+ "description": "Inclusive observed cutoff, no later than the original experiment end or current time.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "campaignId": {
+ "description": "Copy the campaign ID returned by campaignExperimentId; never a tenant selector.",
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "channelRevision": {
+ "description": "Original channel revision from the experiment's first started version.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "experimentRevision": {
+ "description": "Exact reviewed current experiment revision; must match expectedRevision when attaching.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "fingerprint": {
+ "description": "Copy the exact reviewed source fingerprint. Source changes conflict; no execution or spending authority.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "kind": {
+ "const": "marketing_campaign",
+ "description": "Recorded outcome source of the campaign bound to the original experiment channel.",
+ "type": "string"
+ },
+ "startsAt": {
+ "description": "Inclusive original experiment start, copied unchanged from the reviewed source.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "campaignId",
+ "experimentRevision",
+ "channelRevision",
+ "startsAt",
+ "asOf",
+ "fingerprint"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Reviewed campaign provenance from get_sales_learning campaignExperimentId. Omission preserves an existing reference; null explicitly removes it. No amounts or execution authority."
+ },
+ "channelId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "endsAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "evidenceIds": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "maxItems": 6,
+ "type": "array"
+ },
+ "hypothesis": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kind": {
+ "const": "experiment",
+ "type": "string"
+ },
+ "limitations": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "metric": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "offerId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "problemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "result": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "sampleDefinition": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "startsAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "planned",
+ "running",
+ "completed",
+ "stopped"
+ ],
+ "type": "string"
+ },
+ "successCriterion": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "problemId",
+ "offerId",
+ "channelId",
+ "hypothesis",
+ "metric",
+ "successCriterion",
+ "startsAt",
+ "endsAt",
+ "sampleDefinition",
+ "state",
+ "evidenceIds",
+ "limitations"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "enum": [
+ "continue",
+ "change",
+ "stop",
+ "expand"
+ ],
+ "type": "string"
+ },
+ "dueAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "evidenceIds": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "maxItems": 6,
+ "minItems": 1,
+ "type": "array"
+ },
+ "experimentId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "kind": {
+ "const": "decision",
+ "type": "string"
+ },
+ "nextAction": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "rationale": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "resourceContext": {
+ "additionalProperties": false,
+ "properties": {
+ "budget": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ "revision": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "revision"
+ ],
+ "type": "object"
+ },
+ "goal": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ "revision": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "revision"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "kind",
+ "experimentId",
+ "action",
+ "rationale",
+ "evidenceIds",
+ "nextAction",
+ "dueAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "channelId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "decisionProcess": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "experimentId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "kind": {
+ "const": "opportunity",
+ "type": "string"
+ },
+ "leadId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "offerId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "outcomeSource": {
+ "enum": [
+ "sales_lead",
+ "pipeline_item"
+ ],
+ "type": "string"
+ },
+ "participants": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "pipelineItemId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "qualification": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "offerId",
+ "channelId",
+ "qualification",
+ "decisionProcess",
+ "participants",
+ "outcomeSource"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activity": {
+ "enum": [
+ "acquisition",
+ "proposal",
+ "support",
+ "delivery"
+ ],
+ "type": "string"
+ },
+ "basis": {
+ "enum": [
+ "recorded",
+ "estimated"
+ ],
+ "type": "string"
+ },
+ "completionSource": {
+ "additionalProperties": false,
+ "properties": {
+ "fingerprint": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "taskId": {
+ "pattern": "^pipeline_task_[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "taskId",
+ "fingerprint"
+ ],
+ "type": "object"
+ },
+ "kind": {
+ "const": "effort",
+ "type": "string"
+ },
+ "minutes": {
+ "maximum": 10080,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "notes": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "occurredAt": {
+ "description": "With completionSource this is the original completion-recording timestamp, not independently observed human work time.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "opportunityId": {
+ "pattern": "^[a-zA-Z0-9_-]{1,100}$",
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "opportunityId",
+ "activity",
+ "occurredAt",
+ "minutes",
+ "basis",
+ "source",
+ "notes"
+ ],
+ "type": "object"
+ }
+]