• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / isolated-function / 41483356733
89%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 04:39PM UTC
Jobs 1
Files 15
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 04:37PM UTC coverage: 88.0% (+0.4%) from 87.597%
41483356733

push

github

web-flow
fix: bound what the host keeps per run (#102)

* fix: bound what the host keeps per run

The host remembered every distinct call by `method:JSON.stringify(args)` for
the whole run. The isolate writes those arguments, so a 213-byte free-plan
function calling `__isolated_host('content', [20MB, i])` in a loop took the
microlink API pod from 235MB to 1846MB RSS in 60 calls. Locally, 40 calls with
4MB arguments kept 168MB after GC.

The key is now a sha256 digest of the method and arguments, so a call costs
the same to remember whatever its size (168MB retained becomes under 8MB in
the same test). A run gets 10,000 distinct calls; past that a new call
rejects with `the host call budget for this run is exhausted`, and a call
already made still answers.

#88 dropped the earlier cap of 32 because every host method the API exposes
takes no arguments. The arguments come from the isolate, not from the host's
signature, so that cap was binding after all. 10,000 leaves room for
`page.goal` ordinals and one dial check per host:port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: refuse a dial whose check the host could not answer

Once a run spends its host call budget, the __ssrf dial check gets a failed
reply. The egress listener dropped any reply that was not a signed value, so
the dial hung until the run timed out. A failed reply now rejects the check,
which every caller already turns into a refusal. A forged failed reply can
only refuse a dial.

Also documents the budget on the host option's JSDoc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: note that ssrf dial checks share the host call budget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: a dial check is keyed by address, port, and name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: import the host call budget at the top of the egress tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: bound what the host keeps b... (continued)

393 of 420 branches covered (93.57%)

Branch coverage included in aggregate %.

78 of 82 new or added lines in 3 files covered. (95.12%)

1499 of 1730 relevant lines covered (86.65%)

4545.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
43.09
-0.47% src/egress.js
Jobs
ID Job ID Ran Files Coverage
1 41483356733.1 02 Nov 2026 04:39PM UTC 15
88.0
GitHub Action Run
Source Files on build 41483356733
  • Tree
  • List 15
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41483356733
  • f6375f64 on github
  • Prev Build on master (#40598057070)
  • Next Build on master (#42500958803)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc