{"success":true,"name":"brimind-parallel-send-on-ready","description":"Run prospects like a pipelined CPU, not a single-cycle one. Many clients are in flight at once, each at its own stage, no single client blocks the system, and each client's message leaves the moment its proposal or site is ready, never batched and never held for the others. Use when dispatching or running any rail, scout or build; when one slow prospect is holding up a run; when sites are ready bu","category":"unitary","path":"unitary/brimind-parallel-send-on-ready/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-parallel-send-on-ready\ndescription: Run prospects like a pipelined CPU, not a single-cycle one. Many clients are in flight at once, each at its own stage, no single client blocks the system, and each client's message leaves the moment its proposal or site is ready, never batched and never held for the others. Use when dispatching or running any rail, scout or build; when one slow prospect is holding up a run; when sites are ready but not yet sent; and whenever a shift is working one client at a time.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/brimind-parallel-send-on-ready`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# Pentium 4, not Pentium 3\n\n**The owner's orders, 2026-09-15:**\n- « need to work in parallel, like a pipeline of pentium 4 vs pentium 3, not all our system is blocked for 1 current client in progress »\n- « a lot of clients should be in progress at the same time, when his proposal or needed material is done send immediately »\n\n## Why this exists\n\nSingle-cycle is what the rail does today: pick a market, recon, build, publish, send, then pause and start the next one. One prospect that has no address, no hours or a slow Maps scrape holds up everyone behind it.\n\n| | Measured | Source |\n|---|---|---|\n| 🔴 | MÉTHODE 03 cycles on 14/09 ran **226, 235 and 234 min** and delivered **2, 0 and 0** sends. | `agents/method/runs/cycles/index.jsonl` |\n| 🔴 | Between tours the rail waits **\"pause 20 min avant le tour suivant\"**, whatever else is ready. | `agents/method/runs/rail03-2026-09-14.log` |\n| 🟢 | One client from pick to ack takes **1.5 min**. The work is short; the waiting between clients is long. | same log |\n| 🔴 | Built, then left: Plumby Gembloux, built 12/09 13:30Z and sent 14/09 13:33Z. | `rail03-2026-09-12.log`, `-14.log` |\n\n## The pipeline\n\nFour stages. Each has its own workers and a buffer between stages, so a stall in one stage never stops another.\n\n| Stage | Works on | Hands off when | Shared limit (the only real contention) |\n|---|---|---|---|\n| 1 Scout | one market per lane (country × niche × channel) | a prospect is reachable, has no site and is not in dealflow | the Maps browser (browser-opener) |\n| 2 Recon + offer | one prospect | dossier, facts and own URL exist | none measured yet |\n| 3 Build / proposal | one prospect | the lint-passing draft and the live URL answer 200 | none measured yet |\n| 4 Send | the channel pacer | **immediately on hand-off**: WhatsApp 1 per 2 min, Telegram 1 per 5 min, email unpaced | the per-channel pacer, which is independent per channel |\n\n## Rules\n\n1. **Many clients in flight.** A lane never waits for the previous prospect to be sent before starting the next. Several lanes run side by side, each on a different market or channel.\n2. **Send on ready.** The moment a client's material passes lint and its URL answers, it goes to the pacer. No batches, no \"we'll send the lot at the end\". A finished client that is not queued within minutes is a defect; tag it with `brimind-director-blocker-tags`.\n3. **A stuck client is dropped from the line, not waited on.** Examples: no hours, no address, a failed check. Log one line and move to the next prospect. The stuck one goes to a retry buffer, and the stage keeps flowing.\n4. **The send still lands at their desk.** Send-on-ready is bounded by `brimind-flow-duration`. If a client becomes ready after their market's close, it waits for their next 10:00. That wait means the dispatch was wrong, and it gets fixed at the dispatch, not at the send.\n5. **The shared limits set the number of lanes.** The channel pacers and the one Maps browser cap how many lanes we can run. The first parallel run measures scout contention and writes the number into this file. Until then, start with 3 lanes and raise it only if per-client minutes do not go up.\n6. **Rail pauses count against the lane.** A fixed 20-minute pause while other work is ready is single-cycle thinking. Adding a pause needs a reason: a pacer, a ban risk, the token reserve.\n\n## What the director checks each pass\n\n- **Clients in flight per stage.** Zero in flight at any stage while the pacer is idle is a stall.\n- **Ready but unsent:** any client built or drafted more than 30 min ago with no queue id is a 🔴 row.\n- **Per-client minutes** from `flow.mjs`, before and after adding lanes. Parallel work that makes each client slower is not faster.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}