Skip to content

fix(hermes): validate config lifecycle writes - #8845

Merged
prekshivyas merged 1 commit into
mainfrom
fix/8614-hermes-config-lifecycle
Aug 12, 2026
Merged

prekshivyas merged 1 commit into
mainfrom
fix/8614-hermes-config-lifecycle

Conversation

@yimoj

@yimoj yimoj commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Hermes configuration writes now validate the complete candidate before changing configuration or integrity metadata. The lifecycle also reports truthful restart effects, bounded redacted restart diagnostics, targeted recovery guidance, and an explicit private-URL opt-in while retaining public-host DNS validation and pinning.

Related Issue

Fixes #8614

Changes

  • Validate complete Hermes configuration candidates with the bundled Hermes schema before starting a sealed write transaction. Tests verify that structurally incomplete writes preserve configuration, environment, and integrity hashes.
  • Read the existing Hermes security.allow_private_urls boolean as the explicit opt-in required by the CLI and plugin. Public hosts continue through DNS validation and pinning; private URLs remain denied by default.
  • Report Hermes restart behavior and --restart verification accurately, and direct pre-write compatibility-hash failures to nemoclaw '<sandbox>' recover.
  • Include at most 12 redacted lines from /tmp/gateway.log when Hermes supervisor restart fails, without exposing credential-shaped values.
  • Document Hermes validation, restart, managed .env, recovery, and private-URL behavior.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: Independent Pi security and correctness reviewers found no actionable blockers after repairs; explicit private-URL opt-in, DNS pinning, pre-mutation integrity, and diagnostic redaction received focused review and tests.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: docs-updated
  • Evidence: docs/reference/commands.mdx; changed code comments, diagnostics, and behavior-oriented test titles
  • Agent: Pi documentation writer reviewer

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit: Not applicable; scripts/prepare-dgx-station-host.sh is unchanged.
  • Station profile/scenario: Not applicable.
  • Result: Not applicable.
  • Supporting evidence: Not applicable.

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: Focused Hermes/config/restart Vitest suites passed; python3 -m unittest agents.hermes.plugin.test_private_url_opt_in passed; CLI typecheck and plugin build passed. Real CLI E2E verified atomic rejection with unchanged hashes, a valid write, post-rebuild write recovery, bounded restart diagnostics, default private-URL denial, and explicit opt-in acceptance.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: Local npm test did not pass because the handoff hook leaked into temporary Git fixtures and unrelated environment-dependent baseline tests failed. The issue-focused suites passed; CI remains authoritative for the broad gate.
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Yimo Jiang [email protected]

Summary by CodeRabbit

  • New Features

    • Hermes configuration changes are now validated before being saved, preventing invalid or incomplete updates.
    • Private URL access requires an explicit configuration opt-in; public hosts continue to receive DNS validation.
    • Hermes gateway restart failures now include a sanitized, concise log excerpt to aid troubleshooting.
    • Recovery guidance is clearer when configuration integrity checks fail.
  • Bug Fixes

    • Prevented unintended enabling of private URL access during browser safety updates.
  • Documentation

    • Updated configuration command guidance and Hermes-specific behavior, safeguards, and restart requirements.

@yimoj yimoj self-assigned this Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Hermes configuration writes now undergo schema validation before mutation. Sandbox URL validation supports explicit private-URL opt-in while retaining public DNS pinning. Hermes restart failures include sanitized gateway-log tails. Documentation and tests cover validation, recovery, diagnostics, and configuration effects.

Changes

Hermes configuration safety

Layer / File(s) Summary
Pre-write candidate validation
agents/hermes/runtime-config-guard.py, test/helpers/hermes-restart-config-seal-fixture.ts, test/hermes-nonroot-strict-hash-reconciliation.test.ts, test/hermes-runtime-config-guard.test.ts, test/hermes-restart-config-seal-transition.test.ts, handoff-issue-contract.md
Hermes candidates are parsed and validated through GatewayConfig.from_dict before sealing or filesystem changes. Test fixtures provide the gateway schema stub and verify incomplete structures fail atomically.
Sandbox configuration and URL policy
src/lib/sandbox/config.ts, agents/hermes/plugin/__init__.py, src/lib/sandbox/compose-sandbox-config-body.test.ts, agents/hermes/plugin/test_private_url_opt_in.py, test/config-set.test.ts
Hermes gets specific restart and compatibility-hash recovery errors. Private URLs require security.allow_private_urls: true. Public HTTP hosts remain DNS-pinned.
Hermes restart failure diagnostics
src/lib/actions/sandbox/gateway-restart.ts, src/lib/actions/sandbox/gateway-restart.test.ts
Hermes restart failures include a sanitized tail of up to 12 nonempty lines from /tmp/gateway.log. Non-Hermes failures do not retrieve this log.
Configuration lifecycle documentation
docs/reference/commands.mdx, handoff-issue-contract.md
The documentation describes shield requirements, schema validation, restart behavior, recovery ordering, managed .env updates, diagnostics, and private URL handling.

Estimated code review effort: 4 (Complex) | ~45 minutes

Suggested labels: integration: hermes, area: sandbox, bug-fix

Suggested reviewers: cv

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The changes address validation, restart diagnostics, recovery guidance, and documentation, but do not provide a non-rebuild path out of relaunch quarantine required by #8614. Add and test a recovery path that clears relaunch quarantine without requiring sandbox recreation or a full rebuild.
Docstring Coverage ⚠️ Warning Docstring coverage is 8.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title concisely identifies the Hermes configuration lifecycle validation changes, which are central to the pull request.
Out of Scope Changes check ✅ Passed The implementation, tests, fixtures, diagnostics, documentation, and handoff contract all support the Hermes configuration lifecycle objectives in #8614.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/8614-hermes-config-lifecycle

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit 17f2e6c in the fix/8614-hermes-conf... branch remains at 96%, unchanged from commit 06ac446 in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit 17f2e6c in the fix/8614-hermes-conf... branch remains at 82%, unchanged from commit 06ac446 in the main branch.

Show a code coverage summary of the most impacted files.
File main 06ac446 fix/8614-hermes-conf... 17f2e6c +/-
src/lib/cua/bounded-file.ts 94% 84% -10%
src/lib/cua/run...ime-manifest.ts 91% 84% -7%
src/lib/cua/contract.ts 87% 80% -7%
src/lib/messagi.../ilink-login.ts 96% 89% -7%
src/lib/trace.ts 94% 90% -4%
src/lib/state/o...d-checkpoint.ts 90% 87% -3%
src/lib/onboard...press-resume.ts 78% 81% +3%
src/lib/securit...ntial-filter.ts 91% 95% +4%
src/lib/agent/dashboard-ui.ts 91% 98% +7%
src/lib/onboard...der/snapshot.ts 75% 83% +8%

Updated August 12, 2026 03:44 UTC

@github-actions

Copy link
Copy Markdown
Contributor

import importlib.util
import os
import sys
import tempfile
import importlib.util
import os
import sys
import tempfile

@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.

Actionable comments posted: 3

🧹 Nitpick comments (1)
src/lib/actions/sandbox/gateway-restart.test.ts (1)

195-218: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Cover failed Hermes log-tail retrieval.

The new null and non-zero result paths in hermesGatewayLogTail are not exercised. Add Hermes cases where executeSandboxExecCommand returns null and a non-zero status. Assert that the restart remains a launch failure and does not print the log-tail header.

As per path instructions: “Review tests for behavioral confidence rather than implementation lock-in.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/lib/actions/sandbox/gateway-restart.test.ts` around lines 195 - 218, Add
Hermes-specific test cases near the existing gateway restart coverage for
hermesGatewayLogTail when executeSandboxExecCommand returns null and when it
returns a non-zero status. For both cases, assert the restart reports a launch
failure and the gateway log-tail header is not printed, while keeping assertions
focused on observable behavior rather than implementation details.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@agents/hermes/plugin/__init__.py`:
- Line 332: In the browser tool initialization flow, replace the setattr call
assigning _allow_private_urls_resolved with direct attribute assignment on
browser_tool, preserving the existing allow_private_urls value.

In `@agents/hermes/plugin/test_private_url_opt_in.py`:
- Line 10: Remove the unused tempfile import from test_private_url_opt_in.py,
leaving the rest of the test file unchanged.

In `@src/lib/actions/sandbox/gateway-restart.test.ts`:
- Around line 155-187: Update the fixture in the restartSandboxGateway test so
the sk-proj token is assigned to logLines[13], which is included by the captured
tail. Keep the existing sanitized-output assertion and ensure it verifies the
token value is absent while the expected redaction behavior remains covered.

---

Nitpick comments:
In `@src/lib/actions/sandbox/gateway-restart.test.ts`:
- Around line 195-218: Add Hermes-specific test cases near the existing gateway
restart coverage for hermesGatewayLogTail when executeSandboxExecCommand returns
null and when it returns a non-zero status. For both cases, assert the restart
reports a launch failure and the gateway log-tail header is not printed, while
keeping assertions focused on observable behavior rather than implementation
details.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4bd7a157-bd41-4715-a068-974f6a411de3

📥 Commits

Reviewing files that changed from the base of the PR and between 06ac446 and 17f2e6c.

📒 Files selected for processing (14)
  • agents/hermes/plugin/__init__.py
  • agents/hermes/plugin/test_private_url_opt_in.py
  • agents/hermes/runtime-config-guard.py
  • docs/reference/commands.mdx
  • handoff-issue-contract.md
  • src/lib/actions/sandbox/gateway-restart.test.ts
  • src/lib/actions/sandbox/gateway-restart.ts
  • src/lib/sandbox/compose-sandbox-config-body.test.ts
  • src/lib/sandbox/config.ts
  • test/config-set.test.ts
  • test/helpers/hermes-restart-config-seal-fixture.ts
  • test/hermes-nonroot-strict-hash-reconciliation.test.ts
  • test/hermes-restart-config-seal-transition.test.ts
  • test/hermes-runtime-config-guard.test.ts

if isinstance(security, dict)
else False
)
setattr(browser_tool, "_allow_private_urls_resolved", allow_private_urls)

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use direct attribute assignment.

Replace setattr(browser_tool, "_allow_private_urls_resolved", allow_private_urls) with direct assignment. Ruff reports B010 for this changed line.

🧰 Tools
🪛 Ruff (0.16.1)

[warning] 332-332: Do not call setattr with a constant attribute value. It is not any safer than normal property access.

Replace setattr with assignment

(B010)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@agents/hermes/plugin/__init__.py` at line 332, In the browser tool
initialization flow, replace the setattr call assigning
_allow_private_urls_resolved with direct attribute assignment on browser_tool,
preserving the existing allow_private_urls value.

Source: Linters/SAST tools

import importlib.util
import os
import sys
import tempfile

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the unused import.

tempfile has no use in this file. Remove the import.

🧰 Tools
🪛 GitHub Check: CodeQL

[notice] 10-10: Unused import
Import of 'tempfile' is not used.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@agents/hermes/plugin/test_private_url_opt_in.py` at line 10, Remove the
unused tempfile import from test_private_url_opt_in.py, leaving the rest of the
test file unchanged.

Source: Linters/SAST tools

Comment on lines +155 to +187
const logLines = Array.from({ length: 15 }, (_, index) => `line-${index}`);
logLines[1] = "token=sk-proj-abcdefghijklmnopqrstuvwxyz0123456789";
logLines[14] = "Bearer super-secret-token-value";
const executeSandboxExecCommand = vi.fn(() => ({
status: 0,
stdout: logLines.join("\n"),
stderr: "",
}));
const deps = baseDeps({
getSessionAgent: () => ({ name: "hermes" }),
getSandbox: () => ({ name: "triage-8614", agent: "hermes" }),
requestGatewaySupervisorAction: vi.fn(() => ({
status: 1,
stdout: "GATEWAY_FAILED",
stderr: "",
})),
executeSandboxExecCommand,
});

const result = restartSandboxGateway("triage-8614", { quiet: true, deps });
const output = (console.error as ReturnType<typeof vi.fn>).mock.calls.flat().join("\n");

expect(result).toMatchObject({ ok: false, failureLayer: "launch failure" });
expect(executeSandboxExecCommand).toHaveBeenCalledWith(
"triage-8614",
"tail -n 12 /tmp/gateway.log 2>/dev/null || true",
);
expect(output).toContain("Hermes gateway log tail (sanitized):");
expect(output).toContain("line-3");
expect(output).toContain("Bearer <REDACTED>");
expect(output).not.toContain("line-2");
expect(output).not.toContain("sk-proj-abcdefghijklmnopqrstuvwxyz0123456789");
expect(output).not.toContain("super-secret-token-value");

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Place the token fixture inside the captured tail.

tail -n 12 keeps indexes 3 through 14 from these 15 lines. logLines[1] is removed before sanitization, so the assertion at Line 186 passes even if the sk-proj... value is leaked. Move the fixture to logLines[13] and assert the sanitized result.

Proposed test fix
-      logLines[1] = "token=sk-proj-abcdefghijklmnopqrstuvwxyz0123456789";
+      logLines[13] = "token=sk-proj-abcdefghijklmnopqrstuvwxyz0123456789";

As per path instructions: “Review tests for behavioral confidence rather than implementation lock-in.”

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const logLines = Array.from({ length: 15 }, (_, index) => `line-${index}`);
logLines[1] = "token=sk-proj-abcdefghijklmnopqrstuvwxyz0123456789";
logLines[14] = "Bearer super-secret-token-value";
const executeSandboxExecCommand = vi.fn(() => ({
status: 0,
stdout: logLines.join("\n"),
stderr: "",
}));
const deps = baseDeps({
getSessionAgent: () => ({ name: "hermes" }),
getSandbox: () => ({ name: "triage-8614", agent: "hermes" }),
requestGatewaySupervisorAction: vi.fn(() => ({
status: 1,
stdout: "GATEWAY_FAILED",
stderr: "",
})),
executeSandboxExecCommand,
});
const result = restartSandboxGateway("triage-8614", { quiet: true, deps });
const output = (console.error as ReturnType<typeof vi.fn>).mock.calls.flat().join("\n");
expect(result).toMatchObject({ ok: false, failureLayer: "launch failure" });
expect(executeSandboxExecCommand).toHaveBeenCalledWith(
"triage-8614",
"tail -n 12 /tmp/gateway.log 2>/dev/null || true",
);
expect(output).toContain("Hermes gateway log tail (sanitized):");
expect(output).toContain("line-3");
expect(output).toContain("Bearer <REDACTED>");
expect(output).not.toContain("line-2");
expect(output).not.toContain("sk-proj-abcdefghijklmnopqrstuvwxyz0123456789");
expect(output).not.toContain("super-secret-token-value");
const logLines = Array.from({ length: 15 }, (_, index) => `line-${index}`);
logLines[13] = "token=sk-proj-abcdefghijklmnopqrstuvwxyz0123456789";
logLines[14] = "Bearer super-secret-token-value";
const executeSandboxExecCommand = vi.fn(() => ({
status: 0,
stdout: logLines.join("\n"),
stderr: "",
}));
const deps = baseDeps({
getSessionAgent: () => ({ name: "hermes" }),
getSandbox: () => ({ name: "triage-8614", agent: "hermes" }),
requestGatewaySupervisorAction: vi.fn(() => ({
status: 1,
stdout: "GATEWAY_FAILED",
stderr: "",
})),
executeSandboxExecCommand,
});
const result = restartSandboxGateway("triage-8614", { quiet: true, deps });
const output = (console.error as ReturnType<typeof vi.fn>).mock.calls.flat().join("\n");
expect(result).toMatchObject({ ok: false, failureLayer: "launch failure" });
expect(executeSandboxExecCommand).toHaveBeenCalledWith(
"triage-8614",
"tail -n 12 /tmp/gateway.log 2>/dev/null || true",
);
expect(output).toContain("Hermes gateway log tail (sanitized):");
expect(output).toContain("line-3");
expect(output).toContain("Bearer <REDACTED>");
expect(output).not.toContain("line-2");
expect(output).not.toContain("sk-proj-abcdefghijklmnopqrstuvwxyz0123456789");
expect(output).not.toContain("super-secret-token-value");
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/lib/actions/sandbox/gateway-restart.test.ts` around lines 155 - 187,
Update the fixture in the restartSandboxGateway test so the sk-proj token is
assigned to logLines[13], which is included by the captured tail. Keep the
existing sanitized-output assertion and ensure it verifies the token value is
absent while the expected redaction behavior remains covered.

Source: Path instructions

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Completed · high confidence · 2 blockers · 1 warning · 0 suggestions
  • Model comparison: normalized findings differ; normalized terminology decisions differ; normalized E2E selections differ; Nemotron reported 2 more blockers, 1 more warning, the same number of suggestions.
4 terminology differences from the second opinion

Advisory only. These are normalized differences from the primary terminology receipt.

  • compat hash at src/lib/sandbox/config.ts:506: selected only by the second-opinion lane as established.
  • private URL opt-in at handoff-issue-contract.md:68: selected only by the second-opinion lane as define.
  • bounded sanitized at handoff-issue-contract.md:92: selected only by the second-opinion lane as define.
  • allow_private_urls at agents/hermes/plugin/init.py:327: selected only by the second-opinion lane as define.
1 additional E2E selection from the second opinion

Advisory only. The primary lane did not select these E2E jobs or targets.

  • rebuild-hermes-stale-base: The completed second-opinion lane identified E2E coverage that the primary lane omitted.

Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests.

3 semantic terminology decisions

Terminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.

  • justified — private-URL opt-in at agents/hermes/plugin/test_private_url_opt_in.py:3: Retain the term for the explicit private-URL permission.
  • established — sealed write transaction at agents/hermes/runtime-config-guard.py:4540: Retain the established term.
  • established — compatibility hash at handoff-issue-contract.md:43: Retain the established term.

E2E guidance

Advisory only. A maintainer can dispatch the default E2E suite for the commit under review.

Recommended E2E: None

Manual-only E2E: full-e2e, hermes-e2e, hermes-inference-switch, managed-image-multiarch-startup, security-posture, onboard-repair, onboard-resume
The manual PR workflow does not run these selectors for the commit under review. Run them from reviewed code on main.

2 optional E2E recommendations
  • rebuild-hermes
  • hermes-shields-config

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

@apurvvkumaria apurvvkumaria self-assigned this Aug 12, 2026
@yimoj yimoj removed their assignment Aug 12, 2026

@prekshivyas prekshivyas 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 latest PR commit 17f2e6cbe. I found no blocking correctness or security issue. Candidate configuration is schema-validated before the sealed mutation, private URLs require the existing explicit boolean opt-in while public hosts retain DNS validation and pinning, and restart diagnostics are bounded and redacted. The atomic-write, opt-in, recovery, and diagnostic tests cover the affected lifecycle.

Security rubric: 1 PASS (credential-shaped diagnostics are redacted); 2 PASS (schema, URL, DNS, and boolean validation precede use); 3 PASS (the explicit opt-in is read from the authoritative config); 4 PASS (no new dependency); 5 PASS (targeted recovery and bounded diagnostics); 6 PASS (no cryptography change); 7 PASS (private access remains denied by default); 8 PASS (positive and negative lifecycle coverage); 9 PASS (validation precedes configuration and integrity mutation). Files reviewed: the complete 14-file diff.

@prekshivyas
prekshivyas merged commit 19dacbd into main Aug 12, 2026
98 of 104 checks passed
@prekshivyas
prekshivyas deleted the fix/8614-hermes-config-lifecycle branch August 12, 2026 05:19

@prekshivyas prekshivyas 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.

Blocking test-integrity finding on commit 17f2e6c.

The restart diagnostic test creates 15 log lines and production captures only tail -n 12, but the sk-proj fixture is assigned to line index 1. That line is excluded before sanitization, so the assertion that the token is absent passes even if the sanitizer leaks this credential shape. Move the token into the captured tail and assert the emitted value is redacted. Also clear the current static-check failures from the unused tempfile import and constant-name setattr call.

@senthilr-nv

Copy link
Copy Markdown
Collaborator

Main CI now exposes one all-files formatter drift from this merged change: Biome rewrites only src/lib/actions/sandbox/gateway-restart.ts, collapsing HERMES_GATEWAY_LOG_TAIL_COMMAND to one line. This also blocks unrelated PR #8854 static checks. I found no open PR owning the exact symbol and am claiming a one-line draft follow-up against current main.

@wscurran wscurran added the bug-fix PR fixes a bug or regression label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression

Projects

None yet

6 participants