Connections: whether each one can be used now, and what the owner does
Generated from PersonalClaw v0.4.3, the release this site publishes.
Every connection is an MCP server or one of its tools, an app or one of its capabilities, a channel, a provider or a model. Each one answers one question in one vocabulary: can it be used now, and if not, what does the owner do and where? Every card, the Doctor and every agent read the same answer, and none composes a sentence of its own.
- Readiness:
src/personalclaw/readiness.py - The frame’s socket gate:
src/personalclaw/dashboard/ws_state.py(frame_subject,readiness_reach) - Contract: shared contracts §7
- Rails:
tests/test_readiness_maps_every_producer.py,tests/test_readiness_precedence.py,tests/test_readiness_runs_no_probe_on_a_read.py,tests/test_readiness_frame_reaches_only_an_apps_own_subjects.py,tests/rails/test_readiness_imports_no_dashboard_tree.py
Readiness
Section titled “Readiness”readiness.capability_readiness(subject) answers a Readiness; readiness.readiness_of(subjects)
answers (known, unknown) for many in one read. to_dict() is the shape every route and frame
carries:
{subject, label, state, reason, action: {kind, label, where, until}, since}label is the subject’s name as the owner reads it (“notes”, “Mail Inbox · Inbox”). reason is
one sentence, masked, and empty for ready. since is the instant the subject entered its state.
States and their words
Section titled “States and their words”Fifteen states, closed. Each has its words and tone (readiness.STATE_WORDS) and a default next
action (readiness.DEFAULT_ACTION).
| State | Words | Tone | Default action |
|---|---|---|---|
ready | Ready | ok | none |
checking | Checking | neutral | none |
switched_off | Switched off | neutral | switch_on |
waiting_for_allow | Waiting for your Allow | warn | allow |
needs_setup | Needs setup | warn | open_settings |
needs_sign_in | Needs you to sign in | warn | sign_in |
needs_access | Needs more access | warn | allow_access |
needs_prerequisite | Needs something installed | warn | open_details, or install when PersonalClaw can install it |
not_installed | Not installed | neutral | install |
exhausted | Limit reached | warn | wait_until |
failed | Failed | danger | retry |
stopped | Stopped after repeated failures | danger | retry |
unavailable | Can’t run on this computer | warn | open_details |
withdrawn | Withdrawn by its source | danger | uninstall |
unknown | Couldn’t check | warn | check_again |
Readiness is not health or quality: there is no degraded.
Precedence
Section titled “Precedence”A producer can answer several facts about one subject. The first state in this order wins, with
that fact’s reason and action: withdrawn, switched_off, waiting_for_allow, not_installed,
unavailable, needs_prerequisite, needs_setup, needs_sign_in, needs_access, stopped,
failed, exhausted, unknown, checking, ready. The owner’s own choices and absence come
first, since nothing else can be done until they are answered. Then what this computer cannot do.
Then what the owner sets up, in the order it is done (install, set up, sign in, widen). Then
failures, limits and the two measurement states. Several facts of the winning state keep the first
one’s reason, “and 2 more”. No fact means ready.
Subjects
Section titled “Subjects”| Kind | Subject | Names |
|---|---|---|
mcp | mcp:<server>, mcp:<server>/<tool> | the mcp.json key (an app’s is <app>:<server>); the tool as its server lists it |
app | app:<name>, app:<name>/<capability> | an installed app; a capability id |
channel | channel:<app> | a channel app |
provider | provider:<name> | a provider record |
model | model:<entry>:<model> | a model ref as it is served |
readiness.parse_subject refuses any other kind, an empty name or part, a name or part over 200
characters, and a control character. skill and agent join the closed set in the change that
registers their producers. A subject nothing answers to raises SubjectUnknown.
Producers
Section titled “Producers”Each kind has exactly one producer, registered once at its module’s import with
readiness.register_producer(kind, producer, mask=redact_for_display). A producer answers
(label, facts) for a name, or None when nothing answers to it. Each fact is
{state, reason, action, label, where, until, measured_at}, read only from records that already
exist. A producer that raises reads as unknown with “PersonalClaw couldn’t read whether it can be
used.”
Every subject label, reason and action label a producer writes passes the display mask it
registered with (security.redact_for_display). A mask that fails shows no reason, and the subject
by its own name, never the unmasked text. A fact may send the owner to another of the subject’s own
places, or to Settings → Models & Providers → Models, Settings → Usage or Settings → Security; any
other route, or text after a place, is replaced by the subject’s own place for that action. A
reason may name a program or a host, never a command line, an argument or a secret.
The producers for MCP servers, apps, channels, providers and models come in their own changes.
Reads never probe
Section titled “Reads never probe”A read calls each subject’s producer once and combines what it answers. It never starts a probe, a
server, an agent CLI or a network check, and never sends a frame. A file a producer reads loads once
per read however many subjects it asks (readiness.per_read).
since is kept in memory: the producer’s measurement time when it gives one, else the moment of
the read that first saw the state. A restart starts it again. Readiness holds no work, so a restart
continues, repeats, holds and leaves for review nothing. The next read answers again from the
boards, the owner sees the same words for the same facts, and no frame is sent until a producer
touches a subject.
Actions and places
Section titled “Actions and places”| Kind | Label | What an agent reads |
|---|---|---|
none | “{label} is still being checked; try again in a minute or go on without it.” | |
check_again | Check again | “Ask the owner to check {label} again ({place}).” |
switch_on | Switch on | “Ask the owner to switch {label} on ({place}).” |
allow | Allow | “Ask the owner to allow {label} ({place}); it does not run until they do.” |
open_settings | Open settings | “Ask the owner to finish setting {label} up ({place}).” |
sign_in | Sign in | “Ask the owner to sign in to {label} ({place}). Do not try again until they say they have.” |
allow_access | Allow access | “Ask the owner to give {label} the access it needs ({place}).” |
install | Install | “Ask the owner to install what {label} needs ({place}).” |
wait_until | “{label} can be used again from {until}; wait, or use another.” | |
retry | Retry | “Ask the owner to retry {label} ({place}), or go on without it.” |
open_details | See details | “Tell the owner {label} cannot be used now; the details are on {place}.” |
uninstall | Uninstall | “{label} was withdrawn by its source; do not use it.” |
readiness.action_sentence(action, label) builds the sentence. readiness.where_for(kind, name, action) builds the place: #/tools/mcp/<server>, with /edit for open_settings and /sign-in
for sign_in; #/apps/<name> for an app or a channel; #/settings/providers/<name>;
#/settings/models; and #/settings/usage and #/settings/security for a spend cap and the
operator ceiling. {place} names each in words: “the Tools page”, “the app’s panel in Apps”,
“Settings → Models & Providers → Providers”, “Settings → Models & Providers → Models”,
“Settings → Usage”, “Settings → Security”. A fact may name another of its subject’s own places or
a Settings page that names no subject (see Producers); anything else reads as the subject’s own
place. The words name the Settings pages as they are today
(tests/rails/test_settings_names_in_text_are_pages_tree.py holds them to it).
The frame
Section titled “The frame”readiness.touch(subject) says a producer’s record may have changed. Readiness recomputes the
subject, and sends readiness_changed {subject, readiness} (a complete value) only when its state,
reason or action differs from the last frame. It sends at most one frame per subject per 250 ms.
It is safe from any thread: an off-loop touch is handed to the gateway’s loop. The gateway hands
readiness its dashboard state when it starts and takes it back when it stops
(readiness.send_frames_through, from src/personalclaw/dashboard/lifecycle_hooks.py). With no
gateway, as in a CLI run, a touch reads nothing and sends nothing. Every consumer re-reads on
reconnect.
ws_state.frame_subject reads the frame as ("readiness", subject). An app’s socket carries it only
when the app’s manifest declares readiness_changed in permissions.events, as for any frame, and
the app may read the subject.
What an app may read
Section titled “What an app may read”readiness.app_may_read(app, subject, declared) lets an app read:
- its own subjects:
app:<name>,app:<name>/*,channel:<name>andmcp:<name>:*; - the MCP servers its manifest declares it uses under
dependencies.marketplace.mcp(a server id or{id, managedBy}), with their tools.declaredis the manifest’sapps/dependency_ledger.manifest_dep_keys, whosemcp:<id>keys are the subjects. A declared key that names another app’s own server (<app>:<server>) reads nothing of it: that server is that app’s alone.
It may read nothing else. ws_state.readiness_reach(app, subject) reads the manifest and asks this
rule, and the socket gate calls it.
Outside the import cycle
Section titled “Outside the import cycle”The dashboard imports readiness to embed it in its rows and gate its frame. So readiness.py
imports only the standard library and instants, both outside the package’s biggest import cycle,
whose size is held release by release. What readiness needs from inside the cycle is handed to it.
The gateway hands over its state, each producer its mask, and each caller of app_may_read the
app’s declared keys.
The readiness route
Section titled “The readiness route”Status: planned
GET /api/readiness?subject=<subject> and ?subjects=<a>,<b>, for the dashboard and for apps that
declare it; an app reads only what app_may_read allows, and anything else answers as unknown.
Model facts
Section titled “Model facts”Status: planned
The MCP client
Section titled “The MCP client”Status: planned
Sign-in
Section titled “Sign-in”Status: planned
Sign-in asks
Section titled “Sign-in asks”Status: planned
Secret requests
Section titled “Secret requests”Status: planned
Host answers
Section titled “Host answers”Status: planned
Connectors
Section titled “Connectors”Status: planned
Status: planned