MDX Limo
Helm Technical Overview

Proposed architecture for Job.com · Engineering and product discussion

Helm is the execution layer that coordinates recruiting work across Job Desk, the candidate portal and external services. It turns a goal into tracked steps, performs authorized actions, waits for responses and verifies the result.

First mission: live order → submission-ready candidate packet. The broader design includes external sourcing, outreach and ongoing candidate relationships.

Companion to the Helm team overview. Helm is a proposed system; the components below distinguish existing foundations from new work.

Architecture at a glance

All arrows represent proposed integration boundaries. Staff actions and agent actions use the same business rules, with permissions appropriate to the actor.

ComponentResponsibility
Job DeskStaff view of cases, conversations, blockers, approvals and the next planned action.
Candidate portalAuthenticated chat, preferences, uploads and structured confirmations.
Cloudflare WorkersAPI entry points, provider webhooks, authentication and routing.
Cloudflare Agents and Durable ObjectsPersistent case execution and coordination that can resume after interruption.
Cloudflare WorkflowsBounded processes that wait for events, deadlines or human decisions.
Cloudflare QueuesBuffered delivery and distribution of background work; consumers handle repeated deliveries.
SupabaseAuthoritative business records, permissions, conversations, case status and action receipts.
Shared capabilities and adaptersControlled access to matching, pricing, documents, messaging and external sourcing.

Cloudflare runs the work; Supabase records the business truth. These components must have distinct responsibilities rather than independent copies of the same business state. Platform references: Workers, Agents, Workflows.

The execution model

ConceptMeaningExample
MissionThe business outcomePrepare candidates for an open order.
CaseOne tracked unit of work with an ownerCandidate A’s readiness for order B.
PlaybookVersioned rules for completing a caseSubmission readiness for a specific staffing program.
SequencePlanned actions and waitsAsk about availability, wait, follow up if needed.
LoopReassess after new evidence or an eventA document arrives; check what is still missing.
CapabilityA typed, authorized business operationCalculate approved pay or prepare a packet.

A case wakes on an event or schedule, loads current facts, takes a bounded step and waits again. A model does not need to run continuously.

Models interpret replies, extract proposed facts, draft messages and choose among permitted next steps. Code enforces authorization, calculations, contact limits, state transitions and completion checks. Candidate messages and documents are evidence, not instructions that can change system permissions.

Shared operations through Ratstack

Use Ratstack’s capability pattern: one named operation, one input/output/error contract and one implementation, exposed through the interfaces that need it. Job Desk, Helm and MCP clients should not implement different versions of the same business rule. Reference: Ratstack capabilities.

Illustrative operations:

1orders.assessReadiness 2sourcing.searchApprovedSource 3matches.explainShortlist 4conversations.acceptInbound 5communications.dispatchAuthorized 6pricing.calculateProposal 7packets.prepare 8handoffs.request

Each operation must enforce who is acting, which records they can access, required consent or approval, current record versions and duplicate-request handling. It returns a receipt or a specific blocker such as missing permission, changed terms or an unknown provider outcome. Ratstack does not supply those staffing rules automatically.

Use Effect for explicit dependencies and typed failures, and evaluate Alchemy for infrastructure definition. Adopt these selectively. Existing domain schemas remain authoritative until deliberately migrated; do not create competing definitions of candidate, pricing or submission data.

Data and state ownership

InformationAuthoritative locationRule
Candidates, orders, submissions, consent and approved termsExisting Supabase domainReuse validated commands and access rules.
Cases, playbook enrollments, pending decisions and action attemptsProposed Supabase control recordsDesk can report status and reconstruct unfinished work.
Messages, verified destinations, contact preferences and human takeoverProposed Supabase conversation recordsPreserve channel and case context; separate internal notes from candidate-visible content.
Execution checkpoints, timers and temporary contextCloudflare runtimeReference business records and versions; do not become a second candidate database.
Documents and packetsApproved private document storageUse restricted references and versioned evidence.

A runtime that also stores model transcripts creates an additional copy of personal information. Define retention, deletion and access across those stores before using live candidate material.

HQ supplies process knowledge and policy evidence. Convert approved rules into versioned policy with a named owner; historical notes and proposed decisions must not become executable policy automatically.

Communications across channels

Start with GoTo for SMS, Microsoft Graph for email and the authenticated candidate portal for chat.

One candidate contact coordinator handles requests from all active cases. Before a send, it checks channel permission, verified destination, sender authority, recent contact, contact limits, current order status and human ownership. Shared phone numbers and email addresses also need destination-level suppression and reservations.

An email reply can cancel a text follow-up. A portal upload can cancel a document reminder. Asking for a recruiter pauses conflicting automation immediately, including while the handoff is waiting to be claimed.

The source review found useful provider adapters, but also three foundations to add:

  • Server-owned portal history: existing chat history is browser-local.

  • Complete relevant email replies: current activity sync stores subjects and short previews.

  • Purpose-specific permission and durable takeover: existing SMS suppressions alone do not establish affirmative permission for automated outreach.

Retrieve full email content only for authorized, relevant messages and preserve provider thread identifiers. Keep message acceptance, delivery and candidate response as separate events. References: Graph message retrieval, GoTo messaging policy.

Sourcing and matching

A role-specific sourcing playbook would search the existing network and approved external sources, deduplicate prospects, retain source evidence and route eligible outreach through the same contact coordinator.

Track these states separately: discovered prospect → engaged prospect → verified candidate account → permission for future opportunities. Discovery does not establish identity or permission to contact someone. Account creation and permission capture may happen in different orders; these are distinct facts, not automatic conversions.

If a person declines the current role but wants future opportunities, record confirmed preferences and end the current outreach sequence. A separate, permitted future-opportunity playbook can reconnect when circumstances change. External source access, usage rights, costs and available APIs remain to be selected.

Matching evaluates fit; Helm acts on the evidence. Reuse the existing matching service. Candidate-side fit is a proposed extension that could incorporate stated pay, location, schedule and availability preferences. Helm can gather those facts and request refreshed matching.

The developer’s mutual matching proposal is a separate design input. Preserve employer fit, candidate fit and unknown evidence separately. Its blended ranking and risk penalties require their own evaluation; Helm does not depend on adopting those formulas.

One event from receipt to next action

Example: a candidate uploads the requested license in the portal.

  1. Authenticate and save. Verify the candidate and document access. Save the upload record and its business event together in a database transaction.

  2. Deliver reliably. An outbox publishes the event. The receiver records its event ID so repeated delivery does not repeat the work.

  3. Reassess. Helm loads current case facts, cancels the now-obsolete license reminder and starts the required validation.

  4. Choose the next step. If something else is missing, request only that item. If review is needed, create an assigned human task.

  5. Record the outcome. Store evidence, case status and the next action so Desk can explain what happened.

An upload is not proof that the license is valid. A model saying “complete” is not proof that the case meets its completion rules.

Reliability and access rules

Make retries safe. Give each action a stable ID tied to its exact inputs. Record authorization, dispatch and provider results. If a provider may have accepted a send but the response was lost, mark the outcome unknown and reconcile it before trying again. Durable execution alone cannot guarantee a single external effect. Reference: Cloudflare delivery guarantees.

Recheck before acting. An approved draft can become invalid when pay, recipient, consent or order status changes. Check current versions immediately before dispatch. A stop cancels queued work; it cannot recall a message already accepted by a provider.

Use scoped identities. Helm needs explicit, revocable agent credentials and resource access. It must not borrow unrestricted database access or assume a staff session. Keep provider secrets in trusted adapters, outside model context. Verify inbound webhooks before accepting their contents.

Preserve human control. A handoff records an owner or queue, reason and next action. Automation stays paused until explicitly released under the agreed policy. Candidate-facing responses must not expose internal margins, staff notes or other candidates’ information.

Repository and reuse

Proposed placement: a new apps/helm workspace inside the Job.com monorepo, with its own Cloudflare deployment. This is one Git repository with multiple applications, not a nested Git repository.

1apps/helm Runtime, APIs, workflows and initial adapters 2packages/helm-contracts Shared capability and event contracts 3packages/helm-core Case rules and service interfaces 4supabase/ Shared migrations and database checks

Extract shared packages when there is actual reuse. Keep Job Desk and the candidate portal as the initial interfaces.

Reuse existing matching, pricing, packet generation and provider integrations through adapters. Current staff tools depend on Next.js sessions and server code; they cannot simply be imported into Workers. Keep heavy document processing behind existing services until runtime compatibility is proven.

The existing apps/agents workspace offers useful patterns for task claims, operation receipts and sending reconciliation. It serves a separate account-research/outreach purpose and is not the Helm staffing runtime.

Build order and acceptance

  1. Define one pilot contract. Choose the staffing program, cohort and operators; confirm packet requirements, pricing inputs, consent and completion criteria.

  2. Prove the runtime in preview. Implement one capability and one resumable case against fixtures or development services. Select and pin the agent execution library after testing recovery.

  3. Build conversation foundations. Add canonical messages, identity linkage, inbound processing, permission checks and human takeover before scheduled outreach.

  4. Run in shadow mode. Produce proposed actions and packet previews for comparison with the team. Previews must not call production packet lifecycle commands or upload production packets.

  5. Enable bounded two-way work. Start with approved messages, then availability and missing-document follow-ups after interruption and recovery checks pass.

  6. Add one external source. Feed role-specific sourcing into the same conversation and readiness process. Expand later to interviews, onboarding and assignment care.

Acceptance must prove that replies and uploads cancel stale reminders; shared destinations cannot bypass opt-outs; restarts preserve human takeover; duplicate events do not duplicate actions; changed terms invalidate approvals; and missing evidence prevents a false “ready” state.

Track elapsed time to readiness, human effort, reviewer acceptance, candidate responses and opt-outs, duplicate or stale actions, and total cost per accepted packet. Later, connect those measures to interviews and starts.

Open implementation decisions: pilot program and data, exact sender permissions, approved external source, playbook cadence, model/runtime selection, transcript retention and the first shared contracts. The architecture sets the boundaries; the pilot proves the behavior.

Helm Technical Overview | MDX Limo