Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
18b195a
test(infrastructure): add deterministic component harnesses
kvinwang Jul 31, 2026
466d231
test(plan): define core component acceptance coverage
kvinwang Jul 31, 2026
1b819be
test(results): promote verified component coverage
kvinwang Jul 31, 2026
7b2ea0d
docs(testing): account for split product commits
kvinwang Jul 31, 2026
57adf23
docs(testing): record product PR split audit
kvinwang Jul 31, 2026
47e1f4a
docs(testing): account for simulator PR split
kvinwang Jul 31, 2026
5e340cf
docs(testing): retain merged PRs in split inventory
kvinwang Jul 31, 2026
52fe463
test(simulator): enforce configured TPM node ownership
kvinwang Jul 31, 2026
a85db23
docs(testing): account for TPM ownership correction
kvinwang Jul 31, 2026
a8bcbee
Revert "test(simulator): enforce configured TPM node ownership"
kvinwang Jul 31, 2026
a6094ae
docs(testing): reject TPM node race tolerance
kvinwang Jul 31, 2026
fde1656
docs(testing): add simulator retest watchlist
kvinwang Jul 31, 2026
9db6ca0
test(gateway): use existing health and dashboard routes
kvinwang Aug 3, 2026
91a7669
test(verifier): assert simulator trust-root isolation
kvinwang Aug 4, 2026
1798b2b
test(verifier): validate embedded cache versions
kvinwang Aug 4, 2026
8ef63e0
docs(testing): align rewritten PR accounting
kvinwang Aug 4, 2026
df73df1
test(guest): validate normal swap boot lifecycle
kvinwang Aug 4, 2026
2d61a48
docs(testing): record closed supervisor socket PR
kvinwang Aug 4, 2026
2618460
test(supervisor): validate UDS auto-start lifecycle
kvinwang Aug 4, 2026
d1ff3c1
test(util): validate certificate outputs independently
kvinwang Aug 4, 2026
ccc69d7
test(supervisor): separate client lifecycle coverage
kvinwang Aug 4, 2026
cc6b92e
test(gateway): drop DNS credential encryption assumptions
kvinwang Aug 4, 2026
be66ca8
test(gateway): cover app-address DNS failover
kvinwang Aug 5, 2026
6d57a9b
test(guest): pin wg-checker timing to a uniform 10s clock
kvinwang Aug 5, 2026
a232686
test(vmm): cover filesystem-only CID reload
kvinwang Aug 5, 2026
017ffd8
test(gateway): register upgrade domain through admin API
kvinwang Aug 5, 2026
0c5d954
test(gateway): provision upgrade domain through certbot
kvinwang Aug 5, 2026
ae3f006
test(vmm): preserve stopped VM CID on reload
kvinwang Aug 5, 2026
d3b42f4
test(guest): retarget tc-gos-observabil-003 at the gateway checker
kvinwang Aug 5, 2026
434497c
test(gateway): cover ACME credential rotation
kvinwang Aug 5, 2026
54f6fd3
test(kms): cover CA persistence and renewal
kvinwang Aug 5, 2026
50bed7f
test(vmm): retarget tc-vmm-serial-006 at log rotation
kvinwang Aug 6, 2026
e6e41af
test(vmm): cover libvirt network filter lifecycle
kvinwang Aug 6, 2026
f0e2a9c
test(vmm): wait for restarted netd listener
kvinwang Aug 6, 2026
09aabaa
test(vmm): avoid destructive netd readiness probe
kvinwang Aug 6, 2026
61982d9
test(vmm): read generated NIC MACs from launch plan
kvinwang Aug 6, 2026
6d3d9d0
test(vmm): isolate secondary host API port
kvinwang Aug 6, 2026
b4eb164
test(vmm): inject spoof traffic on the host interface
kvinwang Aug 6, 2026
67a2052
test(vmm): preserve failure evidence and force cleanup
kvinwang Aug 6, 2026
0587d69
test(vmm): verify filtered network survives QEMU restart
kvinwang Aug 6, 2026
c1d6a0b
test: follow current guest and VMM configuration
kvinwang Aug 7, 2026
04e08ea
test(runner): retain sweep failure diagnostics
kvinwang Aug 7, 2026
66437bc
test(tdxlab): prepare deterministic run prerequisites
kvinwang Aug 7, 2026
1d4ec23
test(tdxlab): provision pinned Foundry tools
kvinwang Aug 7, 2026
24c00ba
test(kms): resolve prepared startup binary
kvinwang Aug 7, 2026
c87e3f3
test(tdxlab): resolve user toolchain paths
kvinwang Aug 7, 2026
78b42f1
test(kms): accept canonical empty Finish response
kvinwang Aug 7, 2026
915992f
test(tdxlab): document prepared execution path
kvinwang Aug 7, 2026
36dd830
test(runner): fail sweeps with nonpassing cases
kvinwang Aug 7, 2026
51fadfa
test(gateway): follow current debug config
kvinwang Aug 7, 2026
04e59f9
test(attestation): prepare legacy TDX image verification
kvinwang Aug 7, 2026
a855058
test(attestation): refresh NitroTPM replay fixture
kvinwang Aug 7, 2026
3942016
test(guest): retain gateway checker failure context
kvinwang Aug 7, 2026
4a07c60
test(tdxlab): build candidate guest prerequisites
kvinwang Aug 7, 2026
6f0a8a9
test(tdxlab): build images from a clean worktree
kvinwang Aug 7, 2026
146c606
test(tdxlab): discover flavor-specific mkosi outputs
kvinwang Aug 7, 2026
61d29c7
test(gateway): follow current public RPC route
kvinwang Aug 7, 2026
ea0c95f
test(tdxlab): prepare current GCP TPM replay
kvinwang Aug 7, 2026
35c8335
test(guest): capture gateway checker exit codes safely
kvinwang Aug 7, 2026
91b7961
test(mkosi): prepare ephemeral OpenSSH host keys
kvinwang Aug 7, 2026
ec46241
test(guest): use deterministic quote output fault
kvinwang Aug 7, 2026
3b1c36c
test(guest): use deterministic app-key output fault
kvinwang Aug 7, 2026
7f23bd7
test(guest): follow atomic random output replacement
kvinwang Aug 7, 2026
55451e3
test(guest): use deterministic attestation output fault
kvinwang Aug 7, 2026
a687bf4
test(guest): use deterministic get-keys output fault
kvinwang Aug 7, 2026
854f40a
test(simulator): prepare platform replay fixtures
kvinwang Aug 7, 2026
4b4c567
test(gateway): follow current RPC response contracts
kvinwang Aug 7, 2026
756d2c0
test(kms): accept current Empty JSON encoding
kvinwang Aug 7, 2026
376ff78
test(kms): follow cloned shutdown handle
kvinwang Aug 7, 2026
c59a45b
test(verifier): follow certificate profile validation
kvinwang Aug 7, 2026
9e9d40c
test(verifier): use a valid oneshot config port
kvinwang Aug 7, 2026
59a4f3d
test(vmm): follow missing log response contract
kvinwang Aug 7, 2026
baf02c2
test(vmm): materialize mutable image fixtures
kvinwang Aug 7, 2026
ea99525
test(kms): follow current root-key handover
kvinwang Aug 7, 2026
fee7295
test(gateway): isolate fixture WireGuard subnets
kvinwang Aug 7, 2026
7a126fe
test(gateway): follow current public info route
kvinwang Aug 7, 2026
9681e75
test(gateway): accept current Empty exit response
kvinwang Aug 7, 2026
02358af
test(gateway): verify malformed Empty framing
kvinwang Aug 7, 2026
584b586
test(gateway): follow current debug configuration
kvinwang Aug 7, 2026
828e535
test(gateway): follow on-demand TLS key generation
kvinwang Aug 7, 2026
c2a7001
test(gateway): edit prepared TLS paths by section
kvinwang Aug 7, 2026
811f814
test(gateway): accept current DNS Empty responses
kvinwang Aug 7, 2026
0ff9c59
test(gateway): follow current certificate store suite
kvinwang Aug 7, 2026
8962e6a
test(vmm): follow private CID state contract
kvinwang Aug 7, 2026
1b1e450
test(vmm): stage reload fixtures across filesystems
kvinwang Aug 7, 2026
58c6c2d
test(vmm): prepare management port for config checks
kvinwang Aug 7, 2026
a38f2be
test(vmm): follow current UI RPC diagnostics
kvinwang Aug 7, 2026
bba2dd9
test(vmm): follow current internal source matrices
kvinwang Aug 7, 2026
0319dfc
test(guest): prepare a shell-capable log fixture image
kvinwang Aug 7, 2026
97c5aea
test(guest): capture log fixture preparation diagnostics
kvinwang Aug 7, 2026
e17e204
test(tdxlab): prepare dashboard log workload image
kvinwang Aug 7, 2026
529e820
test(tdxlab): bind dashboard preparation to case identity
kvinwang Aug 7, 2026
b1bcf7c
test(kms): prepare finalized Ethereum head
kvinwang Aug 7, 2026
88461a1
test(integration): follow current gateway admin contract
kvinwang Aug 7, 2026
2c1fce8
test(tdxlab): preserve guest image integrity
kvinwang Aug 7, 2026
0824a1f
test(integration): bound gateway DNS fixture waits
kvinwang Aug 7, 2026
9ee1862
test(integration): accept compatible Exit request evolution
kvinwang Aug 7, 2026
cf025e0
style(test): format integration matrix
kvinwang Aug 7, 2026
89e67ae
test(integration): use mock DNS listener port
kvinwang Aug 7, 2026
56a512b
test(fixtures): bind cleanup to prepared state root
kvinwang Aug 7, 2026
4c8d697
test(integration): pin mock DNS zone
kvinwang Aug 7, 2026
543f156
test(tdxlab): preflight Docker daemon
kvinwang Aug 7, 2026
945a2de
test(integration): model Cloudflare zone discovery
kvinwang Aug 7, 2026
e2d8172
test(tdxlab): prepare user namespaces
kvinwang Aug 7, 2026
6cf42c2
test(integration): bridge legacy Gateway contracts
kvinwang Aug 7, 2026
810b80d
test: fix mixed-version gateway failover harness
kvinwang Aug 8, 2026
d9fe5ef
test: select live KMS for failover preparation
kvinwang Aug 8, 2026
e7e0542
test: prepare identity matrix alternate image
kvinwang Aug 8, 2026
562d7e5
test: remove unused collateral prerequisite
kvinwang Aug 8, 2026
dd14aac
test: update KMS compatibility certificate config
kvinwang Aug 8, 2026
c17a39b
test: follow split VMM restart policy tests
kvinwang Aug 8, 2026
9655737
test: resolve Cargo for gateway refresh harness
kvinwang Aug 8, 2026
cf71de6
test: align VMM QEMU platform matrix
kvinwang Aug 8, 2026
c8c813c
test: follow current VMM networking contract
kvinwang Aug 8, 2026
f0f190a
test: shorten VMM networking runtime paths
kvinwang Aug 8, 2026
350686c
test: start bridge VM before launch inspection
kvinwang Aug 8, 2026
ecf7bc3
test: prepare VMM hugepage prerequisites
kvinwang Aug 8, 2026
c72b23f
test: exercise VMM hugepage lifecycle
kvinwang Aug 8, 2026
fd1d310
test: explicitly start user network VM
kvinwang Aug 8, 2026
f1ac52f
test: detach networking case supervisor
kvinwang Aug 8, 2026
6da577c
test: preserve VMM placement command evidence
kvinwang Aug 8, 2026
a7c451d
test: inspect supervised QEMU launch spec
kvinwang Aug 8, 2026
b7ae46e
test: follow attestation suite growth
kvinwang Aug 8, 2026
452a0a9
test: follow current mock attestation CLI
kvinwang Aug 8, 2026
1cb2cd7
test: require both cloud quote matrices
kvinwang Aug 8, 2026
1cc9145
test: replace removed verifier matrix selectors
kvinwang Aug 8, 2026
9ae16ab
test: align verifier coverage with current suites
kvinwang Aug 8, 2026
c2c44dd
test: prepare isolated Docker subnet pool
kvinwang Aug 8, 2026
7df67c6
test: preserve CAA concurrency diagnostics
kvinwang Aug 8, 2026
cc63c83
test: follow Gateway CAA operation locking
kvinwang Aug 8, 2026
e1daac1
test: restore current Certbot and auth regressions
kvinwang Aug 8, 2026
20a57a0
test: follow current Gateway unit matrices
kvinwang Aug 8, 2026
6b2467d
test: follow current Gateway port-policy matrix
kvinwang Aug 8, 2026
8aad0c5
test: make Gateway DNS routing fixture deterministic
kvinwang Aug 8, 2026
7fb2e2e
test: follow removed KMS certificate-log surface
kvinwang Aug 8, 2026
cfcddbe
test: execute current KMS binary test target
kvinwang Aug 8, 2026
6011902
test: prepare seed-matched guest compatibility evidence
kvinwang Aug 8, 2026
17169ce
test: cover KMS signatures and injected Gateway outages
kvinwang Aug 8, 2026
10b72e7
test: select prepared TDX simulator explicitly
kvinwang Aug 8, 2026
fcda53e
test: run compatibility evidence without hardware TDX
kvinwang Aug 8, 2026
c64ddaa
test: follow verifier certificate profile ownership
kvinwang Aug 8, 2026
4eac7b4
test: prepare lease-owned attestation VMM
kvinwang Aug 8, 2026
be91025
test: separate physical and simulator collateral
kvinwang Aug 8, 2026
71d6a4f
test: observe app identity during Gateway outage
kvinwang Aug 8, 2026
f21b40f
test: separate Gateway boot and registration probes
kvinwang Aug 8, 2026
eb37dfc
test: exercise Gateway identity fallback
kvinwang Aug 8, 2026
0257773
test: decouple identity probe from Gateway cache
kvinwang Aug 8, 2026
12f4d9e
test: allow clients without Gateway endpoints
kvinwang Aug 8, 2026
2c52a8b
test: run guest compatibility on physical TDX
kvinwang Aug 8, 2026
116af31
test: prepare physical compatibility collateral
kvinwang Aug 8, 2026
95de7c9
test(verifier): avoid fixed cc-eventlog test count
kvinwang Aug 8, 2026
d8971eb
test: prepare simulator collateral before guest boot
kvinwang Aug 8, 2026
c68818e
test: prepare simulated identity image variant
kvinwang Aug 8, 2026
8d06b8c
test(simulator): restore SEV-SNP ABI regression coverage
kvinwang Aug 8, 2026
6ac1e84
test(kms): prepare nested contract dependencies
kvinwang Aug 8, 2026
cc18035
test(kms): probe event audit contract fixtures
kvinwang Aug 8, 2026
7b025cd
test(kms): probe runtime contract fixtures
kvinwang Aug 8, 2026
2a001e2
test(guest): wait for bind conflict cleanup
kvinwang Aug 9, 2026
115ef88
test(gateway): synchronize concurrent renewal requests
kvinwang Aug 9, 2026
d3f9865
test(guest): cancel bind conflict restart jobs
kvinwang Aug 9, 2026
8fbb514
test(gateway): prepare allocation wireguard fixture
kvinwang Aug 9, 2026
fb62025
test(gateway): establish distributed renewal contention
kvinwang Aug 9, 2026
ad35fe7
test(gateway): isolate allocation recycle phase
kvinwang Aug 9, 2026
d7ae399
test(integration): retry rolling KMS metadata probes
kvinwang Aug 9, 2026
a36cf4d
test(platform): wait for sealing provider recovery
kvinwang Aug 9, 2026
5fdb0be
test(harness): probe lifecycle readiness deterministically
kvinwang Aug 9, 2026
6c3e5e4
test(gateway): align allocation and renewal invariants
kvinwang Aug 9, 2026
ab60d2b
test(integration): await bounded KMS boot failure
kvinwang Aug 10, 2026
89e2faf
test(gateway): recheck distributed renewal freshness
kvinwang Aug 10, 2026
ee05250
test(provider): retry transient sealing startup
kvinwang Aug 10, 2026
d46fa45
test(harness): harden runtime readiness probes
kvinwang Aug 10, 2026
147b868
test(vmm): probe the browser endpoint directly
kvinwang Aug 10, 2026
3654b87
test(plan): cover post-baseline merged regressions
kvinwang Aug 14, 2026
7b8e7e2
test(plan): refresh post-merge harness expectations
kvinwang Aug 14, 2026
aa594e3
test(plan): align ACPI measurement matrix
kvinwang Aug 14, 2026
b3ae661
test(plan): harden dependency-backed harnesses
kvinwang Aug 14, 2026
707e995
test(plan): run prepared Playwright offline
kvinwang Aug 14, 2026
243cf47
test(plan): make UI browser execution deterministic
kvinwang Aug 14, 2026
d392fd0
test(plan): preserve expected stargz failures
kvinwang Aug 14, 2026
c881f23
test(plan): unmount stale stargz snapshots
kvinwang Aug 14, 2026
c368274
test(plan): use persistent stargz storage
kvinwang Aug 14, 2026
ad21dea
test(plan): wait for stargz unmounts
kvinwang Aug 14, 2026
32b4c3a
test(plan): preserve concurrent pull failures
kvinwang Aug 14, 2026
acae03b
test(plan): deterministically corrupt stargz layer
kvinwang Aug 14, 2026
f76ae1e
test(plan): accept truncated stargz diagnostics
kvinwang Aug 14, 2026
278570a
test(plan): assert corrupt stargz rejection by status
kvinwang Aug 14, 2026
dff58f3
test(plan): assert stargz outages by status
kvinwang Aug 14, 2026
18c05f4
test(plan): force remote stargz corruption path
kvinwang Aug 14, 2026
c2cd488
test(plan): zero corrupt stargz layer
kvinwang Aug 14, 2026
eea03d1
test(plan): clear stargz cache before corruption
kvinwang Aug 14, 2026
c8c44a4
test(plan): restart registry after layer corruption
kvinwang Aug 14, 2026
e811477
test(gateway): cover multi-cluster CVM registration
kvinwang Aug 17, 2026
bb66f67
test(gateway): align native multi-cluster rows
kvinwang Aug 17, 2026
1ed3859
test(gateway): verify multi-cluster proxy data paths
kvinwang Aug 17, 2026
72387f8
test(gateway): harden multi-cluster proxy acceptance
kvinwang Aug 17, 2026
fb631a6
test(vmm): document macvtap connectivity acceptance
kvinwang Aug 17, 2026
900422f
test(plan): gate tdxlab sweeps on preflight
kvinwang Aug 18, 2026
02ac8fc
refactor(test): colocate core component suite
kvinwang Aug 18, 2026
c8e0106
fix(test): align image provenance with builder metadata
kvinwang Aug 18, 2026
fc195f1
test: harden core component coverage
kvinwang Aug 18, 2026
9381f95
fix(test): preserve current source fixtures
kvinwang Aug 18, 2026
245356b
test: pin Bun for tdxlab runs
kvinwang Aug 18, 2026
359542e
fix(test): preserve Bun path operations
kvinwang Aug 18, 2026
bfbb437
refactor(test): externalize hardware host configuration
kvinwang Aug 18, 2026
25398cf
fix(test): resolve configured Docker runner lazily
kvinwang Aug 18, 2026
f64c558
fix(test): retain guest port reservations for active leases
kvinwang Aug 18, 2026
2fbe77c
fix(test): wait for guest API before Gateway startup
kvinwang Aug 18, 2026
323e641
fix(test): retry bounded Sysbox recovery
kvinwang Aug 18, 2026
f1f2878
fix(test): make version cleanup independent of caller env
kvinwang Aug 18, 2026
d7b3b76
fix(test): execute gated Cloudflare client tests
kvinwang Aug 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,29 @@ SPDX-License-Identifier = "CC0-1.0"
path = "dstack/crates/qemu-acpi/fixtures/*.bin"
SPDX-FileCopyrightText = "NONE"
SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
path = "test-suites/catalog/source-inventory.json"
SPDX-FileCopyrightText = "© 2026 Phala Network <dstack@phala.network>"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
path = "test-suites/catalog/configuration-inventory.json"
SPDX-FileCopyrightText = "© 2026 Phala Network <dstack@phala.network>"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
path = "test-suites/catalog/api-inventory.json"
SPDX-FileCopyrightText = "© 2026 Phala Network <dstack@phala.network>"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
path = "test-suites/catalog/source-coverage-map.json"
SPDX-FileCopyrightText = "© 2026 Phala Network <dstack@phala.network>"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
path = "test-suites/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "© 2026 Phala Network <dstack@phala.network>"
SPDX-License-Identifier = "Apache-2.0"
145 changes: 145 additions & 0 deletions docs/testing/dstack-test-methodology.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<!-- SPDX-FileCopyrightText: © 2026 Phala Network <dstack@phala.network> -->
<!-- SPDX-License-Identifier: Apache-2.0 -->
<a id="dstack-test-methodology"></a>
# dstack Test Methodology

This document defines the common process for dstack release testing, from change analysis and risk assessment through execution, evidence collection, and release decisions. See the [test-case authoring specification](test-case-authoring-spec.md#dstack-test-case-authoring-spec) and [report output specification](test-report-output-spec.md#dstack-test-report-output-spec) for normative formats.

<a id="method-objectives"></a>
## 1. Objectives

Testing must produce reproducible, auditable, and traceable release evidence—not merely show that a script once exited successfully. A conclusion must be traceable from a requirement or risk to a case, step, original command evidence, observation, and attachment.

Testing is complete only when:

1. every relevant change, requirement, and material risk has explicit coverage;
2. an executor unfamiliar with the implementation can reproduce each case;
3. the native AI session preserves executed commands and their raw output;
4. simulated and physical-hardware results are reported separately;
5. tools can recompute aggregate status from atomic case results; and
6. references, attachment digests, and statistics are machine-verifiable.

<a id="method-artifacts"></a>
## 2. Artifact layers

Do not mix these four layers:

| Layer | Purpose | Immutable after execution starts |
|---|---|---:|
| Change audit | Establishes changed behavior, dependencies, and risks | Yes |
| Test plan | Defines scope, topology, cases, and execution order | Yes |
| Case specification | Defines preconditions, actions, and expected results | Yes |
| `results/<run-id>/` | Records versions, native sessions, observations, and attachments | No, while running |

A plan uses exactly three semantic levels: chapter, section, and case. Its machine-readable execution order is defined by `index.json`; its top-level `README.md` is the executor's environment guide.

<a id="method-workflow"></a>
## 3. Workflow

### 3.1 Audit the release delta

Compare the previous released tag with the candidate commit. Inspect commits, pull requests, schemas, RPCs, command-line interfaces, configuration defaults, systemd units, image recipes, deployment manifests, migrations, and dependency changes. For every change record:

- the user-visible or operational behavior;
- affected components and interfaces;
- compatibility direction and version combinations;
- failure modes and security impact;
- the requirement and risk IDs used by test cases; and
- whether physical TEE hardware is required.

Generated changelogs alone are insufficient. Follow data and control flow across component boundaries.

### 3.2 Build a risk-based coverage matrix

Classify coverage as:

- **new or changed functionality**: full positive, boundary, and relevant negative coverage;
- **regression**: behavior likely to be affected by shared code, configuration, images, protocols, or lifecycle changes;
- **compatibility**: supported mixed-version combinations and upgrade order;
- **security**: trust boundaries, identity, attestation, key handling, authorization, and secret disclosure;
- **operations**: install, upgrade, restart, recovery, logging, and diagnostics.

Prioritize by impact, likelihood, detectability, and breadth. `P0` covers release-blocking trust, data-loss, availability, or primary-path risks; `P1` covers important supported behavior; `P2` covers lower-risk variants.

### 3.3 Define environments

The plan guide must describe topology, component endpoints, credentials, test data, health checks, concurrency constraints, cleanup, and prohibited operations. Record common software versions once in run-level context. A case records a version override only when it deliberately uses a different component version.

Environment levels are:

- **UNIT**: isolated code-level validation;
- **SIMULATOR**: no-TEE or mock-attestation execution;
- **INTEGRATION**: deployed multi-component system;
- **HARDWARE**: physical supported TEE hardware.

Simulation may follow `docs/development-without-tee.md`; a no-TEE development guest may independently use `key_provider=tpm` when the SGX local key provider is unavailable. This does not run local-key-provider in a TPM mode or cover its SGX behavior. Simulation never proves hardware-specific boot, measurement, attestation, sealing, or device behavior. Such unconfirmed items must be called out separately in the report.

### 3.4 Author and review cases

Each case validates one independently decidable behavior and references at least one requirement or risk. Prefer three to eight logical steps. Every step defines an action and exact observable expected results. Do not write a separate failure criterion: any result that does not fully match the expected result is `FAIL`.

Review the plan for change coverage, regression breadth, compatibility matrices, security boundaries, operational recovery, test-data isolation, and cleanup before execution.

### 3.5 Execute

The `run-plan` orchestration agent must first read the guide, index, and every
case specification. It processes cases in index order, starts an independent
case-agent session for each runnable case, and reads the completed result before
deciding about later cases. It may mark a later case `SKIPPED` without launching
it only when a recorded earlier non-PASS result demonstrably makes the later
case's prerequisite false or its result meaningless. Similarity, expected cost,
or a mere possibility of failure is not sufficient. Independent cases continue.

Each case executor must:

1. read the plan `README.md` and `index.json`;
2. execute cases in index order unless the guide explicitly permits parallelism;
3. start a fresh Codex or Claude session for each case;
4. execute real commands rather than infer outcomes;
5. preserve the native JSONL session as step evidence;
6. write only a shallow atomic `result.json`; and
7. continue to later independent cases after a case-level failure.

The executor name and model are recorded by the runner. Secrets must never be emitted into sessions or artifacts.

<a id="method-status"></a>
## 4. Status model

Case and step status is one of:

- `PASS`: every expected result was fully observed;
- `FAIL`: at least one expected result was not fully observed;
- `BLOCKED`: an external prerequisite prevented the tested behavior from starting;
- `NOT_RUN`: execution was not attempted;
- `SKIPPED`: omission was explicitly authorized and explained.

`PARTIAL` is forbidden. A completed run may contain any terminal case status. A run is `INCOMPLETE` only when required case result artifacts are missing.

Product failure and test-infrastructure failure must be distinguished. A healthy system returning the wrong response is `FAIL`; an unavailable required laboratory host before the tested action begins is `BLOCKED`.

<a id="method-evidence"></a>
## 5. Evidence and traceability

Every logical step must be supported by observed commands and raw output in the native session. Screenshots or other files are attachments, not replacements for command evidence where machine-readable evidence is available. Preserve timestamps, exit codes, stdout, stderr, and tool errors as supplied by the agent CLI.

Use explicit HTML anchors for all chapters, sections, cases, and steps. Do not rely on renderer-specific heading slugs. `index.json` is the authority for ordering and paths; IDs remain stable after publication.

<a id="method-compatibility"></a>
## 6. Compatibility testing

Derive version combinations from supported deployment behavior rather than testing arbitrary permutations. For a rolling upgrade, cover at least:

- latest control-plane services with both previous and latest guest images;
- persisted state created by the previous release and consumed by the candidate;
- protocol/schema defaults when one side omits newly introduced fields;
- upgrade order, restart behavior, and rollback where supported; and
- explicit rejection of unsupported combinations with actionable diagnostics.

For dstack v0.6.0, the expected online topology includes latest VMM, KMS, and gateway components while instances may use a mixture of old and new images.

<a id="method-release-decision"></a>
## 7. Release decision

The final report must provide coverage by requirement and risk, status counts, unresolved failures, blocked or skipped cases, simulation-only results, unconfirmed hardware items, and material deviations from the plan. Release acceptance criteria belong in the plan guide and must state which statuses or open risks block release.

Before publishing, run `dstack-test validate`, render the self-contained HTML report, and package the selected run. The package is an immutable review artifact and must not include secrets or results from unrelated run IDs.
Loading
Loading