feat: step-level worker activity + cost-governed worker tool loop

- activity store: append-only per-step log under <run>/activity with cross-worker
  search/list/get and a prompt block (Artex-style process-level exchange)
- wire reactive workers to record tool steps and model observations by intent
- --worker-tools: bounded agentic tool loop per reactive worker (opt-in, off by
  default) with a shared ToolBudget (calls/rounds/concurrency), priority-weighted
  rounds, and cross-worker dedupe that reuses identical command output
- CLI  + web /api/runs/:id/{activity,todolist} and a new
  Workers tab (planner todolist + worker tape)
- no behavior change when the flag is off
This commit is contained in:
CyberSecurityUP committed 2026-12-01 11:17:57 -03:00
1 parent b0378e8df5
commit dfe6f7bab6
13 files changed
+1004 -21

No files matched your search

+10
View File
@@ -172,3 +172,13 @@ TYPESAFE_API_KEY=
# State, generated phishlets and captures live under .neurosploit/phish/.
#NEUROSPLOIT_PHISH_DIR=.neurosploit/phish
#NEUROSPLOIT_PHISH_OUTPUT_CAP=65536
# ------------------------------------------------------------------
# Reactive worker tool loop (opt-in with --worker-tools). Cost control:
# a single shared budget across all workers bounds total LLM rounds, tool
# executions and concurrency. Identical tool commands are deduped/reused.
#NEUROSPLOIT_WORKER_TOOL_MAX_CALLS=60
#NEUROSPLOIT_WORKER_TOOL_MAX_ROUNDS=80
#NEUROSPLOIT_WORKER_TOOL_CONCURRENCY=3
# Per-intent round cap (priority-weighted, <= this). Default 4.
#NEUROSPLOIT_WORKER_TOOL_ROUNDS=4