Skip to content
Clairos Learn

CLI and workspace hygiene · Lesson 10 of 12 · 9 min

Verify a manifest checksum

A checksum tests byte identity against a trusted expected value. Matching hashes do not by themselves establish the safety or provenance of the expected artifact.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated AI Ops lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

A checksum tests byte identity against a trusted expected value. Matching hashes do not by themselves establish the safety or provenance of the expected artifact.

Interpret the evidence

Hold the artifact because its observed checksum differs from the expected value.

A tempting mistake

Activate the artifact because its filename looks correct.

All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.

Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-cli-workspace-010.json
{
  "fixture": "Fictional training data; not a live measurement.",
  "expected_sha256": "training-a1",
  "observed_sha256": "training-b2",
  "match": false
}

Exit status: 0. The command completed successfully in the training fixture.

$ jq .match /opt/ai-lab/cases/aiops-cli-workspace-010.json
false

Exit status: 0. The command completed successfully in the training fixture.

$ printf '%s\n' 'hold-artifact' > /home/learner/lab/aiops-cli-workspace-010-decision.txt
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Name the assumption that would have to change for “hold-artifact” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Verify a manifest checksum” justify?

Apply it elsewhere

A colleague concludes: “Activate the artifact because its filename looks correct.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Write an operator noteTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Build an evidence directoryAn evidence directory should group related observations and leave source artifacts unchanged. A directory name can carry a case ID while each file names one type of evidence.Practice
  2. 02Write an operator noteA useful operator note distinguishes observation, interpretation and next action. Include identifiers and limits so the next person can reproduce the investigation.Practice
  3. 03Workspace hygiene checkpointWorkspace hygiene protects evidence as well as credentials. A clean handoff keeps the baseline, redacts secrets and records the reversible next action.Practice