Skip to content

feat: alert-triage L5 — local npm run dev (k3d + Temporal) + tutorial (#74) #232

Closed

Description

@lex00

Follow-up to #230 / [workflow+worker issue]. The integration/runtime layer that makes the L5 alert-triage capstone a clone-and-run experience — best validated by actually running it locally, not in CI.

Scope

  • Webhook source — a small receiver that accepts an incoming alert (Datadog/PagerDuty-shaped; tutorial uses a synthetic npm run alert demo) and starts a triage workflow per alert. Deployed by the existing WebApp manifest (feat(examples): L5 capstone — alert-triage app skeleton (#74) #229).
  • WatchOp second source — a WatchOp over the deployed namespace; when it reports drift, emit an event the same triage workflow handles. Showcases drift detection as a first-class event source.
  • Local npm run dev — orchestration: k3d cluster create, local Temporal (docker-compose via TemporalDevStack), chant build, kubectl apply, start the worker, run a demo alert. Target: clone → npm run dev → workflow visible in the Temporal UI within ~60 seconds.
  • Tutorial — docs/src/content/docs/tutorials/alert-triage-local.mdx: k3d + Temporal local only; the canonical "start here, runnable" capstone walk-through. Register it in the docs sidebar.

Acceptance criteria

  • A new user with Docker clones the repo, runs npm run dev in examples/alert-triage, and sees the triage workflow execute in the Temporal UI within ~60 seconds.
  • Both event sources work: a synthetic webhook alert and a WatchOp drift event both run the triage workflow.
  • The agent stays stubbed by default (no key needed); real Claude when ANTHROPIC_API_KEY is set (from refactor(examples): pivot L5 triage to raw Temporal + add activities (#74) #230).
  • Tutorial builds in the docs site and the offline link check passes.

Notes

This layer is integration/runtime — CI can't run k3d/Temporal, so validation is the documented local run (and a CI smoke that at least builds the manifests + worker). Keep the agent stub-by-default so the first run needs no key.

Part of #74 / #216. Builds on #229, #230, and the workflow+worker issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions