Skip to content

docs(security): document execution-environment constraints#24

Merged
smartwatermelon merged 1 commit into
mainfrom
claude/security-methodology-env-notes-20260429
Apr 29, 2026
Merged

docs(security): document execution-environment constraints#24
smartwatermelon merged 1 commit into
mainfrom
claude/security-methodology-env-notes-20260429

Conversation

@smartwatermelon
Copy link
Copy Markdown
Owner

Summary

Captures the lesson from the 2026-04-29 Q2 validation run of the recurring audit agent (routine trig_01JaKYSFQhPJoc3jADyQPBgM, audit issue dev-env#23).

The agent ran successfully but encountered two environment-level constraints that aren't methodology defects but ARE worth documenting so future quarterly runs (and humans reading those audit issues) treat them as expected:

  1. gh CLI may not be present in the cloud sandbox. Agent falls back to MCP GitHub tools (code search + file reads), which can detect Patterns 1, 2, 3, 5, 7, 8, 9 from workflow content but cannot reach the workflow-permissions API (Pattern 6) or perform git reachability analysis (Pattern 4).
  2. MCP write scope may be limited to smartwatermelon/dev-env. Issue creation works; cross-repo draft PR creation may fail. The agent skips cleanly with PR creation skipped for repo X: <reason> rather than retrying or aborting.

Doc additions

A new ## Execution environment notes section after ## Recurring audit, with three subsections:

  • Constraint 1 — gh CLI may be unavailable — what's covered, what's not, and the local-verify one-liner for Pattern 6.
  • Constraint 2 — MCP write scope may be narrow — the skip behavior and the manual-application escape hatch.
  • When to upgrade the environment — the three signals that would justify switching environment_id.

Also appends the Q2-auto-validation row to the audit-history table at the bottom of the doc.

Test plan

  • Doc renders cleanly on GitHub
  • Local one-liner from Constraint 1 still produces empty output (we verified during the Q2 run review — no regressions)
  • Next quarterly run (2026-07-01) can read the updated doc without the integrity gate firing

🤖 Generated with Claude Code

The 2026-04-29 Q2 validation run of the recurring audit agent
(routine trig_01JaKYSFQhPJoc3jADyQPBgM, issue dev-env#23) surfaced two
environment-level constraints not previously documented:

1. The cloud sandbox may not have `gh` CLI. The agent falls back to
   MCP GitHub tools (code search + file reads), which can detect
   Patterns 1, 2, 3, 5, 7, 8, 9 from workflow content but cannot reach
   the workflow-permissions API (Pattern 6) or perform git reachability
   analysis (Pattern 4).

2. MCP write scope may be limited to smartwatermelon/dev-env. Issue
   creation works; cross-repo draft PR creation may fail.

These are NOT methodology defects — the agent correctly reports them
as PARTIAL coverage and skips PRs cleanly. The new "Execution
environment notes" section documents:

- What each constraint blocks (specific patterns and operations).
- The local-verify workflow for Pattern 6 (matches the inaugural-audit
  one-liner that was used during the Q2 run validation).
- When to consider switching environment_id (5+ skipped PRs/quarter,
  recurring PARTIAL on Pattern 6, or new patterns needing other API
  scope).

Also appends the Q2 auto run to the audit history table.

Q2 audit summary: 0 NEW, 0 RESOLVED, 1 UNCHANGED (the Tier-3
fetch-metadata@v3 finding already tracked in dev-env#19). Pattern 6
verified clean locally during Q2 run review (no regressions on the
ralph-burndown / mac-server-setup flips from the inaugural audit).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@smartwatermelon smartwatermelon merged commit 4149def into main Apr 29, 2026
2 checks passed
@smartwatermelon smartwatermelon deleted the claude/security-methodology-env-notes-20260429 branch April 29, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant