Skip to content

fix: scan-3 triage — 10 MAJOR findings from the 2026-09-28 full scan (Wave 1) #132

Closed

Description

@ajianaz

What problem does this solve?

The 2026-09-28 full cora scan (67 files — first full scan covering the scan-3 wave, acp, serve, mcp_server) found 102 issues: 10 MAJOR / 70 MINOR / 22 INFO. All 10 MAJORs are in code that landed after the previous triage (#92/#93) and has never been full-scanned.

Findings (all 10 MAJORs)

  1. turn.rs:199 — resume replays InvalidToolArgs intents by executing the tool with the raw string
  2. turn.rs:175 — pre-hook deny policy bypassed on crash-replay of Guarded effects
  3. subprocess.rs:207 — sh -c payload starting with - skips the destructive-argv scan
  4. storage.rs:969 — compact() failure after rename leaves the writer on an unlinked inode (silent commit loss)
  5. openai.rs:235 — tool settlements use parent_id as tool_call_id without verifying the parent is an intent
  6. serve.rs:124 — unbounded request-line/header buffering → pre-auth memory-exhaustion DoS
  7. session_host.rs:74 — new_session_id collision: millisecond timestamp + pid is not unique
  8. serve.rs:218 — sessions never evicted; long-running daemon grows without bound
  9. main.rs:387 — global --workspace/--memory silently ignored by serve/acp/mcp subcommands
  10. turn_loop.rs:661 — approval-matrix test doesn't test the deny path as labeled (test-only)

Plan

Fix + regression test per finding (house pattern from #92): verify against code first — real → fix; FP → dismiss with evidence. MINORs touched along the way.

Estimate

~1 day (Wave 1 of the hardening plan approved 2026-09-28).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions