Integration doctor

Diagnose integration trace mismatches with cited request and response evidence, then emit a gated fix plan and issue proposal without making provider calls.

You’re reading version sha-1da6e36d8dfb. Go to the current version

Overview

Integration Doctor turns a bounded integration failure trace into a grounded diagnosis. It compares the caller's integration spec, trace bundle, expected contract, and incident context, then emits a root cause, evidence-backed fix plan, escalation decision, and issue proposal when the evidence is actionable.

This skill does not call providers, retry webhooks, inspect live credentials, open issues, or mutate any integration. It reads the supplied artifacts and produces a handoff packet for a human or downstream issue-intake lane.

SKILL.md

Integration Doctor

Integration Doctor turns a bounded integration failure trace into a grounded diagnosis. It compares the caller's integration spec, trace bundle, expected contract, and incident context, then emits a root cause, evidence-backed fix plan, escalation decision, and issue proposal when the evidence is actionable.

This skill does not call providers, retry webhooks, inspect live credentials, open issues, or mutate any integration. It reads the supplied artifacts and produces a handoff packet for a human or downstream issue-intake lane.

What This Skill Does

  1. Validate evidence. Refuse when the integration spec, expected contract, or trace bundle is missing, empty, or internally conflicting.
  2. Compare observed and expected behavior. Check endpoint path, status, response shape, timestamp order, and declared auth mode against the expected contract.
  3. Cite trace evidence. Every diagnosis cites request, response, or contract refs supplied by the caller. Redacted headers stay redacted.
  4. Emit a fix plan. Actionable mismatches produce ordered remediation steps with owners and evidence refs.
  5. Gate downstream work. The issue proposal is data for issue-intake or issue-to-pr. This skill opens nothing itself.

Contract Boundaries

  • Typed inputs are required.
    • integration_spec: provider, endpoints, auth mode, and integration owner.
    • trace_bundle: observed requests, responses, timestamps, and redaction metadata.
    • expected_contract: expected endpoints, statuses, and required fields.
    • incident_context: impact, environment, and caller objective.
  • Typed output is deterministic. The output contains diagnosis, fix_plan, escalation, and issue_proposal when actionable.
  • No live operations. The skill performs no provider calls, webhook retries, credential handling, account mutation, or issue creation.
  • No invented causes. If evidence is missing or contradictory, the result is needs_more_evidence and no issue proposal is emitted.

Refusals And Stops

  • Missing requests, responses, expected endpoints, or integration spec returns a refused result.
  • Conflicting responses for the same request without ordering evidence returns needs_more_evidence.
  • Secret-like values are never echoed. Evidence refs name the location while keeping raw credential material out of output.
  • Ambiguous traces escalate to a human with a specific evidence request.

Quality Profile

  • Purpose: produce a trusted first diagnosis for failed integrations.
  • Audience: integration engineers, support escalations, and issue intake lanes.
  • Artifact contract: diagnosis, cited evidence refs, fix plan, escalation decision, and optional issue proposal.
  • Evidence bar: every root-cause claim points to supplied request, response, or contract evidence.
  • Safety bar: no provider calls, no credential handling, no webhook retries, and no issue mutation.
  • Stop conditions: missing evidence, contradictory trace data, unredacted secret values, or no mismatch found.

Output Schema

yaml
diagnosis:
  root_cause: string | null
  confidence: number
  evidence_refs:
    - string
  observed:
    endpoint: string
    status: number | null
    shape: string
fix_plan:
  - step: string
    owner: string
    evidence_refs:
      - string
escalation:
  decision: actionable | needs_more_evidence | no_issue
  lane: issue-intake | human-review | none
  reason: string
issue_proposal:
  title: string
  body: string
  labels:
    - string

Inputs

  • integration_spec (required): provider, endpoint definitions, auth mode, and owner.
  • trace_bundle (required): requests, responses, timestamps, and redaction metadata.
  • expected_contract (required): expected status and required response fields.
  • incident_context (optional): environment, impact, and objective.

Published execution profile

The execution profile published with sha-1da6e36d8dfb, shown as its exact bytes.

Runner
  • diagnose
Profile digestsha256:f4acc4b044a6ebd6690c6818e9840bff9a40f8178472335ea111cd765721c591
skill: integration-doctor
version: 0.1.0
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: code
runners:
  diagnose:
    default: true
    inputs:
      integration_spec:
        type: json
        required: true
        description: Provider, endpoints, auth mode, and owner for the integration under investigation.
      trace_bundle:
        type: json
        required: true
        description: Observed requests, responses, timestamps, and redaction metadata.
      expected_contract:
        type: json
        required: true
        description: Expected endpoint paths, statuses, and required response fields.
      incident_context:
        type: json
        required: false
        description: Environment, impact, and operator objective for this diagnosis.
    steps:
      - id: diagnose
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          integration_spec: $input.integration_spec
          trace_bundle: $input.trace_bundle
          expected_contract: $input.expected_contract
          incident_context: $input.incident_context
        artifacts:
          wrap_as: integration_diagnosis_packet
harness:
  cases:
    - name: sealed-diagnoses-path-mismatch-and-proposes-issue
      inputs:
        integration_spec:
          provider: acme-crm
          auth_mode: bearer_token
          owner: integrations
          endpoints:
            - id: list-customers
              method: GET
              path: /api/v2/customers
        trace_bundle:
          requests:
            - id: req-1001
              endpoint_id: list-customers
              method: GET
              path: /api/v1/customers
              timestamp: 2026-07-05T08:30:00Z
              headers_redacted: true
          responses:
            - id: res-1001
              request_id: req-1001
              status: 404
              timestamp: 2026-07-05T08:30:00Z
              body_shape:
                error: string
                code: string
              excerpt: "not found: /api/v1/customers"
          timestamps:
            started_at: 2026-07-05T08:30:00Z
            ended_at: 2026-07-05T08:30:01Z
        expected_contract:
          contract_id: acme-crm-customers-v2
          endpoints:
            - id: list-customers
              method: GET
              path: /api/v2/customers
              expected_status: 200
              required_fields:
                - data
                - data[].id
                - data[].email
        incident_context:
          environment: staging
          impact: customer sync job fails before importing contacts
          objective: identify the next issue-intake action
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - issue-triage
            - research
          request: Diagnose why this integration's requests and responses do not match.
          expected_outcome: Return cited trace findings and a gated fix plan without calling the provider.
        - mode: composed
          request: Continue this integration-doctor work from evidence already gathered upstream.
          expected_outcome: Return cited trace findings and a gated fix plan without calling the provider.
          prior_evidence:
            - The integration traces already supplied.
          must_not_repeat:
            - Do not replay requests against the provider.
    - name: refuses-ambiguous-missing-response-evidence
      inputs:
        integration_spec:
          provider: acme-crm
          auth_mode: bearer_token
          owner: integrations
          endpoints:
            - id: list-customers
              method: GET
              path: /api/v2/customers
        trace_bundle:
          requests:
            - id: req-2001
              endpoint_id: list-customers
              method: GET
              path: /api/v2/customers
              timestamp: 2026-07-05T09:00:00Z
              headers_redacted: true
          responses: []
          timestamps:
            started_at: 2026-07-05T09:00:00Z
        expected_contract:
          contract_id: acme-crm-customers-v2
          endpoints:
            - id: list-customers
              method: GET
              path: /api/v2/customers
              expected_status: 200
              required_fields:
                - data
                - data[].id
      expect:
        status: failure
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

This exact version passed its recorded harness run: 2 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-1da6e36d8dfb
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:4defb82c2d3b9507a5f60d9a7f81a854268f7fb668c6e1ac013da39aa43788f2sha256:f58ee40cd8ecda1a261461599ecea7cdc929a2deb5caa143356b9d82c8b65142

Package identity

Published revisionsha-1da6e36d8dfb
Content digestsha256:1da6e36d8dfb38b862b9be6a7e3b387b3268c68b05336c45b78c25d4b556a32c
SKILL.md digestsha256:3376906cf9479da24edf24ec5db3bcd11745db596adc724b0d3d106274e58df3
Execution profile digestsha256:f4acc4b044a6ebd6690c6818e9840bff9a40f8178472335ea111cd765721c591
Publisher identityUnverified publisher · RYDE
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredRYDE · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-2a69f907ed1fContent digest sha256:2a69f907ed1f177d495d476cdd9ad252298e159c7a06001dee60e0bc0dd29372
  2. sha-1da6e36d8dfbViewingContent digest sha256:1da6e36d8dfb38b862b9be6a7e3b387b3268c68b05336c45b78c25d4b556a32c
  3. sha-a271d3c4dfd4Content digest sha256:a271d3c4dfd481ce574b42b0cbc392e7d03b329cee3b6fab32fcc299a22cdb63
  4. sha-3aa8b1354a48Content digest sha256:3aa8b1354a48345bfa34c8c0cd899d5bf404d31e52b26f1e34c49b00887e58d5