Skip to content

Refuse GitHub API writes to protected branches in shared policy (T41) #197

Closed

Description

@erickb336

Sage task T41

Build the independent shared-policy part of #99. Refuse GitHub API writes to main or master through REST ref and contents routes and GraphQL branch mutations. Preserve ordinary GET requests and unrelated issue writes. Refuse opaque request bodies when the shared policy cannot verify a protected destination.

Scope: packages/sage-core/push-policy.mjs, provider bundle tests, and generated copies. Do not edit Claude's hook or any files owned by PR #140. The logbook-writer part remains in #99.

Prove the new regression test fails on detached main. Run build, check, the full local suite with fake process tools, exact-head CI, and two clean code/security/QA cycles. Risk: auth. This does not activate automatic Sage in Codex.

Activity

  1. added
    codex
    on Oct 13, 2026
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

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions