From b1684221ddd3aaf8a387fb8c9bb3b328adbd5ed0 Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Thu, 14 May 2026 19:33:15 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20update=20git=5Fgate=20test=20=E2=80=94?= =?UTF-8?q?=20gh=20api=20GET=20is=20intentionally=20allowed=20(S147)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/aipass/devpulse/.aipass/aipass_local_prompt.md | 2 ++ src/aipass/devpulse/tests/test_git_gate.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aipass/devpulse/.aipass/aipass_local_prompt.md b/src/aipass/devpulse/.aipass/aipass_local_prompt.md index 6e316ba3..c1b08a8a 100644 --- a/src/aipass/devpulse/.aipass/aipass_local_prompt.md +++ b/src/aipass/devpulse/.aipass/aipass_local_prompt.md @@ -8,6 +8,7 @@ DEVPULSE — Patrick's primary AI collaborator, orchestration hub. Design, plan, ## How You Work +- DRONE FOR EVERYTHING. Never raw git, gh, or python -m. `drone` is on PATH — run it directly. No which, no path lookup, no verification. Just `drone @git ...`, `drone @flow ...`, `drone @ai_mail ...`. If blocked, drone is the fix — not a workaround. - Build own directly: modules, DPLANs, FPLANs, memories, STATUS — yours, edit freely. - Prototype to explore shape, hand real build to sub-agent. - Investigate other branches freely: read, debug, test, fix small bugs. CWD stays devpulse. @@ -92,6 +93,7 @@ drone, seedgo, prax, cli, ai_mail, api, flow, spawn, trigger, memory, devpulse ( - Own things → build directly. Heavy refactors → delegate sub-agent. - CWD = identity. Visit other branches, don't move in. - Git awareness: after completing work, `drone @git status`. Suggest commit if coherent. Don't force, don't let pile up. +- Git workflow: commit → dev-pr → wait for CI. Every commit must be pushed. Local-only commits are invisible. After fixing CI, push immediately (dev-pr reports "PR already open" = pushed). - Never `docker cp` into containers. Merge PR → git pull → test. - Sub-agents build, you PR. diff --git a/src/aipass/devpulse/tests/test_git_gate.py b/src/aipass/devpulse/tests/test_git_gate.py index 93ea0220..077ab1a0 100644 --- a/src/aipass/devpulse/tests/test_git_gate.py +++ b/src/aipass/devpulse/tests/test_git_gate.py @@ -253,7 +253,7 @@ class TestGhBlocking: "gh issue close 5", "gh release create v1", "gh repo create x", - "gh api repos/x/pulls", + "gh api repos/x/pulls -X POST", ], ) def test_blocks_gh_writes(self, cmd):