|
Download docs/LIFECYCLE.md from cptlight/keel: direct link, hf CLI and curl.
- Browser
- Download file 2.44 kB
-
https://huggingface.co/spaces/cptlight/keel/resolve/main/docs/LIFECYCLE.md
- Command line
-
hf download hf://spaces/cptlight/keel/docs/LIFECYCLE.md
-
curl -L -o LIFECYCLE.md https://huggingface.co/spaces/cptlight/keel/resolve/main/docs/LIFECYCLE.md
2.44 kB
The label lifecycle
A card answers what a checkpoint is. The ledger answers whether it may carry the label today. Those are different questions, and the second is the one a platform has to answer at scale, because a label issued at upload decays as the ecosystem changes.
States
| state | meaning | derived from |
|---|---|---|
pending |
discovered, not yet measured | listed, no card |
verified |
measured, complete, no drift | green card with the harmful half |
review |
measured but suspect, or drift within tolerance | amber card |
recalled |
drift confirmed, or a human revoked it | red card, or a manual recall |
recalled is sticky. A later green card does not clear it, because a reviewer who pulled
a label should not be overruled by a scheduled job.
Transitions
pending ββscanβββΆ verified
β β
β βββdriftβββΆ review ββconfirmedβββΆ recalled
ββββββββββββββββββββββββββββββββββββββββββββββββββΆ recalled (manual)
$ keel ledger add --card cards/m2/drift-card.json --model-id someone/m2-lora
$ keel ledger list --ledger ledger.jsonl
$ keel ledger recall --model-id someone/m2-lora --reason "24 of 32 harmful compliance"
How the loop uses it
keel watchwrites a queue of derivatives ranked by behavioural risk.- The scan step writes a card per candidate.
keel ledger addturns the card into a state.- The platform reads the ledger to decide whether the badge shows, changes, or is removed.
- A human recall overrides everything until a human clears it.
Why this is the right layer for a platform
A badge is a promise made once and read forever. The ledger is the mechanism that keeps the promise current: it is append-only, so history is auditable; each entry carries the card fingerprint, so a state can be traced to the exact measurement that produced it; and the sticky recall means automation cannot quietly restore a label.
What is still missing
- Webhooks on transition. The ledger is a file today; a platform needs a push event when a state changes.
- A signed entry. The fingerprint is tamper-evident, not tamper-proof.
- Bulk expiry. A card older than N days should return to
pending, because the model may have changed even if the file did not.