Skip to content

fix(init): the first hour on a clean machine - #44

Merged
jpelaez-23blocks merged 1 commit into
mainfrom
fix/clean-install-identity
Oct 16, 2026
Merged

jpelaez-23blocks merged 1 commit into
mainfrom
fix/clean-install-identity

Conversation

@jpelaez-23blocks

Copy link
Copy Markdown
Contributor

Found by running the install as a reader would, on a bare Ubuntu container (two agents created with aimaestro-agent.sh, then amp-init, then amp-send).

  1. generate_uuid's fallback (no uuidgen) made a 5-character group; not a UUID, so every command printed 'AMP config mismatch'.
  2. amp-init --name bob after alice: 'already initialized' as alice, bob never created; --force would have re-keyed alice under bob's name.
  3. amp-init minted a second id for an agent AI Maestro already had (created from the dashboard / aimaestro-agent.sh create). The server watches its own id's inbox, so mail went to an inbox it never looked at and nothing woke the agent. amp-init now uses the registry's id when exactly one agent of that name exists.
  4. A third agent could not be created (Multiple AMP agents found).
  5. xxd is not on a clean machine (3 uses) -> od.
  6. 'Organization must be configured' now says what to do.
  7. The folder lookup could end a script under set -e + pipefail.

8 new bats tests (tests/unit/clean_install_flow.bats), 6 fail on the old scripts. Full suite 329 pass. Verified end to end in the container: after the fix, a message from one agent appears in the other's terminal in about 1 second.

🤖 Generated with Claude Code

…eader would)

- generate_uuid fallback made a five-character group, so the id was not a UUID and every command printed 'AMP config mismatch'
- amp-init --name bob after alice said 'already initialized' as alice and never created bob; --force would have re-keyed alice
- amp-init made a second id for an agent AI Maestro already had, so mail landed in an inbox the server never watched and nothing woke it; it now uses the registry's id
- a third agent could not be created ('Multiple AMP agents found'); amp-init now creates identities when none resolves
- xxd is not on a clean machine; replaced by od
- 'Organization must be configured' now says what to do
- the folder lookup can no longer end a script under set -e / pipefail

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jpelaez-23blocks
jpelaez-23blocks merged commit 786bbe2 into main Oct 16, 2026
2 checks passed
@jpelaez-23blocks
jpelaez-23blocks deleted the fix/clean-install-identity branch October 16, 2026 23:42
@jpelaez-23blocks jpelaez-23blocks mentioned this pull request Oct 16, 2026
jpelaez-23blocks added a commit that referenced this pull request Oct 16, 2026
Version bump for #44 (clean-machine install fixes).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Juan Pelaez <juan.pelaez@3metas.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant