fix(review): preserve branch protection in final CI rechecks - #3981
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 09:02:22 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
039df46 to
b79cc0a
Compare
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3981 +/- ##
=======================================
Coverage 93.70% 93.70%
=======================================
Files 373 373
Lines 35076 35084 +8
Branches 12863 12864 +1
=======================================
+ Hits 32868 32876 +8
Misses 1584 1584
Partials 624 624
🚀 New features to boost your workflow:
|
Motivation
expectedCiContextswas present, allowing a planner and an execution-time recheck to disagree onciStateand potentially merge despite a branch-protection-only pending check.expectedCiContexts) so branch-protection remains authoritative when readable.Description
requiredCiContextsto theAgentActionExecutionContextand passing the planner-resolvedrequiredContextsinto the executor call insrc/queue/processors.tsinstead of onlysettings.expectedCiContexts.src/services/agent-action-executor.ts) usectx.requiredCiContextsfor its final live CI recheck so branch-protection-required contexts are preserved at actuation time.src/services/agent-approval-queue.ts) to re-fetch branch-protection required contexts and union them withsettings.expectedCiContextsfor both the accept-time CI read and the executor invocation, with a failure fallback to the configuredexpectedCiContextsbehavior.requiredCiContextsinto the executor, unioning branch-protection contexts at accept time, and fallback behavior when branch-protection reads fail (test/unit/agent-action-executor.test.ts,test/unit/agent-approval-queue.test.ts).Testing
test/unit/agent-action-executor.test.tsandtest/unit/agent-approval-queue.test.ts, including the new/updated cases forrequiredCiContexts, branch-protection unioning, and branch-protection read failures, and they passed locally.typecheck(tsc --noEmit) andgit diff --check, both succeeded locally.npm audit --audit-level=moderatecould not be completed due to the registry audit endpoint returning403 Forbiddenin this environment (external registry error), blocking the local audit run.Codex Task