Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
area: e2eEnd-to-end tests, nightly failures, or validation infrastructure
Description
Phase 2: Onboarding and Installer Audit Coverage
Parent epic: #3588
Goal
Cover every audited assertion and control-flow row from the legacy onboarding and installer E2E scripts. The full OpenClaw cloud onboarding path must be proven through three distinct inference surfaces (direct provider, sandbox inference.local, OpenClaw-mediated agent). Negative onboarding paths must fail closed with no forbidden side effects. Public/launchable install sources cannot be satisfied by repo-current install manifests.
Audit rows in scope
| AQ | Phase | Legacy subject | Required coverage | Boundary | Planned scenario/assertion | Fixtures/actions |
|---|---|---|---|---|---|---|
| AQ-010 | 2 | test-full-e2e.sh |
Full OpenClaw path covers install, onboard, gateway, sandbox, credentials, policy, and inference surfaces. | host CLI/sandbox/provider | full e2e scenario contract | install/onboard actions |
| AQ-011 | 2 | test-cloud-onboard-e2e.sh |
Cloud onboard covers OpenClaw setup, sandbox state, gateway route, credentials, expected policy presets. | sandbox/provider | cloud onboard assertions | cloud provider fixture / live secrets |
| AQ-012 | 2 | test/e2e/e2e-cloud-experimental/checks/*.sh |
Delegated cloud checks cover inference-local HTTP, security checks, landlock/read-only behavior. | sandbox/security-policy | cloud delegated check assertions | cloud sandbox fixture |
| AQ-013 | 2 | test-cloud-inference-e2e.sh |
Cloud inference proves direct provider chat, sandbox inference.local, and OpenClaw-mediated response as distinct evidence. |
provider/integration | cloud inference surface assertions | fake/live provider |
| AQ-014 | 2 | test-hermes-e2e.sh |
Hermes onboarding validates agent selection, sandbox readiness, inference, Hermes-specific health. | agent runtime | hermes onboard assertions | hermes sandbox fixture |
| AQ-015 | 2 | test-double-onboard.sh and test-gpu-double-onboard.sh |
Repeated onboarding preserves/updates registry correctly and rejects stale or duplicate state. | durable state | double-onboard state assertions | staged registry fixture |
| AQ-016 | 2 | test-onboard-negative-paths.sh |
Invalid key, Docker/preflight failure, gateway port conflict, bad input fail closed without forbidden side effects. | host CLI / durable state | negative onboard assertions | bad key / port-holder fixtures |
| AQ-017 | 2 | test-onboard-resume.sh and test-onboard-repair.sh |
Resume/repair preserves expected state and repairs incomplete onboarding artifacts. | durable state | resume/repair assertions | staged session fixture |
| AQ-018 | 2 | test-launchable-smoke.sh and Brev launchable flow |
Public/launchable install path not satisfied by repo-current; proves launchable sentinel/readiness. | host CLI | launchable smoke assertions | fake download/Brev fixture |
Required manifests to add (test/e2e-scenario/nemoclaw_scenarios/manifests/)
-
openclaw-nvidia.yaml -
openclaw-nvidia-public-curl.yaml -
openclaw-nvidia-cloud-inference.yaml(when explicit model evidence is required) -
openclaw-openai-compatible-double-onboard.yaml -
openclaw-nvidia-invalid-key-negative.yaml -
openclaw-nvidia-gateway-port-conflict.yaml -
openclaw-nvidia-custom-policies.yaml -
openclaw-nvidia-resume-after-interrupt.yaml -
openclaw-nvidia-repair-existing-config.yaml -
launchable-cloud-nvidia-openclaw.yaml -
dgx-spark-install-only.yamlor explicit setup-only no-manifest scenario
Required fixtures / runtime actions
- Public installer source/ref/log verification fixture
- Fake OpenAI endpoint for double-onboard
- Port-holder fixture for gateway port conflict
- Bad-key fixture (injected by scenario, not stored in manifest)
- Interrupted session fixture for resume/repair
- Missing recorded sandbox fixture for repair
- Launchable clone/sentinel fixture
- Direct cloud / sandbox route / OpenClaw-mediated prompt payload fixtures
- Hermes health/config/log fixtures
Required assertions
- Install source/ref correctness
- CLI/OpenShell availability
- Direct NVIDIA chat, sandbox
inference.localchat, and OpenClaw-mediated agent response as three distinct passing assertions - Hermes runtime health/config/log assertions as distinct
- Gateway reuse and no port conflicts during double-onboard
- Stale registry reconciliation and lifecycle guidance
- Resume cached-step skipping and session completion
- Repair recreates missing recorded sandbox and rejects conflicting resume requests
- Launchable artifacts and sentinel readiness
- Delegated cloud-experimental check PASS/FAIL outcomes (inference-local HTTP, security checks, Landlock readonly)
Validation scenarios — all must pass in PR workflow artifacts
Scenario 2.1 — Cloud OpenClaw onboarding is complete only with all three inference surfaces (Happy Path)
- Given A live or hermetic OpenClaw cloud onboarding scenario completes onboarding.
- When Direct provider chat, sandbox
inference.localchat, and OpenClaw-mediated agent response assertions all run. - Then Onboarding can be marked complete with distinct evidence paths for each surface.
- Steps
- Filter rows AQ-010…AQ-018; provision OpenClaw cloud onboarding contract with declared secrets or hermetic fake provider; collect PR workflow evidence.
- Scenario runner / Vitest workflow jobs run onboarding and three inference assertion modules.
- Verify each matched row is present with passing stable assertion IDs/artifact paths; onboarding is complete only after all three surface assertions pass.
Scenario 2.2 — Negative onboarding leaves no forbidden side effects (Sad Path)
- Given Invalid NVIDIA key or gateway port conflict fixtures injected by scenario setup, not by product manifests.
- When Onboarding is executed.
- Then It exits with the expected message, no stack trace, and no sandbox/gateway/credential side effects.
- Steps
- Filter row AQ-016; stage bad-key or port-holder fixture; collect PR workflow evidence for negative onboarding.
- Run onboarding action.
- Verify AQ-016 remains incomplete unless workflow evidence shows expected message, no stack trace, and no side effects.
Scenario 2.3 — Public installer and launchable flows are not satisfied by repo-current (Sad Path)
- Given A public-curl, launchable, Spark, or installer scenario is wired to a repo-current install manifest.
- When Contract validation runs.
- Then Validation fails and asks for explicit install source/ref/log evidence or setup-only scenario.
- Steps
- Filter row AQ-018; create invalid install-source metadata fixture.
- Run manifest/contract validation in workflow.
- Verify workflow evidence shows repo-current substitution is rejected and AQ-018 remains unresolved until public/launchable evidence exists.
Acceptance criteria — issue is NOT DONE until ALL are true
- PR landed in
test/e2e-scenario/adding all manifests, fixtures, runtime actions, and assertion modules above. - PR CI passing:
- All 9 audit-row scenarios run in workflow and emit
PASS:markers - Happy-path OpenClaw cloud onboarding asserts all three inference surfaces — single-surface evidence is rejected
- Negative onboarding asserts failure message + no stack trace + no forbidden side effects
- All 9 audit-row scenarios run in workflow and emit
- Validation Scenarios 2.1–2.3 all pass in PR workflow artifacts.
- Audit work queue updated: AQ-010 through AQ-018 flipped to
evidence-completewith stable assertion IDs and evidence paths. - Phase-specific validation gate (from spec): happy-path onboarding complete only when all three inference surfaces are covered; negative onboarding complete only when failure message + no stack trace + forbidden side effects all asserted; public installer/launchable cannot be satisfied by repo-current install manifests.
- No-cheat gate: generic
/healthor single-surface inference cannot satisfy AQ-013/AQ-014; repo-current cannot satisfy AQ-018. - Secret gate: bad-key fixture is scenario-injected, never in product manifest; no raw secrets in manifests/logs.
- PR description references AQ rows covered, links this issue.
Dependencies
- Phase 1 (Phase 1: Environment, Manifest, Fixture, and Runtime Action Primitives (E2E audit-coverage) #4347) must be
evidence-complete— fake services, fixture cleanup framework, runtime action runner, contract schema.
Out of scope
- Provider/routing/config-shape (Phase 3)
- GPU/Ollama (Phase 4)
- Messaging lifecycle (Phase 5+)
- Hermes Discord/Slack deep flow (Phase 6)
- Security/credentials (Phase 7)
Cross-phase acceptance gates (apply to every phase)
- Setup gate — scenario contract declares environment, manifest or no-manifest reason, fixtures, runtime actions, assertions.
- No-cheat gate — preview/dry-run output cannot mark an audit row complete.
- Boundary gate — assertions touch the same SUT boundary as the legacy script.
- Evidence gate — every assertion emits an evidence path and stable assertion ID.
- Secret gate — no manifest, log, report, or fixture file contains raw secrets.
- Cleanup gate — fixtures that mutate host or repo state have restore/cleanup logic and tests.
- Audit completeness gate — every assigned audit row has owner, planned scenario/assertion, phase assignment, evidence status.
- Phase completion gate — phase complete only when every assigned row has executable evidence (or independent audit amendment).
- Executable assertion gate — completed scenarios point to concrete suite steps / assertion modules, not
pendingStep(...), TODOs, generic probes, or prose.
Metadata
Metadata
Assignees
Labels
area: e2eEnd-to-end tests, nightly failures, or validation infrastructure
Activity
cv commentedon Jun 2, 2026
Tracking update: opened PR #4649 to remove repo-local E2E migration state and keep mutable migration status in GitHub issues/PRs instead.
For this audit-coverage phase, please keep current status, evidence, deferrals, and follow-up rationale on the issue/PR thread rather than adding per-phase status ledgers or migration inventories to the repo.
cv commentedon Jun 8, 2026
Architecture clarification for this audit phase: per #3588 and #4939, read this phase body as acceptance coverage, not as a durable requirement to add or keep YAML resolver or bash-runner deliverables.
The repo may use YAML/bash as bridge infrastructure while the migration is underway, but phase completion should ultimately be proven in the single scenario runner, with shell limited to host/sandbox/process/platform boundaries where shell is the actual system interface. If a bridge PR lands work for this phase, please record the single-runner porting requirement or explicit deferral on the owning issue/PR thread.
cv commentedon Jun 9, 2026
Status update for the fan-out stack: PR #5053 is now green and covers the typed onboarding-variant fixture layer for this phase.
What landed in #5053:
cloud-openclaw-custom-policies,cloud-openclaw-invalid-nvidia-key,cloud-openclaw-gateway-port-conflict,cloud-nvidia-openclaw-resume-after-interrupt,cloud-nvidia-openclaw-repair-existing-config, andcloud-nvidia-openclaw-double-same-provider.nemoclaw onboard --resume, tolerating only documented already-missing sandbox/forward state and failing on unrelated cleanup errors.Verification:
e2e-scenario-frameworksuite passed: 26 files / 334 tests.npm run typecheck:clipassed.Important handoff to #5054:
Refs #4941, #4990, #5053.
cv commentedon Jun 9, 2026
Status update for the smoke/onboarding migration slice: #5054 is implemented and green on head
2c149cab786a809d3f41fc21b2bbfe88277e5217.What moved in this slice:
ubuntu-repo-cloud-openclawubuntu-no-docker-preflight-negativeubuntu-repo-cloud-openclaw-resumeubuntu-repo-cloud-openclaw-repairubuntu-repo-cloud-openclaw-double-same-providerubuntu-repo-cloud-openclaw-custom-policiesubuntu-invalid-nvidia-key-negativeubuntu-gateway-port-conflict-negativeubuntu-invalid-nvidia-key-negativeno longer consumes the parentNVIDIA_API_KEY; the Vitest fixture path and legacy typed shell dispatcher both injectnot-a-nvidia-key.ubuntu-no-docker-preflight-negativeroutes through the shared executable onboarding resolver.ubuntu-gateway-port-conflict-negativeis covered in both the Vitest fixture path and the legacy typed shell bridge, including port validation, cleanup, and focused dispatcher tests.Validation now attached to #5054:
npx vitest run --project e2e-scenario-framework --silent=false --reporter=default-> 27 files / 340 tests passed.npx prek run --files test/e2e-scenario/nemoclaw_scenarios/onboard/dispatch.sh test/e2e-scenario/framework-tests/e2e-onboard-dispatch.test.ts --skip test-clipassed.npm run typecheck:cliandgit diff --checkpassed.27235877649,27235876285,27235883637,27235882301,27235880807,27235879233,27235874787,27235873305.ubuntu-invalid-nvidia-key-negative:27238468247on current head; log shows expected failure{ "phase": "onboarding", "errorClass": "invalid-nvidia-api-key" },gateway-absent/sandbox-absentprobes, andnegative-contract: passed.ubuntu-no-docker-preflight-negative:27235876305.ubuntu-gateway-port-conflict-negative:27237583030after shell bridge hardening.The scenario advisor still recommends full
e2e-scenarios-allbecause #5054 touches shared scenario compiler/runner/support files. I’m treating the current per-scenario evidence as the meaningful merge signal for this slice: the stale full-all failure includes broader families and post-reboot work outside this PR’s scope, with post-reboot tracked separately in #5087.cv commentedon Jun 9, 2026
Status update for the smoke/onboarding retirement-guard slice: #5055 is implemented, out of draft, and green on head
1673c1f1b54c03a18fbda7c3fb60967ebd4157c6.What changed in #5055:
test/e2e/test-*.shscripts.test-full-e2e.sh,test-cloud-onboard-e2e.sh,test-device-auth-health.sh,test-double-onboard.sh, Hermes smoke/onboarding scripts, launchable smoke, and onboard negative/repair/resume scripts) asnot-migratedanddeletionReady: false.legacy-onboarding-assertion-workersas covered by the registry-backed Vitest path, but stilldeletionReady: falsebecause the YAML/bash bridge and assertion registry still reference those shell files.test/e2e-scenario/docs/MIGRATION.md.Verification:
e2e-scenario-frameworksuite passed: 27 files / 342 tests.npm run typecheck:cli, touched-fileprekhooks, andgit diff --checkpassed.This keeps the smoke/onboarding migration honest: useful Vitest coverage is recorded, but broad legacy shell entrypoints are preserved until #4357 deletion readiness is actually proven.
jyaunches commentedon Jun 10, 2026
Closing as superseded by #5098.
The "audit coverage" framing inherited from #3588 (closed) has been replaced by the per-test verdict classification (
KEEP_BASH/HYBRID/MIGRATE_TYPED) and the per-test convergence loop in #5098. Family-by-family migration concerns previously tracked here are absorbed into #5098's phases:brev-e2e.test.ts)Per-test progress lives in
test/e2e-scenario/migration/legacy-inventory.json. The skill at~/.pi/agent/skills/nemoclaw-e2e-legacy-migrate/SKILL.mddrives conversions through thepi /loopcadence.test(e2e): add SandboxClient.get and SandboxClient.exists helpers
ci(e2e): add onboard-resume-vitest job to e2e-vitest-scenarios
test(e2e): add typed live test for onboard-resume regression (#446)
test(e2e): pass framework env to onboard-resume spawns to fix ENOENT
test(e2e): pass framework env to sandbox.exists() in onboard-resume
test(e2e): mark test-onboard-resume.sh as covered after typed migration
test(e2e): gate onboard-resume live test on NEMOCLAW_RUN_E2E_SCENARIOS
test(e2e): add Vitest live coverage for onboard resume (#5147)
build: bump OpenShell to v0.1.3 (#12930)