hermes-agent/starter-kits/delegation-readiness-doctor/artifacts/broken-state-roundtrip-2026-04-22T19-32-48-0500.md

43 lines
2.3 KiB
Markdown

# Delegation Readiness Doctor — Broken-State Roundtrip
Generated: 2026-04-22 19:32 CDT
## Result
BROKEN_STATE_ROUNDTRIP_PROVED
## Broken state induced
- Temporary isolated `HERMES_HOME` was created under `mktemp`.
- `config.yaml` inside that isolated home was set to:
- `delegation.provider: minimax`
- `delegation.model: MiniMax-M2.7`
- `MINIMAX_API_KEY` and `MINIMAX_CN_API_KEY` were explicitly removed from the doctor subprocess environment so the readiness path had to fail on missing credentials instead of inheriting the real machine state.
## Before repair — doctor output
```text
◆ Delegation Readiness
⚠ Delegation blocked (Delegation provider 'minimax' resolved but has no API key. Set the appropriate environment variable or run 'hermes auth'.)
→ Set a working delegation.provider or delegation.base_url/api_key, or clear the override to inherit the parent runtime.
```
## Canonical repair path
1. Clear the delegation override so subagents inherit the parent runtime.
2. Re-run `python -m hermes_cli.main doctor`.
3. Confirm `◆ Delegation Readiness` flips from blocked to ready before trusting delegated work.
## After repair — doctor output
```text
◆ Delegation Readiness
✓ Delegation ready (no delegation override configured; subagents inherit the parent runtime when invoked from an active Hermes session)
```
## Proof notes
- The broken state was isolated to a temporary `HERMES_HOME`; the real `~/.hermes/config.yaml` was not modified.
- The ready state after repair was proved by replacing the isolated config with an empty config (`{}`), which removes the delegation override entirely.
- Script used: `starter-kits/delegation-readiness-doctor/scripts/prove-broken-state-roundtrip.sh`
## Live delegated run after repair
- `delegate_task` completed successfully from the live ready environment after the broken-state roundtrip proof was generated.
- Summary: `Live delegation verified post-blocked-state roundtrip. Working directory: /Users/hermesmasteragent/.hermes/hermes-agent | Newest broken-state artifact: broken-state-roundtrip-2026-04-22T19-31-03-0500.md`
## Honest next move
Sync the work stream and CEO notes to point at this canonical roundtrip packet, then decide whether the MVP is ready to call shipped or needs one more packaging/launch artifact.