Skip to content
Floodgate

Lock 01 · Forge app for Jira Service Management

One approval folds the storm. Every refusal says why.

One outage, and 170 customers file the same request. Floodgate links the true ones to one internal incident and answers each on their own request, once you approve: 164 fold on the demo fixture, 23 refused with a reason each, 0 false folds in 24 simulated storms.

Install link comingMeanwhile the lab below runs the real core, or run it locally:

  • Runs on Forge, no external hosting
  • Replies never cross organizations
The keeper’s recorderSeed A · demo profile
Staff gauge and recorder trace for Login and SSO on seed A: requests in the last 90 seconds rise from 1 to a peak of 129 against a flood line of 12; the storm is detected at +0:13.5 seconds.050100150−1:000:00+1:00+2:00+3:00+4:00FLOOD LINE 12DETECTED+13.5 S12 in 90 sPEAK 129STORM129peak · in 90 sseed A · settled
  1. StormLogin & SSO crosses the flood line
  2. Approve foldOne person, once
  3. Folded164 answered on their own requests · 23 refused, each with a reason
  1. +0:13.5SUP-140SSO login fails with AUTH-502 · line crossed
  2. +0:13.2SUP-139All our users are locked out, AUTH-502
  3. +0:12.2SUP-138Sign-in loop ends in AUTH-502
164fold·23refused
Drawn by the repo’s own core on seed A: water = velocity() over the last 90 s, scale = the queue page’s gaugeScale(), counts = runStorm(). Replay reruns it in this tab, sped up ×64.
0

false folds in 24 decoy-storm simulations, two seeds

evidence/sim-check-run.txt
164 / 170

storm requests folded on the demo fixture (96.5 % recall)

evidence/bench-offline.md
23

refusals, each stamped with its reason code

evidence/preview-snapshot.json
287

tests passing: unit, flow, decoy and store contract

evidence/test-run.txt

The storm lab · seed A · in your browser

Drag the threshold. The gate never moves.

Floodgate’s own gate, scorer and foldAt(), running on the repository’s fixture. Raise the threshold: folds move to the refused side, the twelve gate refusals stay put. The fixture’s answer key sits beside every row.

164fold·23refused

0.22 is the lowest the settings page accepts.

0false folds: decoys folded
96.5 %of the 170 storm members folded
12refused by the gate · fixed
11refused by the score · moves
Every request past the gate, by similarity scorefoldrefusedfixture decoy
0.00.10.20.30.40.50.60.7threshold 0.22

Fold 164

Lowest scores first.

  • SUP-278login broken0.24matched login · broken · stuck
  • SUP-295login broken0.25matched login · broken
  • SUP-293Birchwood Dental: whole team locked out (AUTH-502)0.27matched auth-502 · sign · sso · lock · out
  • SUP-274Corvid Labs: whole team locked out (AUTH-502)0.28matched auth-502 · sign · sso · lock · out
  • SUP-144Acme Freight: whole team locked out (AUTH-502)0.29matched auth-502 · sign · sso · lock · out
  • SUP-253Acme Freight: whole team locked out (AUTH-502)0.29matched auth-502 · sign · sso · lock · out

Replies go to 3 organizations, each on its own requests

  • Acme Freight76
  • Birchwood Dental53
  • Corvid Labs35

Refused 23

Gate · fixed

Opened before the storm began7
    Already resolved1
      Already linked2
        Another request type2

          Similarity score · moves with the threshold

          Not similar enough11

            Keys are the simulation’s; the queue page below numbers the same storm its own way.

            Local previewThe same review in the shipped queue page. Simulated clock, not a Jira site.
            The queue page review: 164 fold, 23 refused. The five lowest-scoring folds are open with their matched terms; refusals are grouped by reason: opened before the storm began 7, already resolved 1, already linked to an issue 2, another request type 2, not similar enough 11.
            $ npm run sim -- --check2 seeds × 1× and 10× clocks × 6 variants
            1. A c=1 types=5 bg24 fold=164 recall=96.5% FF=0
            2. A c=1 types=5 bg24 nocode fold=137 recall=80.6% FF=0
            3. A c=1 types=5 bg0 fold=161 recall=94.7% FF=0
            4. A c=1 types=5 bg200 fold=164 recall=96.5% FF=0
            5. A c=1 types=3 bg24 fold=164 recall=96.5% FF=0
            6. A c=1 types=2 bg24 fold=164 recall=96.5% FF=0
            7. A c=10 types=5 bg24 fold=164 recall=96.5% FF=0
            8. A c=10 types=5 bg24 nocode fold=137 recall=80.6% FF=0
            9. A c=10 types=5 bg0 fold=161 recall=94.7% FF=0
            10. A c=10 types=5 bg200 fold=164 recall=96.5% FF=0
            11. A c=10 types=3 bg24 fold=164 recall=96.5% FF=0
            12. A c=10 types=2 bg24 fold=164 recall=96.5% FF=0
            13. B c=1 types=5 bg24 fold=162 recall=95.3% FF=0
            14. B c=1 types=5 bg24 nocode fold=111 recall=65.3% FF=0
            15. B c=1 types=5 bg0 fold=160 recall=94.1% FF=0
            16. B c=1 types=5 bg200 fold=162 recall=95.3% FF=0
            17. B c=1 types=3 bg24 fold=162 recall=95.3% FF=0
            18. B c=1 types=2 bg24 fold=162 recall=95.3% FF=0
            19. B c=10 types=5 bg24 fold=162 recall=95.3% FF=0
            20. B c=10 types=5 bg24 nocode fold=111 recall=65.3% FF=0
            21. B c=10 types=5 bg0 fold=160 recall=94.1% FF=0
            22. B c=10 types=5 bg200 fold=162 recall=95.3% FF=0
            23. B c=10 types=3 bg24 fold=162 recall=95.3% FF=0
            24. B c=10 types=2 bg24 fold=162 recall=95.3% FF=0

            PASS: 0 false folds in every run; recall >= 90% on every coded run; no member refused BEFORE_STORM.

            All 24 rows of evidence/sim-check-run.txt, columns selected. nocode rows strip the error code: recall falls to 80.6 % and 65.3 %, false folds stay 0.

            How it folds · four refusals, one person

            Watch, refuse, ask, then fold.

            A flood gauge per request type

            Arrivals in the window rise like water on a staff. The flood line is max(12, 5 × the normal rate), so a quiet desk needs 12. On seed A only Login & SSO crosses it:

            • Login & SSO129
            • Billing4
            • General question3
            • Integrations3
            • Invoices & PDF export3
            Over the line
            +13.5 s
            demo clock, seed A
            Peak in 90 s
            129
            Login & SSO requests
            Times normal
            258×
            local preview
            The queue page's own gauge: Login and SSO at 22 requests in 1.5 minutes, over the flood line at 12.created-issue trigger · Forge SQL ledger · src/core/storm.ts

            A gate that never bends

            Each candidate is refused by the first rule it fails. Nothing outside the gate can be folded, by anyone.

            1. Same request type (or one the lead ticks)
              SERVICE
              2
            2. Created inside the storm window
              BEFORE_STORM
              7
            3. Still open
              CLOSED
              1
            4. Not already linked
              LINKED
              2
            5. Not marked do-not-fold
              OPTED_OUT
              0
            6. Raised by a customer
              NOT_CUSTOMER
              0
            src/core/gate.ts · counts on seed A

            The score can only refuse

            Similarity works inside the gate and never adds. A request sharing only the error code is refused by the code-only guard.

            s_fold 0.22 · s_text_min 0.12

            Rovo proposes, you approve

            Five actions, four reads and one write that stores a proposal:

            get-stormdraft-repliesexplain-refusallist-weakest-foldspropose-foldapprovepost
            rovo:agent · 5 actions

            A fold that survives retries

            One idempotent async job links each request to the incident and replies on the customer’s own request. Once the incident is resolved, a second approval posts the fix note and closes what is still linked.

            Forge Async Events · resumable job

            After Approve · the keeper’s log

            Each reply lands on the customer’s own request.

            One press. Then a ruled line per request: linked, replied, waiting on the incident. Seven captures of one local-preview run.

            Local previewCaptured 2026-12-05 from npm run preview. Simulated clock, not a Jira site.
            The queue page after Approve: awaiting first reply 164 → 150, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 120, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 90, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 60, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 35, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 5, the keeper’s log adds one ruled line per folded requestThe queue page after Approve: awaiting first reply 164 → 0, fold done, 164 done, 0 skipped, 0 failed
            164 → 0

            Fold 164 requests under a new internal incident?

            164 requests from 3 organizations get the reply below on their own request. 23 refused stay in your queue.

            Approve foldBack
            Local previewThe reply, and what one customer sees.
            The reply composer: the reply every folded customer gets, a preview of what a customer at Corvid Labs sees on their own request, and the decision bar: 164 requests from 3 organizations get your reply on their own request, 23 refused stay in your queue.

            Last capture: 164 done · 0 skipped · 0 failed. The bench run on in-process fakes agrees: 164 items done, 0 not done (evidence/bench-offline.md).

            Honest by design

            What is proven, and what is not yet.

            • Live fold timeStatus: offline-proven, not yet live-measured.— README · Status
            • ThresholdsThe scorer thresholds were tuned on the fixture, so the independent checks are the second seed and the live storm still to be run.— README · Engineering Rigor
            • The benchThe bench numbers are compute cost on fakes: they include no network and no Jira rate limits, so they are not a fold time.— README · Engineering Rigor

            Questions a judge would ask

            FAQ

            Does Floodgate merge tickets?

            No. Every request stays its own ticket: linked to one internal incident (“is caused by”), answered on the customer’s own request, and closed after a second approval once the incident is resolved. One the customer wrote back on gets the fix note and stays open.

            What stops it folding the wrong request?

            Four things, in order: the gate’s fixed rules, a scorer that can only refuse, a review showing every refusal with its reason, and nothing happens until a lead presses Approve. In 24 decoy-storm simulations on two seeds, 0 decoys folded.

            Does the Rovo agent act on its own?

            No. It reads the storm, explains refusals, drafts the reply and can store a proposal. The proposal appears on the queue page; a person approves it there. It cannot approve, post, or add a request to a fold set.

            Is the storm lab on this page real?

            Yes: the repository’s own src/core and fixture generator, bundled into assets/lab.js and run on seed A in your browser. The build checks it reproduces evidence/sim-seed-a.json exactly.

            What is measured, and what is not yet?

            Every number here comes from runs in the repository: the seeded fixture, in-process fakes and the local preview (an in-memory Jira double with a simulated clock). Fold time on a real Jira site is not measured yet.

            Three steps on your own site.

            1. InstallInstall on a Jira Service Management site (the link is added here once published).
            2. Open the queue pageSix onboarding checks run, each with pass or fail and its fix.
            3. Seed a demo stormSettings tab: 3 demo organizations, 56 demo customers, 213 requests, replayed 10 times faster. The storm arrives about 9 minutes in; review, approve, resolve.