[codex] repo_state global refresh + mandatory header gate #10

Merged
electron-rare merged 1 commits from codex/repo-state-global-index into main 2026-02-21 02:24:29 +00:00
electron-rare commented 2026-02-21 02:23:30 +00:00 (Migrated from github.com)

Summary

  • add tools/repo_state/collect.py to generate docs/REPO_STATE.md + docs/repo_state.json
  • add tools/repo_state/repo_refresh.sh to aggregate 3 repos into:
    • artifacts/repo_state/global_summary.md
    • artifacts/repo_state/global_index.json
    • artifacts/repo_state/header.latest.md
  • add tools/repo_state/lint_header_contract.py
  • add CI workflows:
    • .github/workflows/repo_state.yml
    • .github/workflows/repo_state_header_gate.yml
  • add contract doc: docs/REPO_STATE_HEADER_CONTRACT.md

Local validation

  • python3 tools/repo_state/collect.py --repo-name Kill_LIFE
  • tools/repo_state/repo_refresh.sh --header-only
  • python3 tools/repo_state/lint_header_contract.py

Contract

Header output format enforced:

[REPO-STATE UTC: <timestamp>]
Kill_LIFE                    | HEAD <sha> | pivots: <...> | gates: <...>
RTC_BL_PHONE                 | HEAD <sha> | pivots: <...> | gates: <...>
le-mystere-professeur-zacus  | HEAD <sha> | pivots: <...> | gates: <...>
[/REPO-STATE]
## Summary - add `tools/repo_state/collect.py` to generate `docs/REPO_STATE.md` + `docs/repo_state.json` - add `tools/repo_state/repo_refresh.sh` to aggregate 3 repos into: - `artifacts/repo_state/global_summary.md` - `artifacts/repo_state/global_index.json` - `artifacts/repo_state/header.latest.md` - add `tools/repo_state/lint_header_contract.py` - add CI workflows: - `.github/workflows/repo_state.yml` - `.github/workflows/repo_state_header_gate.yml` - add contract doc: `docs/REPO_STATE_HEADER_CONTRACT.md` ## Local validation - `python3 tools/repo_state/collect.py --repo-name Kill_LIFE` - `tools/repo_state/repo_refresh.sh --header-only` - `python3 tools/repo_state/lint_header_contract.py` ## Contract Header output format enforced: ```md [REPO-STATE UTC: <timestamp>] Kill_LIFE | HEAD <sha> | pivots: <...> | gates: <...> RTC_BL_PHONE | HEAD <sha> | pivots: <...> | gates: <...> le-mystere-professeur-zacus | HEAD <sha> | pivots: <...> | gates: <...> [/REPO-STATE] ```
chatgpt-codex-connector[bot] commented 2026-02-21 02:23:33 +00:00 (Migrated from github.com)

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/codex/settings/code-review).
electron-rare (Migrated from github.com) reviewed 2026-02-21 02:24:27 +00:00
electron-rare (Migrated from github.com) left a comment

Codex review: repo_state generator, global header contract and CI gate validated locally and in Actions.

Codex review: repo_state generator, global header contract and CI gate validated locally and in Actions.
Sign in to join this conversation.