Skip to content

Commit 844e44f

Browse files
committed
chore(cdi): stack tmachine tests on CDI dependency updates
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2 parents 1e03c52 + 360f6d5 commit 844e44f

286 files changed

Lines changed: 24120 additions & 3689 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/build-from-issue/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Use a single issue comment beginning with `> **🏗️ build-plan**` when a plan
2727
1. Check the current branch and working tree. Preserve unrelated work. Create an issue-specific branch or worktree as needed, following Branch Names in `CONTRIBUTING.md`.
2828
2. Implement the smallest coherent change that fulfills the acceptance criteria. Update relevant skills when behavior or commands change. Keep published documentation minimal: explain exactly what users need, avoid duplication across pages, and omit internal details with no user impact.
2929
3. Add meaningful tests for changed behavior and follow the verification guidance in `CONTRIBUTING.md`. Select format, lint, compile or type checks, and tests for affected components and their dependencies. Run the relevant E2E lane for infrastructure, sandbox, or policy changes. Guidance and template edits need applicable Markdown, YAML, link, and consistency checks. Do not require full Rust, SDK, or repository CI solely because a commit or PR is being created; broaden checks only for a concrete remaining risk or failed check.
30-
4. Review the diff, use a signed-off Conventional Commit, and prepare a PR following `create-github-pr`.
30+
4. Before pushing, apply the contributor access and issue acceptance check in `create-github-pr`. If blocked, preserve local work and report the reason. Review the diff, use a signed-off Conventional Commit, and prepare the PR.
3131

3232
Every PR from this issue-backed workflow must have its own existing issue and use `Closes #<id>` in its Related Issue section. For work needing multiple PRs, split the scope into a closable issue per PR. A high-level issue may track those issues but should not be closed by an incomplete PR. Report the implementation, verification, and any remaining limitation in the PR description, rather than copying earlier issue diagnostics.
3333

‎.agents/skills/build-openshell-mxc-windows/SKILL.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ Windows MSVC for the supported deliverables:
2121
It intentionally does not make Windows a Docker, Kubernetes, Podman, or VM
2222
runtime host.
2323

24+
The supervisor and supervisor-process libraries participate in native Windows
25+
checks and tests. Their gateway session, boundary attachment, and TCP readiness
26+
are portable; only the optional Unix SSH/readiness socket adapters are gated.
27+
This is compile and control-plane coverage, not Windows isolation qualification.
28+
Preserve readiness gating on authenticated gateway acceptance and reconnection.
29+
The supervisor process-access multiplexer consumes boundary-provided streams;
30+
do not restore local PID, PTY, or process-group operations there. Native process
31+
mechanics belong to the sandbox or isolation backend. Keep the optional Unix
32+
SSH access adapter separate from portable session orchestration.
33+
Shared Sandbox Protocol audit validation defaults to strict Linux evidence;
34+
concrete platform validators must be selected by the implementing backend.
35+
2436
## Current Repository Shape
2537

2638
The Windows build lane is implemented by these tracked files:

‎.agents/skills/build-openshell-mxc-windows/reference.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ top-level workspace targets for check/test:
111111
--exclude openshell-driver-vault
112112
--exclude openshell-driver-vm
113113
--exclude openshell-sandbox
114-
--exclude openshell-supervisor
115-
--exclude openshell-supervisor-process
116114
--exclude openshell-vfio
117115
```
118116

@@ -124,6 +122,10 @@ egress proxy. The Kubernetes Secrets and Vault libraries still compile as
124122
gateway dependencies; only their standalone Unix-socket binaries and
125123
package-level tests are excluded as top-level targets.
126124

125+
The supervisor and supervisor-process packages now participate as top-level
126+
native check/test targets. Their portable session, attachment, and TCP readiness
127+
coverage does not enable a Windows isolation runtime.
128+
127129
## Common Errors
128130

129131
### Unix imports leak into Windows builds

‎.agents/skills/create-github-pr/SKILL.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ Create pull requests on GitHub using the `gh` CLI.
1717

1818
## Before Creating a PR
1919

20+
### Verify Contributor Access and Issue Acceptance
21+
22+
Before pushing or creating a PR (including a draft), verify the author's access
23+
to the target repository, not their fork. For the authenticated `gh` user:
24+
25+
```bash
26+
gh repo view OWNER/REPO --json nameWithOwner,viewerPermission
27+
gh issue view ISSUE_NUMBER --repo OWNER/REPO --json number,url,labels
28+
```
29+
30+
Authors with verified `WRITE`, `MAINTAIN`, or `ADMIN` access may proceed without
31+
`state:accepted`; keep the issue link and note the missing label. Everyone else
32+
must link at least one target-repository issue and have `state:accepted` on each.
33+
Otherwise, preserve local work and report which issue needs acceptance. A direct
34+
request, roadmap placement, other labels, or vouch status does not bypass this gate.
35+
36+
When acting for another author, verify their permissions. Resolve failed lookups
37+
before proceeding; retry sandbox network failures outside the sandbox before
38+
reporting an authentication problem. Vouch requirements still apply separately.
39+
2040
### Check Config Documentation
2141

2242
If the branch changes gateway TOML parsing, `[openshell.gateway]` fields,
@@ -220,6 +240,9 @@ EOF
220240

221241
The command outputs the PR URL and number.
222242

243+
Rerun `PR Issue Acceptance` after linked issue labels change; it does not refresh
244+
automatically on issue-label events.
245+
223246
**Display the URL using markdown link syntax** so it's easily clickable:
224247

225248
```

‎.agents/skills/launch-openshell-gator/SKILL.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ The launcher streams image-build and provisioning output to the terminal. Import
286286
size-limited full-diff endpoint. An unavailable patch ID alone does not block
287287
the ledger; it disables rebase-equivalence shortcuts. Reviewers should inspect
288288
oversized changes file-by-file locally.
289+
- Security regressions introduced or newly exposed by an unmerged PR belong
290+
in its normal review findings. Private follow-up under `SECURITY.md` is for
291+
pre-existing vulnerabilities independent of the PR; security classification
292+
alone is not a private-triage or test-dispatch gate. Gator must not initiate
293+
external security reporting without explicit operator authorization.
289294

290295
### Inspect Active Sandboxes
291296

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: release-openshell
3+
description: Pick the latest qualified OpenShell prerelease and tag its commit as stable. Create and qualify a prerelease first when none exists.
4+
metadata:
5+
internal: true
6+
---
7+
8+
# Release OpenShell
9+
10+
For the intended release version, pick the latest prerelease whose Release
11+
Qualification job passed. Confirm that its qualification summary matches the
12+
tag and commit. Present the candidate and changes since the previous stable
13+
release to the maintainer; once approved, tag that exact commit as `vX.Y.Z`.
14+
15+
If no prerelease exists, agree on the version and source commit, then create and
16+
push `vX.Y.Z-pre.1`. Wait for qualification to pass before promoting it.
17+
18+
Both prerelease and stable tag pushes start Release Tag. Release Auto-Tag uses
19+
an explicit dispatch because its `GITHUB_TOKEN` pushes do not trigger workflows.
20+
Watch the stable release run and report its result.

‎.agents/skills/review-github-pr/SKILL.md‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,28 @@ gh pr list --head "<branch>" --state open
3939
Retrieve the PR metadata:
4040

4141
```bash
42-
gh pr view <number> --json title,body,state,headRefName,baseRefName,labels,author
42+
gh pr view <number> --json title,body,state,headRefName,baseRefName,labels,author,closingIssuesReferences
4343
```
4444

4545
Record the **title**, **body**, **headRefName**, and **baseRefName** for use in later steps.
4646

47+
### Check Issue Acceptance
48+
49+
Inspect every closing issue reference (paginate as needed) and fetch its current
50+
repository and labels. Verify the PR author's permission in the target repository:
51+
52+
```bash
53+
gh api repos/OWNER/REPO/collaborators/AUTHOR/permission --jq .permission
54+
```
55+
56+
Call out each linked issue missing `state:accepted`, with an issue link. Verified
57+
`write`, `maintain`, or `admin` access permits the exception; report it as context,
58+
not a blocking concern. Other authors need at least one target-repository issue,
59+
and every linked issue must be accepted; report violations under **Potential
60+
Concerns**. PR body text such as `No issue required` does not bypass this gate.
61+
Report failed lookups as unverified and continue the code review. For a branch
62+
without a PR, note that issue acceptance was not verified.
63+
4764
## Step 3: Generate the Diff
4865

4966
### Primary: gh pr diff

‎.agents/skills/test-release-canary/SKILL.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Release Canary (`.github/workflows/release-canary.yml`) smoke-tests the arti
1717
| `ubuntu-deb` | `ubuntu-latest` | Installs the dev Debian package, reaches the Docker gateway, and creates, executes in, and deletes a sandbox. |
1818
| `fedora` | `fedora:latest` container | Installs the dev RPM packages, reaches the Podman gateway, and creates, executes in, and deletes a sandbox. |
1919
| `ubuntu-snap-system-docker` | `ubuntu-latest` | Uses `install.sh` to install the snap from `latest/edge`, reuses system Docker, verifies the packaged prover version and a local policy boundary check, reaches the Docker gateway, creates, executes in, and deletes a sandbox, and verifies that the Docker snap is not installed. |
20-
| `ubuntu-snap-docker-preflight` | `ubuntu-latest` | Verifies that `install.sh` rejects the OpenShell Snap path when Docker is absent or supplied by the Docker snap, without installing OpenShell. |
20+
| `ubuntu-snap-docker-preflight` | `ubuntu-latest` | Verifies that `install.sh` rejects the OpenShell snap path when Docker is absent or supplied by the Docker snap, without installing OpenShell. |
2121
| `kubernetes` | `ubuntu-latest` + kind | Installs the dev Helm chart, reaches the in-cluster gateway, and creates, executes in, and deletes a sandbox using the published runtime images. |
2222

2323
All canary jobs disable anonymous OpenShell telemetry. Host package jobs inject
@@ -27,7 +27,7 @@ does not contribute to product usage metrics.
2727

2828
The workflow sets `OPENSHELL_VERSION=dev` for every `install.sh` job. Positive
2929
jobs consume the rolling dev release produced by the triggering workflow. The
30-
system-Docker Snap lane tracks `latest/edge`; the missing-Docker lane exits
30+
system-Docker snap lane tracks `latest/edge`; the missing-Docker lane exits
3131
before installing a snap. The Debian and Kubernetes CLI lanes remove snapd so
3232
they continue to exercise the dev Debian package. Kubernetes pins the matching
3333
`0.0.0-dev` chart and `:dev` images.
@@ -141,10 +141,10 @@ Loopback registration auto-derives the gateway name to `openshell` if `--name` i
141141
| Symptom | Likely cause | Where to look |
142142
|---|---|---|
143143
| `macos`/`ubuntu-deb`/`fedora` job fails on `install.sh` | Dev release missing an asset, checksum mismatch, or `install.sh` regression on this branch. | Job log around the `curl … install.sh \| sh` step. |
144-
| Sandbox create or exec fails | Published sandbox and supervisor artifacts are missing, incompatible, or cannot establish the protected runtime channel. | Gateway logs plus Docker, Podman, VM, Snap, or Kubernetes runtime diagnostics for the job. |
144+
| Sandbox create or exec fails | Published sandbox and supervisor artifacts are missing, incompatible, or cannot establish the protected runtime channel. | Gateway logs plus Docker, Podman, VM, snap, or Kubernetes runtime diagnostics for the job. |
145145
| `macos`/`ubuntu-deb`/`fedora` job fails on `openshell status` | Local gateway service did not start (systemd/brew/podman). Often a driver issue. | Service logs in the job log; `OPENSHELL_COMPUTE_DRIVER` env in the "Ensure …" step. |
146146
| `ubuntu-snap-system-docker` fails during `install.sh` | System Docker was unavailable to the runner user, the edge revision or automatic interfaces were unavailable, or the user gateway did not become reachable. | Failure diagnostics dump system Docker, snap service/connection/change state, user and legacy gateway journals, snap logs, and port 17670 listeners. |
147-
| `ubuntu-snap-system-docker` fails during the prover checks | The prover artifact is missing or packaged for the wrong architecture, `openshell.prover` is not exposed or confined to read the test policies, or its solver linkage is not runnable. | The `Verify Snap installation` and `Check a policy boundary with the Snap prover` steps, plus `snap info openshell` and `snap connections openshell`. |
147+
| `ubuntu-snap-system-docker` fails during the prover checks | The prover artifact is missing or packaged for the wrong architecture, `openshell.prover` is not exposed or confined to read the test policies, or its solver linkage is not runnable. | The `Install and check status` and `Check a policy boundary with the snap prover` steps, plus `snap info openshell` and `snap connections openshell`. |
148148
| `ubuntu-snap-docker-preflight` unexpectedly succeeds | The installer no longer fails before installing the OpenShell snap when Docker is absent or supplied by the Docker snap. | Inspect `install.log`, `docker-snap.log`, `snap list`, and snapd changes. |
149149
| `kubernetes` job fails on `helm install --wait` | Chart did not deploy in 5 min — usually image pull failure or readiness probe failing. | "Diagnostics on failure" step dumps `helm status`, manifest, pod describe, pod logs. |
150150
| `kubernetes` job fails on `kubectl wait` | Gateway pod stuck `CrashLoopBackOff` or `ImagePullBackOff`. | Diagnostics dump; check `:dev` image existence at `ghcr.io/nvidia/openshell/gateway`. |

‎.agents/skills/watch-github-actions/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ gh run list --json databaseId,status,headBranch,url --jq '.[] | {id: .databaseId
125125

126126
## View Job Logs
127127

128+
`Release Tag` temporarily omits Codex Security from its `Security Scan` job.
129+
Other scanners and qualification gates still run. Use the standalone
130+
`Codex Security Release Qualification` workflow for manual investigation.
131+
128132
For `Codex Security`, an exit code of 2 with partial coverage is an incomplete
129133
scan, not a HIGH/CRITICAL threshold failure. Check the execution diagnostics in
130134
the job summary and the `codex-security-diagnostics-<run>-<attempt>` artifact on

‎.claude/agents/principal-engineer-reviewer.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ When reviewing code or diffs:
9999
- Treat pre-existing security issues as private security follow-up, not public
100100
blockers on the current pull request. Treat other pre-existing defects as
101101
non-blocking follow-up work.
102+
- Surface security regressions introduced or newly exposed by an unmerged PR
103+
in the normal PR review evidence contract. A new reachable path, trusted sink,
104+
or security contract is PR-owned even when an underlying unsafe primitive
105+
already existed. Security classification alone is not a private-triage gate.
106+
Do not contact external reporting channels without operator authorization.
102107
- Keep docs, skill drift, diagnostic wording, and test-strength feedback
103108
advisory unless the published contract is materially false, the diagnostic
104109
creates an operational or safety failure, or missing coverage leaves a

0 commit comments

Comments
 (0)