@@ -64,8 +64,9 @@ The deployment expects secrets and mutable state to be supplied outside git:
6464- ` COVEN_CODE_BIN ` - absolute coven-code path inside that rootfs
6565- ` COVEN_RUNTIME_NETWORK=shared ` - explicit opt-in required when the Codex
6666 provider needs network access; the default is ` none `
67- - ` COVEN_REVIEW_FIX_LOOPS ` - optional bounded review-fix loop count, clamped
68- between ` 0 ` and ` 5 ` ; defaults to ` 0 ` so hosted repair loops are opt-in
67+ - Automatic review and repair are repository-policy controls, not ambient
68+ environment switches. ` autoreview.enabled ` and ` repair.enabled ` must each be
69+ opted into explicitly; ` kill_switch ` stops new routing and repair pushes.
6970- Codex OAuth tokens under the deployed account's ` .coven-code ` directory
7071
7172Do not commit private keys, webhook secrets, OAuth tokens, generated task state,
@@ -185,7 +186,9 @@ connection guide in
185186 sandbox.
186187- Uses repository-scoped installation tokens: parent Git gets only
187188 ` contents:read ` , PR evidence gets read authority, and publication write
188- authority is minted only after isolated execution has finished.
189+ authority is minted only after isolated execution has finished. An opted-in
190+ repair mints a separate short-lived token with only ` contents:write ` and
191+ ` pull_requests:read ` ; the model never receives it.
189192- Persists ` publication_pending ` before GitHub writes and resumes interrupted
190193 publication on startup or duplicate webhook delivery without rerunning the
191194 agent.
@@ -198,6 +201,12 @@ connection guide in
198201- Publishes non-PR task results and operational notices as issue comments,
199202 including structured ` reviewed_files ` , ` supporting_files ` , findings, test
200203 evidence, no-findings rationale, and limitations.
201- - When ` COVEN_REVIEW_FIX_LOOPS ` is greater than ` 0 ` , reruns ` coven-code ` with
202- prior structured review findings as explicit repair instructions until no
203- findings remain or the configured loop count is exhausted.
204+ - With explicit ` autoreview.enabled ` , routes opened, ready-for-review, reopened,
205+ and synchronized pull-request revisions by repository, PR number, and exact
206+ head SHA. Drafts remain excluded unless ` include_drafts ` is enabled.
207+ - With separate ` repair.enabled ` , an evidence-complete REQUEST_CHANGES review
208+ may launch a file-write-only hosted repair. The trusted host rejects forks,
209+ protected branches and paths, oversized or unrelated diffs, stale heads, and
210+ failed validation; it then creates a Covencat-attributed non-force commit and
211+ queues a fresh review of the new SHA. The loop stops after the configured
212+ ` max_attempts ` (clamped to 1-3) or on repeated findings or non-progress.
0 commit comments