Skip to content

v1.5.1 — the organization dreams in one place

Choose a tag to compare

@liuyang0508 liuyang0508 released this 07 Nov 20:57
d7bf0c4

1.5.1 — the organization dreams in one place

Decision: the personal layer belongs to the products themselves (Claude Code's and Codex's own memory passes keep each machine's notes; AMH reads what they produce). AMH does the organization layer only, and it runs in one place.

Hub

  • New setting dream_devices: the devices allowed to run amh-native dream --publish and upload the organization wiki. Set it on the admin page under 「组织做梦」 (device IDs are now shown in the device table) or with POST /native/v1/admin/settings. Empty means nobody, which is where a fresh Hub starts.
  • POST /native/v1/assets refuses wiki pages (product amh) from any other device with 409 dream_not_designated; a tombstone from the owning device is still accepted, so a wiki can always be withdrawn.
  • New POST /native/v1/dream/lease (status / acquire / release): one dreaming lease per organization, renewable, returned when done, lapsing on its own after four hours (six at most). New additive table dream_leases; health lists dream-lease-v1.

Client

  • A publishing pass takes the lease before it reads a document or calls a model and gives it back when done. Refused, it records not_designated, lease_held or hub_too_old with a plain message and does nothing else.
  • amh-native dream --schedule on asks the Hub first and installs nothing on a machine the Hub would refuse.
  • A review-only pass needs no lease and reports where the device stands.
  • Requests the Hub refuses outright (HTTP 4xx) are no longer retried.

Upgrade notes

  • Hubs: hub.sh --version 1.5.1; no data migration, rollback needs no database restore. After upgrading, designate the dreaming device in dream_devices.
  • Clients: amh-native update --now. A client on 1.5.1 against a Hub below 1.5.1 reports hub_too_old for --publish and keeps everything else working.

Docs: docs/native-memory/dreaming.zh.md, docs/native-memory/operations.zh.md.