Skip to content

Managed OpenClaw registry entry omits the required agent identity #9356

Description

@ericksoa

Investigation Summary

  • Three managed OpenClaw rebuild and restore paths fail with the same durable-authority error.
  • Stock managed onboarding creates a managed-image receipt but persists agent: null in the sandbox registry.
  • Managed workload authority correctly requires an explicit agent that matches the receipt.
  • Legacy and custom OpenClaw entries intentionally use agent: null; that compatibility contract is separate.
  • No existing issue matches this failure signature.

Description

buildCreatedSandboxRegistryEntry() uses the legacy OpenClaw registry convention even when the workload kind is managed-image. The durable row therefore omits the agent identity required by readManagedWorkloadAuthority().

Expected behavior: a managed OpenClaw registry entry records agent: "openclaw" and agrees with its managed-image receipt.

Actual behavior: the entry records agent: null, so rebuild and restore reject the durable authority.

Reproduction Steps

  1. Onboard stock OpenClaw through the managed-image path.
  2. Start a rebuild, second onboarding, or snapshot restore that reads durable workload authority.
  3. Observe: Invalid managed workload authority: the durable managed workload does not record an explicit agent.

Environment

  • Workflow: unfiltered E2E run 32068537791
  • Runner: GitHub-hosted Ubuntu
  • Runtime: OpenShell Docker driver with managed OpenClaw
  • Candidate commit: eb560abae63f89183406b3cc273ecb8bf12ccfd2

Failure Evidence

Acceptance Criteria

  • New managed OpenClaw entries persist the explicit openclaw agent identity.
  • The persisted identity must match the validated managed-image receipt.
  • Legacy and explicit custom-image OpenClaw entries retain their current agent: null behavior.
  • On an exact candidate containing the fix, the complete unfiltered E2E run passes each scenario that failed in run 32132319706:
    • OpenShell credential-generation window rebuild
    • Snapshot restore
    • Gateway reuse and double onboarding
    • Full OpenClaw E2E
  • A mismatched or absent managed agent still fails closed before lifecycle mutation.

Relationship

Prerequisite for #9140. Related epic: #7744.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: e2eEnd-to-end tests, nightly failures, or validation infrastructurearea: onboardingOnboarding FSM, provider setup, sandbox launch, or first-run flowarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoverybugintegration: openclawOpenClaw integration behavior

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions