Extract a shared Docker, NVX, and Cloud Hypervisor conformance suite
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, github-actions, typescript
調査の方向性
Start with scripts/ci/cloud-hypervisor-enclave-live-smoke.js and its test, then read docs/enclaves-architecture.md#cross-backend-workload-contract and its verification table. Compare the existing harness with src/enclave/host-executor-protocol.test.ts and src/cloud-hypervisor/enclave-network.integration.test.ts to identify reusable scenarios and backend-specific adapter work. Done means shared scenarios and assertions cover the stated matrix, run in root Jest without KVM, and report capability, evidence, and cleanup status without counting gated or unsupported cases as passes.
索引モデルが issue の本文から書いたものです。
説明
Goal
Catch cross-backend regressions with one set of workload scenarios and behavioral assertions, rather than three independently maintained smoke suites. Part of #10335, step 5.
Scope
- Treat #10347's merged cross-backend contract as the scenario/evidence baseline and #10342's extracted core as implemented infrastructure, not a certificate of backend parity.
- Extract reusable scenarios, fixtures, probes, and output validation from the Cloud Hypervisor live smoke harness.
- Keep artifact provisioning, workload fault injection, runtime identity inspection, and residue inspection in backend-specific harness adapters.
- Exercise Docker, NVX, and Cloud Hypervisor across primary-only, primary + script-only, primary + agent-only, and primary + both combinations. Script-only/agent-only mean only that enclave role is enabled alongside the primary, not standalone enclave CLI modes. Keep direct trusted-host seam tests distinct from the full CLI path.
- Cover success, malformed/oversized/schema-invalid results, shared disclosure/invocation/tool/model budgets, guest identity, denied paths, immutable seeds, and allowed/denied network routes.
- Cover storage exhaustion, sparse files/concurrent writers, memory/PID bounds, timeout, cancellation, shutdown races, broker loss, workload/VMM crash, AWF termination/restart, and orphan cleanup.
- Run synthetic private-output sentinels through stdout, audit, diagnostics, and artifact capture checks.
- Exercise the complete primary → compiler-owned mcpg → broker → enclave → bounded-result path, not only direct backend invocations.
- Use deterministic provider fixtures for routine tests and separately authorized real-provider acceptance.
- Retain backend-specific confinement/provenance tests; shared functional scenarios do not replace them.
- Encode the contract's implemented/gated/unsupported/unverified matrix separately from scenario outcomes. NVX enclave rejection, Cloud Hypervisor named public-fixture/conformance predicates, private-repository VM non-acceptance, custom-image/engine restrictions and static/dynamic GitHub differences must be explicit negative or gated cases until separately accepted.
- Pin the warning-emitting Cloud Hypervisor primary-only
CloudHypervisorUnsupportedHostErrorfallback and resolved Docker backend. Enclave runs, NVX, artifact-trust failures and other launch failures must not fall back; a Docker fallback cannot count as passing a Cloud Hypervisor scenario. - Pin existing accounting precisely: shared per-repository disclosure ledger; executor-local response/admission counters including rejections; run-wide attempted tool-call cap and explicit exhaustion message; best-effort tool-call persistence with failed-write/unreadable/corrupt-state restart cases. Disclosure/executor balances are in-memory; do not assert fail-closed durability without an implementation and reviewed behavior change. Transport retries must retain digest-bound invocation/settlement identity, not create fresh unaccounted executions.
- Parameterize intentional resource/path differences rather than imposing VM defaults on Docker: configurable Docker limits and host workspace paths versus fixed VM enclave policies and
/workspacemapping. Probe all writable exports, allocated blocks, simultaneous/sparse writers, and separately bounded host-only artifact/image state; Docker aggregate-output acceptance remains a gap until demonstrated.
Starting points
/home/runner/work/gh-aw-firewall/gh-aw-firewall/scripts/ci/cloud-hypervisor-enclave-live-smoke.js/home/runner/work/gh-aw-firewall/gh-aw-firewall/scripts/ci/cloud-hypervisor-enclave-live-smoke.test.ts/home/runner/work/gh-aw-firewall/gh-aw-firewall/src/enclave/host-executor-protocol.test.ts/home/runner/work/gh-aw-firewall/gh-aw-firewall/src/cloud-hypervisor/enclave-network.integration.test.ts
Acceptance criteria
- Scenario definitions and invariant assertions are shared across all three backends; only operational adapters differ.
- Harness regression tests run through the existing root Jest setup without KVM.
- Reports identify backend, workload combination, scenario, outcome, and cleanup status using a common format.
- Missing prerequisites and unsupported capabilities are explicit and cannot be counted as passed validation.
- Intentional fixture perturbations demonstrate that network, storage, cleanup, and output-leak assertions actually detect regressions.
- All supported matrix cells have real-backend evidence; deterministic mocks are labeled distinctly from live acceptance.
- Each report records the actual workload backend, role/combination, host and artifact identity, applicable acceptance gate, capability status, evidence kind and cleanup outcome; fallback, unsupported, missing-prerequisite and unverified results cannot masquerade as passed target-backend evidence.
- Accounting persistence faults, retry identity, backend-specific limits and the primary-only fallback exception have regression scenarios; known baseline gaps remain explicit rather than silently strengthening or overstating guarantees.
Dependencies
The contract (#10339 via #10347) and shared-core extraction (#10336 via #10342) are merged. Begin extraction now against docs/enclaves-architecture.md#cross-backend-workload-contract and its verification table; supply migration gates for #10340 and #10337 as adapters become available. Do not wait for either migration to begin the harness, and do not promote gated/unsupported cells merely to make a matrix green. Complete target parity only with separately accepted real-backend evidence.
- 主要言語
- TypeScript
- スター
- 169
- フォーク
- 89
- 平均マージ
- 5時間 18分
- マージ済み PR(30日)
- 450
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw-firewall のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/gh-aw-firewall#12415 ·
メンテナーはふだん 1 日以内に返信
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/gh-aw-firewall#12411 ·
メンテナーはふだん 1 日以内に返信
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/gh-aw-firewall#12345 ·
メンテナーはふだん 1 日以内に返信
-
[Duplicate Code] Repeated lstat identity-swap stub and fixture setup in src/nvx/live-mount-policy.test.ts対応中かも @lpcox が 1 日前に担当しました。 オープンcode-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/gh-aw-firewall#12023 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
awf-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/gh-aw-firewall#11612 ·
メンテナーはふだん 1 日以内に返信
github/gh-aw-firewall の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
activepieces/activepieces#17974 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
OHDSI/Data2Evidence#3777 ·
メンテナーはふだん 3 日以内に返信
-
bug enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
AOSSIE-Org/PictoPy#1802 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Termix-SSH/Plugin-Snippets#26 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
agent-reported bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightly-labs/openbot#20504 ·
メンテナーはふだん 1 日以内に返信