{
  "generatedAt": "2026-07-18T19:07:43.503Z",
  "n8nVersion": "2.30.7",
  "workflowsExecuted": 5,
  "reports": [
    {
      "generatedAt": "2026-07-18T19:06:06.462Z",
      "n8nVersion": "2.30.7",
      "workflowId": "port11DiagnosticIntake",
      "workflowPath": "/webhook/portfolio-diagnostic-intake",
      "results": [
        {
          "name": "intake-first",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "intake-stored",
            "case": {
              "caseId": "07aa0d69-f1df-4389-bacb-709e0e5bb57e",
              "providerEventId": "fillout-intake-001",
              "caseKey": "case-northstar-2026",
              "organizationId": "19bf5a19-95c8-40a5-bda5-496b1b3743e3",
              "organizationKey": "northstar-industries",
              "organizationName": "Northstar Industries",
              "initiatorToken": "participant-ceo-001",
              "requiredParticipants": 3,
              "modules": [
                "alignment",
                "portfolio"
              ],
              "intakeComplete": true,
              "calculatedStatus": "collecting-responses",
              "idempotencyKey": "diagnostic:intake:fillout-intake-001",
              "createdAt": "2026-07-18T19:06:06.350Z",
              "updatedAt": "2026-07-18T19:06:06.350Z"
            },
            "logId": "380e0766-f018-4270-be2c-1a12a07c209b"
          }
        },
        {
          "name": "intake-replay",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "intake-stored",
            "case": {
              "caseId": "07aa0d69-f1df-4389-bacb-709e0e5bb57e",
              "providerEventId": "fillout-intake-001",
              "caseKey": "case-northstar-2026",
              "organizationId": "19bf5a19-95c8-40a5-bda5-496b1b3743e3",
              "organizationKey": "northstar-industries",
              "organizationName": "Northstar Industries",
              "initiatorToken": "participant-ceo-001",
              "requiredParticipants": 3,
              "modules": [
                "alignment",
                "portfolio"
              ],
              "intakeComplete": true,
              "calculatedStatus": "collecting-responses",
              "idempotencyKey": "diagnostic:intake:fillout-intake-001",
              "createdAt": "2026-07-18T19:06:06.350Z",
              "updatedAt": "2026-07-18T19:06:06.350Z",
              "replayed": true
            },
            "logId": "a60d3e4b-dbc0-4d81-a4f6-5afcf1f28a8b"
          }
        },
        {
          "name": "intake-invalid",
          "status": 400,
          "payload": {
            "ok": false,
            "status": "invalid-intake",
            "error": "Missing intake fields: caseKey, organizationKey, organizationName, initiatorToken, requiredParticipants, submittedAt"
          }
        }
      ],
      "finalState": {
        "cases": 1,
        "separatedIdentities": 3,
        "logs": 2
      },
      "assertions": {
        "actualN8nWebhookExecuted": true,
        "moduleRoutingVerified": true,
        "replayDeduplicated": true,
        "invalidInputReturned400": true
      }
    },
    {
      "generatedAt": "2026-07-18T19:06:19.161Z",
      "n8nVersion": "2.30.7",
      "workflowId": "port11DiagnosticAssessment",
      "workflowPath": "/webhook/portfolio-diagnostic-assessment",
      "results": [
        {
          "name": "assessment-first",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "assessment-stored",
            "submission": {
              "submissionId": "9c37156b-4737-47b4-a465-8dc891851fda",
              "providerEventId": "fillout-assessment-001",
              "caseKey": "case-northstar-2026",
              "participantToken": "participant-ceo-001",
              "participantRole": "initiating-ceo",
              "answerCount": 7,
              "answers": [
                {
                  "questionKey": "clarity_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "clarity_02",
                  "normalizedValue": 3
                },
                {
                  "questionKey": "differentiation_01",
                  "normalizedValue": 2
                },
                {
                  "questionKey": "consistency_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "leadership_alignment_01",
                  "normalizedValue": 3
                },
                {
                  "questionKey": "customer_relevance_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "execution_readiness_01",
                  "normalizedValue": 3
                }
              ],
              "submittedAt": "2026-08-11T10:00:00Z",
              "identityFieldsStoredWithAnswers": false,
              "idempotencyKey": "diagnostic:assessment:fillout-assessment-001"
            },
            "logId": "3c80e9f5-8d8f-4719-8d08-6ac00feaa443"
          }
        },
        {
          "name": "assessment-replay",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "assessment-stored",
            "submission": {
              "submissionId": "9c37156b-4737-47b4-a465-8dc891851fda",
              "providerEventId": "fillout-assessment-001",
              "caseKey": "case-northstar-2026",
              "participantToken": "participant-ceo-001",
              "participantRole": "initiating-ceo",
              "answerCount": 7,
              "answers": [
                {
                  "questionKey": "clarity_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "clarity_02",
                  "normalizedValue": 3
                },
                {
                  "questionKey": "differentiation_01",
                  "normalizedValue": 2
                },
                {
                  "questionKey": "consistency_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "leadership_alignment_01",
                  "normalizedValue": 3
                },
                {
                  "questionKey": "customer_relevance_01",
                  "normalizedValue": 4
                },
                {
                  "questionKey": "execution_readiness_01",
                  "normalizedValue": 3
                }
              ],
              "submittedAt": "2026-08-11T10:00:00Z",
              "identityFieldsStoredWithAnswers": false,
              "idempotencyKey": "diagnostic:assessment:fillout-assessment-001",
              "replayed": true
            },
            "logId": "c40dd08a-31cb-4f75-bcef-43f03aefbc48"
          }
        },
        {
          "name": "assessment-invalid",
          "status": 400,
          "payload": {
            "ok": false,
            "status": "invalid-assessment",
            "error": "Assessment answers must be a non-empty object"
          }
        }
      ],
      "finalState": {
        "submissions": 1,
        "clearNamesWithAnswers": 0,
        "logs": 2
      },
      "assertions": {
        "actualN8nWebhookExecuted": true,
        "answersNormalized": true,
        "replayDeduplicated": true,
        "identitySeparationVerified": true,
        "invalidInputReturned400": true
      }
    },
    {
      "generatedAt": "2026-07-18T19:06:34.783Z",
      "n8nVersion": "2.30.7",
      "workflowId": "port11DiagnosticAggregation",
      "workflowPath": "/webhook/portfolio-diagnostic-aggregate",
      "results": [
        {
          "name": "aggregate-first",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "aggregation-created",
            "aggregation": {
              "aggregationId": "0b3705d9-661a-4210-bfa7-0fc3ba87980e",
              "providerEventId": "aggregate-001",
              "caseKey": "case-northstar-2026",
              "prompt": {
                "promptKey": "brand-diagnostic-master",
                "version": 1,
                "loadedFromTable": true
              },
              "participantCount": 3,
              "inputFingerprint": "3f21f2f7c584bdfadf65c97c",
              "anonymizationApplied": true,
              "replacementRegisterUsed": true,
              "containsClearNames": false,
              "structuredOutput": {
                "schemaVersion": 1,
                "dimensionScores": {
                  "clarity": 3.17,
                  "differentiation": 2.33,
                  "consistency": 3.33,
                  "leadership_alignment": 2.33,
                  "customer_relevance": 4.33,
                  "execution_readiness": 2.67
                },
                "primaryFinding": "The lowest-scoring diagnostic dimension is differentiation.",
                "evidence": [
                  "Aggregated leadership-team responses",
                  "No clear names supplied to the analysis step"
                ],
                "recommendedActions": [
                  "Review the lowest-scoring dimension with leadership",
                  "Assign an owner and measurable follow-up date"
                ]
              },
              "idempotencyKey": "diagnostic:aggregate:aggregate-001",
              "createdAt": "2026-07-18T19:06:32.644Z"
            },
            "logId": "d8fb5eed-89a2-46a1-adfc-e842f854b9ef"
          }
        },
        {
          "name": "aggregate-replay",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "aggregation-created",
            "aggregation": {
              "aggregationId": "0b3705d9-661a-4210-bfa7-0fc3ba87980e",
              "providerEventId": "aggregate-001",
              "caseKey": "case-northstar-2026",
              "prompt": {
                "promptKey": "brand-diagnostic-master",
                "version": 1,
                "loadedFromTable": true
              },
              "participantCount": 3,
              "inputFingerprint": "3f21f2f7c584bdfadf65c97c",
              "anonymizationApplied": true,
              "replacementRegisterUsed": true,
              "containsClearNames": false,
              "structuredOutput": {
                "schemaVersion": 1,
                "dimensionScores": {
                  "clarity": 3.17,
                  "differentiation": 2.33,
                  "consistency": 3.33,
                  "leadership_alignment": 2.33,
                  "customer_relevance": 4.33,
                  "execution_readiness": 2.67
                },
                "primaryFinding": "The lowest-scoring diagnostic dimension is differentiation.",
                "evidence": [
                  "Aggregated leadership-team responses",
                  "No clear names supplied to the analysis step"
                ],
                "recommendedActions": [
                  "Review the lowest-scoring dimension with leadership",
                  "Assign an owner and measurable follow-up date"
                ]
              },
              "idempotencyKey": "diagnostic:aggregate:aggregate-001",
              "createdAt": "2026-07-18T19:06:32.644Z",
              "replayed": true
            },
            "logId": "caedc76e-7183-46dd-aca8-7cc2ab94f836"
          }
        },
        {
          "name": "aggregate-outage",
          "status": 503,
          "payload": {
            "ok": false,
            "status": "aggregation-service-unavailable",
            "retryable": true,
            "adminAlertId": "7d457ca4-3194-43e4-a514-783571650713"
          }
        }
      ],
      "finalState": {
        "aggregations": 1,
        "participantsAggregated": 3,
        "clearNamesInAnalysis": 0,
        "adminAlerts": 1
      },
      "assertions": {
        "actualN8nWebhookExecuted": true,
        "anonymizationVerified": true,
        "promptLoadedFromTable": true,
        "structuredJsonParsed": true,
        "replayDeduplicated": true,
        "failedLlmEscalated": true
      }
    },
    {
      "generatedAt": "2026-07-18T19:06:48.529Z",
      "n8nVersion": "2.30.7",
      "workflowId": "port11DiagnosticUpdate",
      "workflowPath": "/webhook/portfolio-diagnostic-update",
      "results": [
        {
          "name": "update-first",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "case-recalculated",
            "update": {
              "updateId": "ff441f91-3fdf-400a-afa0-d97c2adfc22a",
              "providerEventId": "update-001",
              "caseKey": "case-northstar-2026",
              "changeType": "assessment-submitted",
              "responseCount": 3,
              "requiredParticipants": 3,
              "calculatedStatus": "responses-complete",
              "statusManuallyWritable": false,
              "idempotencyKey": "diagnostic:update:update-001"
            },
            "logId": "e04c7882-d11a-4213-97b2-a7fde617cce3"
          }
        },
        {
          "name": "update-replay",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "case-recalculated",
            "update": {
              "updateId": "ff441f91-3fdf-400a-afa0-d97c2adfc22a",
              "providerEventId": "update-001",
              "caseKey": "case-northstar-2026",
              "changeType": "assessment-submitted",
              "responseCount": 3,
              "requiredParticipants": 3,
              "calculatedStatus": "responses-complete",
              "statusManuallyWritable": false,
              "idempotencyKey": "diagnostic:update:update-001",
              "replayed": true
            },
            "logId": "a41bda81-5b66-4528-b0f4-f1d41fa18ee5"
          }
        },
        {
          "name": "update-invalid",
          "status": 400,
          "payload": {
            "ok": false,
            "status": "invalid-change-event",
            "error": "Missing update fields: caseKey, changeType"
          }
        }
      ],
      "finalState": {
        "updates": 1,
        "calculatedStatus": "responses-complete",
        "manualStatusWrites": 0
      },
      "assertions": {
        "actualN8nWebhookExecuted": true,
        "calculatedStatusVerified": true,
        "manualOverwritePrevented": true,
        "replayDeduplicated": true,
        "invalidInputReturned400": true
      }
    },
    {
      "generatedAt": "2026-07-18T19:07:43.344Z",
      "n8nVersion": "2.30.7",
      "workflowId": "port11DiagnosticReport",
      "workflowPath": "/webhook/portfolio-diagnostic-report",
      "results": [
        {
          "name": "report-first",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "ceo-report-ready",
            "report": {
              "reportId": "7f3910b0-ddf3-4b8a-b691-4b6b6de5ec65",
              "providerEventId": "report-001",
              "caseKey": "case-northstar-2026",
              "aggregationId": "489ac966-9c1e-4c4d-a1d2-c31e9774336b",
              "markdownBody": "# Executive Diagnostic Report\n\n## Participation\n\n3 anonymized leadership responses were aggregated.\n\n## Dimension scores\n\n- clarity: 3.17/5\n- differentiation: 2.33/5\n- consistency: 3.33/5\n- leadership_alignment: 2.33/5\n- customer_relevance: 4.33/5\n- execution_readiness: 2.67/5\n\n## Primary finding\n\nThe lowest-scoring diagnostic dimension is differentiation.\n\n## Recommended actions\n\n1. Review the lowest-scoring dimension with leadership.\n2. Assign an owner and measurable follow-up date.\n",
              "recipientToken": "participant-ceo-001",
              "recipientRole": "initiating-ceo",
              "routedToInitiatingCeoOnly": true,
              "containsParticipantIdentities": false,
              "status": "draft-ready-for-approval",
              "idempotencyKey": "diagnostic:report:report-001",
              "createdAt": "2026-07-18T19:07:41.150Z"
            },
            "logId": "ba13e3e3-dd50-4a01-936c-a0a71ab34b4e"
          }
        },
        {
          "name": "report-replay",
          "status": 200,
          "payload": {
            "ok": true,
            "status": "ceo-report-ready",
            "report": {
              "reportId": "7f3910b0-ddf3-4b8a-b691-4b6b6de5ec65",
              "providerEventId": "report-001",
              "caseKey": "case-northstar-2026",
              "aggregationId": "489ac966-9c1e-4c4d-a1d2-c31e9774336b",
              "markdownBody": "# Executive Diagnostic Report\n\n## Participation\n\n3 anonymized leadership responses were aggregated.\n\n## Dimension scores\n\n- clarity: 3.17/5\n- differentiation: 2.33/5\n- consistency: 3.33/5\n- leadership_alignment: 2.33/5\n- customer_relevance: 4.33/5\n- execution_readiness: 2.67/5\n\n## Primary finding\n\nThe lowest-scoring diagnostic dimension is differentiation.\n\n## Recommended actions\n\n1. Review the lowest-scoring dimension with leadership.\n2. Assign an owner and measurable follow-up date.\n",
              "recipientToken": "participant-ceo-001",
              "recipientRole": "initiating-ceo",
              "routedToInitiatingCeoOnly": true,
              "containsParticipantIdentities": false,
              "status": "draft-ready-for-approval",
              "idempotencyKey": "diagnostic:report:report-001",
              "createdAt": "2026-07-18T19:07:41.150Z",
              "replayed": true
            },
            "logId": "4c9b3bb5-e1f5-4a8e-bb5b-fa9923be28e0"
          }
        },
        {
          "name": "report-unauthorized",
          "status": 403,
          "payload": {
            "ok": false,
            "status": "report-access-denied",
            "error": "Only the initiating CEO may receive the master report"
          }
        },
        {
          "name": "report-outage",
          "status": 503,
          "payload": {
            "ok": false,
            "status": "report-service-unavailable",
            "retryable": true,
            "adminAlertId": "f6174713-534c-4194-a008-03fe4cc432b5"
          }
        }
      ],
      "finalState": {
        "reports": 1,
        "authorizedRecipients": 1,
        "participantIdentitiesInReport": 0,
        "adminAlerts": 1
      },
      "assertions": {
        "actualN8nWebhookExecuted": true,
        "markdownCompiled": true,
        "ceoOnlyRoutingVerified": true,
        "unauthorizedRequestReturned403": true,
        "replayDeduplicated": true,
        "reportOutageEscalated": true
      }
    }
  ]
}
