Repository navigation
Closed
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobFiled by the pr-comment-review jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Finding (from PR review)
Codex P2 on merged PR #10190: pm-stack/deploy.sh resolves the Kaneo sync guard from $0 after it has already changed directory, so invoking deployment from the repository root looks for the guard in the wrong place and a healthy deployment fails without running the guard.
"When deployment is invoked from the repository root as
bash pm-stack/deploy.sh, the script has already changed intopm-stack, but$0still containspm-stack/deploy.sh. This expression therefore looks forpm-stack/pm-stack/kaneo-sync-guard.py, causing a healthy deployment to fail without running the guard. Use the already-established absoluteSTACK_DIRto locate the sibling script regardless of the invocation directory."
— chatgpt-codex-connector[bot], 2026-11-14T17:03:15Z
Evidence
- Source PR: pm-stack: close authority — sync guard + design record (#10136) #10190 "pm-stack: close authority — sync guard + design record (pm stack: close authority — automation must never close an issue #10136)" — pm-stack: close authority — sync guard + design record (#10136) #10190 (merged 2026-11-14T17:04:11Z, merge commit 6909410)
- Review comment: pm-stack: close authority — sync guard + design record (#10136) #10190 (comment) —
pm-stack/deploy.sh, line 104 at review time - No response: the review thread is unresolved (verified via GraphQL
reviewThreads2026-11-15), the thread contains only the original comment (no replies), and no commit followed the comment — all PR commits are timestamped 2026-11-14T16:59Z, before the 17:03:15Z review; the PR merged at 17:04:11Z unchanged in this respect. - Still live on current main (verified twice with fresh
gh apiraw reads, 2026-11-15):pm-stack/deploy.shline 28 doescd "$(dirname "$0")", line 29 setsSTACK_DIR="$PWD", but line 104 still runspython3 "$(dirname "$0")/kaneo-sync-guard.py"instead of using$STACK_DIR. - Already-tracked check: searched open and closed issues by file path, PR number, and keywords (
statusTransitions,deploy.sh kaneo,pm-kaneo-sync-guard) on 2026-11-15 — no existing issue covers this finding. (The sibling arg-rejection finding from the same PR is separately tracked as issue pm-stack(kaneo-sync-guard): reject unaccounted CLI arguments before running guard #10428 and is not part of this issue.)
Acceptance criteria
pm-stack/deploy.shlocateskaneo-sync-guard.pyvia the established absoluteSTACK_DIR(or an equivalent invocation-independent path), sobash pm-stack/deploy.shfrom the repository root runs the guard correctly; OR the finding is resolved by a documented decision recorded on this issue.- Verification is by fresh reads of the changed script (CI-first; no sandbox builds).
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobFiled by the pr-comment-review jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 15, 2026
CODE-3820
dezren39 commentedon Nov 15, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 15, 2026
Picked up by lane any-a as task 17378 and triaged inline.
Verification (fresh, 2026-11-15T18:04Z): the Codex P2 finding on merged PR #10190 is still live on current main.
pm-stack/deploy.shline 28 doescd "$(dirname "$0")", line 29 setsSTACK_DIR="$PWD", but line 104 still runspython3 "$(dirname "$0")/kaneo-sync-guard.py". Invoked from the repo root asbash pm-stack/deploy.sh,$0ispm-stack/deploy.sh, so after the cd the guard resolves topm-stack/pm-stack/kaneo-sync-guard.pyand a healthy deploy fails without running the guard. PR #10190 is MERGED; issue #10527 is OPEN with no hard-stop labels.Triage: work kind = small-fix; kind/bug (already present); priority/normal (P2 reviewer severity, per the priorities brief ordinary band); effort/xs. Labels synced:
status/needs-triageremoved,task/small-fix+effort/xsadded, claim labels applied.Fix (same session): change line 104 to locate the guard via the established absolute
$STACK_DIR. Acceptance check:bash -nclean, and a path-resolution simulation showing the guard resolves correctly when invoked from the repo root, frompm-stack/, and by absolute path. The source PR review thread is not replied to (per packet scope); all discussion lives here.Merge pull request #10532 from developing-today/queue/17378-10527-dep…
dezren39 commentedon Nov 15, 2026
Done — fixed and merged in the claiming session (task 17378, lane any-a).
pm-stack/deploy.shline 104 now runspython3 "$STACK_DIR/kaneo-sync-guard.py"instead of resolving from$0after the cd.$STACK_DIRform.bash -nclean; path-resolution simulation (oracle: resolved guard path exists on disk) — old expression fails the repo-root invocation (bash pm-stack/deploy.sh), new expression passes repo-root, in-directory (./deploy.sh), and absolute-path invocations.Fixes #10527; all in-flightstatus/*,queue/*, andwork/*labels have been removed. The source PR pm-stack: close authority — sync guard + design record (#10136) #10190 review thread was not replied to, per the packet scope.dezren39 commentedon Nov 15, 2026
Task 17381 (auto follow-on of task 17378, same issue #10527) completed as already_done: fresh verification shows issue #10527 CLOSED, PR #10532 MERGED (merge commit 6317aa9), and current main
pm-stack/deploy.shline 104 readspython3 "$STACK_DIR/kaneo-sync-guard.py". No further work exists for this packet.