Repository navigation
Closed as not planned
Closed as not planned
Enhancement
Copy link
Labels
area: e2eEnd-to-end tests, nightly failures, or validation infrastructure
Description
Phase 3: Inference Provider, Routing, and Config-Shape Audit Coverage
Parent epic: #3588
Goal
Cover audited assertions for inference provider integration, routing, configuration shape, and inference switching. Generic /v1/models health probes cannot satisfy provider-specific routing rows. Kimi compatibility requires trajectory tool-call splitting evidence. Inference switch requires evidence for route state, registry/session state, config hash/shape, and a live post-switch request.
Audit rows in scope
| AQ | Phase | Legacy subject | Required coverage | Boundary | Planned scenario/assertion | Fixtures/actions |
|---|---|---|---|---|---|---|
| AQ-019 | 3 | test-bedrock-runtime-compatible-anthropic.sh |
Bedrock-compatible path covers adapter config, runtime requests, route behavior, and secret-redaction checks. | provider/integration | bedrock compatible assertions | fake Bedrock endpoint |
| AQ-020 | 3 | test-cloud-inference-e2e.sh provider routing rows |
Provider-specific routing cannot be satisfied by generic /v1/models health alone. |
provider/integration | provider route assertions | fake provider fixture |
| AQ-021 | 3 | test-inference-routing.sh |
Inference routing proves route health and routed chat/completion behavior through the expected route. | provider/integration | inference routing assertions | route fixture |
| AQ-022 | 3 | test-openclaw-inference-switch.sh and test-hermes-inference-switch.sh |
Inference switch proves state update, config hash/change, and live post-switch request. | durable state / provider | inference switch assertions | provider switch action |
| AQ-023 | 3 | test-kimi-inference-compat.sh |
Kimi compatibility covers plugin wiring and Kimi-compatible models route. | provider/integration | kimi compatibility assertions | fake Kimi endpoint |
| AQ-024 | 3 | test-model-router-provider-routed-inference.sh |
Model-router provider path proves healthy endpoint and routed completion. | provider/integration | model-router assertions | fake router endpoint |
| AQ-025 | 3 | test-messaging-compatible-endpoint.sh and test-brave-search-e2e.sh |
Compatible endpoint / provider integration checks cover route-specific config and runtime behavior. | provider/integration | compatible endpoint assertions | fake endpoint fixture |
Required manifests to add
-
openclaw-bedrock-compatible-anthropic.yaml -
hermes-bedrock-compatible-anthropic.yaml -
openai-openclaw-routing.yaml -
anthropic-openclaw-routing.yaml -
compatible-openclaw-routing.yaml -
compatible-openclaw-kimi.yaml -
routed-nvidia-openclaw-model-router.yaml -
openclaw-nvidia-inference-switch.yaml -
cloud-nvidia-hermes.yaml -
cloud-nvidia-hermes-inference-switch.yaml -
telegram-compatible-openclaw.yaml -
openclaw-runtime-overrides.yaml(only as image-entrypoint setup if useful)
Required fixtures / runtime actions
- Fake Bedrock Runtime endpoint and host mapping fixture
- Bedrock adapter state/log/token fixture
- Fake compatible OpenAI / Kimi endpoints
- Model-router health endpoint fixture (or live setup contract)
-
inference.setruntime action for OpenClaw and Hermes - Runtime override container/image fixture
- Provider-key leak scan fixture
- Brave: API secret gate, policy/config, direct-curl fixtures
- Trajectory/session artifact reader
Required assertions
- Provider route identity and provider registry shape
- OpenClaw and Hermes config shape after compatible provider setup
- Adapter health including fake endpoint, region, token hash
- Authenticated Converse/ConverseStream or compatible traffic observed by fake endpoint
- Sandbox route chat returns expected content
- OpenClaw/Hermes runtime path returns expected content
- Kimi trajectory splits combined tool calls into discrete
hostname,date,uptimeexec calls - Model-router
healthy_count > 0and routed completion returnsmodel: nvidia-routed*plus content - Inference switch updates route/session/registry/config without unwanted restart where legacy checked it
- Runtime overrides update config and config hash; reject invalid values
- Brave: secret gate, policy preset, OpenClaw web search config, credential hygiene, agent search, direct-curl search/skip behavior
Validation scenarios — all must pass in PR workflow artifacts
Scenario 3.1 — Bedrock-compatible audit coverage covers adapter, configs, runtime, traffic, and leaks (Happy Path)
- Given Bedrock-compatible Anthropic fake endpoint, host mapping, adapter token, OpenClaw/Hermes scenario contracts available.
- When Onboarding and runtime assertions execute.
- Then Health, registry, config shape, sandbox route chat, agent runtime chat, authenticated Converse/ConverseStream traffic, safe logs, and leak scans all pass.
- Steps
- Filter rows AQ-019…AQ-025; start fake Bedrock endpoint/host mapping fixture; collect PR workflow evidence for provider-specific assertions.
- Run onboarding and Bedrock/provider assertion modules.
- Verify each row passes with stable assertion IDs/artifact paths; Bedrock includes config/runtime/traffic/leak evidence.
Scenario 3.2 — Generic /v1/models health cannot satisfy provider-specific routing audit rows (Sad Path)
- Given Kimi, model-router, inference-switch, or runtime-overrides audit row has only a generic models-health assertion.
- When Audit-coverage validation runs.
- Then The audit row remains unresolved and completion is rejected.
- Steps
- Filter rows AQ-020…AQ-025; inject provider-specific contract with only generic health assertion.
- Run audit-coverage validation in workflow.
- Verify rejection, rows unresolved, and named missing provider/config/trajectory assertions.
Scenario 3.3 — Inference switch proves state, config hash, and live post-switch request (Happy Path)
- Given OpenClaw or Hermes inference switch action is declared.
- When The action runs; assertions inspect route state, registry/session state, config hash/shape, live post-switch request.
- Then Switch coverage is complete only if all surfaces match expected values and no unwanted restart occurred where legacy checked it.
- Steps
- Filter row AQ-022; provision switchable provider fixtures; collect PR workflow evidence.
- Run
inference.setand assertion modules. - Verify AQ-022 evidence-complete only when route/session/registry/config/live-request assertion IDs all pass.
Acceptance criteria — issue is NOT DONE until ALL are true
- PR landed in
test/e2e-scenario/with manifests, fixtures, runtime actions, assertion modules above. - PR CI passing:
- All 7 audit-row scenarios run in workflow and emit
PASS:markers - Generic
/v1/modelshealth is rejected as coverage for provider-specific routing - Kimi requires trajectory/tool-call assertion to pass
- Inference switch requires route + registry/session + config + live request assertions all to pass
- All 7 audit-row scenarios run in workflow and emit
- Validation Scenarios 3.1–3.3 all pass in PR workflow artifacts.
- Audit work queue updated: AQ-019 through AQ-025 flipped to
evidence-complete. - Phase-specific validation gate (from spec): generic
/v1/modelscannot satisfy provider-specific routing or config-shape; Kimi not complete unless trajectory/tool-call semantics asserted; inference switch not complete unless route state, registry/session state, config hash/shape, and live post-switch request all covered. - No-cheat gate: generic health probes alone cannot satisfy any provider-specific row.
- Secret gate: provider keys never in manifests; leak scan asserted on Bedrock fixture.
- 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) — fake provider endpoints, runtime actions runner.
- Phase 2 (Phase 2: Onboarding and Installer Audit Coverage (E2E audit-coverage) #4348) — baseline manifests (
openclaw-nvidia.yaml, Hermes baseline).
Out of scope
- Local Ollama/GPU (Phase 4)
- Messaging matrix (Phase 5)
- Hermes Discord/Slack flow (Phase 6)
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 #5056 (
test(e2e): add inference runtime helpers): this PR is now ready from the framework-helper side.What landed in the PR:
RuntimePhaseFixtureand theruntimeVitest fixture for inference runtime probes.inference.localmodels, chat completions, and status checks.--data-raw, curl-sensitive@filebody/header forms are rejected, CR/LF headers are rejected, and invalidcurlMaxTimeSecondsvalues are rejected before command execution.{ data: [...] },{ models: [{ name: ... }] }, and string model entries.Verification on #5056 head
05b6d1b26:npx vitest run --project e2e-scenario-framework test/e2e-scenario/framework-tests/e2e-phase-runtime.test.ts test/e2e-scenario/framework-tests/e2e-clients.test.ts --silent=false --reporter=defaultpassed: 32 tests.npx vitest run --project e2e-scenario-framework --silent=false --reporter=defaultpassed: 337 tests.npm run typecheck:cli,git diff --check, and touched-filenpx prek ... --skip test-clipassed.ubuntu-repo-cloud-openclawscenario passed.Phase 3 caveat: this does not mark AQ-019 through AQ-025 evidence-complete. #5056 supplies the typed runtime/provider helper surface needed by the next inference migration PRs; the actual provider-routing, inference-switch, Kimi, Bedrock, model-router, and compatible-endpoint audit rows still need scenario/assertion migrations before this issue can close.
cv commentedon Jun 10, 2026
Status update for the inference-family E2E scenario migration stack:
ubuntu-repo-cloud-openclawscenario now dispatches runtime suites throughRuntimePhaseFixture.runSuite(...), including explicitinference-routingcoverage, and the live artifacts record executedruntimeSuitesplus remainingpendingRuntimeSuites.inference-routingassertion group now points at the routing-specific validation scripts instead of aliasing generic cloud inference.test/e2e/test-cloud-inference-e2e.shandtest/e2e/test-inference-routing.shasbridge-probe, notcovered. That keeps the source of truth honest: the new Vitest path covers the active happy-path probes, while deletion remains blocked until the remaining legacy credential-isolation, negative-classification/cleanup, provider-route, compatible-endpoint, and skill-filesystem assertions migrate.Verification:
e2e-scenario-frameworkfocused runtime/matrix/inventory coverage passed.e2e-scenario-frameworkproject passed: 27 files, 340 tests.npm run typecheck:clipassed.prekhooks passed with--skip test-cli.Remaining inference-family work stays with the later stack items: provider switch, compatible endpoint, Kimi, Bedrock, and model-router/provider-routed migrations.
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 inference runtime helpers (#5056)
test(e2e): convert strict-tool-call-probe driver to TypeScript
test(e2e): retire test-strict-tool-call-probe.sh (#5153)
test(e2e): retire onboard inference smoke script (#5155)