Skip to content

fix(pm-stack): resolve kaneo-sync-guard via STACK_DIR (#10527) - #10532

Merged
dezren39 merged 1 commit into
mainfrom
queue/17378-10527-deploy-guard-path
Nov 15, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/17378-10527-deploy-guard-path

Conversation

@dezren39

@dezren39 dezren39 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Fixes #10527.

Codex P2 on merged PR #10190: pm-stack/deploy.sh resolved the Kaneo sync guard from $0 after it had already cd'd into the script's directory (line 28), so invoking from the repo root as bash pm-stack/deploy.sh looked for pm-stack/pm-stack/kaneo-sync-guard.py and a healthy deploy failed without running the guard.

Change (one line): line 104 now locates the guard via the already-established absolute STACK_DIR (line 29, $PWD after the cd), which is invocation-independent.

Verification:

  • bash -n pm-stack/deploy.sh — clean.
  • Path-resolution simulation replicating lines 28–29 semantics, oracle = resolved guard path exists on disk: old expression fails the repo-root case (old=no), new expression passes all three invocation styles — repo-root bash pm-stack/deploy.sh, ./deploy.sh from pm-stack/, and absolute path (new=yes in all cases).
  • shellcheck findings on the file are pre-existing file-wide style (SC2250/SC2312/SC2034); the changed line follows the file's existing $STACK_DIR usage (line 30) and introduces no new finding class.

Task 17378 (lane any-a triage, done inline in the claiming session).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 15, 2026 18:06
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T18:07:13.530916Z
We couldn’t complete this review. Comment @codex review to try again.
0bb5a6d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb452bfa-c6b8-4608-b2cd-4c64b6177d32
Commits

Reviewing files that changed from the base of the PR and between b17c658 and 0bb5a6d.

Files selected for processing: 1

  • pm-stack/deploy.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Codex disposition (per the fleet Codex-findings gate): Codex code review failed to run on head 0bb5a6d — first run reported "couldn't complete this review", and a re-trigger (@codex review) returned the Codex usage-limits notice. There are zero Codex findings to disposition: 0 review comments, 0 reviews on this PR. CodeRabbit was rate-limited (free OSS review cap, resets in ~59 min) and likewise produced no findings. Merging on own verification instead: bash -n clean, and the path-resolution simulation (oracle: resolved guard path exists) shows the old expression failing the repo-root invocation while the new $STACK_DIR expression resolves correctly for repo-root, in-directory, and absolute-path invocations. Diff is exactly one line in pm-stack/deploy.sh, matching issue #10527's acceptance.

@dezren39
dezren39 merged commit 6317aa9 into main Nov 15, 2026
1 check passed
@dezren39
dezren39 deleted the queue/17378-10527-deploy-guard-path branch November 15, 2026 18:08
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-stack(deploy): kaneo-sync-guard path breaks when deploy.sh is invoked from the repo root

1 participant