Skip to main content

harness_bash/
constants.rs

1pub const DEFAULT_INACTIVITY_TIMEOUT_MS: u64 = 60_000;
2pub const DEFAULT_WALLCLOCK_BACKSTOP_MS: u64 = 300_000;
3pub const MAX_COMMAND_LENGTH: usize = 16_384;
4pub const MAX_OUTPUT_BYTES_INLINE: usize = 30_720;
5pub const MAX_OUTPUT_BYTES_FILE: usize = 10 * 1024 * 1024;
6pub const BACKGROUND_MAX_JOBS: usize = 16;
7pub const KILL_GRACE_MS: u64 = 5_000;
8/// TTL for completed background jobs (7 days). After this, metadata is
9/// pruned on next executor creation or explicit cleanup.
10pub const BACKGROUND_JOB_TTL_SECS: u64 = 7 * 24 * 60 * 60;
11
12/// Env var prefixes the tool refuses to let the model set. Mirrors the
13/// TS `SENSITIVE_ENV_PREFIXES` list.
14pub const SENSITIVE_ENV_PREFIXES: &[&str] = &[
15    "AWS_",
16    "BEDROCK_",
17    "GITHUB_TOKEN",
18    "GH_TOKEN",
19    "OPENAI_API_KEY",
20    "ANTHROPIC_API_KEY",
21    "GOOGLE_API_KEY",
22    "GEMINI_API_KEY",
23    "NPM_TOKEN",
24    "DOCKERHUB_TOKEN",
25    "SLACK_",
26    "STRIPE_",
27];