Skip to main content

Module credential_notice

Module credential_notice 

Source
Expand description

A container agent that can’t get a credential, told to the person in the agent’s own pane.

A container agent has no credential of its own: its GitHub token and its AWS session are brokered by the host, one use at a time. When the host refuses (GitHub isn’t connected or the Cloud sign-in lapsed, the host’s AWS login lapsed), the agent reads the reason in its shell and nothing else shows it: the person looking at the pane sees an agent that is stuck. This puts the same sentence the agent read on the pane as a line, with a link to Connectors for GitHub, and takes it away when the credential is given again.

It asks nothing and waits for nothing (no countdown, no buttons): it is the agent:notice line, kept until the credential works or the person dismisses it. One line per cause per agent per hour, so a retry loop doesn’t stack lines. It is drawn from srv’s own record: the agent never supplies the words.

Structs§

Plan 🔒
What a refusal does to the pane: nothing (the line is still up), or put a line up, taking down the old one first when it is an hour old.
Shown 🔒

Enums§

Cause
What the agent could not get.

Constants§

MAX_SENTENCE 🔒
The most of the sentence the line carries (the tooltip carries the same).
REPEAT_MS 🔒
How long a line counts as “already shown” before a new refusal puts it up again.

Statics§

SHOWN 🔒

Functions§

plan 🔒
publish 🔒
refused
The host refused agent (the agent with uid uid, slug slug) the credential for cause, with said: the very sentence the agent was given. Shows it in the agent’s pane unless it is already showing.
sentence 🔒
shown 🔒
view 🔒
worked
The host gave agent the credential for cause: takes its line down, if one is up.