Commit 6d98ce6
authored
refactor: standardize bot identity to shadow (match deequ) (#278)
* Standardize bot identity to shadow (match deequ)
Rename the bot's user-facing identity from deequ-bot to shadow so all three
migrated repos (deequ, python-deequ, dqdl) are uniform. The migration PR kept
the legacy deequ-bot name to avoid touching auto-approve.yml; this aligns it
with the shared engine's home project.
bot.name, the auto-approve clean marker, the workflows[] trigger entry, and
the caller workflow name all move in lockstep — changing any one alone breaks
the marker match and silently disables auto-approve.
- .shadow.yml: bot.name deequ-bot -> shadow
- auto-approve.yml: CLEAN_MARKER + workflows[] entry -> shadow / Shadow
- issue-bot.yml: workflow name PyDeequ Bot -> Shadow
(prompt_sm_prefix stays pydeequ-bot — that is the Secrets Manager namespace, not the bot identity.)
* Doc hygiene: restore caller comment + clarify model-pin override
- issue-bot.yml: re-add deequ's comment explaining BEDROCK_REPORTER/CRITIC_MODEL_ID
are sourced from repo variables (empty falls back to engine defaults)
- .shadow.yml: note the BEDROCK_MODEL_ID secret overrides models.investigator
(live opus-4-8), so the yaml value is the fallback; critic has no secret so it
runs the yaml value
* Harden auto-approve: never self-approve guardrail changes
Add a check that skips auto-approval when a PR modifies .github/** or
.shadow.yml. Without it, a PR that weakens the approval gate (or repoints the
bot at a different engine) is approved by the very gate it edits. Paginates
listFiles so a large PR cannot slip a guarded file past a 30-item page.1 parent db9e873 commit 6d98ce6
3 files changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
58 | 73 | | |
59 | 74 | | |
60 | 75 | | |
| |||
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
75 | | - | |
| 90 | + | |
76 | 91 | | |
77 | 92 | | |
78 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments