* v0.50.2.0 fix(security): critical+high advisory wave — DCR scope ceiling, cwd .env quarantine, format-based transcript redaction, consent pins Closes the critical- and high-severity items from six privately reported advisories (GHSA-548g-mhxp-p66h, GHSA-42r8-3jfh-82vr, GHSA-62gp-q5hj-r9mv, GHSA-q374-hhfh-f79x, GHSA-ghfq-gqmq-7fm4, GHSA-q5p9-qr3g-6v38). Squashed to a single commit so no intermediate revision carries a test-fixture credential shape through the gitleaks range gate. Cluster A — OAuth consent gate (GHSA-548g / -42r8 / -62gp). The v0.50.0.0 owner-approval flow is pinned end to end against a real `serve --http --enable-dcr` process and in-process: anonymous /authorize mints no code, a forged code is rejected at /token, revoked clients are refused at grants.begin, and OAuthGrants.begin() now caps awaiting-decision requests per client_id. Cluster B — DCR scope ceiling (GHSA-q374 defect B, GHSA-548g fix #2). registerClient rejects admin/sources_admin/users_admin/agent with HTTP 400 via scope.ts:dcrScopeViolation; client_credentials DCR clients are read-only. Remote sources_remove is source-fenced like sources_status. doctor's oauth_client_scope_health flags privileged self-registered clients. Cluster C — format-based secret detection (GHSA-ghfq). secret-scan.ts gains jwt/aws(AKIA|ASIA)/google/stripe/sendgrid/twilio/supabase/gitlab/npm/hf plus bearer and db_url_credentials catch-alls; the transcripts lane opts into the digit-gated high-entropy rule; getRawData follows the page soft-delete on both engines; delete_page --purge (local-CLI only) hard-removes a leaked page. Cluster D — cwd .env quarantine (GHSA-q5p9). New env-trust.ts + cli-preflight.ts drop a fixed list of code-loading / exec-target / posture-widening GBRAIN_* variables when a working-directory .env assigns them (key-presence, since Bun expands ${VAR}); the guardrails loader refuses cwd-relative and cwd-.env specs. Release artifacts: VERSION/package.json/three plugin manifests bumped to 0.50.2.0; CHANGELOG entry (reporters credited); SECURITY.md, README, DEPLOY.md, CHATGPT.md, guardrails.md, ENGINES.md and KEY_FILES updated; template + plugin trees, skills.lock, flag registry and llms bundle regenerated; module-size ceilings adjusted with per-row reasons; TODOS follow-ups filed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: pre-landing review fixes (v0.50.2.0 security wave) Review cycle 1 of the ship: 6 specialists + red team + coverage audit. Security / red team: - env-trust: parse .env with Bun's line grammar (bare CR terminates a line; BOM/U+2028 cannot hide an assignment); protect the loader / git / node / proxy / AI-CLI variable families a checkout could plant for the programs gbrain spawns; cli-preflight re-execs gbrain once with the sanitized environment so git, the agent CLI and workers inherit the clean view; cwd == ~/.gbrain no longer quarantines the operator's own .env. - guardrails: GBRAIN_GUARDRAILS_MODULE accepts only absolute or ~/ paths (a package name resolves from the cwd's node_modules). - secret-scan: bounded db_url_credentials quantifiers + per-pattern prechecks (linear on long lines), windowed previews that redact every sibling span, single-pass longest-first replacement. - TODOS: follow-up entries reworded to the functional level. API contract / maintainability: - delete_page purge: remote callers get permission_denied; a purged response always carries write_through; get_raw_data description states the soft-delete follow; includeDeleted narrowed to the getRawData signature; client_credentials gate evaluated before the DCR ceiling; doctor privileged set derived from the scope registry; sources_remove / sources_status share assertSourceInCallerScope; shell-job opt-in reaches --job-isolation process children as --allow-shell-jobs; stale help copy. - transcripts ingest: raw-metadata compare uses canonical JSON (JSONB key order made every healthy re-run rewrite unchanged rows). Coverage audit: 5 new test files + 4 extended (25 cases), plus RED-verified pins for every fix above. Docs/KEY_FILES/CHANGELOG/SECURITY updated; llms bundle, flag registry, tool catalog, structural suites regenerated; module-size rows adjusted with reasons. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix: pre-landing review fixes, cycle 2 (v0.50.2.0 security wave) Re-exec redesign (security + red team + adversarial findings): - cli-preflight re-runs gbrain from an empty temporary directory so the sanitized child never reloads the hostile .env: dropped keys are absent, never carried as '' (git and the dynamic loader presence-check GIT_SSL_NO_VERIFY / LD_TRACE_LOADED_OBJECTS; '' broke git ident). - The re-run marker is JSON {cwd, neutral} honoured only when the process provably started in that empty directory — a marker planted via a cwd .env is ignored (the ppid-keyed marker was forgeable under systemd/docker). - SIGINT is delivered by the tty once (wrapper no longer forwards it); SIGTERM/SIGHUP forwarded; execArgv preserved under the dev runtime. - Protected families widened: XDG config roots (git reads $XDG_CONFIG_HOME/git/config as global config), GNUPGHOME, TLS trust stores, EDITOR/VISUAL/PAGER, every provider endpoint variable, the GBRAIN_REMOTE_* / GBRAIN_DIRECT_DATABASE_URL redirects, and the marker. - cwd dotenv parsed once per start; jobs start uses the same '1' literal. secret-scan (cycle-2 findings): - db_url_credentials password class only stops at whitespace, '@' and string delimiters again (unescaped / { } < > | ^ ` \ passwords redact); BEARER uppercase recognized; jwt / high_entropy_assignment / PEM body bounded (adversarial '-eyJ' / '_token' runs and header-only PEM texts were quadratic); incremental PEM line cursor; redactFindings rebuilds the text by span-splice in one pass (was O(unique values x text)). Contract / docs: - delete_page purge responses carry a residuals hint (git history, exports, compiled context, slug-keyed derived rows); CHANGELOG states a single truth for GBRAIN_GUARDRAILS_MODULE (absolute or ~/ only, listed under Changed with a migration note); SECURITY.md / KEY_FILES / docs guides / minion-orchestrator skill describe the new mechanism and the --allow-shell-jobs opt-in; TODOS follow-ups filed; test-reads-source marker on the hook spawn-shape test; new PEM fixtures fragmented. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix: pre-landing review fixes, cycle 3 (v0.50.2.0 security wave) - Compiled binaries: every `bun build --compile` invocation passes `--no-compile-autoload-bunfig`; new `scripts/check-compile-autoload.sh` guard (self-tested, in verify CHECKS) keeps it that way. - cwd `.env` quarantine: `GBRAIN_DATABASE_URL`, `GBRAIN_OAUTH_RELAY_URL`, OpenSSL config/engine/module loaders, temp roots and HOME/USERPROFILE join the protected set; the neutral hop dir is realpath'd; signal handlers are installed before the spawn; non-tty wrappers forward SIGINT once; guardrails fail closed when a dropped GBRAIN_GUARDRAILS_MODULE had a value. - secret-scan: PEM header-line cursor is O(text) on newline-free tails; bounded bearer echo pass redacts bare re-occurrences of claimed tokens. - transcripts ingest: raw-metadata probe reads active rows only. - Tests: afterAll cleanup, execArgv/SIGHUP/chdir-back pins, pty SIGINT, perf pins; docs/CHANGELOG/TODOS/KEY_FILES/SECURITY updated; llms + skills.lock + plugin trees regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix: pre-landing review fixes, cycle 4 (v0.50.2.0 security wave) Cross-model adversarial pass (Codex) + Claude verifier findings: - env-trust: shell-startup / interpreter-home family (BASH_ENV, SHELLOPTS, PS4, BASHOPTS, PROMPT_COMMAND, ZDOTDIR, PYTHONHOME, PERLLIB, GCONV_PATH, BASH_FUNC_* prefix) protected; sh `ENV` deliberately excluded. - cli-preflight: config-dir exemption refused when the cwd .env assigns GBRAIN_HOME/HOME/USERPROFILE; wrapper removes pre-existing signal listeners so its exit is always the child's; SIGINT forwarded only without a controlling terminal (/dev/tty probe); a dropped planted HOME is restored from the passwd home; script-mode runs warn once when the cwd bunfig.toml declares a top-level preload. - secret-scan: overlapping matches redact the UNION of matched spans; echo pass covers bearer + high-entropy values (64 unique, <=512 chars) via per-value sweeps over unclaimed gaps only; planRedaction/ applyRedaction share a session-wide echo dictionary in transcripts render. - sources_remove keys on write authority (assertSourceInCallerWriteScope); federated read grants confer no removal right. - delete_page --purge retries the tombstone's file removal and fails closed (storage_error) while the file remains. - Docs: SECURITY.md quarantine example no longer uses the one key that refuses instead of re-running; KEY_FILES/CHANGELOG/TODOS updated; llms. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * v0.50.3.0 chore: re-bump the security wave to 0.50.3.0 (master claimed 0.50.2.0 in #5122) Five-file lockstep + BOOTSTRAP stamp + CHANGELOG header/date + TODOS follow-up refs + bun.lock, template repo and plugin trees regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix: pre-landing review fixes, cycle 5 — Codex structured-review gate (v0.50.3.0 security wave) - cli-preflight: hop marker carries the wrapper pid; a verified re-run arms an unref'd 1 s watchdog and exits 137 (removing its neutral dir) when the wrapper is force-killed, so supervisor restarts never orphan a worker; relative path-bearing runtime flags (--preload/-r/--require/--import, --config/-c, --env-file, --tsconfig-override) are resolved against the original cwd before the hop. - secret-scan: echo pass is a streaming leftmost-longest merge with O(values) retained state (Codex repro: 64 short claims + 2 MiB repetitive tail went from +233 MiB RSS / 1.4 s to +16 MiB / 140 ms); repetitive tails are now covered wall-to-wall. - Docs: KEY_FILES, SECURITY.md, CHANGELOG; llms regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs: update project documentation for v0.50.3.0 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(ci): green the three failing checks on the v0.50.3.0 wave - semgrep: six `nosemgrep` suppressions with justifications for the path-join/resolve and non-literal-RegExp taint heuristics on operator- controlled cwd/flag paths and compile-time pattern sources (no behaviour change). - test (2): the two pty Ctrl-C pins ran the wrapper through `script -c`'s intermediate /bin/sh; on ubuntu-latest that is dash, which re-raises the pty's SIGINT on itself after the child exits (130) instead of relaying the child's 42. The pty command now `exec`s the wrapper so no shell stays in the foreground group; documented in a `ptyCommand` helper. - Selected E2E: with --enable-dcr, OAuth discovery now advertises exactly the self-registration ceiling (`read write`) via `scopesSupportedForDiscovery`, so a connector that copies `scopes_supported` into /register succeeds (master's #5122 pin); without DCR the full operator list minus `agent` is unchanged. Sibling e2e assertions that expected privileged scopes on the DCR-enabled server updated; unit + PGLite e2e pins added; docs/TODOS/CHANGELOG/KEY_FILES updated; llms regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * v0.50.5.0 chore: re-bump the security wave to 0.50.5.0 (master claimed 0.50.4.0 in #5131) Five-file lockstep + BOOTSTRAP stamp + CHANGELOG header + TODOS follow-up refs + bun.lock, template repo and plugin trees regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
14 KiB
Minions shell jobs — move deterministic crons off the gateway
30 seconds
# Run your first shell job:
GBRAIN_ALLOW_SHELL_JOBS=1 gbrain jobs submit shell \
--params '{"cmd":"echo hello","cwd":"/tmp"}' --follow
# → exit_code: 0, stdout_tail: "hello\n", duration_ms: 43
That's it. Your cron scripts now have a home with retry, backoff, DLQ, and
gbrain jobs list visibility, without each one booting a full LLM session.
PGLite users: gbrain jobs work does not run on PGLite (exclusive file
lock). Every crontab invocation must use --follow for inline execution.
Postgres users can run a persistent worker; see recipes below.
Why it exists
If your agent runs deterministic scripts from cron (token refresh, API fetch, scrape + write), each one pays the cost of a full LLM session on the gateway. Fourteen simultaneous fires on a Series A deployment pin CPU at 100% and block live messages. None of those scripts need reasoning. They need a shell.
Shell jobs move them to the Minions worker: one deterministic-script execution per cron, zero LLM tokens, unified visibility and retry.
Security model (read this)
Shell exec is a large blast radius. We ship two independent gates, both must pass:
- MCP boundary.
submit_jobwithname: 'shell'is rejected whenctx.remote === true(MCP callers). Independent of the env flag. Remote agents can never submit shell jobs.MinionQueue.add('shell', ...)has its own guard too, so an in-process handler can't programmatically bypass this. - Worker opt-in. The shell handler is ALWAYS registered on the worker, but
it is guarded: unless the worker was started with
gbrain jobs work --allow-shell-jobs(equivalently,GBRAIN_ALLOW_SHELL_JOBS=1exported in the worker's environment), a claimed shell job throwsUnrecoverableErrorand goes straight todead(no retries). Default: off. Your agent opts in per-host. A.envfile in the worker's working directory cannot set the variable — gbrain ignores it there. (Always-registered guarded mode — not "unregistered", so unflagged workers fail shell jobs loudly instead of leaving themwaitingforever.)
What the env allowlist does AND does not do. Shell jobs run with a minimal
env: PATH, HOME, USER, LANG, TZ, NODE_ENV. Your secrets like OPENAI_API_KEY
and DATABASE_URL are NOT passed to the child. You opt-in additional keys per
job via env: { ... } (non-secret values only — see "Secrets" below) or via
inherit: ["database_url"] (recommended for secrets — names only in the row,
values resolved at child-spawn from gbrain config set). This stops accidental
$OPENAI_API_KEY interpolation in a user-authored script. It does not
sandbox filesystem reads: a shell script can cat ~/.env or any file the
worker process can read. The operator picks a safe cwd. That is the trust
boundary.
Audit trail, not forensic insurance. Every submission writes a JSONL line
to ~/.gbrain/audit/shell-jobs-YYYY-Www.jsonl (ISO-week rotation; override
with GBRAIN_AUDIT_DIR). Failures log to stderr and don't block submission, so
a disk-full adversary could silently disable the trail. Good for "what did
this cron submit last Tuesday", not for security-critical forensics.
The command text is logged as-is. If you embed a secret in cmd
(curl -H 'Authorization: Bearer ...'), it shows up in the audit file. Put
secrets in env: instead.
Migrate a cron
Postgres worker (recommended)
On one terminal, start a persistent worker:
gbrain jobs work --allow-shell-jobs # or: GBRAIN_ALLOW_SHELL_JOBS=1 gbrain jobs work
Rewrite crontab to submit shell jobs (no --follow):
# Before (LLM gateway):
# OpenClaw cron: x-garrytan-unified
# After (Minions worker):
3 13,16,19,22,1,4,7,10 * * * \
gbrain jobs submit shell \
--params '{"cmd":"node scripts/x-garrytan-daily.mjs","cwd":"/data/.openclaw/workspace"}' \
--max-attempts 3 --timeout-ms 300000
Worker claims the job on next poll, runs it, records exit_code +
stdout_tail + stderr_tail in the result. Failures retry per
--max-attempts with exponential backoff.
PGLite (inline execution)
PGLite doesn't support the persistent worker daemon. Every crontab invocation
uses --follow to run inline:
# Each cron tick spawns a short-lived worker that runs the job inline.
3 13,16,19,22,1,4,7,10 * * * \
GBRAIN_ALLOW_SHELL_JOBS=1 gbrain jobs submit shell \
--params '{"cmd":"node scripts/x-garrytan-daily.mjs","cwd":"/data/.openclaw/workspace"}' \
--follow --timeout-ms 300000
Note: --follow blocks the crontab slot until the job finishes. If 14 shell
crons land at the same minute and each takes 30s, they serialize through
crontab's spawning limits. Postgres + persistent worker scales better.
Calling gbrain itself from a shell job — use inherit: for DATABASE_URL
A common pattern is submitting shell jobs that run gbrain CLI commands:
gbrain jobs submit shell --params '{
"cmd": "gbrain sync --skip-failed && gbrain embed --stale",
"cwd": "/data/gbrain",
"inherit": ["database_url"]
}'
inherit: ["database_url"] tells the worker to look up database_url from its
own loadConfig() (file + env merged) and inject the value into the child's
env as GBRAIN_DATABASE_URL. The job row in minion_jobs.data stores
inherit: ["database_url"] — names only, never values. The shell-audit
JSONL records the same. Pre-enqueue validation rejects the submission if the
worker can't resolve the requested key, with a paste-ready
gbrain config set database_url <value> hint (that command is file-plane
routed — it writes ~/.gbrain/config.json, exactly where the worker's
loadConfig() looks, and works even when the DB is unreachable).
Why not just write the URL into env: directly? You can:
// ❌ Works, but plants the secret in the job row. Prefer inherit:.
{
"cmd": "gbrain stats",
"cwd": "/data/gbrain",
"env": { "GBRAIN_DATABASE_URL": "postgresql://..." }
}
This plants plaintext secrets in minion_jobs.data (DB row) and in the
shell-audit JSONL. Anyone with read access to the brain DB (or a brain dump,
or a shared brain via the mounts feature) sees the URL. The validator
doesn't forbid the pattern — it trusts the agent — but prefer
inherit: for any secret you want kept out of the row. Names land in the
row; values resolve at child-spawn from the worker's config.
Scope: inherit: is free-form. Pass any snake_case
config-key name and the worker resolves the value from loadConfig() at
child-spawn time:
inherit: ["database_url"]→ child envGBRAIN_DATABASE_URLinherit: ["anthropic_api_key"]→ child envANTHROPIC_API_KEYinherit: ["openai_api_key"]→ child envOPENAI_API_KEYinherit: ["openrouter_api_key"]→ child envOPENROUTER_API_KEYinherit: ["voyage_api_key"]→ child envVOYAGE_API_KEYinherit: ["groq_api_key", "zeroentropy_api_key"]→ both injected- Or any arbitrary config-key your worker has (
my_custom_field→MY_CUSTOM_FIELD)
The env-key name is derived by uppercasing the config-key name. The one
override is database_url → GBRAIN_DATABASE_URL (plain DATABASE_URL is
ambiguous in most Postgres-app contexts).
Pre-enqueue validation fail-fasts if the worker can't resolve a requested name. The validator does NOT police which secrets you choose to inherit — the agent submitting the minion is in the same uid as the worker, so it's your call.
Output-side leakage (read this). The inherit: allowlist prevents
secrets from landing in the JOB ROW INPUT fields (data.cmd, data.argv,
data.env). By default it does NOT scrub the OUTPUT fields — if your
script prints the secret to stdout or stderr (echo "$GBRAIN_DATABASE_URL",
psql "$GBRAIN_DATABASE_URL" echoing the URL on error), the value lands
plaintext in result.stdout_tail / result.stderr_tail / error_text,
and from there into the brain DB row.
redact_secrets: true opts into output-side scrubbing. Set it per-job
(or pass --redact-secrets on the CLI):
gbrain jobs submit shell --params '{
"cmd": "gbrain sync --skip-failed",
"cwd": "/data/gbrain",
"inherit": ["database_url"],
"redact_secrets": true
}'
# Or, equivalently:
gbrain jobs submit shell \
--params '{"cmd":"gbrain sync --skip-failed","cwd":"/data/gbrain","inherit":["database_url"]}' \
--redact-secrets
When redact_secrets: true, the worker resolves each name in inherit: to
a value, runs the child, then string-replaces every occurrence of those
values in stdout_tail / stderr_tail (and in the error_text derived from
stderr_tail on non-zero exit) with <REDACTED:name> before persistence.
Only inherit:-resolved values are scrubbed; caller-supplied env: values
are not (those are the "I'm fine with this in the row" channel by design).
Heuristic, not perfect. The redactor uses literal string-replace. A script that base64-encodes the secret before printing, or that emits it one character at a time, will bypass the scrub. Those are adversarial shapes — the agent + the script are in the same trust domain, so this layer defends against accidental echo (the common case), not deliberate exfiltration.
Three rules for shell-job authors who deal with secrets:
- Prefer not to echo secrets at all. Even with
redact_secrets, less output means less risk if the redactor ever has an edge-case miss. - Wrap noisy CLI tools to suppress URLs on error.
psql --quiet,pg_dump --quiet, or pipe through2>&1 | sed 's|postgresql://[^@]*@|postgresql://REDACTED@|g'. - Inspect with
gbrain jobs get <id>after a failure to verify what actually persisted.
Submitting with argv (no shell interpolation)
For programmatic callers assembling commands from JSON, use argv instead of
cmd. No shell, no injection surface:
gbrain jobs submit shell \
--params '{"argv":["node","scripts/fetch.mjs","--date","2026-04-19"],"cwd":"/data"}' \
--follow
Debug a failed job
# List dead shell jobs
gbrain jobs list --status dead
# Inspect one
gbrain jobs get 42
# → error_text, stacktrace, result.stdout_tail, result.stderr_tail
# Submission audit log (operator trail, not forensic)
cat ~/.gbrain/audit/shell-jobs-*.jsonl | jq '.'
# First-time failure mode: submitted without env flag on the worker.
# The handler is always registered but guarded: an unflagged worker that claims
# a shell job dead-letters it immediately (UnrecoverableError, no retries).
gbrain jobs list --status dead --name shell
# → error_text: "shell handler disabled on this worker (start it with --allow-shell-jobs or GBRAIN_ALLOW_SHELL_JOBS=1 ...)"
# `waiting` pileups mean NO worker is running at all (flagged or not) — check
# `gbrain jobs supervisor status` in that case.
Limitations
- Filesystem reads are not sandboxed. See "Security model" above. Don't
point
cwdat a directory full of secrets. - Audit log is advisory. Disk-full or EACCES silently disables it.
- Cancel latency is lock-renewal-bounded (~7-15 s by default). A cancelled child keeps running until the next lock-renewal tick fails.
--followclaim order is by priority/created_at. If another job is waiting in the same queue at the time of--follow, that one runs first.cwdsymlink TOCTOU. The absolute-path check doesn't guard against symlinks pointing elsewhere at execution time. Operator-scope concern.
Errors
| Error | What it means | Fix |
|---|---|---|
shell: specify exactly one of cmd or argv |
cmd and argv are mutually exclusive. Both absent is also invalid. |
Choose one. cmd for shell-interpolated strings; argv for structured args. |
shell: cwd is required and must be an absolute path |
cwd must be a string starting with /. |
Set cwd in --params to an absolute path. |
shell: argv must be an array of strings |
argv has a non-string entry or isn't an array. |
Pass argv: ["bin","arg1","arg2"]. |
shell: env values must all be strings |
env has a number/bool/object value. |
Stringify: "env":{"COUNT":"3"} not "env":{"COUNT":3}. |
shell: inherit must be an array of config-key names |
inherit wasn't an array. |
Pass "inherit": ["database_url", ...]. |
shell: inherit entries must be non-empty strings |
An element of inherit was empty, non-string, or null. |
Use snake_case config-key names like database_url, anthropic_api_key. |
shell: inherit name "<X>" must match [a-z][a-z0-9_]* |
Name failed snake_case regex (uppercase, leading digit/underscore, special char). | Use the config-key name verbatim — database_url, not DATABASE_URL. |
shell: inherit requested "<X>" but worker has no <X> configured |
Worker can't resolve the requested name from loadConfig(). |
Run gbrain config set <X> <value> on the worker host, OR check the config file at ~/.gbrain/config.json. |
shell: redact_secrets must be a boolean if set |
Caller passed a non-boolean for redact_secrets. |
Pass true or false (or omit). The CLI --redact-secrets flag sets it automatically. |
permission_denied with an unsupported remote job message |
An MCP client tried to submit a shell job. Shell submission requires local authority. | Submit from the local CLI or an authorized application handler. |
protected job name 'shell' requires CLI or operation-local submitter |
An application called MinionQueue.add('shell', ...) without the protected-job opt-in. |
An authorized local submitter supplies { allowProtectedSubmit: true } as the fourth argument. The local CLI handles this; remote submit_job cannot grant it. |
aborted: timeout / aborted: cancel / aborted: shutdown / aborted: lock-lost |
The worker's abort signal fired mid-execution. Child got SIGTERM, 5s grace, then SIGKILL. | Expected: timeout / user cancel / deploy restart / stall. Inspect gbrain jobs get to see which. |
exit N: <stderr_tail_500> |
Script exited non-zero. | Read stderr_tail in gbrain jobs get. |