This release adds 1 notable feature for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+12 more
Affected surfaces
Summary
AI summaryUpdates Test plan, Commits, and Summary by CodeRabbit across a mixed release.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Feature | Low |
Adds automatic credential healing that detects and corrects misaligned authentication tokens on startup. Adds automatic credential healing that detects and corrects misaligned authentication tokens on startup. Source: llm_adapter@2026-05-26 Confidence: high |
— |
| Bugfix | Medium |
Fixes organization switch regression by re‑minting tokens before saving credentials. Fixes organization switch regression by re‑minting tokens before saving credentials. Source: llm_adapter@2026-05-26 Confidence: low |
— |
Full changelog
Summary
- Root cause:
switchOrgonly rewrotecreds.orgIdwhile reusing the long-lived API token, but the token hasorganization_idbaked into its JWT claim (minted byPOST /users/me/tokens). After a switch,creds.orgIdandpayload.org_iddiverged silently. Code that trusts the claim — server-side checks, thepreferredOrgIdfallback insaveCredentialsFromToken— kept routing to the original org. - Fix:
switchOrgnow re-mints against the destination org before saving. NewhealDriftedOrgTokenhelper auto-corrects existing drifted creds on every session start across all 6 hivemind agents (claude-code, codex, cursor, hermes, pi, openclaw).
Commits
fix(auth)—switchOrgmint-before-save + newhealDriftedOrgTokenhelper + 5 new tests (46 total).feat(hooks)— wire heal into the 4 standard hook-based agents'session-start.ts.feat(pi,openclaw)— wire heal into the 2 agents that don't fit the standard hook pattern:- pi: inline copy (raw-
.ts, zero-deps contract — cannot import shared helpers). - openclaw: no
session_start, so heal runs once per process insidegetApi()behind adriftHealAttemptedsentinel.
- pi: inline copy (raw-
Key design choices
- Token name suffix:
deeplake-plugin-heal-${Date.now()}instead of date-only. Deeplake's/users/me/tokensrejects duplicate(user_id, name)with a misleading 500 INTERNAL_ERROR (not 409); a date-only suffix would collide as soon as a second agent heals on the same day. This was caught during cross-agent testing — first pass got 500s on codex+hermes after claude-code minted with the same date-only name. - Heal never throws: on mint failure (401/403/500/network), logs and returns the original creds. Session start is never blocked.
- Mint-before-save: a failed mint leaves
credentials.jsonuntouched so re-runs are safe.
Test plan
- [x] Unit: 46/46 vitest pass, including 5 new tests covering switchOrg success/failure/no-creds + healDriftedOrgToken no-drift / missing-claim / missing-orgId / success / mint-failure.
- [x] E2E fake-token drift × 4 hook agents (claude-code, codex, cursor, hermes): all detect drift, all 401 on mint, all preserve creds.
- [x] E2E real cross-org drift × 4 hook agents (token bound to may25_2,
creds.orgIdflipped to test_plugin): all detect drift, all mint successfully, all rotate the token in credentials.json. - [x] E2E real cross-org drift via real
claude -p --plugin-dir ./claude-codeCLI: heal log + token rotation confirmed. - [x] Codex bundle heal verified via direct
node session-start.jsinvocation (the realcodex exec --dangerously-bypass-approvals-and-sandboxflow skips hooks by design — not a regression). - [ ] pi end-to-end (requires Pi editor runtime).
- [ ] openclaw end-to-end (requires openclaw gateway runtime).
- [ ] CI green.
Summary by CodeRabbit
-
New Features
- Added automatic credential healing that detects and corrects misaligned authentication tokens when organization IDs drift during startup.
-
Bug Fixes
- Fixed legacy organization switch regression by transparently refreshing credentials with organization-bound tokens, ensuring downstream operations use valid credentials.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
Track Hivemind turns agent traces into skills and shares with your team
Get notified when new releases ship.
Sign up freeAbout Hivemind turns agent traces into skills and shares with your team
All releases →Related context
Related tools
Earlier breaking changes
- v0.7.52 Removes `hivemind tasks` CLI and related code surfaces.
- v0.7.51 Removes `hivemind tasks` CLI and related code surfaces.
- v0.7.19 Module name skilify replaced with skillify; affects all imports
- v0.7.19 CLI command skilify removed; renamed to skillify without deprecation alias
- v0.7.18 CLI subcommand renamed from `skilify` to `skillify`; no deprecation alias.
Beta — feedback welcome: [email protected]