Deterministic PR review-resolution control plane runtime.
Project description
gh-address-cr
Auditable pull request review-resolution workflow for AI coding agents.
gh-address-cr is a deterministic CLI runtime plus a thin Codex skill/plugin
adapter. It coordinates GitHub review threads, local AI review findings,
evidence, replies, resolves, and final-gate proof in one PR-scoped session.
It is not a code-review producer and not a generic GitHub bot. The runtime owns state and side effects; agents return structured evidence and the runtime publishes GitHub replies/resolves.
Project architecture governance lives in .specify/memory/constitution.md.
The installed skill contract remains skill/SKILL.md.
60-second quickstart
Install the runtime:
pipx install gh-address-cr
gh-address-cr --help
gh-address-cr agent manifest
Install the Codex/agent skill adapter:
npx skills add https://github.com/RbBtSn0w/gh-address-cr --skill skill
npx skills check
Build the Codex community plugin payload:
python3 scripts/build_plugin_payload.py --output dist/plugin/gh-address-cr
Then install from the generated marketplace path when working from a built checkout or release artifact:
codex plugin marketplace add .agents/plugins/marketplace.json
codex plugin marketplace upgrade
codex plugin add gh-address-cr@gh-address-cr-community
When to use it
Use it when:
- a pull request has unresolved GitHub review threads
- an AI review producer emits normalized findings for the PR
- stale or outdated review threads need explicit evidence and handling
- completion requires a fresh
gh-address-cr final-gate <owner/repo> <pr_number>proof
Do not use it as:
- a replacement for a code-review producer
- a generic GitHub issue bot
- a ChatGPT Apps SDK app or MCP server
- a shortcut for posting GitHub replies or resolving threads outside the runtime
First PR walkthrough
gh-address-cr active-pr --repo owner/repo
gh-address-cr review owner/repo 123
gh-address-cr address owner/repo 123 --lean
gh-address-cr agent publish owner/repo 123
gh-address-cr final-gate owner/repo 123
Completion means the latest final gate reports:
- zero unresolved review threads
- zero pending reviews for the authenticated login
- no blocking session items
- terminal GitHub threads have durable reply evidence
- a compact metrics line via
completion_summary_lineorPR Completion Summary Guidance - a telemetry coverage label and structured efficiency report path
- an audit summary path with a sha256 hash
A zero unresolved-thread count alone is not sufficient.
Public surface
Primary commands:
active-prreviewaddressfinal-gatetelemetry ingesttelemetry summary
Advanced integration commands:
threadsfindingsadapterreview-to-findingsagent manifestagent classifyagent nextagent submitagent submit-batchagent fixagent trivial-fixagent fix-allagent resolve-staleagent evidenceagent publishagent leasesagent reclaimagent orchestrate autopilotcommand-sessiondoctor
High-level commands emit machine-readable JSON summaries by default. Use
--human when a person needs narrative output and --lean where supported for
low-token agent context.
Telemetry commands are PR-scoped and do not mutate review item state:
gh-address-cr telemetry ingest owner/repo 123 --source generic-agent --format agent-jsonl --input agent-telemetry.jsonl
gh-address-cr telemetry summary owner/repo 123 --format markdown
gh-address-cr telemetry ingest owner/repo 123 --source codex --format codex-host-json --input codex-host.json
Assistant hosts can also provide a final-gate ingestion hook by setting:
export GH_ADDRESS_CR_HOST_TELEMETRY_INPUT=agent-telemetry.jsonl
export GH_ADDRESS_CR_HOST_TELEMETRY_SOURCE=assistant-host
gh-address-cr final-gate owner/repo 123
GH_ADDRESS_CR_HOST_TELEMETRY_FORMAT defaults to agent-jsonl. The hook uses
the same telemetry ingestion contract before final-gate artifacts are written.
Every final efficiency summary reports one coverage label: complete,
partial, runtime-only, or unavailable. Imported events are normalized to
runtime-owned event_fingerprint values; duplicate or overlapping imports are
reported through accepted_fingerprints and duplicate_fingerprints without
inflating counts, durations, or slowest-operation rankings. Corrupted external
telemetry remains fail-open for review and final-gate flows, while telemetry
commands fail loudly with reason codes and diagnostics.
For GitHub review-thread replies, shared files/validation evidence is not the
same as a shared reviewer answer. Use agent submit-batch with per-thread
summary/why entries for ordinary multi-thread handling. Commit evidence is
hydrated by the runtime during publish, so independent worker evidence does not
need to wait for a final commit hash. Use
agent fix-all --input <batch-response.json> to route explicit per-thread batch
evidence, or agent fix-all --homogeneous-reason <why> only for a homogeneous
repeated concern.
When exactly one PR session is cached, PR-scoped commands such as address,
review, threads, final-gate, and telemetry summary may omit
<owner/repo> <pr_number>. No-session and multi-session cases fail loud with
NO_ACTIVE_PR_SCOPE or AMBIGUOUS_PR_SCOPE.
Use agent trivial-fix only for documentation or typo-only GitHub review
threads. The runtime rejects security-sensitive, API-sensitive, performance, or
ambiguous comments with TRIVIAL_THREAD_NOT_ELIGIBLE; normal reply, resolve,
validation, and final-gate evidence still applies.
Agents that need a schema-defined triage handoff may emit
workflow_decision.v1 JSON with schema_version, request_id, item_id,
decision, and reason. Existing Markdown decision blocks remain a documented
compatibility path, but JSON avoids whitespace-sensitive parsing.
command-session --input <json>|- executes multiple one-shot runtime commands
inside one process and returns one result per operation. Failed operations do
not suppress later operations.
agent orchestrate autopilot is guarded dry-run planning by default. It emits a
deterministic plan for classify, lease, submit, publish, and final-gate steps.
Side-effecting autopilot execution is not enabled in this v1 contract.
Runtime and adapter boundary
The deterministic implementation belongs to the Python runtime package:
- console entrypoint:
gh-address-cr - module entrypoint:
python3 -m gh_address_cr - source package:
src/gh_address_cr/
The packaged skill remains under skill/ and acts as a thin adapter:
skill/SKILL.mdexplains agent behaviorskill/runtime-requirements.jsondeclares runtime compatibilityskill/agents/andskill/references/provide hints and reference docs
The Codex plugin payload is generated from skill/ into a build artifact such
as dist/plugin/gh-address-cr:
python3 scripts/build_plugin_payload.py --output dist/plugin/gh-address-cr
python3 scripts/build_plugin_payload.py --check
The OpenAI curated Plugin Directory is not a self-service publish target in this
repository. The committed .agents/plugins/marketplace.json points at the
generated community distribution artifact.
Documentation
- Installation and distribution
- CLI reference
- Workflows
- Architecture
- Development and release
- Troubleshooting
- Privacy
- Security
- Terms
Development checks
Run the local verification gate before submitting changes:
ruff check src tests scripts/build_plugin_payload.py
python3 -m unittest discover -s tests
python3 -m gh_address_cr --help
python3 -m gh_address_cr agent manifest
python3 scripts/build_plugin_payload.py --output dist/plugin/gh-address-cr
python3 scripts/build_plugin_payload.py --check
Package smoke:
rm -rf dist build
python3 -m build
python3 -m twine check dist/*
Repository model
This repository has two scopes:
- repository root: development, verification, CI, release metadata, and contributor guidance
skill/: the installable and published skill folder
The product/runtime identity remains gh-address-cr: the Python package,
console entrypoint, repository URL, SKILL.md frontmatter name, plugin name,
and /gh-address-cr invocation must not be renamed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gh_address_cr-2.10.8.tar.gz.
File metadata
- Download URL: gh_address_cr-2.10.8.tar.gz
- Upload date:
- Size: 244.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35750685c722cfc3f0a9a6c85cae143ca6af289e5a3fdf0a292f8c40e6c5f8ed
|
|
| MD5 |
0c8244a6ac8b289200af79e2b5401705
|
|
| BLAKE2b-256 |
0e5077317cd94881a69518c642ab80755cdb89af2743b71bc061ed8ec63d4b0b
|
Provenance
The following attestation bundles were made for gh_address_cr-2.10.8.tar.gz:
Publisher:
release.yml on RbBtSn0w/gh-address-cr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gh_address_cr-2.10.8.tar.gz -
Subject digest:
35750685c722cfc3f0a9a6c85cae143ca6af289e5a3fdf0a292f8c40e6c5f8ed - Sigstore transparency entry: 1734167140
- Sigstore integration time:
-
Permalink:
RbBtSn0w/gh-address-cr@f0e6515d66d950a3db19f8501e8116453fd5d7b8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RbBtSn0w
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0e6515d66d950a3db19f8501e8116453fd5d7b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gh_address_cr-2.10.8-py3-none-any.whl.
File metadata
- Download URL: gh_address_cr-2.10.8-py3-none-any.whl
- Upload date:
- Size: 168.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a0f34865af15200e4620c428bd6284c3b91b8a8156285d73cc6269278bffcad
|
|
| MD5 |
160a79c237f5e30dd196ea2b2a44e45b
|
|
| BLAKE2b-256 |
3f14f8aee43b70ed9ba5175d4e5d89c8f1c26a37732c5436387765e4afbb6be5
|
Provenance
The following attestation bundles were made for gh_address_cr-2.10.8-py3-none-any.whl:
Publisher:
release.yml on RbBtSn0w/gh-address-cr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gh_address_cr-2.10.8-py3-none-any.whl -
Subject digest:
7a0f34865af15200e4620c428bd6284c3b91b8a8156285d73cc6269278bffcad - Sigstore transparency entry: 1734167178
- Sigstore integration time:
-
Permalink:
RbBtSn0w/gh-address-cr@f0e6515d66d950a3db19f8501e8116453fd5d7b8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RbBtSn0w
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0e6515d66d950a3db19f8501e8116453fd5d7b8 -
Trigger Event:
push
-
Statement type: