Administrator switches
Needs admin and write access.
What it does
The administrator's switches: the signed policies, the job breaker and the overnight run. Admin only, and every action needs a recent sign-in from a signed-in session.
What a client is told
- Writes: some action changes state.
- Can overwrite or remove what exists.
- A repeat can change things again.
- Stays inside Capsid.
Its 3 actions
sign_policyThe administrator's switches. action "breaker_reset" closes the queue's circuit breaker for namespace, so jobs its drivers failed before now stop counting toward the threshold (default 3 holder fails in 24 hours), and with threshold sets that threshold for every namespace; audit-logged and read back. action "overnight" sets the overnight run's switch (value "off" | "api" | "subscription", and a reason, both required): off unless set, with a "Runs on" choice of API key or subscription; choosing subscription records Dustin's decision, its date and its reasoning with the switch; audit-logged and read back. action "sign_policy" signs the policy document already stored at path (namespace "capsid", path under "policy/"), never a body the caller supplies, and only when sha256 is the sha256 of the body below its frontmatter as the caller read it; the prior body is snapshotted and the signing is audit-logged. It never signs policy/auto-merge.md: that is signed by the sign_policy_change and sign_policy_from_repo controls. Admin only.
breaker_resetThe administrator's switches. action "breaker_reset" closes the queue's circuit breaker for namespace, so jobs its drivers failed before now stop counting toward the threshold (default 3 holder fails in 24 hours), and with threshold sets that threshold for every namespace; audit-logged and read back. action "overnight" sets the overnight run's switch (value "off" | "api" | "subscription", and a reason, both required): off unless set, with a "Runs on" choice of API key or subscription; choosing subscription records Dustin's decision, its date and its reasoning with the switch; audit-logged and read back. action "sign_policy" signs the policy document already stored at path (namespace "capsid", path under "policy/"), never a body the caller supplies, and only when sha256 is the sha256 of the body below its frontmatter as the caller read it; the prior body is snapshotted and the signing is audit-logged. It never signs policy/auto-merge.md: that is signed by the sign_policy_change and sign_policy_from_repo controls. Admin only.
overnightThe administrator's switches. action "breaker_reset" closes the queue's circuit breaker for namespace, so jobs its drivers failed before now stop counting toward the threshold (default 3 holder fails in 24 hours), and with threshold sets that threshold for every namespace; audit-logged and read back. action "overnight" sets the overnight run's switch (value "off" | "api" | "subscription", and a reason, both required): off unless set, with a "Runs on" choice of API key or subscription; choosing subscription records Dustin's decision, its date and its reasoning with the switch; audit-logged and read back. action "sign_policy" signs the policy document already stored at path (namespace "capsid", path under "policy/"), never a body the caller supplies, and only when sha256 is the sha256 of the body below its frontmatter as the caller read it; the prior body is snapshotted and the signing is audit-logged. It never signs policy/auto-merge.md: that is signed by the sign_policy_change and sign_policy_from_repo controls. Admin only.
Arguments
| Argument | Type | Needed | What it is |
|---|---|---|---|
action | one of: sign_policy, breaker_reset, overnight | always | sign_policy | breaker_reset | overnight. |
namespace | string | no | For "breaker_reset", the namespace. For "sign_policy", "capsid". |
value | one of: off, subscription, api | no | For action "overnight": "off", "api" or "subscription". |
threshold | whole number | no | For action "breaker_reset": the number of holder fails in 24 hours that opens the breaker of any namespace. |
reason | string | no | For action "overnight": the required reason for the change. |
path | string | no | For action "sign_policy": the path of the stored policy document to sign, under "policy/" in the capsid namespace. |
sha256 | string | no | For action "sign_policy": the sha256 of the policy body below its frontmatter, as you read it. A body that differs is not signed. |