Skip to content

A board mounts on a mind through authenticate, as the mind's API now asks - #10

Merged
jonastemplestein merged 1 commit into
mainfrom
mind-authenticate
Nov 20, 2026
Merged

jonastemplestein merged 1 commit into
mainfrom
mind-authenticate

Conversation

@jonastemplestein

Copy link
Copy Markdown
Contributor

A board on a mind reaches READY again. On a mind, the mount now asks the API's root for authenticate() before it lends the board.

Before and after

Before, a HAVPE on iterate.iterate.com joined Wi-Fi, opened its WebSocket to /api, and logged this in a loop:

iterate-voice: transport state=mounting
iterate-voice: transport state=failed
mount diagnosis: connection=3 mount=failed failure=capability provide rejected

Since 19 November a mind's API root has about and authenticate, and nothing of the mind (iterate/core ControlPlaneApi). The mount called provide on that root. A replay of that call from a Mac got the mind's own words: 'provide' is not a function.

After, the mount makes three calls on a mind:

["push",["pipeline",0,["authenticate"],[]]]                        -> the session
["push",["pipeline",<session>,["mind","cd"],["/"]]]                -> the mind's root context
["push",["pipeline",<root>,["provide"],["itx.clients.<name>",["export",-1]]]]
  1. authenticate() with no argument. The mind takes the credential that the upgrade carried, its Authorization bearer.
  2. mind.cd("/") on the session. It answers the mind's root context as a capability; the C client has no property read.
  3. provide(match, device) on that root.

The liveness probe asks the root's whoami(), because a mind's session has none. The mount owns the session import and the root import, and close() releases them as it does on the old platform.

Proof

  • pnpm firmware:test:host: 74 of 74 pass. itx_mount_test checks the three frames, the probe and the releases.
  • The same three calls from Node against iterate.iterate.com, with the bearer on the upgrade only: provide answered a rule, a call back through itx.clients.<name> reached the lent stub, and voice.health() and cd("/voice/<name>").whoami() answered on the root that cd("/") gave.
  • Not yet proven on a board. The bench HAVPE takes this build after the merge.

Risk map

  • Riskiest part: itx_mount.c iterate_kit_itx_mount_start and begin_get_project. The claim that the root from mind.cd("/") serves every call the voice loop makes on mount.project_capability (voice.ensureVoiceDevice, cd, append, subscribe) rests on the Node replay, not on a board yet.
  • On merge: every board releases a new firmware version. A board on the old platform is unchanged: its three calls and frames are the same. A board on a mind could not mount before, so it has nothing to lose.
  • A refused credential on a mind now shows as authentication rejected (the upgrade's 401 still comes first for an expired token).
  • Review order: itx_mount.c, itx_mount_test.c, then the comments in itx_mount.h and firmware/README.md.

Session: claude d4d5fe52-3584-4960-90fd-d14b5bcb0ca9 on jonas-macbook-pro

🤖 Generated with Claude Code

…asks

Since 19 November a mind's API root has `about` and `authenticate` and nothing
of the mind. The mount called `provide` on that root, and the mind rejected it:
"'provide' is not a function". A board on a mind never reached READY.

The mount now calls `authenticate()` with no argument, which takes the
upgrade's bearer, then `mind.cd("/")` for the mind's root context, then
`provide` on that root. The liveness probe asks the root's `whoami()`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jonastemplestein
jonastemplestein merged commit b616c2c into main Nov 20, 2026
13 checks passed
@jonastemplestein
jonastemplestein deleted the mind-authenticate branch November 20, 2026 15:19
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