Skip to content
Back to skills

Worker Resource Budgeting

ASecurity

Budgets RAM before fanning out parallel workers, so verification workers

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 17, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add adiprmx/atlys --skill worker-resource-budgeting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Worker Resource Budgeting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Worker Resource Budgeting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adiprmx-worker-resource-budgeting/badge)](https://www.skillsdirectory.com/skills/adiprmx-worker-resource-budgeting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Budgets RAM before fanning out parallel workers, so verification workers
  never starve the live system.
name: worker-resource-budgeting
---



# Worker Resource Budgeting

## Purpose
Stop parallel verification workers from starving the live bot of RAM — each worker that loads the full intent brain costs 400–700 MB, and a handful of them can kill the bot at startup.

## Workflow
1. Before fanning out N parallel workers that load the full brain (verification, dedupe, probes, `check_otak`), check free memory with `muse.exec` (`free -g`). Reserve 2 GB headroom for the bot and OS; the rest is the worker budget.
2. Cap concurrency at `budget / 700 MB` (worst-case per-worker RSS). When headroom is tight, run workers sequentially instead of in parallel.
3. For dedupe-only or name-list tasks, spawn slim workers that load only a hash set of names/labels — never the full pattern brain.
4. Before any deploy or restart, finish or throttle heavy workers first; never restart the bot while verification workers are still holding gigabytes.
5. After a platform reboot, verify the bot is up and healthy before spawning any heavy workers — post-reboot is the highest-risk window.

## Output Contract
- Fan-out plan states: free RAM observed, per-worker estimate, worker count chosen, headroom reserved.
- No silent worker spawns during deploy/restart windows.

## Operating Rules
1. The live bot's RAM is non-negotiable — workers are expendable, the bot is not.
2. `check_otak`-class jobs are CPU-heavy: never run two concurrently, and never alongside an active brain-building run.
3. If free RAM drops below 1 GB mid-run, stop spawning and throttle existing workers before the OOM killer decides for you.
## Available connectors

Use `muse.connector_search` to find the current connector docs before following
recovered instructions.

Files in this skill

  • README.md1.4 KB
  • SKILL.md1.8 KB
  • skill.yaml1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.