overnight-plan-artifact-placement-drift-reconciliation

Reconcile overnight planning waves where Codex workers advance GitHub issue state but the expected plan/review artifacts are missing from the designated external worktree because the worker wrote from a sandbox/in-repo worktree and pushed directly to the branch.

5 stars

Best use case

overnight-plan-artifact-placement-drift-reconciliation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Reconcile overnight planning waves where Codex workers advance GitHub issue state but the expected plan/review artifacts are missing from the designated external worktree because the worker wrote from a sandbox/in-repo worktree and pushed directly to the branch.

Teams using overnight-plan-artifact-placement-drift-reconciliation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/overnight-plan-artifact-placement-drift-reconciliation/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/workspace-hub-learned/overnight-plan-artifact-placement-drift-reconciliation/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/overnight-plan-artifact-placement-drift-reconciliation/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How overnight-plan-artifact-placement-drift-reconciliation Compares

Feature / Agentovernight-plan-artifact-placement-drift-reconciliationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Reconcile overnight planning waves where Codex workers advance GitHub issue state but the expected plan/review artifacts are missing from the designated external worktree because the worker wrote from a sandbox/in-repo worktree and pushed directly to the branch.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Overnight plan artifact placement drift reconciliation

Use when:
- overnight Codex planning workers were launched from an external worktree
- the worker claims success and GitHub labels/comments advanced
- expected `docs/plans/...` or `scripts/review/results/...` files are missing from the original worktree
- you suspect the worker used a sandbox worktree or pushed directly to the remote branch

## Symptom pattern

Typical signals:
- worker output says an issue is now `status:plan-review`
- GitHub issue comments contain plan/review summaries
- local external worktree does not contain the claimed plan/review artifacts
- `git status` in the external worktree does not reflect the worker's claimed changes
- a branch tip exists on origin that your local worktree has not incorporated

## What happened

Codex may execute from an in-sandbox checkout (for example under `.Codex/worktrees/...`) rather than the external `/mnt/local-analysis/worktrees/...` path you launched from. It can still push a valid commit to the intended branch and update GitHub issue labels/comments, leaving the original external worktree stale.

This is not necessarily worker failure. It is artifact-placement drift.

## Verification order

Do NOT trust only local file existence. Verify in this order:

1. GitHub live state
- `gh issue view <issue> --json labels,comments,url,title`
- confirm whether `status:plan-review` or `status:plan-approved` actually changed
- confirm the latest issue comment references the claimed plan path and review verdicts

2. Remote branch state
- `git ls-remote --heads origin <branch>`
- capture the branch SHA the worker claims to have pushed

3. Remote commit contents
- `git show --stat <sha>`
- confirm exact plan/review artifact paths in the pushed commit
- if needed: `git show <sha>:docs/plans/<file>` and `git show <sha>:scripts/review/results/<file>`

4. Local external worktree state
- only after steps 1-3, check whether the files exist locally
- if they do not exist locally but do exist in the remote commit, classify as placement drift

## Decision rule

Classify outcomes as:
- Clean success: GitHub + remote commit + local worktree all agree
- Artifact-placement drift: GitHub + remote commit agree, local worktree missing/stale
- Worker failure: GitHub did not advance and no remote commit contains the claimed artifacts
- Governance drift: labels advanced but artifact evidence is incomplete or inconsistent

## Recovery actions

If placement drift is confirmed:
1. Do not rerun the planning worker immediately.
2. Record the remote SHA and exact artifact paths.
3. Reconcile the external worktree by fetching/resetting, cherry-picking, or rebuilding the worktree from the updated branch.
4. Only after reconciliation should you launch implementation from those plans.
5. In status reporting, say: "GitHub state verified; artifact placement drift detected; local worktree reconciliation required."

## Why this matters

Without this check, you can mistakenly conclude:
- the worker failed when it actually succeeded remotely
- the plan is missing when it exists on the branch
- the next implementation wave can start from a stale worktree

## Minimal command bundle

```bash
gh issue view 2463 --json labels,comments,url,title
git ls-remote --heads origin nightly/2460-2465-planwave
git show --stat <sha>
git show <sha>:docs/plans/<expected-plan>.md | sed -n '1,40p'
```

## Notes

This pattern was observed in a workspace-hub overnight 4-worker planning wave where:
- issues moved to `status:plan-review`
- comments were posted correctly
- some artifacts existed only in a remote branch commit from a sandbox worktree
- the original external worktree remained stale

Related Skills

plan-review-prompt-refresh-after-plan-edits

5
from vamseeachanta/workspace-hub

Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.

workspace-hub-overnight-plan-monitor

5
from vamseeachanta/workspace-hub

Monitor and reconcile workspace-hub overnight planning or implementation batches, including process status, result artifacts, issue/commit verification, and controlled failed-lane recovery.

plan-gated-issue-execution-wave

5
from vamseeachanta/workspace-hub

Execute a multi-issue architecture/planning wave in a plan-gated repo, then safely transition approved issues into implementation with file-based Codex prompts, local approval markers, subprocess monitoring, and cleanup handling for sandbox/hook edge cases.

mixed-ops-vs-repo-fix-plan-boundary

5
from vamseeachanta/workspace-hub

Plan mixed operational-vs-repo remediation issues by proving live-state classification first, then only proposing code changes for confirmed repo-owned failure paths.

wave-based-parallel-plan-execution

5
from vamseeachanta/workspace-hub

Orchestrate phase execution by discovering dependencies, grouping into waves, spawning subagents, and collecting results with optional wave filtering

plan-gated-issue-validation-workflow

5
from vamseeachanta/workspace-hub

Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables

plan-gated-issue-implementation

5
from vamseeachanta/workspace-hub

Workflow for executing pre-approved GitHub issues with mandatory validation checkpoints

multi-source-tax-document-reconciliation

5
from vamseeachanta/workspace-hub

Verify generated tax forms against source documents by line-by-line comparison, not just totals

multi-file-tax-reconciliation-workflow

5
from vamseeachanta/workspace-hub

Systematic parallel review and reconciliation of multi-document tax filings with cross-reference validation

git-worktree-cleanup-and-branch-reconciliation

5
from vamseeachanta/workspace-hub

Systematic process for cleaning up stale git worktrees, resolving merge conflicts in diverged branches, and reconciling branch state across multiple repositories.

form-1120-cash-basis-reconciliation

5
from vamseeachanta/workspace-hub

Reconcile multiple source documents (invoices, expense sheets, bank statements) to establish authoritative cash-basis revenue and expenses for Form 1120 C-Corp filing

corporate-tax-filing-reconciliation

5
from vamseeachanta/workspace-hub

Reconcile multi-document tax packets and build line-by-line IRS filing guides for first-year C-Corps with real-estate holdings