Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(security): size Codex budget for full scan

Rahmanabe42bcde3f9
diff --git a/.github/workflows/codex-security.yml b/.github/workflows/codex-security.yml
index ae35f098..32cd0eb0 100644
--- a/.github/workflows/codex-security.yml
+++ b/.github/workflows/codex-security.yml
@@ -31,7 +31,7 @@ jobs:
CODEX_SECURITY_AUTH: api-key
CODEX_SECURITY_MODE: ${{ inputs.mode }}
CODEX_SECURITY_FAIL_ON_SEVERITY: high
- CODEX_SECURITY_MAX_COST_USD: "5"
+ CODEX_SECURITY_MAX_COST_USD: "15"
CODEX_SECURITY_MAX_TIME_HOURS: "1.5"
steps:
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index a07cbb09..7d8c3768 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -6,6 +6,10 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
## 2026-08-26
+**Fixed**
+
+- `security` size Codex budget for full scan
+
**Docs**
- refresh changelog
diff --git a/docs/SECURITY-ASSURANCE.md b/docs/SECURITY-ASSURANCE.md
index bec54009..cf2f704b 100644
--- a/docs/SECURITY-ASSURANCE.md
+++ b/docs/SECURITY-ASSURANCE.md
@@ -47,7 +47,7 @@ bun run security:ultimate
The command creates a `0700` private run directory under `~/.mso/security-assurance`, snapshots **tracked files only**, and runs the repository verification plus Trivy, OSV-Scanner, Gitleaks, Semgrep, ShellCheck, a full-repository Codex Security scan and the passive ZAP baseline. Detailed scanner output stays outside the repository. A failing scanner produces a failing command; the script does not convert scanner outages into security passes.
-Codex Security is intentionally not an automatic per-commit hosted gate because it consumes model/API budget. The published assurance gate uses Codex Security's stable full-repository `standard` mode. Deep mode remains available through `MSO_SECURITY_CODEX_MODE=deep`; the wrapper pins OpenAI's conservative deep example (2 discovery workers, 0 nested subagents, stop after 3 no-new runs, at most 10 discovery runs, 1.5-hour discovery ceiling), but a failed deep orchestration is never converted into a pass or advertised as a completed deep review. A maintainer can explicitly skip the Codex lane with `MSO_SECURITY_SKIP_CODEX=1`, but a run with a skipped lane must not be advertised as the full ultimate gate. ZAP is likewise skippable for offline development, but not for a published assurance run.
+Codex Security is intentionally not an automatic per-commit hosted gate because it consumes model/API budget. The published assurance gate uses Codex Security's stable full-repository `standard` mode. Its default $15 maximum is a fail-closed spending guard sized from an observed full MSO repository run, not a spending target; maintainers may lower or raise it explicitly with `CODEX_SECURITY_MAX_COST_USD`. Deep mode remains available through `MSO_SECURITY_CODEX_MODE=deep`; the wrapper pins OpenAI's conservative deep example (2 discovery workers, 0 nested subagents, stop after 3 no-new runs, at most 10 discovery runs, 1.5-hour discovery ceiling), but a failed deep orchestration is never converted into a pass or advertised as a completed deep review. A maintainer can explicitly skip the Codex lane with `MSO_SECURITY_SKIP_CODEX=1`, but a run with a skipped lane must not be advertised as the full ultimate gate. ZAP is likewise skippable for offline development, but not for a published assurance run.
## Reviewed Gitleaks fixtures
diff --git a/scripts/codex-security-scan.sh b/scripts/codex-security-scan.sh
index 61e772b6..32e96abe 100755
--- a/scripts/codex-security-scan.sh
+++ b/scripts/codex-security-scan.sh
@@ -6,7 +6,7 @@ VERSION="${CODEX_SECURITY_VERSION:-0.1.18}"
MODE="${CODEX_SECURITY_MODE:-standard}"
AUTH="${CODEX_SECURITY_AUTH:-auto}"
FAIL_ON="${CODEX_SECURITY_FAIL_ON_SEVERITY:-high}"
-MAX_COST="${CODEX_SECURITY_MAX_COST_USD:-5}"
+MAX_COST="${CODEX_SECURITY_MAX_COST_USD:-15}"
REPO_ROOT="$(git rev-parse --show-toplevel)"
REPO_NAME="$(basename "$REPO_ROOT")"
STATE_BASE="${XDG_STATE_HOME:-$HOME/.local/state}/codex-security"
diff --git a/scripts/security-ultimate.sh b/scripts/security-ultimate.sh
index aec5a21e..6977bd3d 100755
--- a/scripts/security-ultimate.sh
+++ b/scripts/security-ultimate.sh
@@ -73,7 +73,7 @@ fi
if [[ "${MSO_SECURITY_SKIP_CODEX:-0}" != "1" ]]; then
run_capture "Codex Security repository" env CODEX_SECURITY_MODE="${MSO_SECURITY_CODEX_MODE:-standard}" CODEX_SECURITY_FAIL_ON_SEVERITY=high \
- CODEX_SECURITY_MAX_COST_USD="${CODEX_SECURITY_MAX_COST_USD:-5}" \
+ CODEX_SECURITY_MAX_COST_USD="${CODEX_SECURITY_MAX_COST_USD:-15}" \
CODEX_SECURITY_OUTPUT_ROOT="$RUN_DIR/codex-results" \
CODEX_SECURITY_STATE_DIR="$RUN_DIR/codex-state" \
./scripts/codex-security-scan.sh