iiRecord
Agentic AI Atlas · NormalizedTriggerEvent payload schema
shared-context-spec:normalized-trigger-eventa5c.ai
II.
SharedContextSpec JSON

shared-context-spec:normalized-trigger-event

Structured · live

NormalizedTriggerEvent payload schema json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · extensions/shared-context-specs/normalized-trigger-event.yamlCluster · extensions
Record JSON
{
  "id": "shared-context-spec:normalized-trigger-event",
  "_kind": "SharedContextSpec",
  "_file": "extensions/shared-context-specs/normalized-trigger-event.yaml",
  "_cluster": "extensions",
  "attributes": {
    "displayName": "NormalizedTriggerEvent payload schema",
    "contextKind": "trigger-event-envelope",
    "typescriptInterface": "NormalizedTriggerEvent",
    "producerIface": "@a5c-ai/triggers-adapter backend normalizers (github|gitlab|bitbucket|generic-webhook)",
    "consumerIfaces": [
      "@a5c-ai/triggers-adapter evaluateTrigger (packages/triggers-adapter/src/query.ts:102)",
      "adapters run pipeline (downstream pre-run, adapters, post-run via AGENT_MUX_TRIGGER_EVENT_PATH)"
    ],
    "fieldSchema": [
      "backend:enum<github|gitlab|bitbucket|generic-webhook>:required:Trigger backend the payload was normalized from",
      "eventName:string:required:Backend-native event name (e.g. 'issue_comment','pull_request','push','merge_request','pullrequest:created','webhook')",
      "action:string:optional:Backend-native action verb (e.g. 'opened','created','synchronize'); for bitbucket derived from suffix after ':'",
      "actor:string:optional:Acting user login / username / nickname",
      "repository:string:optional:Repository slug (e.g. 'owner/name' or 'group/path')",
      "ref:string:optional:Git ref (refs/heads/<branch> or tag) when emitted by the backend",
      "sha:string:optional:Commit SHA: prefers event.after, falls back to head_commit.id, then pull_request.head.sha",
      "title:string:optional:Issue/PR title or commit-message first line",
      "body:string:optional:Issue/PR body, comment body, or commit message",
      "url:string:optional:Canonical HTML URL for the event subject",
      "sourceBranch:string:optional:PR/MR source branch",
      "targetBranch:string:optional:PR/MR target branch",
      "labels:list<string>:required:Issue/PR labels (empty list when absent); bitbucket always emits []",
      "text:string:required:Concatenated searchable text (eventName + action + title + body + repository + actor + per-change status/path/patch); used by `text:` and `contains:` query keys",
      "changes:list<TriggerChange>:required:Per-file changes — see TriggerChange field schema; deduped by path and sorted alphabetically by enrichEvent (packages/triggers-adapter/src/enrich.ts:21-28)",
      "raw:unknown:required:Verbatim original webhook/workflow event payload, preserved for backend-specific consumers"
    ],
    "sourceCitation": "packages/triggers-adapter/src/types.ts:11-28 (NormalizedTriggerEvent), packages/triggers-adapter/src/types.ts:3-9 (TriggerChange)"
  },
  "outgoingEdges": [],
  "incomingEdges": [
    {
      "from": "package:a5c-ai-channels-adapter",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "package:a5c-ai-triggers",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "operational-trigger:adapters-triggers-github",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "operational-trigger:adapters-triggers-gitlab",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "operational-trigger:adapters-triggers-bitbucket",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "operational-trigger:adapters-triggers-generic-webhook",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    },
    {
      "from": "operational-trigger:adapters-triggers-action",
      "to": "shared-context-spec:normalized-trigger-event",
      "kind": "has_payload_schema",
      "attributes": {}
    }
  ]
}