Audit and classify the scripts called by CI and AI agents

未关闭
#2,767 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, python, rust, shell
领域
ci-cd, tooling

调研方向

Start with the two CLI output contract ADRs named in the issue, then inspect the scripts under contrib/dev-tools/ and .github/skills/ and trace which CI or agent calls each one. The spec PR under docs/issues/open/ contains the implementation and verification plan. Done means the audit lists every called script, its class, compliance finding, decision, and any follow-up issues, with no scripts changed.

由索引模型根据 Issue 内容生成。

描述

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/.

主要语言
Rust
星标
532
派生
56
平均合并
11 小时 20 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。