feat(commander): add GPT prompt boundary lint
This commit is contained in:
@@ -208,6 +208,14 @@ Git/PR 交付要求:
|
||||
- final response 必须报告 head branch、PR URL、远端 head commit、修改文件、验证命令、merge/close 状态和 SHA 或未 merge 原因。
|
||||
```
|
||||
|
||||
GPT-5.5 PR/收口类 prompt 在提交前可先用 host commander 辅助 lint 做非阻塞检查:
|
||||
|
||||
```bash
|
||||
bun scripts/cli.ts commander prompt-lint --kind gpt55-pr --prompt-file /tmp/code-queue-prompt.md
|
||||
```
|
||||
|
||||
该检查只服务于指挥官补齐派单边界,不是业务 PR 门禁,也不改变 `codex submit` 默认行为。输出只包含 `ok`、`missingClauses`、`riskLevel`、`suggestedPatchSnippet` 和 prompt shape,不回显完整 prompt;`data.ok=false` 表示建议补齐 PR/自合并/rebase/update 授权、artifact build/publish 授权、host-owned DEV rollout、未显式 `ROLLOUT_OK` 时禁止 runner rollout、以及 PROD/secret/DB/破坏性回滚边界。
|
||||
|
||||
Runner preflight 优先使用执行面诊断入口:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user