Separate GitHub bot opt-in and add review detail pages

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-07 16:17:14 -05:00
1 parent 7c1d2503db
commit 7dcdbe7eb6
36 files changed
+647 -204

No files matched your search

+26 -8
View File
@@ -11,6 +11,10 @@ required GitHub checks, read
## Set up a bot
Enable **GitHub review bots** in instance **Experimental** settings, then open
the GitHub Code Review Bot connector. This default-off setting is independent of
**Chat connectors**. Hiding either feature does not pause existing provider delivery.
1. Choose the bot agent. Prefer a
[low-trust review agent](https://docs.paperclip.ing/administration/trust-and-low-trust-review/)
with an isolated sandbox and a scoped task boundary. Standard-trust agents
@@ -62,13 +66,16 @@ selected environment.
- **Settings:** edit instructions, choose when the bot runs, and set review output.
Event-specific instructions, filters, formal approvals, and repository overrides
are available in disclosures.
- **Access:** choose enabled repositories, allowed people, each person’s automatic
events, and the bot’s GitHub tools. Repository switches save immediately. Other
- **Access:** choose enabled repositories, allowed people, and each person's
**Run automatically** setting. Repository switches save immediately. Other
changes use **Save changes**. A linked account alone does not grant selected-member
access. External contributors still require a sponsor and restricted permissions.
- **Reviews:** see the latest review for each pull request. The result names the
reviewed commit; earlier reviews remain in history. A previous passing result
does not stand in for a pending review of a newer commit.
access. **Add external contributor** still requires a sponsor and restricted
permissions. Bot tools are enabled during setup; a previously disabled connection
exposes an explicit repair action without silently changing its permissions.
- **Reviews:** see every assessment as one row, newest first. Open a row for its
summary, commit, findings, coverage, and task/run/publication links. Each review
has its own URL. A previous passing result does not stand in for a pending review
of a newer commit.
- **Conversations:** follow the task title to Paperclip or the repository/thread
label to GitHub.
@@ -88,7 +95,13 @@ for that person are a separate choice. Guests receive no company membership or
sponsor credentials. Authority is checked again before tool calls and
publication, so revocation also affects queued or ongoing work.
Automatic events use the configured responsible member. The PR author and
**Run automatically** allows the person's authored PRs and issues to trigger
the automatic events selected in Settings. Turning it off keeps authorized
mentions available while avoiding work on every PR or issue.
Automatic tasks use the configured responsible Paperclip member for accountability,
not that member's personal GitHub credentials. A member named **Board** in a local
test drive is still the responsible user, not a separate GitHub actor. The PR author and
webhook sender are recorded independently. Follow-ups preserve task ownership
while checking the current requester's authority.
@@ -145,7 +158,12 @@ hostname, or the connector's Reviews page when no task has been created yet.
Formal **APPROVE** and **REQUEST_CHANGES** are separate governed tools, each off
by default. Enabling either does not automatically perform it. A score of 5/5
alone never approves a PR.
alone never approves a PR. The agent must finish an assessment and explicitly
choose the allowed action. **Allow approvals** permits a formal ready-to-merge
decision; **Allow request changes** permits a formal change request, which can
prevent merging when the repository's review rules require resolution. Keeping
these off leaves scores, comments, and checks available while making formal
review decisions opt-in. The controls include contextual tooltips.
To enforce the rating at merge time, configure GitHub branch protection or a
ruleset to require **Paperclip Review**, selecting this bot App as the source
@@ -285,3 +285,43 @@ head presentation, and GitHub thread labels. The affected management, setup,
AgentMail, sidebar, and shared UI-contract group has 47 passing tests. Repository
typecheck/build, Storybook build, and token gates pass. The earlier full-suite
failure and outstanding current-head CI/review remain as recorded above.
### Independent GitHub setting and review detail qualification
GitHub review bots now use their own default-off instance experimental setting.
The shared validator, persisted settings, managed feature catalog, setup and
management routes, catalog, agent channels, task controls, identity-link admission,
and agent connector discovery use that setting independently from chat connectors.
Existing event delivery is not paused merely by hiding the UI.
The same local test drive was restarted and inspected with **GitHub review bots
on and Chat connectors off**. Connectors showed both GitHub tools and the dedicated
review bot. Opening Animal Bot still reached Settings and Access. Reviews showed
the two real commit assessments as separate rows. Each row opened its own detail
URL with the exact commit, Markdown summary, rationale, coverage, and task/run,
GitHub comment, and check links. Reload retained the detail route; All reviews
returned to the list. The detail kept the Reviews contextual navigation. Desktop
and 390px list/detail layouts were inspected.
Formal approval and request-changes controls retain their off defaults and have
tooltips describing explicit actions after a completed assessment, independent
of scores and checks. **Run automatically** explains each person's authored
PR/issue scheduling and preserves mention-only access when disabled. The
responsible-member tooltip explains Paperclip accountability without personal
credential delegation. The tooltips were opened in the live UI, including the
approval tooltip at 390px. **Add external contributor** replaces the old label.
The normal bot-tools switch is removed; saved disabled restrictions remain
disabled until an explicit repair is saved. No bot configuration was changed
by this walkthrough. A final read found revision 7 with a separately saved
PR-opened prompt change relative to the previous revision-6 snapshot; that edit
was preserved. Tools, repository access, and formal review permissions remain
unchanged.
Focused verification: 388 UI tests and 134 backend/shared settings and identity
tests pass. The added connector-discovery integration test passes with a disposable
local PostgreSQL database; the sandbox-only attempt skipped because it could not
open the database port. The management UI group was rerun after the final tooltip
copy edit and passes. Repository typecheck/build, production Storybook build,
and token gates pass; the final discovery change also received focused server
typecheck/build. These checks do not qualify a new provider or model run. The
earlier full-suite failure and outstanding current-head CI/review still apply.