Agency OS Architecture & Training
Sections

Jessie runtime

Asana Task Agent Flow

The end-to-end path from Asana task to context-aware, AI Gateway-routed, review-ready output.

Plain Flow

1
A task appears in Asana

A consultant creates or moves work into a Jessie-eligible place and assigns it to Jessie when required.

2
Jessie checks eligibility

The runtime confirms the task should be handled by Jessie and fetches the current task truth from Asana.

3
Jessie selects a skill

Routing chooses a specific skill or the generic handler. Ambiguity leads to clarification.

4
Jessie loads context

Approved client context and task-specific consultant notes are assembled before analysis.

5
Jessie retrieves evidence

The selected toolkit fetches configured data sources and records caveats.

6
Jessie calls the LLM

Insight synthesis goes through Cloudflare AI Gateway, not direct provider calls.

7
Jessie posts review output

The result returns to the same Asana task as a review comment and attachment or artifact reference.

Technical Flow

Asana

Task/comment eventWebhook hintLatest task fetchReview comment/attachment

Cloudflare Worker

Signature checkQueue candidateRun lease/stateFeedback revision/watchdogSkill execution

Context & Evidence

Business Unit resolutionContext retrievalSource asset readsR2/D1 artifact writes

AI Gateway

Bounded prompt capsuleProvider-routed model callSanitized run-step traceFallback issue if unavailable

Failure Paths

FailureWhat Jessie should do
Ambiguous client or skillAsk a clarification question on the Asana task.
Missing configured sourceReport the missing source or credential caveat without inventing data.
Context unavailable after preflightUse the context-unavailable capsule or block according to the configured gate, and surface the caveat.
Human revision stuckThe runner watchdog requeues stale revision_requested or revision_running runs with the feedback-round context so consultant comments do not get stranded.
AI Gateway unavailableUse deterministic fallback wording only when supported, log a platform issue, and state the fallback in the artifact.
External provider partial failureContinue with available evidence only if the report remains useful and caveats are explicit.

Write Boundaries

  • Jessie writes to the source Asana task and internal runtime stores.
  • Jessie does not change client systems, ad platforms, websites, tracking, or dashboards today.
  • Platform Build agents can work in isolated branches/worktrees for repo changes, but merge requires approval.

Source References