Skip to content

Commit 6a2f42d

Browse files
authored
Merge pull request xencon#1719 from sbadakhc/issue-1718/final-pr-rails
Deny raw gh pr create and fix agent identity in seed memory (xencon#1718)
2 parents 98b0254 + 9b42b95 commit 6a2f42d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.opencode/memory/working-conventions.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ Seed memory for the Qwen agent, written at onboarding (2026-07-02).
1818
- **Pre-commit fixers re-stage.** If a commit fails on trailing-whitespace
1919
or end-of-file hooks, the files are already fixed in the working tree:
2020
`git add` them and retry. Never use `--no-verify`.
21+
- **Your identity for agent identification blocks is:**
22+
`OpenCode (aixcl-local/qwen3-coder:30b-32k)`. Do NOT copy the example
23+
from AGENTS.md Section 9.5 -- that names a different agent.
24+
- **Write PR and issue bodies to /tmp files** and pass `--body-file`.
25+
Inline body strings turn your newlines into literal backslash-n text.
26+
- **Create PRs only with `./scripts/utils/create-pr.sh`** -- it targets
27+
base dev and sets assignee and labels at creation time. Raw
28+
`gh pr create` is denied by permissions; a refusal there means use the
29+
script, not that PR creation is unavailable.
30+
- **After a compaction event, re-verify your edits exist on disk**
31+
(`git status`, `git diff`) before reporting progress -- the snapshot
32+
layer can roll back the working tree.

config/opencode.json.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"git commit*--no-verify*": "deny",
6161
"git commit*--no-gpg-sign*": "deny",
6262
"gh pr merge*": "deny",
63+
"gh pr create*": "deny",
6364
"gh release*": "deny",
6465
"./aixcl release tag*": "deny",
6566
"./aixcl utils prune*": "deny"

0 commit comments

Comments
 (0)