Skip to content

refactor: standardize bot identity to shadow (match deequ)#278

Merged
sudsali merged 3 commits into
masterfrom
standardize-bot-name-shadow
Jul 6, 2026
Merged

refactor: standardize bot identity to shadow (match deequ)#278
sudsali merged 3 commits into
masterfrom
standardize-bot-name-shadow

Conversation

@sudsali

@sudsali sudsali commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Standardizes the bot's user-facing identity from deequ-bot to shadow, matching awslabs/deequ and awslabs/dqdl. The Shadow engine migration kept the legacy deequ-bot name to avoid touching auto-approve.yml; this follow-up aligns the name with the shared engine's home project so all three repos are uniform.

What Changes

Four references move in lockstep — changing any one alone breaks the clean-marker match and silently disables auto-approval:

  • .shadow.ymlbot.name: deequ-botshadow (the engine renders <!-- {bot.name}:clean -->)
  • .github/workflows/auto-approve.ymlCLEAN_MARKER<!-- shadow:clean --> and the workflows[] trigger entry → "Shadow"
  • .github/workflows/issue-bot.yml — workflow name:Shadow

prompt_sm_prefix: pydeequ-bot is unchanged — that's the Secrets Manager namespace where this repo's prompts live, not the bot's display identity.

Behavior

Clean reviews now carry <!-- shadow:clean -->; the bot posts as "Shadow" and the footer already reads "Reviewed by Shadow". No functional change beyond the rename.

Note: a PR the bot reviewed before this merges carries the old <!-- deequ-bot:clean --> marker; auto-approve recognizes it again after the bot re-reviews (any new commit). Only affects in-flight PRs.

Rollback

Revert this PR — the four references return to deequ-bot / PyDeequ Bot in lockstep.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Also: harden auto-approve

Adds a Condition-0 guard so the bot never auto-approves a PR that touches .github/** or .shadow.yml (its own guardrails). This PR itself touches those paths, so it correctly requires human approval.

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.)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.


Generated by AI (model: us.anthropic.claude-opus-4-8, prompt: 295226dd) — may not be fully accurate. Reply if this doesn't help.
Reviewed by Shadow · github.com/sudsali/shadow

github-actions[bot]
github-actions Bot previously approved these changes Jul 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found and CI is passing. Auto-approved.


Generated by AI — human merge required.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.


Generated by AI (model: us.anthropic.claude-opus-4-8, prompt: 295226dd) — may not be fully accurate. Reply if this doesn't help.
Reviewed by Shadow · github.com/sudsali/shadow

github-actions[bot]
github-actions Bot previously approved these changes Jul 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found and CI is passing. Auto-approved.


Generated by AI — human merge required.

- 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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.


Generated by AI (model: us.anthropic.claude-opus-4-8, prompt: 295226dd) — may not be fully accurate. Reply if this doesn't help.
Reviewed by Shadow · github.com/sudsali/shadow

github-actions[bot]
github-actions Bot previously approved these changes Jul 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found and CI is passing. Auto-approved.


Generated by AI — human merge required.

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.


Generated by AI (model: us.anthropic.claude-opus-4-8, prompt: 295226dd) — may not be fully accurate. Reply if this doesn't help.
Reviewed by Shadow · github.com/sudsali/shadow

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found and CI is passing. Auto-approved.


Generated by AI — human merge required.

@sudsali sudsali marked this pull request as ready for review July 6, 2026 19:39
@sudsali sudsali merged commit 6d98ce6 into master Jul 6, 2026
12 checks passed
@sudsali sudsali deleted the standardize-bot-name-shadow branch July 6, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant