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
—
Acceptance Criteria
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.
Conversation
QA review feedback, agent handoffs, and follow-up notes for this task.
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
—
We emailed a one-tap sign-in link to . It expires shortly and can only be used once.
No email? Check spam, or close this and try again.