Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.3 KB
Raw Blame
"""Workflow and activity registration lists for the stamphog Temporal worker.

Kept separate from ``temporal/__init__.py`` (owned elsewhere) so the worker wiring has a
stable import target: ``from products.stamphog.backend.temporal.registry import WORKFLOWS, ACTIVITIES``.
"""

from __future__ import annotations

from products.stamphog.backend.temporal.activities import (
    checkout_review_sandbox,
    destroy_review_sandbox,
    dismiss_stale_approvals,
    fetch_review_context,
    list_in_flight_reviewer_bots,
    mark_review_failed,
    post_verdict,
    refresh_review_evidence,
    refuse_on_pre_gates,
    rereview_after_external_review_finished,
    review_in_sandbox,
    run_review_in_sandbox,
    signal_review_started,
    start_review_sandbox,
)
from products.stamphog.backend.temporal.workflow import StamphogReviewWorkflow

WORKFLOWS = [StamphogReviewWorkflow]

ACTIVITIES = [
    dismiss_stale_approvals,
    signal_review_started,
    start_review_sandbox,
    fetch_review_context,
    checkout_review_sandbox,
    refuse_on_pre_gates,
    list_in_flight_reviewer_bots,
    refresh_review_evidence,
    review_in_sandbox,
    run_review_in_sandbox,
    destroy_review_sandbox,
    rereview_after_external_review_finished,
    post_verdict,
    mark_review_failed,
]

__all__ = ["WORKFLOWS", "ACTIVITIES"]