Skip to content
Back to skills

Absolute Path Review Dispatch Guard

ASecurity

Prevent Codex/Gemini adversarial review dispatch failures caused by relative prompt-file paths and background workdir drift.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolsgobash

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill absolute-path-review-dispatch-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Absolute Path Review Dispatch Guard?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Absolute Path Review Dispatch Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-absolute-path-review-dispatch-guard/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-absolute-path-review-dispatch-guard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: absolute-path-review-dispatch-guard
description: Prevent Codex/Gemini adversarial review dispatch failures caused by relative prompt-file paths and background workdir drift.
version: 1.0.0
author: Hermes Agent
category: software-development
tags: [review, codex, gemini, prompt-dispatch, pathing, background-processes]
---

# Absolute Path Review Dispatch Guard

Use this when dispatching adversarial plan/code reviews to Codex or Gemini via `terminal(background=true, pty=true)`.

## Problem
A prompt file can exist in the target repo, but the reviewer process still fails with:
- `cat: .planning/quick/review-<n>-prompt.md: No such file or directory`

This can happen even when:
- the file was successfully written,
- `find`/`ls` confirms it exists,
- and `terminal(workdir=...)` was set correctly.

## Root cause
In background PTY runs, Codex/Gemini may start with an effective working directory different from the requested repo `workdir`.
A real observed case:
- requested workdir: `/mnt/local-analysis/workspace-hub/worldenergydata`
- Codex startup banner reported: `/mnt/local-analysis/workspace-hub`

So relative prompt references like:
- `$(cat .planning/quick/review-342-prompt.md)`
can fail because they resolve from the wrong directory.

## Reliable pattern
1. Write the prompt file to a real repo path.
2. Verify it exists with `find` or `ls`.
3. Dispatch reviewers using absolute paths for:
   - prompt file
   - tee output file

Example:

```bash
codex exec "$(cat /mnt/local-analysis/workspace-hub/worldenergydata/.planning/quick/review-342-prompt.md)" \
  2>&1 | tee /mnt/local-analysis/workspace-hub/worldenergydata/.planning/quick/review-342-codex.out

gemini exec "$(cat /mnt/local-analysis/workspace-hub/worldenergydata/.planning/quick/review-342-prompt.md)" \
  2>&1 | tee /mnt/local-analysis/workspace-hub/worldenergydata/.planning/quick/review-342-gemini.out
```

## Verification steps
Before waiting on the process:
1. confirm prompt file exists at the absolute path
2. check initial process output for immediate `cat: ... No such file or directory`
3. if that error appears, kill and relaunch with absolute paths
4. do not assume the issue is the file write itself until you verify the reviewer startup workdir/path resolution

## Artifact rule
When a provider still fails after dispatch:
- save a canonical review artifact anyway
- mark verdict as `UNAVAILABLE` if no substantive review was produced
- include concrete failure reason and raw log path

## When this skill helps
- adversarial plan review waves
- adversarial implementation review waves
- any Codex/Gemini background CLI dispatch that reads prompt files with `$(cat ...)`

## Anti-pattern
Do not use repo-relative prompt paths in background reviewer commands just because `workdir` was set. That assumption is not reliable enough.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.