Forgejo AI PR Review v1 completion checklist #1

Open
opened 2026-07-20 13:37:59 +01:00 by nimmo · 0 comments
Owner

Purpose

Track completion of the reusable Forgejo reviewer against the architecture accepted as of main db44a09 (2026-10-10). The original implementation specification has largely been delivered; this checklist replaces its outdated proposed schema, component layout and blanket approval prohibition.

Delivered

  • Reusable Python CLI and Forgejo composite action; Nix packaging and non-root container distribution (#2).
  • PR metadata, commits, diffs, guidance and manual PR selection with bounded context (#6).
  • Trusted base-revision executable configuration, configured deterministic checks, resource/time limits and bounded/redacted diagnostics (#2, #4).
  • Ollama and OpenAI-compatible providers behind provider dispatch (#5).
  • Headless Pi, OpenCode and generic agent-cli providers, structured report validation and bounded invalid-response recovery (#28, #30).
  • Optional second validation pass, confidence filtering and finding deduplication (#4).
  • Deterministic file batching, security-first ordering, exclusions, explicit coverage and changed-file pagination (#7, #32).
  • Advisory primary-comment updates and commit-linked formal reviews by a dedicated publishing account (#19, #27).
  • Explicitly configured approval/request-changes authority; no automated source modification or merge (#27).
  • Human feedback context and opt-in authorized /ai-review requests, serialized runs, head checks and completion deduplication (#16, #21).
  • Mocked Forgejo/model fixtures and regression coverage without requiring a live inference provider (#8).
  • Operational use across this repository and nixos-config without repository-specific source changes.

Remaining v1 work

  • Finish and reconcile operator/contributor documentation, troubleshooting, example output and configuration reference (#3).
  • Provide a clear safe bootstrap outcome when the trusted base lacks configuration (#22).
  • Record live post-merge validation of the newly enabled /ai-review event path: request accepted without a push, unchanged-context duplicate skipped, normal discussion does not start a review. PR #34's pre-merge CI verified publication and publishing-token identity; it did not exercise the default-branch comment trigger.
  • Review this checklist after those tasks and close the v1 umbrella with linked completion evidence.

Current architectural decisions

  • HTTP providers remain available; Pi/OpenCode source-navigation agents are optional. Built-in tool restrictions are not an OS sandbox, so CLI agents and deterministic checks require an appropriately isolated runner.
  • Executable configuration is trusted only from the PR base revision. Checkout guidance and discussion are untrusted evidence.
  • Advisory mode is the default. Formal approval/request-changes authority must be explicitly granted in trusted configuration. The reviewer never merges or edits code; a human remains responsible for merge decisions.
  • Formal reviews retain commit-linked history instead of rewriting an earlier review. Advisory mode updates the publishing account's primary report.
  • Fork-originated code must not receive publishing credentials; workflows and preparation enforce the documented protections.
  • Providers are selected explicitly; deployment-specific models, authentication and runner labels are not universal defaults.

Outside this completion checklist

#35 tracks optional validated inline review comments. They were not required by the original initial-version acceptance and do not block v1 closure. Additional provider integrations, richer metrics, path-specific policies and linked-issue enrichment are future enhancements unless separately prioritized.

Evidence

Closed implementation issues above record the delivered work. PR #34 merged at db44a09074b5fc3af2d58fb70aa1c7b0f9977981; its reviewed head eab2a1c passed CI and Clankbot reported Ready to merge. The local suite at that head ran 113 tests: 112 passed and one optional OpenCode integration test was skipped.

## Purpose Track completion of the reusable Forgejo reviewer against the architecture accepted as of main `db44a09` (2026-10-10). The original implementation specification has largely been delivered; this checklist replaces its outdated proposed schema, component layout and blanket approval prohibition. ## Delivered - [x] Reusable Python CLI and Forgejo composite action; Nix packaging and non-root container distribution (#2). - [x] PR metadata, commits, diffs, guidance and manual PR selection with bounded context (#6). - [x] Trusted base-revision executable configuration, configured deterministic checks, resource/time limits and bounded/redacted diagnostics (#2, #4). - [x] Ollama and OpenAI-compatible providers behind provider dispatch (#5). - [x] Headless Pi, OpenCode and generic agent-cli providers, structured report validation and bounded invalid-response recovery (#28, #30). - [x] Optional second validation pass, confidence filtering and finding deduplication (#4). - [x] Deterministic file batching, security-first ordering, exclusions, explicit coverage and changed-file pagination (#7, #32). - [x] Advisory primary-comment updates and commit-linked formal reviews by a dedicated publishing account (#19, #27). - [x] Explicitly configured approval/request-changes authority; no automated source modification or merge (#27). - [x] Human feedback context and opt-in authorized `/ai-review` requests, serialized runs, head checks and completion deduplication (#16, #21). - [x] Mocked Forgejo/model fixtures and regression coverage without requiring a live inference provider (#8). - [x] Operational use across this repository and nixos-config without repository-specific source changes. ## Remaining v1 work - [ ] Finish and reconcile operator/contributor documentation, troubleshooting, example output and configuration reference (#3). - [ ] Provide a clear safe bootstrap outcome when the trusted base lacks configuration (#22). - [ ] Record live post-merge validation of the newly enabled `/ai-review` event path: request accepted without a push, unchanged-context duplicate skipped, normal discussion does not start a review. PR #34's pre-merge CI verified publication and publishing-token identity; it did not exercise the default-branch comment trigger. - [ ] Review this checklist after those tasks and close the v1 umbrella with linked completion evidence. ## Current architectural decisions - HTTP providers remain available; Pi/OpenCode source-navigation agents are optional. Built-in tool restrictions are not an OS sandbox, so CLI agents and deterministic checks require an appropriately isolated runner. - Executable configuration is trusted only from the PR base revision. Checkout guidance and discussion are untrusted evidence. - Advisory mode is the default. Formal approval/request-changes authority must be explicitly granted in trusted configuration. The reviewer never merges or edits code; a human remains responsible for merge decisions. - Formal reviews retain commit-linked history instead of rewriting an earlier review. Advisory mode updates the publishing account's primary report. - Fork-originated code must not receive publishing credentials; workflows and preparation enforce the documented protections. - Providers are selected explicitly; deployment-specific models, authentication and runner labels are not universal defaults. ## Outside this completion checklist #35 tracks optional validated inline review comments. They were not required by the original initial-version acceptance and do not block v1 closure. Additional provider integrations, richer metrics, path-specific policies and linked-issue enrichment are future enhancements unless separately prioritized. ## Evidence Closed implementation issues above record the delivered work. PR #34 merged at `db44a09074b5fc3af2d58fb70aa1c7b0f9977981`; its reviewed head `eab2a1c` passed CI and Clankbot reported Ready to merge. The local suite at that head ran 113 tests: 112 passed and one optional OpenCode integration test was skipped.
nimmo changed title from Implement a reusable AI-assisted pull request review workflow for Forgejo to Forgejo AI PR Review v1 completion checklist 2026-10-10 18:03:36 +01:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/forgejo-auto-pr-review#1
No description provided.