pet.trezy.getDiagnostics

Everything the server knows about the CALLER's own game state. Read-only; writes nothing. Takes no input at all, and that is the security model: with no `did` parameter there is no way to ask about anybody else, so cross-account access is impossible by construction rather than gated by a check that could later be loosened. A PROCEDURE rather than a query for one concrete reason: HappyView enforces authentication on procedures at the transport, so an unauthenticated call gets a 401 and this script never runs, and `caller_did` is therefore guaranteed to be set. A query would receive `caller_did` too — it is `string?` in the query globals — but a Lua script cannot set its own HTTP status (src/error.rs:143 maps every raise to 500), so a query could only answer an anonymous caller with a 200 carrying an error, or a 500. The 401 has to come from the transport. It exists because diagnosing a stuck pet took an admin log, four greps and a chain of inference off two public endpoints. The ledger, the grant and the index are the three things that disagree in practice, and none of them was observable. This reports what each says and lets the reader compare, rather than deciding who is right.

Repository @trezy.pet did:plc:ollch4g7tes2reb5eceiwuol namespace authority
Details · procedure
Kindprocedure
Authoritytrezy.pet
Indexed

What's different

same NSID · two revisions from the same publisher
trezy.pet · namespace authority
trezy.pet · namespace authority
3 changes, all backward compatible

Records and requests that were valid against the base schema stay valid against this one.

Procedure · output

#main
Added

sleepingInteractions

compatible

New optional property.

integer · minimum: 0

#config · properties

#config
Added

dayLengthSeconds

compatible

New optional property.

integer
Added

sleepWindows

compatible

New optional property.

integer · minimum: 0
10 properties and 5 defs unchanged Open the full schema diff →