Skip to content

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.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.

Fifteen states, closed. Each has its words and tone (readiness.STATE_WORDS) and a default next action (readiness.DEFAULT_ACTION).

StateWordsToneDefault action
readyReadyoknone
checkingCheckingneutralnone
switched_offSwitched offneutralswitch_on
waiting_for_allowWaiting for your Allowwarnallow
needs_setupNeeds setupwarnopen_settings
needs_sign_inNeeds you to sign inwarnsign_in
needs_accessNeeds more accesswarnallow_access
needs_prerequisiteNeeds something installedwarnopen_details, or install when PersonalClaw can install it
not_installedNot installedneutralinstall
exhaustedLimit reachedwarnwait_until
failedFaileddangerretry
stoppedStopped after repeated failuresdangerretry
unavailableCan’t run on this computerwarnopen_details
withdrawnWithdrawn by its sourcedangeruninstall
unknownCouldn’t checkwarncheck_again

Readiness is not health or quality: there is no degraded.

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.

KindSubjectNames
mcpmcp:<server>, mcp:<server>/<tool>the mcp.json key (an app’s is <app>:<server>); the tool as its server lists it
appapp:<name>, app:<name>/<capability>an installed app; a capability id
channelchannel:<app>a channel app
providerprovider:<name>a provider record
modelmodel:<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.

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.

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.

KindLabelWhat an agent reads
none“{label} is still being checked; try again in a minute or go on without it.”
check_againCheck again“Ask the owner to check {label} again ({place}).”
switch_onSwitch on“Ask the owner to switch {label} on ({place}).”
allowAllow“Ask the owner to allow {label} ({place}); it does not run until they do.”
open_settingsOpen settings“Ask the owner to finish setting {label} up ({place}).”
sign_inSign in“Ask the owner to sign in to {label} ({place}). Do not try again until they say they have.”
allow_accessAllow access“Ask the owner to give {label} the access it needs ({place}).”
installInstall“Ask the owner to install what {label} needs ({place}).”
wait_until“{label} can be used again from {until}; wait, or use another.”
retryRetry“Ask the owner to retry {label} ({place}), or go on without it.”
open_detailsSee details“Tell the owner {label} cannot be used now; the details are on {place}.”
uninstallUninstall“{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).

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.

readiness.app_may_read(app, subject, declared) lets an app read:

  • its own subjects: app:<name>, app:<name>/*, channel:<name> and mcp:<name>:*;
  • the MCP servers its manifest declares it uses under dependencies.marketplace.mcp (a server id or {id, managedBy}), with their tools. declared is the manifest’s apps/dependency_ledger.manifest_dep_keys, whose mcp:<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.

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.

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.

Status: planned

Status: planned

Status: planned

Status: planned

Status: planned

Status: planned

Status: planned

Status: planned