Skip to content

fix(ci): clear stale checkout metadata from Git common dir - #316

Merged
ael-dev3 merged 1 commit into
mainfrom
codex/0.4-fix-runner-git-common-metadata
Sep 20, 2026
Merged

ael-dev3 merged 1 commit into
mainfrom
codex/0.4-fix-runner-git-common-metadata

Conversation

@ael-dev3

Copy link
Copy Markdown
Owner

Problem

The persistent Linux runner can retain info/grafts and related Git metadata in the checkout's common directory. The production cleanup only inspected .git/..., so G001 materialization still failed with Git graft warnings and the bounded g001-materialization diagnostic.

Change

  • Resolve the exact checkout Git directory and common directory with a sanitized pinned Git invocation.
  • Validate both paths remain under the exact production workspace and retain owner, mode, realpath, and non-symlink checks.
  • Remove stale config.worktree, grafts, attributes, alternates, and shallow metadata from both locations in every protected production lane.
  • Keep the existing local user identity cleanup.

Validation

  • tests/sealedRealmsProductionWorkflow.test.ts targeted run: 14 passed, 38 skipped on Windows.
  • Workflow YAML parsed successfully.
  • git diff --check passed.
  • Gitleaks range scan passed with no leaks.

This is a release-blocking reliability fix only; it does not add gameplay features or change provider behavior.

@ael-dev3
ael-dev3 enabled auto-merge (squash) September 20, 2026 19:26
@ael-dev3
ael-dev3 merged commit 2f47b8a into main Sep 20, 2026
8 checks passed
@ael-dev3
ael-dev3 deleted the codex/0.4-fix-runner-git-common-metadata branch September 20, 2026 20:12
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.

1 participant