-
Notifications
You must be signed in to change notification settings - Fork 854
feat(agents): add manifest-driven gator agent #1826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
johntmyers
wants to merge
29
commits into
main
Choose a base branch
from
feat/gator-gate-skill
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,070
−11
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
91fd9d4
chore(gator): add gator gate skill
johntmyers 1a21bba
chore(gator): add sandbox launcher scaffold
johntmyers ba80e91
chore(gator): add codex image and docs checks
johntmyers 9825e16
chore(gator): fold approved provider policy rules
johntmyers 567bc88
chore(gator): add deterministic reviewer runner
johntmyers 3dd6607
chore(gator): clarify ok-to-test comments
johntmyers c3066ac
chore(gator): structure launcher harnesses
johntmyers 9141c1b
chore(gator): require e2e for dependabot
johntmyers b875880
chore(gator): add codex refresh profile
johntmyers c7306cd
chore(gator): wip manifest agent launcher
johntmyers d810646
feat(agents): supervise watch cycles in sandbox
johntmyers 3b111f1
fix(agents): preserve gateway refresh state
johntmyers 1057af2
fix(gator): continue human response threads
johntmyers 8b83535
fix(agents): keep watch supervisor retrying
johntmyers 6846b3b
fix(agents): use refreshed Codex credential aliases
johntmyers 34c571e
fix(gator): avoid misleading gh auth checks
johntmyers 10bc74a
docs(agents): remove architecture build update
johntmyers 87b2a10
fix(gator): use REST-backed GitHub writes
johntmyers c479d52
fix(agents): bake immutable agent payloads
johntmyers 7c3a2eb
fix(agents): upload writable agent workspace
johntmyers b20fa3f
fix(agents): surface gator watch progress
elezar be52f1c
fix(agents): prevent codex stdin hang
elezar 40c2314
fix(agents): align codex subagent input
elezar 2236088
fix(agents): heartbeat during active cycles
elezar d97bfb9
fix(agents): clean up heartbeat sleep
elezar 6a4d720
fix(agents): disable gh telemetry in codex harness
elezar b886cdf
fix(agents): reconcile closed gator PRs
elezar 9ec28c8
fix(agents): query closed gator PR labels separately
elezar a89ff4d
fix(agents): tolerate rotated credential placeholders
johntmyers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| # syntax=docker/dockerfile:1 | ||
|
|
||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Gator sandbox image. | ||
| # | ||
| # This mirrors the OpenShell Community base image's core system and developer | ||
| # tooling, but keeps the initial agent surface focused on Codex + GitHub tooling | ||
| # for the gator-gate workflow. | ||
|
|
||
| FROM nvcr.io/nvidia/base/ubuntu:noble-20251013 AS system | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive \ | ||
| PYTHONDONTWRITEBYTECODE=1 \ | ||
| PYTHONUNBUFFERED=1 | ||
|
|
||
| WORKDIR /sandbox | ||
|
|
||
| # Core system dependencies copied from the community base sandbox image. | ||
| # iproute2: network namespace management (ip netns, veth pairs) | ||
| # iptables: legacy bypass detection (kept for transition) | ||
| # nftables: bypass detection; log + reject rules for direct connection diagnostics | ||
| # dnsutils: dig, nslookup | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ca-certificates \ | ||
| curl \ | ||
| dnsutils \ | ||
| iproute2 \ | ||
| iptables \ | ||
| nftables \ | ||
| iputils-ping \ | ||
| net-tools \ | ||
| netcat-openbsd \ | ||
| openssh-sftp-server \ | ||
| procps \ | ||
| traceroute \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN groupadd -r supervisor && useradd -r -g supervisor -s /usr/sbin/nologin supervisor && \ | ||
| groupadd -r sandbox && useradd -r -g sandbox -d /sandbox -s /bin/bash sandbox | ||
|
|
||
| FROM system AS devtools | ||
|
|
||
| # Node.js 22 + build toolchain. Keep the default apt installs aligned with the | ||
| # community base image, then add the small CLI tools gator commonly needs. | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ | ||
| apt-get install -y --no-install-recommends \ | ||
| build-essential \ | ||
| git \ | ||
| jq \ | ||
| less \ | ||
| nodejs=22.22.1-1nodesource1 \ | ||
| ripgrep \ | ||
| vim-tiny \ | ||
| nano \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && npm install -g npm@11.11.0 | ||
|
|
||
| # GitHub CLI | ||
| RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ | ||
| -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \ | ||
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \ | ||
| > /etc/apt/sources.list.d/github-cli.list && \ | ||
| apt-get update && apt-get install -y --no-install-recommends gh && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY runtime/harnesses/codex/install-codex.sh /usr/local/bin/install-codex.sh | ||
| ARG CODEX_VERSION=latest | ||
| RUN chmod 755 /usr/local/bin/install-codex.sh && \ | ||
| /usr/local/bin/install-codex.sh "$CODEX_VERSION" | ||
|
|
||
| # Provider profiles include both /usr/bin and /usr/local/bin variants for common | ||
| # tools. Create the /usr/local/bin aliases in this image so sandbox symlink | ||
| # resolution does not warn about missing alternate paths during policy reloads. | ||
| RUN ln -sf /usr/bin/gh /usr/local/bin/gh && \ | ||
| ln -sf /usr/bin/git /usr/local/bin/git && \ | ||
| ln -sf /usr/bin/codex /usr/local/bin/codex | ||
|
|
||
| FROM devtools AS final | ||
|
|
||
| ENV PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" | ||
|
|
||
| RUN mkdir -p /etc/openshell | ||
| COPY gator/policy.yaml /etc/openshell/policy.yaml | ||
|
|
||
| RUN printf 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"\nexport PS1="\\u@\\h:\\w\\$ "\n' \ | ||
| > /sandbox/.bashrc && \ | ||
| printf '[ -f ~/.bashrc ] && . ~/.bashrc\n' > /sandbox/.profile && \ | ||
| chown -R sandbox:sandbox /sandbox | ||
|
|
||
| USER sandbox | ||
|
|
||
| ENTRYPOINT ["/bin/bash"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Is the expectation that each agent will have it's own Dockerfile? If so, does it make sense to move this to
openshell-agents/gator/Dockerfileinstead? Alternatively, we may need to update theREADME.mdto show an (optional?)Dockerfile.agent.