Skip to content

Phase 2: Onboarding and Installer Audit Coverage (E2E audit-coverage) #4348

Closed as not planned
Closed as not planned

Description

@jyaunches

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.yaml or 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.local chat, 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.local chat, and OpenClaw-mediated agent response assertions all run.
  • Then Onboarding can be marked complete with distinct evidence paths for each surface.
  • Steps
    1. Filter rows AQ-010…AQ-018; provision OpenClaw cloud onboarding contract with declared secrets or hermetic fake provider; collect PR workflow evidence.
    2. Scenario runner / Vitest workflow jobs run onboarding and three inference assertion modules.
    3. 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
    1. Filter row AQ-016; stage bad-key or port-holder fixture; collect PR workflow evidence for negative onboarding.
    2. Run onboarding action.
    3. 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
    1. Filter row AQ-018; create invalid install-source metadata fixture.
    2. Run manifest/contract validation in workflow.
    3. 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

  1. PR landed in test/e2e-scenario/ adding all manifests, fixtures, runtime actions, and assertion modules above.
  2. 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
  3. Validation Scenarios 2.1–2.3 all pass in PR workflow artifacts.
  4. Audit work queue updated: AQ-010 through AQ-018 flipped to evidence-complete with stable assertion IDs and evidence paths.
  5. 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.
  6. No-cheat gate: generic /health or single-surface inference cannot satisfy AQ-013/AQ-014; repo-current cannot satisfy AQ-018.
  7. Secret gate: bad-key fixture is scenario-injected, never in product manifest; no raw secrets in manifests/logs.
  8. PR description references AQ rows covered, links this issue.

Dependencies

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)

  1. Setup gate — scenario contract declares environment, manifest or no-manifest reason, fixtures, runtime actions, assertions.
  2. No-cheat gate — preview/dry-run output cannot mark an audit row complete.
  3. Boundary gate — assertions touch the same SUT boundary as the legacy script.
  4. Evidence gate — every assertion emits an evidence path and stable assertion ID.
  5. Secret gate — no manifest, log, report, or fixture file contains raw secrets.
  6. Cleanup gate — fixtures that mutate host or repo state have restore/cleanup logic and tests.
  7. Audit completeness gate — every assigned audit row has owner, planned scenario/assertion, phase assignment, evidence status.
  8. Phase completion gate — phase complete only when every assigned row has executable evidence (or independent audit amendment).
  9. Executable assertion gate — completed scenarios point to concrete suite steps / assertion modules, not pendingStep(...), TODOs, generic probes, or prose.

Activity

  1. cv commented on Jun 2, 2026

    @cv
    Collaborator

    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.

  2. added
    area: e2e
    enhancement
    and removed on Jun 3, 2026
  3. cv commented on Jun 8, 2026

    @cv
    Collaborator

    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.

  4. removed
    enhancement
    e2e-audit-phase-2
    on Jun 8, 2026
  5. cv commented on Jun 9, 2026

    @cv
    Collaborator

    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:

    • Adds typed fixture branches for 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, and cloud-nvidia-openclaw-double-same-provider.
    • Adds reusable negative-failure signature checks, stack-trace rejection, gateway port-holder support, resume-onboard handling, Docker gating, and typed fixture result metadata.
    • Strengthens the no-Docker negative onboarding path with the same no-stack-trace guard used by the new negative variants.
    • Validates repair cleanup before nemoclaw onboard --resume, tolerating only documented already-missing sandbox/forward state and failing on unrelated cleanup errors.

    Verification:

    • Local full e2e-scenario-framework suite passed: 26 files / 334 tests.
    • Focused onboarding/orchestrator fixture tests passed.
    • npm run typecheck:cli passed.
    • Static parity/budget gate passed, including config validation, selected pre-push checks, source-shape and test-size budgets, skills frontmatter, and platform-doc generation check.
    • PR test(e2e): wire onboarding variant fixtures #5053 CI is green.

    Important handoff to #5054:

    Refs #4941, #4990, #5053.

  6. cv commented on Jun 9, 2026

    @cv
    Collaborator

    Status update for the smoke/onboarding migration slice: #5054 is implemented and green on head 2c149cab786a809d3f41fc21b2bbfe88277e5217.

    What moved in this slice:

    • The smoke/onboarding family is now live-supported through the registry-backed Vitest scenario runner for:
      • ubuntu-repo-cloud-openclaw
      • ubuntu-no-docker-preflight-negative
      • ubuntu-repo-cloud-openclaw-resume
      • ubuntu-repo-cloud-openclaw-repair
      • ubuntu-repo-cloud-openclaw-double-same-provider
      • ubuntu-repo-cloud-openclaw-custom-policies
      • ubuntu-invalid-nvidia-key-negative
      • ubuntu-gateway-port-conflict-negative
    • ubuntu-invalid-nvidia-key-negative no longer consumes the parent NVIDIA_API_KEY; the Vitest fixture path and legacy typed shell dispatcher both inject not-a-nvidia-key.
    • ubuntu-no-docker-preflight-negative routes through the shared executable onboarding resolver.
    • ubuntu-gateway-port-conflict-negative is covered in both the Vitest fixture path and the legacy typed shell bridge, including port validation, cleanup, and focused dispatcher tests.
    • Negative scenario expected-failure contracts and forbidden side-effect probes are asserted by the scenario framework.

    Validation now attached to #5054:

    • Local framework suite: npx vitest run --project e2e-scenario-framework --silent=false --reporter=default -> 27 files / 340 tests passed.
    • Local touched-file hooks: npx prek run --files test/e2e-scenario/nemoclaw_scenarios/onboard/dispatch.sh test/e2e-scenario/framework-tests/e2e-onboard-dispatch.test.ts --skip test-cli passed.
    • Local npm run typecheck:cli and git diff --check passed.
    • PR checks are green on the current head, including static checks, build/typecheck, CLI/plugin tests, macOS/WSL E2E, CodeQL, E2E recommendation, and PR review advisor.
    • Live Vitest tiles for the migrated family passed: 27235877649, 27235876285, 27235883637, 27235882301, 27235880807, 27235879233, 27235874787, 27235873305.
    • Typed shell runner negative evidence passed:
      • ubuntu-invalid-nvidia-key-negative: 27238468247 on current head; log shows expected failure { "phase": "onboarding", "errorClass": "invalid-nvidia-api-key" }, gateway-absent/sandbox-absent probes, and negative-contract: passed.
      • ubuntu-no-docker-preflight-negative: 27235876305.
      • ubuntu-gateway-port-conflict-negative: 27237583030 after shell bridge hardening.

    The scenario advisor still recommends full e2e-scenarios-all because #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.

  7. cv commented on Jun 9, 2026

    @cv
    Collaborator

    Status update for the smoke/onboarding retirement-guard slice: #5055 is implemented, out of draft, and green on head 1673c1f1b54c03a18fbda7c3fb60967ebd4157c6.

    What changed in #5055:

    • Recorded that test(e2e): migrate smoke and onboarding scenarios #5054 gives useful Vitest coverage for the narrow onboarding assertion worker contract, but does not prove whole-script parity for the broad direct smoke/onboarding test/e2e/test-*.sh scripts.
    • Kept all direct smoke/onboarding legacy scripts (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) as not-migrated and deletionReady: false.
    • Marked legacy-onboarding-assertion-workers as covered by the registry-backed Vitest path, but still deletionReady: false because the YAML/bash bridge and assertion registry still reference those shell files.
    • Added inventory tests that lock down both sides of that boundary: direct smoke/onboarding scripts stay present until whole-script parity exists, and onboarding assertion worker scripts stay present while bridge metadata consumes them.
    • Documented the partial-coverage rule in test/e2e-scenario/docs/MIGRATION.md.

    Verification:

    • Local focused inventory tests passed.
    • Local full e2e-scenario-framework suite passed: 27 files / 342 tests.
    • Local npm run typecheck:cli, touched-file prek hooks, and git diff --check passed.
    • GitHub CI is green, including static checks, build/typecheck, CLI shards/aggregate, plugin tests, macOS/WSL E2E, CodeQL, E2E recommendation, and PR review advisor.
    • The E2E and scenario advisors recommend no live E2E for test(e2e): retire covered smoke/onboarding shell entrypoints #5055 because the changes are docs/test/audit-inventory only and do not alter live scenario behavior.

    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.

  8. jyaunches commented on Jun 10, 2026

    @jyaunches
    ContributorAuthor

    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:

    • Phase 0 — schema bump, freeze workflow, typed-shell-runner retirement
    • Phases 1–4 — per-test migrations (MIGRATE_TYPED first, then dedicated HYBRID + midsize migrations)
    • Phase 5 — AUGMENT mode for HYBRID at scale
    • Phase 6 — hardware migrations
    • Phase 7 — TS bridge refactor (brev-e2e.test.ts)
    • Phase 8 — KEEP_BASH governance and final reconciliation

    Per-test progress lives in test/e2e-scenario/migration/legacy-inventory.json. The skill at ~/.pi/agent/skills/nemoclaw-e2e-legacy-migrate/SKILL.md drives conversions through the pi /loop cadence.

  9. added a commit that references this issue on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: e2e

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions