Skip to content

Implement external intake adapters and canonical source-to-workflow provenance #338

Description

@spences10

Parent: #336

Goal

Implement provenance-preserving adapters that convert external work sources into canonical factory intake and explained route previews.

Scope

  • Define an adapter contract for GitHub issues/PRs, project-management tickets, incidents/alerts, and support requests.
  • Preserve source ids, URLs, authorship, timestamps, labels/severity, attachments/artifacts, requested outcomes, and update history.
  • Resolve repository/project targets and policy without trusting unverified external instructions.
  • Deduplicate repeated deliveries and update existing intake when the source changes.
  • Derive risk, urgency, affected surfaces, requested side effects, and acceptance evidence with confidence/rationale.
  • Require preview/override before workflow creation and retain a durable source-to-workflow audit trail.

Acceptance criteria

  • At least GitHub plus one incident/support/PM adapter exercise the shared contract end to end.
  • Duplicate events are idempotent; source updates reconcile without creating competing workflows.
  • Prompt injection and untrusted attachment content cannot alter runtime policy or grant approvals.
  • Route preview clearly distinguishes source facts, derived assumptions, and human overrides.
  • Cancellation/closure/reopening of source work has defined workflow behavior.
  • Tests cover missing repositories, conflicting labels/severity, edited tickets, duplicate webhooks/imports, and cross-project routing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions