API &
data
When the interface only shows the symptom, I look deeper: at the request, response, and data state.
What the service returned
I check request bodies, response codes, JSON structure, and behaviour with valid and invalid data.
What can be synced
I check which fields are portable and which must remain on the device.
State sync with revision control
GET /state
200 OK
{
"revision": 7,
"state": { ... }
}PUT /state
Content-Type: application/json
{
"expectedRevision": 7,
"state": { ... }
}State is saved and revision increases by one.
The server returns the current state without overwriting someone else's change.
The update is rejected before any data is written.
The service returns a clear invalid_json error.
The response is not disguised as a successful status.
Moti's stats, memory, personality, owner facts, trust, and schema version.
Keys and tokens, creator key, window geometry, Accessibility permissions, and the local AI environment.
Basic four-field sync worked; revision and response-code handling are implemented in the client and server.
NOT VERIFIEDThe expanded response with memory, personality, ownerFacts, and trust requires another live GET /state after starting the current server.