Skip to content

fix(hygiene): classify dash shebangs in shell inventory#5660

Merged
AceHack merged 3 commits into
mainfrom
claim/codex-loop-bash-retirement-dash-shebang-20260528
May 28, 2026
Merged

fix(hygiene): classify dash shebangs in shell inventory#5660
AceHack merged 3 commits into
mainfrom
claim/codex-loop-bash-retirement-dash-shebang-20260528

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 28, 2026

Summary

  • classify extensionless dash shebang scripts as shell-family inventory entries
  • add a focused #!/bin/dash fixture to the bash-retirement inventory test

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 20:06
…g guard

Surface: codex-background-service
Origin: codex-launchd-loop
Run-Id: 20260528T000308Z

Co-Authored-By: Codex <noreply@openai.com>
Codex-Origin: codex-launchd-loop
Codex-Surface: codex-background-service
Codex-Loop-Run-Id: 20260528T000308Z
Extend the bash-retirement inventory guard so extensionless /bin/dash entrypoints are treated as shell-family files, matching the existing bash/sh/zsh/ksh behavior.

Focused checks:

- bun test tools/hygiene/check-bash-retirement-inventory.test.ts

- bun tools/hygiene/check-bash-retirement-inventory.ts --enforce

- git diff --check

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

Updates the bash-retirement hygiene guard to treat extensionless scripts with a dash shebang as part of the tracked “shell-family” inventory, ensuring these entrypoints are caught by the drift detector.

Changes:

  • Extend the shell-family shebang classifier to match dash (#!/bin/dash, #!/usr/bin/env dash, etc.).
  • Add a focused #!/bin/dash extensionless fixture to the inventory enumeration test.
  • Add a live claim file under docs/claims/ (this should not ship to main per the claim protocol).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tools/hygiene/check-bash-retirement-inventory.ts Recognize dash in shebang-based shell-family detection for extensionless scripts.
tools/hygiene/check-bash-retirement-inventory.test.ts Add extensionless-dash fixture and assert it appears in the tracked shell-family list.
docs/claims/codex-loop-bash-retirement-dash-shebang-20260528.md Adds a live claim record (protocol expects this to be deleted before merge).

Comment thread docs/claims/codex-loop-bash-retirement-dash-shebang-20260528.md Outdated
Delete the live docs/claims record from the PR so the claim protocol substrate does not merge to main with the implementation.

Focused checks:

- bun test tools/hygiene/check-bash-retirement-inventory.test.ts

- bun tools/hygiene/check-bash-retirement-inventory.ts --enforce

- git diff --check

Co-Authored-By: Codex <noreply@openai.com>
@AceHack AceHack merged commit 9298ef6 into main May 28, 2026
32 checks passed
@AceHack AceHack deleted the claim/codex-loop-bash-retirement-dash-shebang-20260528 branch May 28, 2026 00:22
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