{"success":true,"name":"brimind-flow-duration","description":"Before any client work starts, estimate from our own measured logs how long the flow takes, from picking a market to a provider-acked send, and check that every send will land inside that country's working hours. Stops us building proposals and sites that are only ready once the prospect's office has closed. Use before dispatching any scout, rail or build; when choosing between markets; when sizin","category":"unitary","path":"unitary/brimind-flow-duration/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-flow-duration\ndescription: Before any client work starts, estimate from our own measured logs how long the flow takes, from picking a market to a provider-acked send, and check that every send will land inside that country's working hours. Stops us building proposals and sites that are only ready once the prospect's office has closed. Use before dispatching any scout, rail or build; when choosing between markets; when sizing how many clients a shift takes on; and whenever a queue is being filled for a market that closes within a few hours.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/brimind-flow-duration`. 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# Will the message land while they are at their desk?\n\n**The owner's order, 2026-09-15:** « make sure the sending time is in the\nworking time of the country, not start creating proposals and websites to\nclients, and when we are ready to send to that client, its late — pls add this\nas skill to estimate the flow duration ».\n\n## Why this exists — the numbers, recomputed 2026-09-15 04:46Z\n\n| | Measured | Source |\n|---|---|---|\n| 🔴 | **124 of 231** clients waited **over 24 h** between import and their first send. The median wait was **30.9 h**, and the p90 was 61 h. | `dealflow/data/clients.json` history |\n| 🔴 | **22 of 50** acked chat sends that map to a known country landed **outside** 10–18 local time. | `agents/data/replies.jsonl` × `live-markets.mjs` |\n| 🟢 | The site build itself is fast: pick → checked p50 **0.3 min**, and pick → ack **1.5 min** within one sitting. | `agents/method/runs/rail03-*.log` |\n| 🟡 | The real cost is everything around the build. Minutes per delivered send, counting recon, misses and pauses: **p50 7.8, p90 16.9** (n 7). | same logs |\n\nThe build is never the slow part. The slow part is:\n- starting at the wrong hour\n- scouting a market that yields nothing\n- building a site and then leaving it unsent. Plumby Gembloux was built on 12/09 at 13:30Z and sent on 14/09 at 13:33Z.\n\nThe 12 Belgian messages queued at 22:41Z on 14/09 are still waiting for 08:00Z.\n\n## Run it\n\n```bash\nF=.claude/skills/brimind-flow-duration/flow.mjs\nnode $F                                                   # measured stage durations, lag, sends outside hours\nnode $F --market SG --n 20 --channel whatsapp --lanes 4   # ✔ FITS (exit 0) or ✖ LATE (exit 4) + re-plan\nnode $F --market BE --n 15 --channel whatsapp --start 2026-09-16T06:00Z\n```\n\n- The script prints the first send and the p90 last send in the country's local time, and how many of the N sends land in office hours.\n- On ✖ LATE it offers three re-plans:\n  - cut N,\n  - add lanes,\n  - or build so the material is ready at their next 10:00.\n- Durations come only from our logs. Estimates get better as rail runs add samples, and the sample size is printed. Never type a duration from memory.\n\n## Rules\n\n1. **No dispatch without an estimate.** The `flow.mjs --market … --n … --lanes …` line and its verdict go in the pass note and in the order to the agent.\n2. **Exit 4 is a refusal, not a warning.** Re-plan with one of the printed options. If a market is LATE for all N, it is the wrong market for this hour: run `brimind-live-market-now` again.\n3. **Build for a market's next opening, not for tonight.** Material may be prepared ahead only if it finishes close to their 10:00. It must never sit overnight while a market that is open now has an empty queue.\n4. **Use the p90, not the p50, for the last send.** A plan that only fits on a good day will run late.\n5. **Re-measure every pass.** If the measured per-client minutes change by more than 50%, write down why: a new rail, a slower scraper, a dead source.\n","linked_files":["flow.mjs"],"origin":"brimind","owner_id":null,"source":"router"}