You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d16a2a
Browse filesBrowse the repository at this point in the historyBrowse files
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}."
158
159
```
159
160
160
-
The launcher builds the gator sandbox image when needed, stages the immutable payload, imports provider profiles, configures provider credentials and refresh, creates the sandbox, and writes a background log under `scripts/agents/gator/logs/`.
161
+
The launcher builds the gator sandbox image when needed, stages the immutable payload, imports provider profiles, configures provider credentials and refresh, creates and uploads the sandbox payload, then starts the agent supervisor with `sandbox exec`. It writes a background log under `scripts/agents/gator/logs/`.
161
162
162
163
### Launch An Issue Or Issue/PR Pair
163
164
@@ -317,10 +318,10 @@ Restart when the payload must change, the sandbox is wedged without a sentinel,
317
318
318
319
Increment `payload_version` in `scripts/agents/gator/agent.yaml` whenever a
guard, ledger, or bundled validator. Existing immutable watchers cannot replace
321
-
their own payload. New-version watchers detect later published versions and
322
-
stop with `stale_gator_payload`; relaunch every still-active older watcher after
323
-
the version bump is published.
321
+
guard, ledger, thread resolver, or bundled validator. Existing immutable
322
+
watchers cannot replace their own payload. New-version watchers detect later
323
+
published versions and stop with `stale_gator_payload`; relaunch every
324
+
still-active older watcher after the version bump is published.
324
325
325
326
Before deleting, check that the sandbox is truly stale or that the operator asked for a restart. If a bounded review cycle is actively running and still producing useful output, prefer leaving it alone.
Copy file name to clipboardExpand all lines: scripts/agents/gator/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The manifest-driven launcher at `scripts/agents/run.sh` reads `agent.yaml`, whic
29
29
30
30
The launcher:
31
31
32
-
- Scans `profile_paths` in manifest order and imports `providers/github-gator.yaml`.
32
+
- Scans `profile_paths` in manifest order and imports or updates `providers/github-gator.yaml`.
33
33
- Creates or updates the `github-gator` provider from `gh auth token`.
34
34
- Selects the requested harness and bakes the common runtime into the immutable sandbox payload.
35
35
- For `--harness codex`, imports `providers/codex-gator.yaml`, creates or updates the `codex-gator` provider from `$HOME/.codex/auth.json`, and stores the refresh token as gateway-only refresh material.
@@ -38,14 +38,18 @@ The launcher:
38
38
- Uses the gator image policy copied to `/etc/openshell/policy.yaml`.
39
39
- Installs the gator-specific `gh` wrapper from `gator/bin/gh` as `/usr/local/bin/gh` to fail closed when same-head-SHA history cannot be checked, prevent duplicate dispositions, and require versioned review payloads.
40
40
- Installs `gator/bin/review-feedback-ledger` as `/usr/local/bin/review-feedback-ledger` so reviews receive tree- and patch-aware scope, prior summaries and findings, resolution state, convergence telemetry, and the three-round Warning budget.
41
+
- Installs `gator/bin/resolve-gator-review-threads` so a follow-up commit that
42
+
demonstrably fixes a Gator inline finding can resolve the corresponding
43
+
Gator-owned GitHub review thread without touching human review threads.
41
44
- Installs `gator/bin/validate-review-findings` to downgrade blockers that lack the required reachability, ownership, base-vs-head, impact, and reproducer evidence.
45
+
- Keeps that normalized evidence as Gator's internal review contract, then renders validated blockers for people as a read-aloud `Summary`, an actionable `Fix`, and a deterministic `Verify`. Exact paths and only the additional provenance an implementation agent needs appear in collapsed `Agent context`; raw evidence headings such as `Base` and `Head` are not posted publicly. Review-process provenance, docs and E2E disposition, SHAs, and state codes appear at the end of the summary in collapsed `Gator metadata`, while required human actions remain visible.
42
46
- Bakes `scripts/agents/gator/skills/gator-gate/SKILL.md` into `/etc/openshell/agent-payload`.
43
47
- Bakes `.claude/agents/principal-engineer-reviewer.md` so the selected harness can run a deterministic independent reviewer execution through `/etc/openshell/agent-payload/runtime/subagent.sh principal-engineer-reviewer < task.md`.
44
48
- For `--harness codex`, optionally bakes a host Codex executable as `/etc/openshell/agent-payload/runtime/harnesses/codex/codex`.
45
49
- Starts the selected harness without a TTY.
46
50
- Runs gator in `watch` mode by default. The sandbox stays alive while the supervisor sleeps between bounded Codex cycles, so Codex is not connected during passive PR waits. The supervisor prints periodic heartbeat lines during active cycles and passive sleeps.
47
51
- Makes each watch cycle compare its immutable payload version with the version published on the default branch. A stale watcher stops without GitHub writes and must be relaunched.
48
-
The GitHub provider profile allows read-only GraphQL queries on `api.github.com/graphql` so `gh` read paths can use GraphQL when needed. Write operations remain REST-only and scoped to the two allowed repositories.
52
+
The GitHub provider profile allows read-only GraphQL queries on `api.github.com/graphql` so `gh` read paths can use GraphQL when needed. Its only GraphQL mutation is the named `ResolveGatorReviewThread` operation, restricted to the `resolveReviewThread` root field. All other writes remain REST-only and scoped to the two allowed repositories.
49
53
50
54
Set `GATOR_CODEX_ACCESS_CREDENTIAL_KEY` or pass `--codex-access-key` if the gator Codex profile uses a credential key other than `CODEX_AUTH_ACCESS_TOKEN` for the short-lived access token.
51
55
@@ -58,4 +62,6 @@ The launcher preserves existing gateway-owned Codex refresh material by default
0 commit comments