Repository navigation
Description
Problem
Retain enough safe Fabric startup error information for maintainers to diagnose failed Kubernetes E2E runs after CI cleanup, without reproducing the deployment just to recover the underlying error.
During PR #15033, candidate b423c5886871d114d644d69ca2b5a9545bdda703 was tested through merge revision 41eae05e812cf3078ebb095972e4e5ce61dc79f5. Both Linux architectures failed kind-kubernetes-development and kind-kubernetes-oidc at agent startup. The log reported:
sandbox/assistant: Fabric runtime operation failed at start (start_failed);
agent runtime is unknown; Fabric's message is in
.../deployment/diagnostics/fabric-assistant.json;
resources retained
The kind runner then deleted its cluster and temporary run directory. The job uploaded only the JUnit report, not an actionable diagnostic derived from the referenced file. The surviving output does not establish whether the original temporary-directory permission error persists or startup reaches a different failure.
Evidence
- Linux AMD64 kind failure
- Linux ARM64 kind failure
- Existing private Fabric diagnostic writer
- Kind runner and temporary-directory lifecycle
Scope
- Trace the error from Fabric through the provider's private diagnostic file to the E2E runner. Determine which useful structured fields Fabric already exposes and where information becomes unavailable.
- Preserve a bounded, safe failure report before run-directory and cluster cleanup. Associate it with the tested revision, scenario, sandbox, failed operation, and upstream error code/stage when available, and make its location discoverable from CI output.
- Keep cleanup working on failure. Diagnostic collection failure must not replace the original failure or prevent resource teardown.
- Preserve the current confidentiality boundary: Fabric's message can contain native harness output and secrets NemoClaw cannot reliably recognize. Do not print or automatically upload raw diagnostic JSON, native stderr, environment dumps, state, or credentials. Define an allowlisted report and its retention/access policy; report unavailable or withheld detail explicitly.
- Reuse Fabric's supported diagnostics. If Fabric does not expose sufficient safe structured detail, document that upstream gap rather than adding an adapter patch or reconstructing native error semantics in NemoClaw.
Acceptance
- A failed startup leaves a useful safe diagnostic available after the test's temporary directory and cluster are removed, rather than only
start_failedand a dead local path. - The report identifies the revision, case, sandbox, and failed operation; available upstream error codes/stages survive without inventing a cause when details are unavailable.
- Behavioral tests with an injected Fabric failure verify retention across cleanup, secret exclusion, missing/unreadable diagnostics, and collection failure without masking the original error. Use the owning unit/contract/integration layer, not source-string assertions.
- A controlled CI failure demonstrates the report can be retrieved after teardown. Record the tested revision and remaining limits without leaving a permanently failing live scenario.
- Document report contents, retrieval, retention/access, and the boundary between safe CI output and private diagnostics.
Related Work
- Follow-up discovered while validating PR chore(images): move OpenClaw to 2026.11.13 #15033; this issue does not resolve or waive that PR's remaining Kubernetes startup failure.
- Fabric runtime start errors are swallowed; apply reports only 'observation query failed' without sandbox or Fabric error code #12465 addressed lost Fabric error context. The current path already writes a private diagnostic file; this issue concerns what survives ephemeral test cleanup and can safely be shared.
- Collect a diagnostic bundle for support #14618 proposes a broader user-facing support bundle. This issue is limited to failed Fabric startup diagnostics in the existing E2E path.
Activity