Skip to content

feat(#1957): wire gh-identity plugin into workspace-server - #2024

Merged
molecule-ai[bot] merged 1 commit into
stagingfrom
fix/gh-identity-plugin-role-env-v2
Apr 24, 2026
Merged

molecule-ai[bot] merged 1 commit into
stagingfrom
fix/gh-identity-plugin-role-env-v2

Conversation

@molecule-ai

@molecule-ai molecule-ai Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Cherry-pick f190ff4 from feat/1957-gh-identity-plugin-wireup (PR #1977, closed due to stale base SHA). Rebuilt cleanly from current staging HEAD.

Changes

  • Add github.com/Molecule-AI/molecule-ai-plugin-gh-identity dependency to go.mod (v0.0.0-20260424033845)
  • Wire gh-identity EnvMutator chain via provisionhook.NewRegistry() in main.go alongside github-app-auth plugin (uses Registry.Mutators() to merge chains)
  • Add MOLECULE_AGENT_ROLE injection in both provision paths (provisionWorkspace + provisionWorkspaceCP) for role-aware plugin attribution
  • Add Registry.Mutators() method to pkg/provisionhook/mutator.go for cross-plugin registry merging

Motivation

Tracks molecule-core#1957 — gh-identity plugin needs MOLECULE_AGENT_ROLE injected into workspace env vars at provision time so the plugin can perform per-agent attribution via env injection + gh wrapper.

Test plan

  • CI passes on staging
  • gh-identity plugin receives correct MOLECULE_AGENT_ROLE per workspace
  • workspace provision completes without env-mutator errors

🤖 Generated with Claude Code

@molecule-ai
molecule-ai Bot added this pull request to the merge queue Apr 24, 2026
Merged via the queue into staging with commit 02406ea Apr 24, 2026
14 checks passed
@molecule-ai
molecule-ai Bot deleted the fix/gh-identity-plugin-role-env-v2 branch May 20, 2026 06:22
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.

0 participants