Agents Builders

Fix dor-check release-cut base

Archived
fix-dor-check-release-cut-base

Created

Jun 23, 02:49

Completed

Jun 23, 12:25

DevOps handoff

Type

Bug

Shape

backend

Worktree Slug

fix-dor-check-release-cut-base

Repositories

mcritchie-studio

Release Train

Branch

feat/fix-dor-check-release-cut-base

Pull Request

Local URL

QA URL

Production URL

tooling

Acceptance Criteria

  • dor-check diffs against origin/release not origin/main by default
  • Doc-only branch cut from release is not false-flagged
  • Falls back to origin/main when no release branch exists
  • Regression test covers the release-ahead-of-main case

Expected Test Plan

No expected checks recorded.

Checks Run

No completed checks recorded.

Agent Context

Found by dogfooding: the docs task document-agent-shell-test-gotchas, cut from origin/release, was false-flagged by the chore-gate as 'ships a code diff (application_helper.rb, formatter.rb, _overflow_fade.html.erb, …)' — files committed on release-but-not-main, NOT the branch's own change (which is only docs/agents/modules/testing.md). Root cause: bin/dor-check changed_files' committed view runs 'git diff --name-only $DOR_CHECK_DIFF_BASE...HEAD' with base defaulting to origin/main; on the persistent-release model feature branches are cut from origin/release (ahead of main), so origin/main...HEAD includes the whole release delta. The working-tree views (--cached / --name-only / ls-files --others) are correct; only the committed view is polluted. Fix: default the base to origin/release (the branch's actual cut point), falling back to origin/main when origin/release doesn't exist (mirror bin/agent-worktree's base resolution). Verified: 'DOR_CHECK_DIFF_BASE=origin/release bin/dor-check' returns 'DoR n/a' for the doc task. Bug SOP: write the failing regression test FIRST (a release-ahead-of-main doc/chore branch must be n/a, not gated). This false-flags every doc/chore task cut from release; harmless for code tasks (they carry a shape anyway).

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

  1. Designed Shipped
    A Alex
    Alex
    Model
    Duration
    Tokens
    Cost
    Completed Jun 23, 12:25 · 4 days ago
    cli
  2. Shipped Archived
    Model
    Duration
    about 5 hours
    Tokens
    Cost
    Started Jun 23, 12:25
    Completed Jun 23, 17:13 · 4 days ago

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

Comment alex 4 days ago

Already delivered out-of-band: fix shipped inline during dogfooding as commit 66db6f2 (2026-06-22), an ancestor of origin/main (LIVE on prod). All 4 acceptance criteria covered by test/lib/dor_check_test.rb (32 runs, 224 assertions, 0 failures): release-aware default_diff_base (origin/release, fallback origin/main), release-cut docs branch not false-flagged, fallback test, and the with_release_ahead_repo regression + e2e gate. No dedicated PR — fix predates this task record. Moved to shipped to reflect reality.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

Actual