Skip to content

test(e2e): select native Hermes GPU diagnostics explicitly - #14896

Merged
prekshivyas merged 2 commits into
mainfrom
codex/hermes-gpu-native-diagnostic
Nov 30, 2026
Merged

prekshivyas merged 2 commits into
mainfrom
codex/hermes-gpu-native-diagnostic

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Maintainers can select the existing native Hermes GPU startup scenario for a focused diagnostic. Default runs retain native, fallback, and compatibility-only scenarios.

Reason

PR #12603 needs to diagnose a native startup timeout independently from the legacy fallback fixtures. The trusted main workflow currently requires all three scenarios together.

Changes

  • Add an opt-in Boolean dispatch input restricted to jobs=hermes-gpu-startup with empty targets. The planner supplies its single Boolean matrix axis; the default static scenario list remains intact.
  • Record diagnostic intent in the dispatch receipt and authorization grant, preserve it for base replay, and identify partial coverage in the run’s E2E Execution Plan summary. Pinned PR diagnostics retain the existing PR-report restriction.
  • Isolate diagnostic and full-qualification concurrency groups for both candidate and base runs. Omit the optional dispatch input for ordinary runs and check trusted-controller support before diagnostic dispatch intent.
  • Extend planner, workflow, receipt-command, and reporting tests. Preserve all live assertions, deadlines, resource boundaries, and cleanup.

Verification

  • Review repair: 114 focused support checks passed across concurrency, staging isolation, diagnostic planning, and reporting. Four extracted dispatch-recipe checks passed, including unsupported-controller and invalid-input rejection.
  • Initial focused E2E support checks: 351 passed across seven files, including 20 diagnostic tests and 56 report tests. A local Unix socket path limit was resolved by shortening the task-owned temporary path under the same isolation controls.
  • Original Hermes workflow boundary suite: 22 passed; two cleanup fixture tests failed identically on unchanged main in this macOS environment. No live test was changed.
  • Actual pre-commit and commit-message hooks passed, including repository checks, lint, formatting, secret scanning, semantic phases, source-shape budget, and growth guardrails.
  • Actual pre-push hook passed publication validation and plugin, JavaScript-config, and CLI TypeScript checks. GitHub verified the signed commit.
  • Diff reviewed for secrets, API keys, and credentials: none present.

Review notes

Self-review of NVIDIA/NemoClaw commit 5cd002857d1f8309160eec43528c4c3d66f16295 covered .github/workflows/e2e.yaml, .agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md, and the changed enforcement tooling under tools/e2e/. Subsequent automated review of that commit returned one Advisor P1 concurrency finding and a CodeRabbit partial-reporting discrepancy. The repair addresses both and the optional-input compatibility advisory; independent evaluation of the repair remains pending.

This is an execution prerequisite, not a GPU runtime fix. It must be adopted by trusted main before the new selector can run. A native diagnostic pass does not qualify fallback, compatibility-only, or the full 79-row upgrade matrix. PR #12603 remains unchanged: 72 original components have verified evidence, one protected GPU row failed, and six Personal/Hermes GPU rows remain held.


Signed-off-by: Prekshi Vyas prekshiv@nvidia.com

Summary by CodeRabbit

  • New Features
    • Added an optional native Hermes GPU diagnostic run for hermes-gpu-startup. It can be selected only on its own, without additional targets.
    • Reports identify the diagnostic’s limited scope: fallback and compatibility-only scenarios are not qualified.
    • The diagnostic selection is recorded and must match when comparing against a base run. It runs in a separate concurrency group; regular runs remain unchanged by default.
  • Documentation
    • Added instructions and an example for selecting the diagnostic, including its scope and limitations.

Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The E2E workflow adds an optional native Hermes GPU diagnostic selection. It restricts that selection to the hermes-gpu-startup job and native scenario, records it for replay, and labels reports to distinguish diagnostic coverage from full qualification.

Changes: Native Hermes GPU diagnostic selection

Layer / File(s) Summary
Planner selection and validation
tools/e2e/workflow-plan.mts, test/e2e/support/workflow-plan-hermes-gpu-diagnostic.test.ts, test/e2e/support/workflow-plan-test-assertions.ts
The planner accepts the diagnostic selector only for the sole hermes-gpu-startup job and limits coverage to the native variant. CI emits a diagnostic matrix output. Tests cover selector validation, CI restrictions, and output.
Workflow dispatch and matrix wiring
.github/workflows/e2e.yaml, tools/e2e/pre-candidate-workflow-contract.mts, tools/e2e/workflow-boundary.mts, tools/e2e/hermes-gpu-startup-workflow-boundary.mts, tools/e2e/operations-workflow-boundary.mts, test/e2e/support/manual-pr-concurrency.test.ts, test/e2e/support/staging-brev-launchable-identity-workflow-boundary.test.ts
The workflow passes the input to receipt recording, matrix generation, and PR reporting. Diagnostic mode requires the sole GPU job and excludes fallback and compatibility-only scenarios. Boundary checks and tests validate the wiring and concurrency isolation.
Replay authorization and diagnostic reporting
.agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md, tools/e2e/report-e2e-results.mts, test/e2e/README.md, test/e2e/support/e2e-report-to-pr-workflow-boundary.test.ts, tools/e2e/operations-workflow-boundary.mts
Manual PR instructions preserve the diagnostic flag for base replay and require candidate and replay flags to match. Reports identify native diagnostic-only qualification. Documentation and tests describe and check that scope.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant WorkflowDispatch
  participant E2EWorkflow
  participant WorkflowPlan
  participant HermesGpuStartupMatrix
  participant PRReport
  WorkflowDispatch->>E2EWorkflow: Sets native_hermes_gpu_diagnostic
  E2EWorkflow->>WorkflowPlan: Passes diagnostic selector
  WorkflowPlan-->>E2EWorkflow: Returns diagnostic matrix output
  E2EWorkflow->>HermesGpuStartupMatrix: Selects native scenario and excludes fallback and compatibility-only
  E2EWorkflow->>PRReport: Passes diagnostic flag
Loading

Possibly related issues

  • NVIDIA/NemoClaw issue 13933: This change adds selection and reporting for one Hermes GPU startup scenario. It does not implement the epic’s hardware acquisition or reference E2E requirements.

Suggested reviewers: cv, deepujain, ericksoa

Merge Risk: Minimal · up to ea11e

This change adds an opt-in, native-only Hermes GPU diagnostic to the E2E workflow. It is restricted to the sole GPU job, isolated by its own concurrency group, preserved for base replay, and labeled as non-qualifying in the execution plan summary and reports. Pinned PR-candidate diagnostics post no PR comment, which the README documents. No remaining merge-blocking risk was found.

Security architecture risk: Low · up to ea11e

The diagnostic does not grant new access or replace the full release check. The remaining risk is that an automated reader could mistake a native-only PR result for coverage of the fallback and compatibility scenarios.

Retained concerns

  • Low · security · inferred: The native-only matrix can produce a Relevant E2E pass under the same Hermes GPU job ID as an ordinary run. The result artifact references the receipt but does not carry the diagnostic mode itself, so a consumer that checks only the job ID and pass status cannot distinguish the narrower result. The documented receipt-matching requirement is a countermeasure; no consumer bypass was verified.
Security review details

Security Blast Radius

  • inferred — The changed execution scope is limited to existing native Hermes GPU rows on the existing runner class. The new exposure is ambiguity in PR qualification evidence, rather than access to an additional job or runner class.

Trust Boundaries and Controls

  • observed — For pinned PR dispatches, the existing workflow authenticates repository ownership and workflow, head, and base identities before recording the dispatch receipt and planning the candidate run.

Resilience and Maintainability Implications

  • observed — The maintainer procedure records the mode with pending dispatch intent and directs operators to reconcile a timed-out run, preserving its cleanup obligation rather than treating the timeout as permission to send a replacement.

Hardening Proposals

  • proposed — Include machine-readable coverage scope in the Relevant E2E result, and require consumers to match it against the trusted receipt and requested coverage before treating a result as qualifying evidence.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(e2e): select native Hermes GPU diagnostics explicitly" matches the main change. The PR adds an opt-in native_hermes_gpu_diagnostic selector that runs only the existing native Hermes GP…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "test(e2e): select native Hermes GPU diagnostics explicitly" matches the main change. The PR adds an opt-in native_hermes_gpu_diagnostic selector that runs only the existing native Hermes GPU startup scenario. The title names the feature and its explicit selection. It also uses a conventional commit prefix. Its scope is narrower than the full change set, which also covers receipts, base replay, concurrency, and reporting. That is expected for a short title.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

markdownlint-cli2 (0.24.0)

.agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md

markdownlint-cli2 did not write JSON output
file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4776
if (!t.more()) throw new RE2JSSyntaxException(Parser.ERR_MISSING_BRACKET, t.from(wholeClassPos));
^

RE2JSSyntaxException: error parsing regexp: missing closing ]: [^]*?\n---\n?
at Parser.parseClassChar (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4776:24)
at Parser.parseClass (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5579:22)
at Parser.parseInternal (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5258:11)
at Parser.parse (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4646:37)
at RE2.compileImpl (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5656:19)
at RE2JS.compile (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:6470:20)
at lintInput (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:812:49)
at lintAsync (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:916:10)
at file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:927:5
at new Promise () {
error: 'missing closing ]',
input: '[^]*?\n---\n?'
}

Node.js v24.22.3

markdownlint-cli2 v0.24.0 (markdownlint v0.42.0)
Finding: :.agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md :test/e2e/README.md !node_modules/** !skills/**
Linting: 2 files

test/e2e/README.md

markdownlint-cli2 did not write JSON output
file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4776
if (!t.more()) throw new RE2JSSyntaxException(Parser.ERR_MISSING_BRACKET, t.from(wholeClassPos));
^

RE2JSSyntaxException: error parsing regexp: missing closing ]: [^]*?\n---\n?
at Parser.parseClassChar (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4776:24)
at Parser.parseClass (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5579:22)
at Parser.parseInternal (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5258:11)
at Parser.parse (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:4646:37)
at RE2.compileImpl (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:5656:19)
at RE2JS.compile (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/node_modules/re2js/build/index.js:6470:20)
at lintInput (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:812:49)
at lintAsync (file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:916:10)
at file:///usr/local/lib/node_modules/markdownlint-cli2/node_modules/markdownlint/lib/markdownlint.mjs:927:5
at new Promise () {
error: 'missing closing ]',
input: '[^]*?\n---\n?'
}

Node.js v24.22.3

markdownlint-cli2 v0.24.0 (markdownlint v0.42.0)
Finding: :.agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md :test/e2e/README.md !node_modules/** !skills/**
Linting: 2 files

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5cd0028 and ea11eea.

Files selected for processing: 8

  • .agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md
  • .github/workflows/e2e.yaml
  • test/e2e/README.md
  • test/e2e/support/manual-pr-concurrency.test.ts
  • test/e2e/support/staging-brev-launchable-identity-workflow-boundary.test.ts
  • test/e2e/support/workflow-plan-hermes-gpu-diagnostic.test.ts
  • tools/e2e/workflow-boundary.mts
  • tools/e2e/workflow-plan.mts
Files skipped from review as they are similar to previous changes: 1

  • test/e2e/README.md

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@prekshivyas

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex Desktop 0.163.0-alpha.11.1 Persisted authoring-session metadata matches the checkout activity.
Skills partial nemoclaw-contributor-implement-issue; nemoclaw-contributor-create-pr; nemoclaw-contributor-onboard; nemoclaw-contributor-update-docs; nemoclaw-maintainer-audit-e2e-assertions; nemoclaw-maintainer-classify-ci-failure; nemoclaw-maintainer-e2e; nemoclaw-maintainer-fix-e2e-failures; nemoclaw-maintainer-security-code-review Complete reads confirmed in retained tool results. Some earlier multi-file results were truncated, so additional complete skill reads cannot be established from those results.
Instruction files partial AGENTS.md; WRITING.md; development reference; test/README.md; Git/GitHub access contract; PR follow-up contract; publication and validation references; session report and PR templates Confirmed reads in the authoring record. Earlier truncated multi-file reads do not establish additional complete guidance.
Tool calls partial exec: 4700; sleep: 67; wait: 29; request_user_input_async: 3; list_agents: 1 Attempted wrapper calls across the whole session, including failures. Nested calls are not separately logged as invocations; wrappers contain loops and dynamic dispatch. Counts exclude activity after the cutoff and are not added to nested call sites.
Session window recorded 2026-11-24T05:26:59.042Z to 2026-11-26T03:50:47.977Z; 46h 23m 48s Session metadata start through stated cutoff, including idle time and other upgrade work. This is the whole authoring session, not only this controller change.
Compactions recorded 29 Persisted compaction events through cutoff.
Models recorded gpt-6.1-sol Recorded turn contexts through cutoff.
Reasoning levels recorded medium Recorded turn contexts through cutoff.

@github-code-quality

github-code-quality Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/hermes-gpu-nat... ea11eea +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/hermes-gpu-nat... ea11eea +/-
nemoclaw/src/sh...cy-boundary.cts 100% 97% -3%
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/ru...time-context.ts 100% 99% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/index.ts 94% 99% +5%
nemoclaw/src/de...search-state.ts 0% 100% +100%
nemoclaw/src/on...native-route.ts 0% 100% +100%
nemoclaw/src/search-config.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd codex/hermes-gpu-nat... ea11eea +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/hermes-gpu-nat... ea11eea +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 64% +23%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 75% +75%
src/lib/inferen...er/lifecycle.ts 0% 75% +75%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 84% +84%
src/lib/inferen...ovider/index.ts 0% 90% +90%
src/lib/hermes-...yard-routing.ts 0% 95% +95%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 26, 2026 05:05 UTC

@prekshivyas
prekshivyas marked this pull request as ready for review November 26, 2026 04:16

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Post the native diagnostic's partial-scope marker… · operations-workflow-boundary.mts:1370-1371

tools/e2e/operations-workflow-boundary.mts:1370-1371
Minor · Functional Correctness · Quick win

Post the native diagnostic's partial-scope marker for PR-candidate dispatches.

The documented native Hermes GPU diagnostic passes a nonempty checkout_sha. The report-to-pr guard at .github/workflows/e2e.yaml:7125 skips the whole job for that input, because the job runs only for an empty checkout_sha or a main dispatch that selects the two listed jobs. The partial-scope branch in tools/e2e/report-e2e-results.mts:489 therefore never runs for the documented diagnostic.

The PR states that this diagnostic should identify partial coverage in the PR report. The current workflow does not deliver that marker for the documented invocation. Define where the partial-scope marker must appear for PR-candidate diagnostics, and make the workflow deliver it there.

The guard string is pinned by tools/e2e/operations-workflow-boundary.mts:1369-1373. Update that expectation in the same change as any guard edit.

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between dbdb0ba and 5cd0028.

Files selected for processing: 12

  • .agents/skills/nemoclaw-maintainer-e2e/references/manual-pr.md
  • .github/workflows/e2e.yaml
  • test/e2e/README.md
  • test/e2e/support/e2e-report-to-pr-workflow-boundary.test.ts
  • test/e2e/support/workflow-plan-hermes-gpu-diagnostic.test.ts
  • test/e2e/support/workflow-plan-test-assertions.ts
  • tools/e2e/hermes-gpu-startup-workflow-boundary.mts
  • tools/e2e/operations-workflow-boundary.mts
  • tools/e2e/pre-candidate-workflow-contract.mts
  • tools/e2e/report-e2e-results.mts
  • tools/e2e/workflow-boundary.mts
  • tools/e2e/workflow-plan.mts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
@prekshivyas
prekshivyas marked this pull request as draft November 26, 2026 04:43
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit ea11eea. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@prekshivyas

Copy link
Copy Markdown
Collaborator Author

Advisor review for ea11eea6c7a6600568c789da1a6cfa1229b17c58 finished: eight specialists are clear; one documentation finding blocks the automated gate.

Finding F-documentation-standard-work-62e4fa466ff1cd24cf2a appears to be a false positive. The documented pinned native GPU diagnostic has a nonempty checkout_sha and selects only hermes-gpu-startup. The report-to-pr guard permits a pinned run only for catalogue-hosted-inference or llama-cpp-dgx-spark-qualification. Neither is selected.

A credential-free evaluation of the unchanged guard confirmed:

Inputs Reporter scheduled
Pinned native GPU diagnostic false
Pinned ordinary GPU run false
Existing empty-checkout manual run true
Pinned admitted hosted-inference run true

The documented pinned diagnostic therefore cannot reach createComment. This evaluation is source evidence, not a hosted E2E pass.

Advisor run. The failed gate remains intact, and the PR remains draft pending independent clearance. No source change or unchanged review rerun was used to remove the finding.

@rsliter rsliter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed commit ea11eea. The diagnostic input defaults to false, rejects mixed selectors, records its scope in the trusted dispatch receipt, selects only the native Hermes GPU scenario, and uses a separate concurrency group. The plan summary marks fallback and compatibility-only as unqualified. The pinned PR report guard excludes this Hermes-only dispatch, so the Advisor documentation finding does not match the workflow condition. The focused credential-free E2E support suite passed 94 tests across three files; git diff --check passed. This approves the code review, not a live GPU result or merge readiness. The Advisor gate still reports the disputed finding, and the recommended native-only live run requires the new selector to exist in the trusted main controller before it can be dispatched. Keep those evidence limits explicit before merge.

@prekshivyas
prekshivyas marked this pull request as ready for review November 30, 2026 18:06
@prekshivyas
prekshivyas merged commit 1b2e96c into main Nov 30, 2026
113 of 114 checks passed
@prekshivyas
prekshivyas deleted the codex/hermes-gpu-native-diagnostic branch November 30, 2026 18:06
@github-actions github-actions Bot added the v0.0.146 Release target label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.0.146 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants