the only NotPlc is in import.rs:72. A group here always has a did:plc (made here, or imported, which refuses anything else), so a client that handles NotPlc for these two methods handles a case that cannot happen. The failures it would meet instead are NotController, NotPointing, UnsupportedDomain, InvalidHandle and HandleNotAvailable. groups here are always did:plc (made through PLC, and import refuses others with NotPlc at import.rs:72), so the recovery methods never return NotPlc. A directory that cannot be reached, or a DID it does not know, comes back as a 500 internal error, which the lexicons do not describe. A client written from the lexicon handles an error that never arrives.
How to see it
Read against docs/fresh at 4636e6d, the code at: lexicons checkGroupHandle.json:48, updateGroupHandle.json:47; group_handle.rs (no NotPlc); lexicons/fyi/opensocial/addRecoveryKey.json, removeRecoveryKey.json and listRecoveryKeys.json (errors); recovery.rs:112-113, plc.rs:38-49. Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
Remove NotPlc from both lexicons, and check that their errors list the ones the code raises. the lexicon side should change. Drop NotPlc from the three recovery methods while they are unpublished. If a named error is wanted for "the directory could not be read", add one and return it from rotation_keys.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
the only
NotPlcis in import.rs:72. A group here always has a did:plc (made here, or imported, which refuses anything else), so a client that handlesNotPlcfor these two methods handles a case that cannot happen. The failures it would meet instead areNotController,NotPointing,UnsupportedDomain,InvalidHandleandHandleNotAvailable. groups here are alwaysdid:plc(made through PLC, and import refuses others withNotPlcat import.rs:72), so the recovery methods never returnNotPlc. A directory that cannot be reached, or a DID it does not know, comes back as a 500 internal error, which the lexicons do not describe. A client written from the lexicon handles an error that never arrives.How to see it
Read against
docs/freshat 4636e6d, the code at: lexicons checkGroupHandle.json:48, updateGroupHandle.json:47; group_handle.rs (noNotPlc); lexicons/fyi/opensocial/addRecoveryKey.json, removeRecoveryKey.json and listRecoveryKeys.json (errors); recovery.rs:112-113, plc.rs:38-49. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Remove
NotPlcfrom both lexicons, and check that their errors list the ones the code raises. the lexicon side should change. DropNotPlcfrom the three recovery methods while they are unpublished. If a named error is wanted for "the directory could not be read", add one and return it fromrotation_keys.Where
The host, as built from 4636e6d. Found while checking the docs against the code.