Repository navigation
Refactor delegation control request duplication - #12970
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified, and the refactor preserves existing behavior.
Pull request overview
Refactors delegation control handling to remove duplicated request definitions and repeated log-hash calculations without changing behavior.
Changes:
- Adds shared
runEntryRequesttype. - Reuses precomputed hashes across create-or-confirm outcomes.
File summaries
| File | Summary |
|---|---|
internal/delegation/control_handler.go |
Centralizes request shape and logging hash computation. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite (auto)
Note
Copilot is running an experiment and ran this review at Lite.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write leaked through mcpg or the GitHub API in this run. Part B is
|
🔒 mcpg Read-Only Stress — gvisorSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write, reaction, star, comment, branch, file, or PR leaked in this run. Part B is
|
control_handler.goduplicated the same run/enclave-entry request shape across control operations and repeated create-or-confirm log hash computation across success and denial paths. This PR centralizes those small patterns without changing handler behavior.Shared request shape
runEntryRequestfor operations keyed byrun_idandenclave_entry_id.revoke-by-labelsandstatus.Single hash computation path