Skip to content

hygiene: guard shell-family bash-retirement drift#5526

Merged
AceHack merged 3 commits into
mainfrom
claim/codex-loop-bash-retirement-drift-guard-20260527
May 27, 2026
Merged

hygiene: guard shell-family bash-retirement drift#5526
AceHack merged 3 commits into
mainfrom
claim/codex-loop-bash-retirement-drift-guard-20260527

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 27, 2026

Summary

  • extend bash-retirement inventory enumeration from .sh only to shell-family globs: .sh, .bash, .zsh, .ksh, .command
  • add a temp-repo test proving shell-family files are enumerated while tools/lean4/ vendor scripts remain excluded
  • update the TypeScript/Bun migration resume to match the widened guard surface

Checks

  • bun test tools/hygiene/check-bash-retirement-inventory.test.ts
  • bun tools/hygiene/check-bash-retirement-inventory.ts --enforce
  • git diff --check

Lior and others added 2 commits May 27, 2026 13:32
Co-Authored-By: Codex <noreply@openai.com>
Extend the bash-retirement inventory guard beyond .sh files so newly tracked non-Lean shell-family entrypoints cannot bypass the retained-shell allowlist.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 27, 2026 17:39
@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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR widens the bash-retirement inventory guard from tracking only .sh files to tracking a broader shell-family surface, adds a regression test to ensure enumeration works while Lean vendor scripts stay excluded, and updates the TypeScript/Bun migration trajectory to reflect the new scope.

Changes:

  • Expand tracked shell inventory from *.sh to a shell-family glob set (*.sh, *.bash, *.zsh, *.ksh, *.command) in the hygiene guard.
  • Add a temp-repo unit test proving shell-family enumeration works and tools/lean4/ remains excluded.
  • Update the TypeScript/Bun migration resume text to match the widened guard surface.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
tools/hygiene/check-bash-retirement-inventory.ts Tracks additional shell-family extensions via git pathspec globs and updates messaging accordingly.
tools/hygiene/check-bash-retirement-inventory.test.ts Adds a temp-repo test exercising the expanded enumeration and Lean exclusion behavior.
docs/trajectories/typescript-bun-migration/RESUME.md Updates trajectory prose to describe shell-family drift instead of .sh-only drift.
docs/claims/codex-loop-bash-retirement-drift-guard-20260527.md Adds a live claim file related to this work (needs release handling before merge).

Comment thread tools/hygiene/check-bash-retirement-inventory.test.ts
Comment thread docs/trajectories/typescript-bun-migration/RESUME.md Outdated
Comment thread docs/trajectories/typescript-bun-migration/RESUME.md Outdated
Comment thread docs/claims/codex-loop-bash-retirement-drift-guard-20260527.md Outdated
Handle git spawn failures in the temp-repo test helper, align the migration resume wording and timestamp with the shell-family guard surface, and release the live claim file before merge.

Co-Authored-By: Codex <noreply@openai.com>
@AceHack AceHack merged commit 2a81ff3 into main May 27, 2026
51 of 52 checks passed
@AceHack AceHack deleted the claim/codex-loop-bash-retirement-drift-guard-20260527 branch May 27, 2026 18:00
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.

2 participants