Skip to content

Audit and classify the scripts called by CI and AI agents #2767

Open

Description

@josecelano-bot

Part of EPIC #2758. Order 8 of 11, wave 1.

Goal

Produce an audit document that lists the shell and Python scripts under contrib/dev-tools/ and .github/skills/ that CI or agents call, classifies each under the contract, and records a decision per script (migrate, rewrite in Rust, exempt with a reason, or follow-up issue).

Background

ADR docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md covers every first-party program that machines call, wherever it lives; maintainer decision (2026-11-06): audit the scripts in this EPIC, do not rewrite them here. Known examples: the resolve-review-threads/scripts/*.sh scripts (JSON on stdout, plain-text progress on stderr), contrib/dev-tools/git/hooks/*.sh, merge-pull-request.sh, github-merge.py, process-pr-review/scripts/validate-audit-record.py, contrib/dev-tools/checks/*.sh, and the container and runner scripts. Determine, per script, who calls it and whether a machine consumes its output or exit code.

The contract in short: see the ADRs docs/adrs/20260519000000_define_global_cli_output_contract.md and docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md.

In scope

  • Inventory the scripts and their callers.
  • Classify each (stdout-result-data, no-stdout-result, or developer-only/out of scope) and record compliance.
  • Decide per script and list the follow-up issues to open (do not open them in this issue unless the maintainer asks).

Out of scope

  • Changing any script.
  • Editing the ADR.

Acceptance criteria

  • Every script that CI or an agent calls appears in the audit.
  • Each has a class, a compliance finding and a decision.
  • No script is changed by this issue.

The full specification (implementation plan, verification plan, files this issue may touch) is added by the spec PR under docs/issues/open/.

Activity

  1. added a commit that references this issue on Nov 9, 2026
  2. added 2 commits that reference this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions