Skip to content

[deep-report] Fix push_signed_commits.cjs orphan branch first-commit bug (experiment state not persisted) #30370

Description

@github-actions

Description

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
  • Balanced variant assignment resumes, eliminating sampling bias

Root Cause

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.

Estimated Effort

Quick (< 1 hour)

Data Source

DeepReport Intelligence Briefing — 2026-05-05 · Daily Experiment Report §25366113777

Generated by DeepReport - Intelligence Gathering Agent · ● 369.8K ·

  • expires on May 7, 2026, 3:33 PM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions