You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-report] Fix push_signed_commits.cjs orphan branch first-commit bug (experiment state not persisted) #30370
The experiment A/B framework is silently broken: none of its 4 active experiments (#30314) accumulate historical data. When push_experiment_state.cjs creates a new orphan branch for the first time, checkoutOrCreateBranch() returns an empty string "" as baseRef. This causes pushSignedCommits to compute git rev-list ""..HEAD, which yields zero commits and returns without error — while the state was never pushed remotely. Every subsequent run starts from empty state and assigns variants randomly instead of using the balanced least-count strategy.
Expected Impact
All 4 active experiments (daily-community-attribution, astrostylelite-markdown-spellcheck, smoke-copilot, issue-arborist) will begin accumulating per-variant history
Statistical inference becomes possible once minimum sample thresholds are reached
In push_experiment_state.cjs, the orphan-branch path passes empty baseRef to pushSignedCommits. Fix: detect "" baseRef and skip the rev-list check (treat orphan first push as always having new content).
Relevant code:push_signed_commits.cjs line 138, push_experiment_state.cjs orphan branch path.
Suggested Agent
Copilot coding agent — targeted JS/Node fix in a single file.
Activity
github-actions commentedon May 5, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪