Nox-Lumen MfgNox-Lumen Mfg

gerrit-integration

Capabilities

Agent-grade review loop for Gerrit.

ToolREST mapping
gerrit_fetch_changeGET /changes/{id}/detail
gerrit_get_diffGET /changes/{id}/revisions/{rev}/patch
gerrit_post_reviewPOST /changes/{id}/revisions/{rev}/review (Code-Review -2…+2)
ask_userHuman confirmation (e.g., before -2)

Typical flow

Webhook: change updated

gerrit_fetch_change(change_id=12345)

git skill → fetch refs/changes/.../1

L1 static analysis + L2 code-review

gerrit_post_review(message=..., labels={Code-Review: -1})

Code-Review label semantics

ValueMeaning
+2Ship it (often maintainer-only)
+1Looks good, still needs another +2
0No vote
-1Issues worth discussing
-2Hard block

Agents generally reserve -1/-2 for demonstrable severe defects with evidence.

Security & compliance

TopicDetail
CredentialsHTTP passwords or OAuth tokens via credential adapters
Tenant isolationSeparate secrets per tenant
AuditEvery post_review recorded
Safety-2 flows should ask_user first

Invocation

/gerrit-integration Review this change and vote

Examples:

  • "Pull Gerrit change 87654"
  • "Run a review and reply inline"
  • "Vote -1 if there’s a serious bug"

Upgrade notes (legacy tenants)

ChangeOldNewAction
Auto reply defaultWebhooks auto-postedauto_broadcast defaults off—must opt inEnable in tenant config if you still want autonomous posts; otherwise treat as “review only, notify via IM”
Full-branch / full-repo reviewNot promised historicallyGerrit adapter is change-scoped onlyUse GitHub/GitLab paths or mirror to a plain git remote for repo-wide review
Webhook URLsRaw URLs in old docsPlatform inbound channels issue URL + secretRegenerate hooks—legacy URLs may be invalid

Smoke-test with a +0 comment-only change before enabling auto_broadcast.

On this page