Skip to content

agent-policy.yml sensitive_paths doesn't cover .circleci/config.yml despite it mirroring sensitive GH Actions workflows #441

Open

Description

@github-actions

Context

Discovered during principal review of #440 (fix(ci): escape heredoc << in CircleCI ios-testflight config).

.github/agent-policy.yml's sensitive_paths list includes .github/workflows/**, fastlane/**, **/*.keystore, **/keystore.properties, **/*signing*, and **/ExportOptions*.plist specifically because changes to CI/CD and release plumbing "always need a human merge decision, never auto-merge" (that exact rationale is spelled out in #376's issue body, discussing the original .github/workflows/** entry).

Since #377/#378/#379 (CircleCI parity phases A–C, all merged), .circleci/config.yml now mirrors most of those same sensitive workflows in a single file: release.yml (build+sign), android-firebase-distribution.yml, and ios-testflight.yml (including the exact ExportOptions.plist generation step that **/ExportOptions*.plist was written to protect — just inline as a heredoc inside the CircleCI job instead of a standalone file). None of that is covered by any sensitive_paths glob: .circleci/** isn't listed anywhere in the policy.

Verified impact

Confirmed with .github/scripts/classify_pr_risk.py against the current policy: a change to .circleci/config.yml under 400 changed lines classifies risk:low and is eligible for full unattended auto-merge, regardless of what it touches inside that file — including edits to the signing/export/TestFlight-upload steps that would force human-merge if the equivalent logic changed in fastlane/** or .github/workflows/ios-testflight.yml instead.

$ python3 .github/scripts/classify_pr_risk.py origin/dev origin/fix/circleci-heredoc-template-collision
risk:low
diff is 5 changed lines and touches no sensitive path

Suggested fix

Add .circleci/config.yml (or .circleci/** if more files are expected there later) to sensitive_paths in .github/agent-policy.yml, matching the existing GH-Actions-workflow entry it's meant to parallel.

Note on #440 itself

Not treated as blocking for #440: that PR's own change is a single-character escape fix I independently reproduced and verified (see review comment on #440) — the classification held up under the current policy, this issue is about the policy's coverage going forward.

Activity

  1. added
    status:triage
    on Aug 22, 2026
  2. libravault-xyz commented on Aug 22, 2026

    @libravault-xyz
    Collaborator

    Automated pipeline health check: Same silent trust-gate skip as #388/#408/#409/#433/#437 — see #453 for the full writeup. This issue's issues:opened dev-agent run (run 32585973379) was skipped in ~1s because its author (github-actions[bot]) is associated as CONTRIBUTOR, not OWNER/MEMBER/COLLABORATOR. No comment was ever posted about it, so it's sat on status:triage untouched since 2026-08-22 ~16:51.

    Not self-healing — a human should manually apply status:ready-for-dev if this is ready to scope, or address #453 first.


    Generated by Claude Code

  3. github-actions commented on Aug 24, 2026

    @github-actions
    ContributorAuthor

    Pipeline is at capacity (6/3 active runs) — skipping this run. Re-apply status:ready-for-dev once activity settles, or re-trigger manually via workflow_dispatch.

  4. added
    status:ready-for-dev
    on Aug 24, 2026
  5. libravault-xyz commented on Aug 24, 2026

    @libravault-xyz
    Collaborator

    Automated pipeline health check: This is still blocked by the same author-association trust gate (this issue's author github-actions[bot] is CONTRIBUTOR, not OWNER/MEMBER/COLLABORATOR) — re-applying status:ready-for-dev won't get past it, per dev-agent.yml's trust boundary.

    New finding, not one of the five known pipeline failure patterns this routine tracks: the explain-trust-gate-skip job added to fix #453 (so trust-gate skips wouldn't sit in total silence) is itself failing before it can post its explanation. It has no actions/checkout step, and its gh issue comment call has no --repo/GH_REPO, so gh can't infer which repository to target:

    failed to run git: fatal: not a git repository (or any of the parent directories): .git
    ##[error]Process completed with exit code 1.
    

    Confirmed in the job log for run 32717435512 (this issue's 10:39 UTC relabel). The identical failure hit #437's equivalent run (32717429634) minutes earlier — so this is a fresh regression in the #453 fix itself, not specific to this issue's content.

    Not self-healing: .github/workflows/dev-agent.yml is a sensitive path. To move this forward: someone with write access can trigger Dev Agent manually (Actions → Dev Agent → Run workflow, issue_number = 441), or this content can be refiled by an OWNER/MEMBER/COLLABORATOR account. Separately, explain-trust-gate-skip's gh issue comment step needs an actions/checkout (or an explicit --repo ${{ github.repository }}) so it can actually post its explanation going forward — worth its own tracked issue.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:ready-for-devstatus:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions