Careers and culture

    Agentic workflow for AI-first product development

    Caire builds an AI-first healthcare platform, but with senior product discipline: from PRD to reviewed PR, small verified changes, clear owners, and respect for real home care.

    Caire AI-first workflow and product context

    Our way of building

    The same principle used in Caire Core applies internally: a continuous learning loop, clear decisions, traceability, and human responsibility before automation.

    Plan before code

    We write down goals, risks, and user value before agent flows implement.

    Verification at every step

    AI can produce a lot, but code, design, content, and data flows are reviewed as product work.

    Care first

    Technology is judged against real home-care work: planners, caregivers, clients, and family.

    Small vertical releases

    We prefer useful improvements that can be tested, measured, and improved over large opaque leaps.

    Delivery mandate

    Humans define what. Agents execute how.

    Product owners write a PRD with change, success metric, and non-goals. Specialized agents then handle Spec, tests, implementation, review, verification, dossier, and PR flow while humans stay accountable for the product decision.

    North star

    features per second per dollar

    We measure the elapsed time from PRD intake to merged PR, model spend per shipped feature, and token efficiency. The point is not replacing product judgment; it is removing avoidable handoffs from work that has already been specified.

    Workflow

    Eight stages, PRD to PR

    Each stage produces a checked artifact. The next stage refuses to start without it, making the pipeline a one-way contract from product intent to merged change.

    #StageOutputOwner
    0Intake normalizeCanonical PRD path and feature slugOrchestrator
    1PRDChange, success metric, non-goalsHuman
    2SpecGherkin acceptance scenariosArchitect agent
    3TestsFailing Vitest and Playwright testsTest-writer
    4ImplementationCode in an isolated worktreeEditor
    5ReviewP1/P2/P3 findings or clean reportReviewer agents
    6VerificationTrace, screenshot, summary dossierVerifier
    7PRPushed branch and external reviewGitHub flow

    Migrated platform source

    The detailed operating model behind the culture page

    Each workflow concept is shown as part of one operating model, so candidates and partners can understand how strategy, implementation, verification, and review connect.

    Vision and mandate

    The job is to shorten the path from product intent to verified change without removing accountability. Read this first: humans own priority, quality, and decisions.

    SourceThe job descriptionAbout CaireThe role

    Agent roles and model routing

    The workflow splits responsibility across Architect, Editor, Reviewer, Verifier, and Orchestrator. The role chooses the model by task, cost, risk, and context.

    The five rolesCost rationaleRouting matrixPer-role responsibilities

    Darwin as orchestrator

    Darwin is a thin in-house Node loop that holds intake, queue, status, and evidence together. It should stay simple, observable, and replaceable in parts.

    End-to-end flowA single orchestratorOrchestrator runtimeRunner resilience

    Darwin component map

    The component map separates what is used by the PRD-to-PR pipeline, what is parked, and what remains in the prioritized build queue.

    Used by PRD-to-PR pipelineParkedOutstandingTelegram routing

    Model and vendor agnosticism

    The adapter shape lets the workflow select a model without locking the product process to one vendor or one interface.

    The ruleAdapter shapeWhat this rules outWhat this allows

    Spec as contract

    Spec means testable acceptance scenarios, not loose wishes. Gherkin and a done contract gate reduce spec drift between PRD, tests, and implementation.

    GherkinDone contract gateSingle-source-of-truthSpec drift

    Reviewer feedback loop

    The review loop polls external reviewers, classifies severity, and re-enters the editor with an idempotent action list.

    The pollSeverity → actionRe-entering the editorShort-circuit

    Scale or kill

    Automation should scale only when evidence, cost, and quality hold. Otherwise it must be easy to stop or roll back.

    ScaleKillAuto-promoteAuto-rollback

    Throughput and business signals

    The features per second per token metric is read together with cost, quality, and business signals to see whether the workflow actually improves delivery.

    Features per second per tokenWhere it's loggedWho reads itBusiness signals

    Verification and evidence

    Every delivery should leave a trace: trace.zip, screenshot.png, console.log, test excerpts, and a short explanation of what the artifact proves.

    wiki/raw/dossiers/<feature>/trace.zipscreenshot.pngconsole.log

    Caire Core

    The product we build and the way we build it share a philosophy: trace what changed, learn from outcomes, and keep humans accountable for decisions that matter.

    Deep dive

    How the workflow works in practice

    Product detail

    Humans define what. Agents execute how.

    Workflow diagrams

    Diagram 1

    Loading diagram...

    Diagram 2

    Loading diagram...

    Diagram 3

    Loading diagram...

    Workflow section

    Humans define what. Agents execute how.

    CAIRE's engineering execution model is an agentic PRD-to-PR pipeline. A human writes a product brief; specialised AI agents handle spec, tests, implementation, review, and verification; the human approves a screenshot. Compute is the bottleneck — not headcount.

    From a sentence to shipped software. The human appears in two places only — writing the PRD, and approving the dossier screenshot.

    Workflow section

    The mandate

    The agentic workflow is not "AI assistance for engineers". It's the execution model. Four commitments make the workflow distinctive.

    Workflow section

    Humans define what and why. Agents execute how.

    Product owners write PRDs. The pipeline takes the PRD from there — spec, tests, code, review, dossier, merge — without a human in the middle of any stage.

    Workflow section

    Tool and model agnosticism.

    Every model call goes through an adapter. Routing is config, not code. When a better or cheaper model ships, rotation is a quarterly review — not a refactor.

    Workflow section

    If it works, scale automatically. If it doesn't, kill automatically.

    Post-merge metrics ramp a feature 1% → 100%. Regression flips the flag back. The decision is mechanical — humans don't decide "ok, ramp this".

    Workflow section

    Execution tied to business signals.

    Cash balance, revenue, and burn are system inputs. The orchestrator refuses to spawn an expensive run if today's budget is exhausted. No human "tighten the belt" call.

    Workflow section

    The north star: features per second per dollar

    Every architectural decision in the pipeline is graded by one question: does it make us ship more features per second, per dollar (and per token)? The metric is deliberately tiny in absolute value. What matters is the trajectory.

    Workflow section

    Features per second

    Wall-clock from PRD intake to merged PR. Squeezing this means parallelising stages, caching specs, removing human round-trips. Every shipped feature lands a row in .compound-state/agent-service.db with its elapsed time.

    Workflow section

    Per dollar

    Total model spend across all eight stages, per merged PR. Cheaper providers, smaller models for cheap routing, batch APIs, prompt caching — every lever points back here. The orchestrator refuses runs whose projected cost would exceed today's budget.

    Workflow section

    Per token

    Total input + output tokens across the pipeline, per merged PR. The cleaner the spec and the tighter the dossier contract, the fewer tokens the editor burns iterating. Tokens are a leading indicator of cost.

    Workflow section

    The trajectory matters

    An optimization mathematician agent reads the throughput log every week and proposes routing changes — different model per role, different batch size, different cache strategy. The CPO/CTO agent ratifies. The ratchet only moves one way.

    This page itself will move with the metric. New routing wins, new agent prompts, new dossier shapes — every improvement that nudges features-per-second-per-dollar lands here as a refresh.

    Workflow section

    Eight stages, PRD to PR

    Each stage produces a checked artefact. The next stage refuses to start without it. The pipeline is one continuous flow, not a checklist — every stage hands off a typed result.

    The two re-entry edges (P1 found → re-enter editor) are the only loops. Everything else is a one-way contract from PRD to merged commit.

    The contract is sharp: no dossier, no merge . Every stage's output is a typed, persisted artefact that the next stage reads — and that a human, an audit, or a future agent can replay.

    Workflow section

    Who shows up where

    The agentic workflow doesn't make humans disappear — it makes them strategic. Each role has one or two narrow places to step in. Everything else is software.

    Workflow section

    Product owner / PM

    Defines what + why Writes the PRD in wiki/plans/ with a success metric and explicit non-goals. Approves (or rejects) the dossier screenshot before merge. Sets the regression threshold that scale-or-kill watches post-merge. 💻

    • Writes the PRD in wiki/plans/ with a success metric and explicit non-goals.
    • Approves (or rejects) the dossier screenshot before merge.
    • Sets the regression threshold that scale-or-kill watches post-merge.

    Workflow section

    Developer

    Reviews, doesn't author Reads the auto-generated spec for drift from the PRD. Argues down P2 reviewer comments with a justification when the agent is wrong. Maintains the agent prompts and the model adapter — code about how code gets written. 🛠️

    • Reads the auto-generated spec for drift from the PRD.
    • Argues down P2 reviewer comments with a justification when the agent is wrong.
    • Maintains the agent prompts and the model adapter — code about how code gets written.

    Workflow section

    DevOps / SRE

    Owns the substrate Operates Darwin (the orchestrator runtime), the launchd job slots, the merge queue. Watches the throughput log: cost per merged PR, features per second per token. Approves model-routing rotations from the optimization mathematician's weekly proposal. 🧪

    • Operates Darwin (the orchestrator runtime), the launchd job slots, the merge queue.
    • Watches the throughput log: cost per merged PR, features per second per token.
    • Approves model-routing rotations from the optimization mathematician's weekly proposal.

    Workflow section

    QA / Tester

    Writes the rules, not the cases Curates the Gherkin patterns the Test-writer agent compiles from. Audits dossier summary.json for skipped scenarios or empty Playwright traces. Owns the "no dossier, no merge" gate — the only thing the orchestrator cannot skip. 📈

    • Curates the Gherkin patterns the Test-writer agent compiles from.
    • Audits dossier summary.json for skipped scenarios or empty Playwright traces.
    • Owns the "no dossier, no merge" gate — the only thing the orchestrator cannot skip.

    Workflow section

    Investor / Board

    Watches the leverage Reads cost-per-merged-PR trending down month over month as the routing matrix tightens. Tracks features-per-second-per-token as the leverage ratio that doesn't depend on hiring. Ratifies quarterly model-routing decisions; does not pick models. 🔍

    • Reads cost-per-merged-PR trending down month over month as the routing matrix tightens.
    • Tracks features-per-second-per-token as the leverage ratio that doesn't depend on hiring.
    • Ratifies quarterly model-routing decisions; does not pick models.

    Workflow section

    Customer evaluator

    Audits the trail Inspects wiki/raw/dossiers/<feature>/ on a merged PR — full Playwright trace, screenshot, console log. Reads the PRD frontmatter to map a shipped feature back to the original brief. Verifies vendor-agnosticism by reading the routing config — no provider lock-in to inherit.

    • Inspects wiki/raw/dossiers/<feature>/ on a merged PR — full Playwright trace, screenshot, console log.
    • Reads the PRD frontmatter to map a shipped feature back to the original brief.
    • Verifies vendor-agnosticism by reading the routing config — no provider lock-in to inherit.

    Workflow section

    What gets shipped this way

    The pipeline targets steady-state product engineering — the work that, in a traditional team, fills standups and sprints. Bigger architectural moves still get a human-led plan.

    Workflow section

    Ship a UI feature

    A new banner, a new page, a form variation. PRD names the acceptance scenarios; pipeline writes vitest + Playwright tests; Editor implements; Verifier captures the screenshot dossier.

    Workflow section

    Fix a resolver bug

    PRD frames the bug as a failing scenario. Test-writer compiles it; Editor fixes; resolver-reviewer + perf-reviewer catch N+1 regressions before the PR opens.

    Workflow section

    Add a metric

    Throughput row, KPI tile, dashboard chart. Spec names the data source; tests assert the shape; the dossier shows the metric rendering with realistic seed data.

    Workflow section

    Rotate a model

    Quarterly: the optimization mathematician proposes a routing change based on cost, pass rate, latency. CPO/CTO agent ratifies. One config edit; the adapter handles the rest.

    Workflow section

    Refresh a wiki page

    Audit pass like the agentic-workflow audit itself: identify drift, fix the doc, run yarn wiki:lint , ship. Wiki-only PRs use the same eight stages with the verifier in light mode.

    Workflow section

    Add an integration

    New CSV adapter, new gate provider, new external feed. PRD names the contract; tests cover the boundary; dossier proves the integration with real fixtures and a recorded trace.

    Workflow section

    What keeps it from going off the rails

    Autonomous loops without guardrails are how AI projects burn budgets and ship regressions. Every stage of the pipeline is fenced. The Editor agent sits at the centre, surrounded by mechanisms that can either slow it down, redirect it, or stop it entirely.

    Eight independent guardrails. No single one prevents bugs alone; together they make autonomous shipping safe enough that the human's only required action is reading a screenshot.

    Workflow section

    Spec is the contract

    The Editor cannot ship behaviour the spec didn't name. Drift between the PRD and the spec is itself a P2 finding for the verifier — and the spec is short enough to fit in every agent's context, so drift is always provable.

    Workflow section

    Iteration is bounded

    MAX_ITERATIONS = 8 on the editor's inner loop, plus a max of 3 re-entry cycles from review or Codex feedback. Hit the ceiling and the run surfaces failure to a human — it never grinds.

    Workflow section

    Cost is bounded — when you turn it on

    The optional PIPELINE_BUDGET_ENFORCEMENT flag (off in pilot, on once revenue is real) refuses further model calls when the per-run cost would exceed the cap. In pilot the human is the only PRD producer, so cost is implicitly bounded.

    Workflow section

    No dossier, no merge

    A green CI run is necessary but not sufficient. The dossier — Playwright trace, final screenshot, console log, machine-readable summary — proves the feature actually rendered. Reviewers can replay the trace; the human sees the screenshot.

    Workflow section

    Three surfaces into the loop

    Same pipeline, three ways to enter it. Pick the surface that matches the moment — a PRD in version control, a form on the Dashboard, a message on Telegram. Every surface produces the same dossier and the same merge decision.

    Workflow section

    File-based PRD

    Write wiki/plans/<feature>-YYYY-MM-DD.md , create an isolated worktree with ./scripts/git/worktree-add.sh , and the pipeline runs against that branch. Reviewer subagents lint the diff, the verifier captures the dossier, the merge queue lands the PR. Best for engineers shipping in version control.

    Workflow section

    Darwin Dashboard

    Paste a PRD path, click start , watch the pipeline progress at localhost:3010 . The dossier viewer surfaces the screenshot, console log, and machine-readable summary inline. Approve / Reject is a button — no GitHub round-trip required. Best for product owners who want a UI, not a CLI.

    Workflow section

    Telegram

    Post a PRD link to interface-agent . The same backend runs the pipeline; the dossier screenshot posts back to the originating thread. Reply approve and it merges. The lightest possible surface — a notification and an image. Best for the founder reading on a phone between meetings.

    Workflow section

    Why this works

    The pipeline is built on three open patterns and one discipline. Nothing here is bespoke for the sake of bespoke.

    Workflow section

    Aider's architect / editor split

    One expensive reasoning pass produces the spec; many cheap edit passes implement against it. ~1/14th the cost of running every call on the reasoning model — the cost driver is the editor, not the architect.

    Workflow section

    Spec-driven development (Gherkin)

    Plain language is too imprecise to coordinate multiple agents. Acceptance scenarios in Gherkin are short enough to fit every agent's context, precise enough to compile to failing tests, and greppable.

    Workflow section

    Playwright dossier (no dossier, no merge)

    A green CI run is necessary but not sufficient. The dossier — trace, screenshot, console log, machine-readable summary — proves the feature actually rendered, in a real browser, in the state the spec named.

    Workflow section

    Reviewer-feedback loop

    External review bots (Codex, CodeRabbit) post comments after every push. The pipeline polls them, treats P1/P2 as failed tests, and re-enters the editor automatically. The discipline is non-optional.

    Workflow section

    Explore more

    Workflow section

    AI-OS for Business

    How CAIRE composes AI agents into an operating system for home-care delivery.

    Workflow section

    Routing Science

    VRPTW, NP-hardness, and the hybrid human-AI optimization model that powers scheduling.

    Workflow section

    AI Compliance

    How CAIRE handles AI regulation, audit trails, and responsible deployment in healthcare.

    Workflow section

    Want to see the pipeline up close?

    Twelve guides cover every stage in depth — vision and mandate, agent roles, the dossier pattern, the reviewer-feedback loop, and the orchestrator that ties it together.

    Comparison table

    #StageOutputDriven by
    0Intake normalize Convert chat, brief, or Cursor plan into a portable PRD.Canonical PRD path + feature slug.Orchestrator
    1PRD A human writes the brief: change, success metric, non-goals.wiki/plans/<feature>-YYYY-MM-DD.mdHuman (only required step)
    2Spec Architect agent emits Gherkin acceptance scenarios.wiki/specs/<feature>.mdArchitect (reasoning model)
    3Test stubs Test-writer compiles each scenario into a failing test.Vitest + Playwright tests that fail on first run.Test-writer (mid model)
    4Implementation Editor iterates on the diff until every test passes.Code in an isolated worktree; all target tests green.Editor (mid model)
    5Self-review Three reviewer subagents inspect the diff in parallel.P1 / P2 / P3 findings list, or "clean".resolver-reviewer · dashboard-reviewer · perf-reviewer
    6Verification & dossier Type-check, lint, tests, Playwright trace + screenshot bundle.wiki/raw/dossiers/<feature>/{trace.zip, screenshot.png, summary.json}Verifier (mid model)
    7Reviewer loop External review-bot comments re-enter the editor on P1 / P2.Every finding addressed or argued down with a justification.Reviewer-feedback (mid model)
    8Merge + evidence Auto-merge queued; dossier screenshot delivered for human sign-off.Merged commit on main + screenshot to the human channel.Orchestrator + GitHub Merge Queue