Repository navigation
Commit f6a9017
committed
chore(prompts): extend reward-hacking self-check to remaining providers
PR #30 (RES-904) added the five-item reward-hacking integrity gate to
anthropic.txt, default.txt, and beast.txt only — leaving gpt-5.x,
gemini-3.x, codex, kimi, and trinity sessions able to bypass the gate
by switching the model picker. Close that gap by adding the gate to
all five remaining provider prompts in `SystemPrompt.provider()`:
- gpt.txt — concise collaborator voice
- gemini.txt — bold-prefixed Core-Mandates style
- codex.txt — terse, CLI-tooling voice
- kimi.txt — general-coding voice, no scientific addendum
- trinity.txt — compressed five-item variant to match the
brevity-first tone of the prompt
Each variant carries the same five items (literal-vs-spirit, cheap
wins, adversarial self-review, uncertainty disclosure, revise-or-
refuse). gpt / gemini / codex also carry the scientific-writing
addendum on speculative-pathway / citation-fabrication / evidence-
verb discipline. kimi and trinity skip the addendum because those
prompts target general software work, not scientific writing.
Sanity checks done:
- bun run typecheck — pass
- bun test test/session/system — 1/1 pass
- bun run build --single — sidecar rebuilds, smoke ok
- `strings opencode-cli` on the rebuilt sidecar — eight matches each
for "Reward-hacking self-check", "Literal vs. spirit", "Cheap wins"
(one per provider prompt baked in)1 parent 1a3029b commit f6a9017
5 files changed
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
0 commit comments