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
- Onboard stock OpenClaw through the managed-image path.
- Start a rebuild, second onboarding, or snapshot restore that reads durable workload authority.
- 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.
Investigation Summary
agent: nullin the sandbox registry.agent: null; that compatibility contract is separate.Description
buildCreatedSandboxRegistryEntry()uses the legacy OpenClaw registry convention even when the workload kind ismanaged-image. The durable row therefore omits the agent identity required byreadManagedWorkloadAuthority().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
Invalid managed workload authority: the durable managed workload does not record an explicit agent.Environment
eb560abae63f89183406b3cc273ecb8bf12ccfd2Failure Evidence
Acceptance Criteria
openclawagent identity.agent: nullbehavior.Relationship
Prerequisite for #9140. Related epic: #7744.