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 76e7954
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/launch-openshell-gator/SKILL.md
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ For gator's PR/issue validation policy, load `gator-gate` inside the launched sa
13
13
14
14
## Non-Negotiable Rules
15
15
16
-
- Keep normal gator launches supervised: use `--watch --background` and let the in-sandbox supervisor own sleeping and relaunching bounded cycles.
16
+
- Keep normal gator launches supervised: use `--watch` and let the in-sandbox supervisor own sleeping and relaunching bounded cycles.
17
17
- Do not add passive `sleep` loops in the operator session to watch gator. Check logs or status once, then report the current state or launch a proper watcher outside the model session only when explicitly asked.
18
18
- Do not change the default gator model in `scripts/agents/gator/agent.yaml` for experiments. Use `CODEX_MODEL=...` and, if needed, a temporary `--from` Docker context or `--codex-bin` override.
19
19
- Do not push to contributor branches, approve, merge, post `/ok to test`, or broaden gator scope unless the operator explicitly authorized that action.
@@ -34,7 +34,6 @@ For gator's PR/issue validation policy, load `gator-gate` inside the launched sa
34
34
|`scripts/agents/gator/bin/validate-review-findings`| Enforces the blocker evidence schema and downgrades unsupported hypotheses. |
35
35
|`scripts/agents/gator/prompts/gator.md`| Rendered top-level prompt template baked into the payload. |
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}."
161
159
```
162
160
163
-
The launcher queries gateway's selected compute driver, builds gator image in matching Docker or Podman image store, stages immutable payload, imports provider profiles, configures provider credentials and refresh, creates and uploads sandbox payload, then starts agent supervisor with `sandbox exec`. It writes a background log under `scripts/agents/gator/logs/`. `CONTAINER_ENGINE`, when set, must match gateway driver.
161
+
The launcher queries the gateway's selected compute driver, builds the gator image in the matching Docker or Podman image store, stages the immutable payload, imports provider profiles, configures provider credentials and refresh, and starts the agent supervisor as the sandbox's canonical main process. The detached main process survives loss of the host CLI connection and reconnects to a restarted gateway. Unless `--keep` is set, the sandbox is marked ephemeral so the gateway deletes it after the supervisor exits. `CONTAINER_ENGINE`, when set, must match the gateway driver.
162
+
163
+
The launcher streams image-build and provisioning output until the detached workload is ready, then exits. Use `openshell logs <sandbox-name>` or the TUI for runtime output.
"Review and monitor PR #${pr_number} with linked issue #${issue_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number} and issue #${issue_number}."
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}. The operator explicitly authorizes applying the test:e2e label, posting /ok to test for the current head SHA, and rerunning the relevant current-head workflow when the E2E Label Help bot says that is required."
224
221
```
225
222
@@ -241,7 +238,6 @@ CODEX_MODEL=gpt-5.6-sol \
241
238
--gateway "$gateway_name" \
242
239
--name "$sandbox_name" \
243
240
--watch \
244
-
--background \
245
241
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}. This launch is intentionally testing Codex model gpt-5.6-sol via the CLI launcher."
246
242
```
247
243
@@ -266,27 +262,22 @@ CODEX_MODEL=gpt-5.6-sol \
266
262
--name "$sandbox_name" \
267
263
--from "$tmp_context" \
268
264
--watch \
269
-
--background \
270
265
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}."
271
266
```
272
267
273
268
## Monitoring
274
269
275
270
### Read The Launch Result
276
271
277
-
The launcher prints the log path when `--background` is used:
278
-
279
-
```text
280
-
Started in background. Log: scripts/agents/gator/logs/<sandbox-name>.log
281
-
```
282
-
283
-
Read that file directly. Important markers:
272
+
The launcher streams image-build and provisioning output to the terminal. Important markers:
284
273
285
274
-`Built image ...` means the local image build completed.
286
275
-`Created sandbox: <name>` means OpenShell accepted the sandbox.
287
276
-`openshell-agent: starting watch cycle` means the in-sandbox supervisor began a bounded cycle.
288
277
-`OpenAI Codex v...` plus `model: ...` confirms the Codex CLI and model actually used.
289
278
-`OPENSHELL_AGENT_RESULT {...}` is the bounded-cycle sentinel. In watch mode, the supervisor sleeps and relaunches after this line.
279
+
-`/sandbox/.openshell-agent/status.json` is the atomic current state snapshot. Its `result.notes` field is Gator's plain-language diagnosis and next action for that cycle.
280
+
-`/sandbox/.openshell-agent/history.jsonl` contains the latest 100 supervisor transitions, including active-cycle starts and completed cycle results.
290
281
-`openshell-agent: still running watch cycle ...` is a heartbeat during long active model cycles.
291
282
-`review_feedback_lookup_failed` means Gator could not build the required cross-SHA feedback ledger and deliberately skipped a context-free review.
292
283
@@ -314,6 +305,11 @@ If `sandbox get` is not supported by the local CLI shape, use `openshell sandbox
314
305
|`status=terminal_failure`| Unrecoverable or stale immutable payload. | Inspect the reason; rebuild/relaunch for `stale_gator_payload`. |
315
306
|`status=complete`| Target closed, merged, or one-shot complete. | Delete sandbox if no longer needed. |
316
307
308
+
Prefer the state snapshot over scraping transient `/tmp` cycle output. Use the
309
+
history file to tell whether a failure is repeating or whether the supervisor
310
+
has begun a fresh cycle. Runtime logs remain useful for full command output and
311
+
transport diagnostics.
312
+
317
313
## Restarting A Gator
318
314
319
315
Restart when the payload must change, the sandbox is wedged without a sentinel, the model/tooling version changed, or a transient failure repeats past the useful retry point.
| OIDC | Bearer-token auth for users, with browser or device-code PKCE and client credentials login. JWKS validation accepts RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, and EdDSA (Ed25519) signing keys. |
227
+
| OIDC | Bearer-token auth for users, with browser or device-code PKCE and client credentials login. Discovery and JWKS retrieval require HTTPS, reject redirects, and pin JWKS to the issuer origin or an explicit origin allowlist. JWKS validation accepts RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, and EdDSA (Ed25519) signing keys. |
219
228
220
229
The CLI persists the scopes requested during OIDC login in gateway metadata and
221
230
reuses them when refreshing an access token. This preserves the intended API
@@ -457,6 +466,12 @@ credential storage for defense in depth. Multi-replica deployments can use that
457
466
default with a shared database and shared key-encryption key, or opt into an
458
467
external backend such as Vault or Kubernetes Secrets.
459
468
469
+
The Vault credential driver requires HTTPS for every non-loopback backend,
470
+
never follows HTTP redirects, and keeps standard certificate hostname
471
+
verification enabled. Operators can add private Vault trust roots with a PEM
472
+
CA bundle; the driver does not replace platform roots or expose a certificate
473
+
verification bypass.
474
+
460
475
Sandbox workload templates are workspace-scoped gateway resources. Workspace
461
476
admins create and delete them; workspace users can read and list them. A
462
477
template owns reusable workload intent: image, environment, CPU and memory
Copy file name to clipboardExpand all lines: architecture/security-policy.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,8 @@ supervisor polls for config revisions and attempts to load new dynamic policy
189
189
into the in-process OPA engine; CLI reads of the latest sandbox policy use the
190
190
same effective configuration path.
191
191
192
+
The OPA loader checks the object and list shapes of raw policy data before injecting runtime fields, normalizing values, or expanding access presets. It rejects the first malformed container with a fixed structural error that excludes authored keys and values. This check preserves valid versionless OPA data and runtime-only fields. A rejected OPA engine reload leaves that engine's installed policy, generation, and decisions unchanged; the supervisor separately applies its configured runtime rejection mode.
193
+
192
194
The supervisor validates complete effective policy generations before
193
195
activation. Overlapping endpoint selectors may contribute request allow and
194
196
deny rules only when their connection and request-processing metadata agree;
0 commit comments