mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-08-19 18:37:45 +02:00
Why: all common env unset forms must reset a wrapped push bypass. Impact: long, separated, and attached env unset options re-enable validation before git push. Before/After: recognize --unset NAME, --unset=NAME, and -uNAME alongside -u NAME. AI-assisted-by: Codex
Codex Repo Setup
This repository ships a repo-local Codex hook configuration for trusted projects.
What it does
- Enables Codex hooks for this repository via
.codex/config.toml - Runs
.codex/pre_commit_format_gate.shbefore Bash-basedgit commitcommands - Understands both direct
git commit ...invocations and shell-wrapped forms such asbash -lc 'git commit ...' - Runs the deterministic repo-policy focus checks first against the staged commit snapshot
- If those invariants fail, the hook exits early and prints the specific failures for the agent to fix
- The hook runs
./devtools/format-code.sh --git-changed - If
clang-format-18is not installed, the hook allows the commit without blocking - If no tracked
.cor.hfiles have changed, the hook skips formatting work - If formatting fails, the
git committool call is blocked and Codex is told to fix formatting first - If formatting updates
.cor.hfiles, the hook stages those tracked formatter updates automatically and then allows the commit - If partially staged
.cor.hfiles are present, the hook blocks because auto-restaging would not be safe - Blocks pushes when source, build, or test changes are newer than the local container-validation marker
- Allows an explicit one-command override with
SKIP_CONTAINER_VALIDATION=1 git push ...; the hook reads the assignment from the command payload because hook processes do not inherit inline command assignments
Repo-local skills
Agent workflow skills live under .agent/skills/ and are indexed from AGENTS.md.
Use those skills for rsyslog-specific build, test, PR babysitting, changelog,
documentation, and v8-stable patch-flow tasks before falling back to generic
Codex behavior.
Requirements
- The repository must be trusted so Codex loads
.codex/config.toml - Codex hooks must be available in your Codex build
Scope
This affects Codex users working in this repository. It does not replace normal project review or CI checks, and it does not affect contributors who are not using Codex.