Skip to content
Enoch208Public

About

Team conference planner that splits overlapping sessions across teammates to maximize unique coverage, replan around changes, and turn distributed notes into one shared brief.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Parallel

CI

Send four people to a conference. Make sure they don't all learn the same thing.

Parallel turns a public conference agenda into one coordinated team plan, repairs that plan when real life gets in the way, and brings the learning home as a single brief in which every claim cites its source. Teammates never open the app: the plan arrives by email and changes come back as ordinary replies.

YTDown.com_YouTube_Parallel-AI-Conference-Planner-for-Teams_Media_dxzxkJJZu2E_002_720p.mp4

Contents


The problem

Sending a team to a multi-track conference is expensive, and most of the return leaks away. Left to themselves, everyone picks the same famous keynotes, whole tracks go unwatched, and the notes come home in four separate notebooks. Teams already try to divide and conquer in spreadsheets and group chats, and the plan falls apart the moment the day does: a meeting runs over, a session moves, and nobody knows who should cover what.

What Parallel does

Parallel maximizes what a whole team learns rather than optimizing one person's calendar.

On the production run below, five teammates who each attended only the sessions they had marked for themselves would have scored 15.5 on Team Goal Coverage, a computed baseline rather than observed behaviour. The coordinated plan scores 91.1, across all 9 sessions on that day's agenda.

The product rests on one boundary:

AI understands the conference. Deterministic code decides who goes where.

The model reads agenda pages, scores relevance, reads email and writes prose. It never does schedule math, never picks who attends what, never computes coverage and never decides whether a plan is feasible. That is deterministic TypeScript, checked by property tests against brute force.

How it works

flowchart LR
    A["Public agenda URL"] --> B["Import<br/>Firecrawl + OpenAI"]
    B --> C["Goals<br/>OpenAI scores every<br/>session against every goal"]
    C --> D["Optimize<br/>deterministic engine"]
    D --> E["Plan emails<br/>AgentMail"]
    E --> F["Replies<br/>can't make it · pin · takeaway"]
    F --> G{"Changes the plan?"}
    G -- "yes" --> H["Plan goes stale<br/>on every screen"]
    H --> I["Repair<br/>keeps what stays feasible"]
    I --> J["Cover request<br/>YES / NO by email"]
    J --> D
    G -- "takeaway" --> K["Note filed<br/>against the session"]
    K --> L["Brief<br/>every claim sourced"]
    L --> M["Delivered<br/>through AgentMail"]
Loading
  1. Import the conference. Paste a public agenda URL. The import runs as a durable Convex workflow: Firecrawl scrapes the page, the source URL, fetch time and SHA-256 content hash are recorded, OpenAI normalizes the markdown into sessions, and the sessions are written. A failure halfway through resumes instead of starting over, and the screen shows which step is running.
  2. Say what the team came to learn. The lead adds weighted goals. OpenAI scores every session against every goal from 0 to 1 and stores a one-line reason and the model name with each score. The workflow checks that the score matrix is complete, rescores missing pairs once, and records a partial import as partial rather than finished.
  3. Optimize. One click splits the team across overlapping sessions. Nobody is in two places at once, nobody is assigned over a block they recorded, and a pinned session is never silently dropped. If the pins cannot all fit, the plan is marked infeasible and the blocking pins are named.
  4. Send everyone their plan. Each teammate receives their own schedule from one shared AgentMail inbox, with a [PL-XXXX] token in the subject so a reply can be routed back to them.
  5. Handle real life by email. A teammate replies in their own words: "I can't make the 11:30 workshop." The reply is verified, parsed, matched to a session and applied as an availability block. The constraint revision moves, and every open board turns stale at once.
  6. Repair, then ask for cover. Repair preserves existing assignments that remain feasible, while a separate minimum-disruption analysis computes the minimum set of teammates whose schedules must change. If a session is left open, Parallel ranks who should cover it, shows the arithmetic for why, and emails that person. They reply YES or NO.
  7. Bring the learning home. Teammates reply with what they took from a session. Each takeaway is filed against the right session, the lead can reject any of them, and OpenAI writes a brief grouped by goal in which every claim must cite an approved takeaway or an agenda session. AgentMail delivers it to the lead and to anyone the lead adds by hand.

Architecture

The whole product is one Convex deployment. The React app is served from convex.site by the static-hosting component, every screen subscribes to reactive queries, and the optimizer runs inside the mutation that writes the plan, so a plan and the constraints it was built from are committed in the same transaction.

flowchart TB
    subgraph People
        Lead["Team lead<br/>browser"]
        Mates["Teammates<br/>email only"]
    end

    subgraph Convex["Convex deployment"]
        Site["Static hosting<br/>React 19 app"]
        Q["Reactive queries<br/>board · coverage · evidence"]
        M["Mutations<br/>optimizer + revision guard"]
        Act["Actions<br/>provider calls"]
        WF["Workflow<br/>agenda import"]
        WP["Workpool<br/>scoring"]
        Http["HTTP routes<br/>/api/webhooks/*"]
        Cron["Crons<br/>agenda watch · takeaway prompts · guest cleanup"]
        DB[("Database")]
    end

    subgraph Providers
        FC["Firecrawl"]
        OA["OpenAI<br/>structured outputs"]
        AM["AgentMail<br/>shared inbox"]
    end

    Lead --> Site
    Site <--> Q
    Site --> M
    Q --> DB
    M --> DB
    WF --> Act
    WP --> Act
    Act --> FC
    Act --> OA
    Act --> AM
    AM --> Mates
    Mates --> AM
    AM -- "signed webhook" --> Http
    Http --> Act
    Cron --> Act
    Act --> M
Loading

Mutations never make network calls. Everything that talks to Firecrawl, OpenAI or AgentMail is an action, and actions change state only by calling mutations, so every write is a transaction that re-checks its own rules.

Where each sponsor fits

Sponsor What it does in Parallel Where
Convex Database, reactive queries, the optimizer inside the plan-writing mutation, the revision guard, webhooks, crons, six components and the site itself convex/plan.ts, convex/assignments.ts, convex/http.ts
Firecrawl Scrapes the public agenda through the official Convex component and re-checks watched agendas for changes convex/model/firecrawlComponent.ts, convex/agendaWatch.ts
OpenAI Normalizes agenda markdown, scores session relevance, parses email replies, writes the brief convex/model/openaiClient.ts
AgentMail One shared inbox: plan emails, cover requests and the brief go out; replies come back through a Svix-verified webhook convex/model/agentmailClient.ts, convex/emailSend.ts, convex/http.ts

Convex components

Component What it carries
@convex-dev/static-hosting Serves the built Vite app from convex.site with SPA fallback, so the product is a single deployment
@convex-dev/workflow Runs the agenda import as named, durable steps; the provider steps retry with backoff and the UI shows the current step
@convex-dev/workpool Runs scoring in its own pool, two at a time with up to three attempts, so a long scoring run never starves the backend
@firecrawl/firecrawl-convex Does the scraping, with its API key declared as component environment rather than read from the outer deployment
@convex-dev/rate-limiter Rate-limits four public entry points before any work: brief generation per conference (three at once, six an hour); demo runs (five at once, ten an hour) and agenda imports through the import workflow (two at once, three an hour) per browser visitor id; and judge emails per demo code (three in ten minutes). The visitor id is accidental-abuse and quota protection, not authentication or a hard security boundary, and there is no global cap. Other public actions that call a provider are not rate-limited: the older direct importAgenda action, scoring.scoreConference, and the agenda change checks. Outbound email has its own 80-a-day send budget. convex/model/rateLimits.ts, convex/model/visitorKey.ts, convex/brief.ts, convex/judges.ts, convex/importWorkflow.ts, convex/emailIngest.ts
@convex-dev/action-retrier Inbound email parsing. Each reply is saved and its parse queued in the same mutation; network errors, 429 and 5xx from OpenAI are retried up to three times with exponential backoff, and the retrier's completion callback marks the reply handled, needing review or failed. A reply whose parsing failed stays on the Evidence screen with a Retry parsing button. convex/replyParsing.ts, convex/model/replyRetrier.ts, convex/emailIngest.ts, convex/emailReplies.ts

@agentmail/convex was evaluated and rejected. Its defineComponent("agentmail") declares no env block, so process.env.AGENTMAIL_API_KEY is undefined inside the component sandbox whatever is set on the deployment, and every send failed with AGENTMAIL_API_KEY is not set. AgentMail is called directly over its REST API instead, and inbound mail lands on our own HTTP route with its Svix signature verified in convex/model/svix.ts.

The agenda import

flowchart TD
    S(["Import started"]) --> F["fetch agenda<br/>Firecrawl component · retried"]
    F --> P["record provenance<br/>URL · fetch time · SHA-256"]
    P --> N["normalize sessions<br/>OpenAI structured output · retried"]
    N --> I["insert sessions<br/>skip ones already present"]
    I --> G["add goals"]
    G --> E["enqueue scoring<br/>workpool"]
    E --> W["await scoring finished"]
    W --> C{"sessions × goals<br/>all scored?"}
    C -- "yes" --> Done(["scoring complete"])
    C -- "no" --> R["rescore missing pairs<br/>once"]
    R --> W2["await scoring finished"]
    W2 --> C2{"all scored now?"}
    C2 -- "yes" --> Done
    C2 -- "no" --> Partial(["recorded as partial<br/>never called finished"])
Loading

Scores carry an input fingerprint. Re-importing an unchanged agenda reuses every current score and spends nothing on the model (convex/scoringReuse.ts).

The email loop

Email is the interface. There is one shared AgentMail inbox, and every inbound message goes through the same checks before it is allowed to touch a plan.

sequenceDiagram
    autonumber
    participant T as Teammate
    participant AM as AgentMail
    participant H as Convex HTTP route
    participant P as parseAndApply action
    participant AI as OpenAI
    participant DB as Convex database
    participant B as Every open board

    T->>AM: Reply to plan email [PL-77KC]
    AM->>H: POST /api/webhooks/agentmail
    H->>H: Verify Svix signature
    H->>DB: Store event, drop repeats by provider event id
    H->>DB: Route by thread id, then subject token plus sender
    H->>P: The same write queues parsing through the action retrier
    P->>AI: Structured output: intent, session, time, quote, confidence
    AI-->>P: cant_attend, 0.98, the exact sentence
    P->>P: Quote must appear verbatim in the email
    P->>P: Match one session by time, then by title, never guess
    P->>DB: Availability block with the sentence, revision +1
    DB-->>B: Plan is stale, shown in amber with a text label
    Note over B: The lead presses Repair
    B->>DB: Repair keeps feasible assignments, analysis names who must change
    DB->>AM: Cover request to the best-placed teammate
    AM->>T: Can you cover this session?
    T->>AM: YES
    AM->>H: Webhook, same checks
    H->>DB: Cover accepted after fresh feasibility checks
    DB-->>B: Coverage recomputed on every screen
Loading

Try it with your own email

After Run the demo, /judges offers a prefilled email: the Parallel inbox, a subject carrying a one-use code, and a message saying one demo teammate cannot make one session. A judge sends it from any inbox and watches the card move from waiting to read to "plan changed", then presses Repair the plan on the board. Parallel never repairs on its own and never emails the judge back.

The code is 128 random bits, stored only as a SHA-256 hash, scoped to one demo teammate for two hours, and allowed to apply only cant_attend; a pin, takeaway, question or YES stays for review. Normal routing runs first and is unchanged, and the code is never accepted for a real or frozen workspace. It is redacted from the stored subject, body and raw payload, the sender is masked on Evidence, three emails per code are read in ten minutes, and the first applied change revokes it (convex/judgeEmail.ts, convex/model/judgeToken.ts, convex/emailIngest.ts).

On production on 22 September 2026, a real email sent from Gmail with the prefilled subject reached the AgentMail webhook, was routed by its code to that demo workspace alone, and was read as cant_attend at 0.99 confidence with its exact sentence. It applied once: one availability block, the workspace revision moved from 1 to 2, and the board went stale. The code was then revoked, the stored subject reads [JD-redacted], and Evidence shows the sender as e•••@gmail.com. Pressing Repair the plan returned a current plan at Team Goal Coverage 99.8 with 12 unique sessions and no duplicates. Replaying the same reply through the step a webhook redelivery runs, a second parse and a direct write changed nothing.

How a reply is judged

flowchart TD
    R["Inbound reply"] --> Sig{"Svix signature valid?"}
    Sig -- "no" --> X1["Rejected with 401"]
    Sig -- "yes" --> Dup{"Provider event id<br/>seen before?"}
    Dup -- "yes" --> X2["Dropped as a repeat"]
    Dup -- "no" --> Route{"Thread id or<br/>subject token + sender?"}
    Route -- "no match" --> X3["Kept as unmatched,<br/>never guessed"]
    Route -- "teammate found" --> Parse["OpenAI reads intent,<br/>session hint, time hint, quote"]
    Parse --> Kind{"Intent"}
    Kind -- "yes / no" --> Cover["Answer the one open<br/>cover request"]
    Kind -- "cant_attend · pin · takeaways" --> Q{"Quote verbatim<br/>and confidence ≥ 0.75?"}
    Q -- "no" --> Pending["Pending on Evidence,<br/>a person can resolve it"]
    Q -- "yes" --> Match{"Exactly one<br/>session matched?"}
    Match -- "no" --> Pending
    Match -- "yes" --> Apply["Apply"]
    Apply --> Empty{"Takeaway that only<br/>names the session?"}
    Empty -- "yes" --> Pending
    Empty -- "no" --> Done["Block, pin or note written,<br/>revision moves when the plan changes"]
    Kind -- "question · other" --> Pending
Loading
  • Routing. Thread id first, then the [PL-XXXX] subject token together with the sender's address. Anything that matches neither is kept and shown, never attached to a guess.
  • Session matching. A time is tried first and must match exactly one session starting within 30 minutes of it. Otherwise the session hint must be a contiguous piece of one title, or every significant word of it must appear in exactly one title. Two candidates means no match.
  • Consent. A teammate's own "can't make it" applies at once. Anything that changes someone else's day needs their YES or the lead's click. Operational email never leaves the team; the brief goes only to the lead and the recipients the lead adds.
  • Sending. Plan and cover emails are keyed on kind, teammate and plan revision, and the brief on brief and recipient, so a retry never sends twice. Every send counts against a rolling 24-hour budget of 80 so a loop cannot drain the inbox.
  • Resolving by hand. A reply the parser would not apply stays on the Evidence screen, where a person can apply it to a session. The original email is kept and the change is recorded as resolved by hand, not by the parser.

The optimizer

convex/engine/ is pure TypeScript with no network access and no Convex imports, so the same code runs inside a mutation and inside the test suite.

Team Goal Coverage

For each goal g, over the unique sessions the team attends:

coverage(g)        = 1 − Π (1 − 0.75 · r(s, g))
Team Goal Coverage = 100 · Σ w_g · coverage(g) / Σ w_g

r(s, g) is the model's relevance score for session s against goal g, and w_g is the goal's weight. The product term gives diminishing returns: a fourth similar session on the same goal adds less than the first. The score runs from 0 to 100 and is never shown as a percentage.

Beside it the board shows two literal counts: unique sessions assigned, against the most the team could physically attend, and duplicate attendances, which are reported rather than forbidden. "The most the team could physically attend" is computed exactly as a k-track interval scheduling problem in convex/engine/attendable.ts.

Coverage is a reactive query derived from the stored assignments. Nothing trusts a stored number.

The objective

objective = Team Goal Coverage
          + 0.25 × sessions a teammate marked as interesting and attends
          − 0.5  × duplicate attendances
          − 3    × assignments changed from the current plan   (repair only)

These constants live in convex/engine/constants.ts. They were fixed before any result was looked at and are never tuned to reach a number.

Search, and what it can prove

Mode When What the product reports
Exact branch-and-bound Search space at most 2⁴⁰ and within 120,000 nodes Proven optimal
Beam search, width 100 Anything larger, or when the exact budget runs out Best found, with a derived upper bound so the largest possible gap is stated

Hard constraints are never traded for score: no double booking, no assignment over a recorded block, and no silently dropped pin. A plan with conflicting pins is returned as infeasible with the blocking pins named.

Repair, not reshuffle

Mid-event, a team wants the fewest people moved. Repair charges 3 points for every assignment that differs from the current plan, so a plan that moves one person beats a slightly higher score that moves four. A separate analysis (repairWithMinimumDisruption, 150,000-node budget) identifies the minimum set of teammates whose schedules cannot stay as they are. The saved repair keeps only the previous plan's assignments that survive; new assignments for other people wait for their consent through a cover request.

The revision guard

stateDiagram-v2
    state "Plan current<br/>plan revision = conference revision" as Current
    state "Plan stale<br/>shown in amber with a text label" as Stale
    state "Write refused<br/>'The plan changed while you were looking at it'" as Refused

    [*] --> Current : Optimize
    Current --> Stale : reply · pin · block · agenda change
    Stale --> Current : Repair or Optimize
    Stale --> Refused : a browser writes against the old revision
    Refused --> Stale : reload and try again
    Current --> Current : claim or release by hand
Loading

Every constraint change bumps constraintRevision on the conference. A plan stores the revision it was computed at, and every write re-reads it at the moment of the write. A write against a stale plan is rejected with a message that says what to do, never merged silently. Claiming a session by hand and accepting a cover by email run through the same guard in convex/model/assignmentGuards.ts.

What the model does, and what it never does

Every model call uses OpenAI structured outputs with a JSON schema, and every result is validated before it is stored.

Job Input Output Guard
Normalize the agenda Scraped markdown for one day Sessions with title, time, room, speakers Times are validated in the event's time zone; invalid rows are dropped
Score relevance Sessions and goals A 0 to 1 score and a one-line reason per pair The matrix is checked for completeness; missing pairs are rescored once
Parse replies One email body Intent, session hint, time hint, quote, confidence The quote must be a verbatim substring of the email, confidence ≥ 0.75
Write the brief Approved takeaways and the agenda Claims grouped by goal, each naming its source Claims citing an unknown note or session are dropped and counted

It never assigns anyone, never computes coverage, never decides feasibility and never invents a number. The model's name is stored with every score and every brief.

Guarantees

Each of these is enforced in code and covered by tests. The first four can be attacked live from Try to break it on /judges, which runs them through the production code on a throwaway workspace and deletes it afterwards.

Guarantee How Where
A webhook delivered twice is stored once Events are keyed by the provider's event id convex/emailIngest.ts
A browser holding an old plan cannot overwrite a newer one Revision re-read at write time convex/model/assignmentGuards.ts
A paraphrased model quote is never acted on Verbatim substring check before anything is applied convex/model/replySchema.ts
A retried send never delivers twice Idempotency key on kind, teammate and revision, checked in a ledger before the provider call convex/emailSendWrites.ts
A send loop cannot drain the inbox Rolling 24-hour budget of 80 sends convex/emailSend.ts
An ambiguous reply is never guessed Session matching requires exactly one candidate convex/model/sessionMatch.ts
An empty takeaway never reaches the brief A takeaway needs at least four words beyond the session title; rejected notes are excluded convex/model/takeawaySubstance.ts, convex/brief.ts
A cancelled session is never assigned Planning input drops it; repair drops assignments that pointed at it convex/model/loadOptimizerInput.ts
Nobody else's day changes without consent New assignments for others only through an accepted cover request convex/model/coverAcceptance.ts
The verified run cannot drift A frozen workspace refuses every write from the app, and inbound replies are stored but not applied convex/model/frozenConference.ts
A reply survives a brief OpenAI outage Parsing is queued through the action retrier; only network errors, 429 and 5xx are retried, up to three times convex/model/replyRetrier.ts, convex/model/openaiClient.ts
A retried reply is never applied twice Applying a reply or a cover answer to an already handled event is a no-op, checked inside the write convex/emailReplies.ts
Demo runs, workflow imports, briefs and judge emails are rate-limited Token buckets per conference for the brief, per browser visitor id for demo runs and workflow imports, and per demo code for judge emails, checked before any work; quota protection, not authentication, with no global cap convex/model/rateLimits.ts
A saved reply is never left unread Saving a reply and queuing its parse happen in one mutation; a redelivery repairs a missing parse; a reply whose parsing failed stays on Evidence with Retry parsing convex/replyParsing.ts, convex/emailIngest.ts
Demo workspaces expire Removed by a six-hourly cleanup once more than 24 hours old; a workspace's link is its access key (see Known limitations) convex/guest.ts
A judge's email can make one change, in one demo workspace A one-use code stored only as a hash, scoped to one demo teammate for two hours, limited to cant_attend, redacted from stored mail and revoked once it applies convex/judgeEmail.ts, convex/model/judgeToken.ts

The verified production run

A permanent production workspace created through the real application flow, using the public ViVE 2026 agenda. Parallel is unofficial and not affiliated with the event. The conference scenario itself was played out for verification. The workspace is read-only: every change from the app is refused, so the record stays exactly as it happened.

Step Measured on production
Sessions imported by Firecrawl and OpenAI 9, each with source URL, fetch time and SHA-256 hash
Relevance scores 36 of 36, recorded with gpt-5.4-mini
First plan Team Goal Coverage 90.5 across 9 unique sessions
A teammate replies that he cannot make a session Parsed as cant_attend at 0.98 confidence, sentence stored verbatim
Repair One person moved; 90.5 → 88.8, the open session shown, not hidden
Cover request by email, answered YES Back to 90.5 across 9 unique sessions
Takeaway by email Filed against the covered session
Brief Written from the approved takeaway and delivered through AgentMail

The board reads 91.1 today rather than 90.5. One of the 36 session-and-goal pairs had no model output when the run took place, and scoring it afterwards completed the matrix.

The email is real: two real inboxes, real replies, a verified webhook and real deliveries. The conference is played out, since nobody on the team attended ViVE 2026, so the reasons in the replies and the takeaway were written for the run. The other three teammates are placeholders whose addresses do not receive mail, and the board reports its one duplicate attendance rather than hiding it.

A second run: four takeaways, one brief

Open the board · read its brief — a second permanent production workspace on the same public ViVE agenda, built through the same flow and also read-only.

  • Team Goal Coverage 59 for the same teammates each attending only their own picks, a computed baseline, against 90.4 for the coordinated plan, across 9 of 9 sessions.
  • A teammate replied that he could not make a session; the repair moved one person, and another teammate took the session by replying YES.
  • Four teammates each replied by email with a takeaway. OpenAI wrote the brief from those four: 8 claims across the team's 4 goals, every one citing the takeaway it came from, none dropped. AgentMail delivered it to the team lead.

In this run all four teammates are plus-address aliases of the team lead's own inbox, and the lead wrote every reply, including the takeaways. The email is real; the conference was played out.

Screens

Route What it is for
/ The landing page
/board One lane per teammate, the three counters, Optimize, Repair, claim and release by hand, and How Parallel worked
/agenda Import a public agenda and watch the workflow's current step
/goals The team's weighted goals and every session's score against them
/notes Takeaways, with approve and reject
/brief What the trip returned, the brief itself, its recipients and Send the brief
/evidence Every number traced to its row: the page it was scraped from, the reason the optimizer stored, the sentence a teammate wrote
/judges The verified run's measured impact, Run the demo on a workspace of your own, Try it with your own email, Open verified production run, and Try to break it

Any screen accepts ?c=<conference id> to open a specific workspace, which is how the production run above is linked. Seeded demo workspaces are labelled as demo data on screen, and How Parallel worked on the board names the service that performed each step.

Data model

erDiagram
    TEAMS ||--o{ MEMBERSHIPS : "has"
    TEAMS ||--o{ CONFERENCES : "attends"
    CONFERENCES ||--o{ SOURCES : "fetched from"
    SOURCES ||--o{ SESSIONS : "provides"
    CONFERENCES ||--o{ SESSIONS : "lists"
    CONFERENCES ||--o{ GOALS : "aims at"
    SESSIONS ||--o{ SESSION_GOAL_SCORES : "scored in"
    GOALS ||--o{ SESSION_GOAL_SCORES : "scored in"
    MEMBERSHIPS ||--o{ MEMBER_PREFERENCES : "marks"
    MEMBERSHIPS ||--o{ AVAILABILITY_BLOCKS : "is blocked by"
    CONFERENCES ||--o{ PLANS : "computes"
    PLANS ||--o{ ASSIGNMENTS : "contains"
    SESSIONS ||--o{ ASSIGNMENTS : "attended through"
    MEMBERSHIPS ||--o{ ASSIGNMENTS : "attends through"
    MEMBERSHIPS ||--o{ EMAIL_THREADS : "is reached through"
    CONFERENCES ||--o{ EMAIL_EVENTS : "receives"
    PLANS ||--o{ COVER_REQUESTS : "raises"
    SESSIONS ||--o{ NOTES : "has takeaways"
    CONFERENCES ||--o{ BRIEFS : "produces"
    CONFERENCES ||--o{ BRIEF_RECIPIENTS : "sends to"
    CONFERENCES ||--o{ OUTBOUND_SENDS : "ledgers"
    CONFERENCES ||--o{ ACTIVITY : "logs"

    CONFERENCES {
        string agendaUrl
        string timezone
        number constraintRevision
        boolean isDemoData
    }
    SESSIONS {
        string title
        number startsAt
        number endsAt
        number cancelledAt
    }
    PLANS {
        number computedAtRevision
        string status
        string solverStatus
        number upperBound
    }
    EMAIL_EVENTS {
        string providerEventId
        string intent
        number confidence
        string quote
        boolean handled
    }
    OUTBOUND_SENDS {
        string idempotencyKey
        string providerMessageId
        string kind
    }
Loading

The full schema, with every index, is in convex/schema.ts.

Tech stack

Layer Choice
Backend Convex: database, reactive queries, mutations, actions, HTTP routes, scheduler and crons
Components static-hosting, workflow, workpool, firecrawl-convex, rate-limiter, action-retrier
Scraping Firecrawl
Language model OpenAI Responses API with structured outputs, gpt-5.4-mini
Email AgentMail REST API, Svix-signed inbound webhooks
Frontend React 19, TypeScript 5.9, Vite, Tailwind CSS 4, Hugeicons
Tests Vitest and convex-test
Tooling pnpm 10 with exact pins, Node 24, ESLint 10, Prettier, GitHub Actions

Running it yourself

You need Node 24, pnpm 10, a Convex account, and API keys for OpenAI, Firecrawl and AgentMail.

pnpm install
npx convex dev        # provisions a deployment and pushes the backend
pnpm dev              # the app, against that deployment

Set the backend's secrets on the Convex deployment. They are never exposed to the browser.

npx convex env set OPENAI_API_KEY <key>
npx convex env set FIRECRAWL_API_KEY <key>
npx convex env set AGENTMAIL_API_KEY <key>
npx convex env set AGENTMAIL_INBOX <inbox@agentmail.to>
npx convex env set AGENTMAIL_WEBHOOK_SECRET <svix signing secret>
npx convex env set FIRECRAWL_MONITOR_SECRET <shared secret>     # optional
Webhook Configure it in Notes
https://<deployment>.convex.site/api/webhooks/agentmail AgentMail Subscribe to message.received; the signing secret is AGENTMAIL_WEBHOOK_SECRET
https://<deployment>.convex.site/api/webhooks/firecrawl Firecrawl Optional; send the secret in an x-parallel-monitor header

The static-hosting component owns /, so the app's own HTTP routes live under /api.

Command What it does
pnpm dev The app with hot reload
pnpm test The whole test suite
pnpm test tests/engine One folder
pnpm test -t "repair" Tests whose name matches
pnpm typecheck · pnpm lint · pnpm format Types, lint and formatting
npx convex dev --once Push functions and schema to a dev deployment
pnpm deploy Build, push the backend and upload the site

Background work runs on three crons: watched agendas are re-checked every 30 minutes (an unchanged page is recognised by its content hash and costs nothing), takeaway prompts become due every 5 minutes as sessions end, and guest workspaces older than 24 hours are removed every 6 hours.

Testing

57 test files and 409 tests, run on every push in GitHub Actions.

Folder What it covers
tests/engine/ The optimizer: randomized property tests for every hard constraint, exact search against brute force, determinism, repair
tests/adversarial/ Hostile input: webhook replays, email routing, idempotency, session matching, time zones, noisy agendas, degenerate solver inputs, impossible pins
tests/convex/ Mutations and actions against an in-memory Convex backend: the email chain, cover acceptance, brief delivery, the guard attacks
tests/email/ Reply parsing, session matching, Svix signatures, webhook payloads, outbound mail, cover ranking, takeaway substance
tests/agenda/ Agenda diffing, day slicing, the Firecrawl component, cancelled sessions
tests/scoring/ Score matrix completeness and input fingerprints
tests/brief/ Brief parsing, source verification and the trip summary

The property tests generate instances and check them for hard-constraint violations, compare the exact search with brute force on small cases, and run each instance twice and in reversed input order to prove determinism. They also found that beam search alone is measurably suboptimal on a share of instances, which is why the exact mode exists.

Project layout

Path What lives there
convex/engine/ The optimizer: coverage, objective, beam and exact search, bounds, repair, explanations. No network
convex/model/ Provider clients, schemas for model output, write guards, matching and the pure helpers around them
convex/ Queries, mutations, actions, the import workflow, webhooks, crons and the schema
src/routes/ One file per screen
src/components/ The board, evidence, knowledge, judges and landing components, and the app shell
src/styles/ Design tokens and global styles
tests/ The suites described above
eslint-rules/ A local lint rule that keeps the codebase free of comments; names and types carry the meaning

Known limitations

  • Access boundary. This hackathon build uses opaque workspace links rather than organization authentication: no Convex function checks who is calling, so anyone with a workspace's link can read that workspace and, unless it is frozen, change it. On a workspace that is not frozen, that includes its teammates' email addresses, which its public queries return. On a frozen workspace, such as the verified ViVE run, every address leaves Convex masked, and a judge's own address is masked on Evidence in every workspace. Judge and demo workspaces are removed by a cleanup that runs every six hours once they are more than 24 hours old. The verified ViVE workspace is intentionally public and read-only. A production deployment handling private company conference data would put authenticated organization membership in front of workspace reads and writes.
  • Not every provider call is rate-limited. The older direct importAgenda action, scoring and the agenda change checks are public and bounded only by provider quotas; the limits cover brief generation, demo runs, workflow imports and judge emails.
  • Agenda changes have no review screen yet. The watcher re-scrapes watched agendas, classifies every difference as added, moved, renamed, cancelled or room changed, and logs it for the lead, but applying those changes is not yet a button in the app.
  • Neither production brief reflects a real team's range of input. The first verified run's brief rests on one takeaway, so for the other goals the model fell back to claims that only cite the agenda. The second run's brief rests on four takeaways, but one person wrote all four while playing four teammates.
  • Large agendas are bounded, not proven. Past the exact search limit the solver reports "best found, not proven optimal" with the size of the gap. The demo agenda is just past that threshold.
  • A teammate can be left free. The optimizer will not create duplicate attendance that adds no coverage. The lane says so, and anyone can take a session from it by hand.
  • At-least-once delivery in one narrow window. A send the provider accepted but whose response never reached us would be retried.
  • Two identical generic titles are not paired. Two "Lunch" entries where one survives in a different room at a different time are reported as ambiguous rather than guessed.

Licences

Dependency licences are audited in THIRD_PARTY.md.

About

Team conference planner that splits overlapping sessions across teammates to maximize unique coverage, replan around changes, and turn distributed notes into one shared brief.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages