Created
Jul 03, 11:52
Started
Jul 03, 11:52
Completed
Jul 03, 21:53
DevOps handoff
Type
Bug
Shape
backend
Worktree Slug
root-merge-gates-at-worktree
Repositories
mcritchie-studio
Release Slug
—
Branch
feat/root-merge-gates-at-worktree
Local URL
—
QA URL
—
Production URL
—
Acceptance Criteria
Expected Test Plan
Checks Run
Agent Context
Audit 2026-07-02 high finding #2. bin/full-suite-check + bin/dor-check hardcode the code/diff/fingerprint root to the repo the SCRIPT lives in (ROOT = expand('..',__dir__)). Satellites ship no gate scripts, so a turf-monster/rolio task runs the HUB's gate, which runs bin/rails test + fingerprints the mcritchie-studio tree -> false-GREEN certification of a repo the task never touched (or STALE). Fix: a shared bin/lib/repo_root.rb resolver (RepoRoot.code_root(override, fallback) = ENV override || git rev-parse --show-toplevel of cwd || fallback). full-suite-check: root = code_root(FULL_SUITE_ROOT, ROOT). dor-check: both DOR_CHECK_DIFF_ROOT usages (diff line 244, fingerprint line 322) = code_root(DOR_CHECK_DIFF_ROOT, ROOT). CONFIG stays at hub: dor-check CONFIG_PATH=feature_shapes.yml + .env at ROOT; full-suite-check lib required from __dir__; both call TASK_BIN (hub) for the board. Studio-worktree behavior UNCHANGED (cwd git-toplevel == the worktree == ROOT). Also fixes the checkout-independent false-STALE (both gates now default to the SAME cwd root). Regression-test-first: RepoRoot unit (override/cwd-git/non-git) + a dor-check integration proving the cwd default. SESSION-PREFLIGHT is OUT OF SCOPE (separate follow-up): it resolves its TOOL scripts (bin/task at line 165, install-agent-docs at 326) from options[:root] too, so it entangles studio-tool-root with code-root and needs a deeper split; it's advisory (can't produce a false merge).
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.
No task feedback has been recorded yet.
Sealed-bid sizing
Edit →Alex (PM)
—
Avi (PO)
SMALL
Dev
SMALL
Actual
XL
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.