Skip to content
Clairos Learn

CLI and workspace hygiene · Lesson 1 of 12 · 5 min

Orient inside the AI lab

The current working directory controls relative paths. Confirm your location before opening or writing a case file; an absolute path starts at the filesystem root.

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

The current working directory controls relative paths. Confirm your location before opening or writing a case file; an absolute path starts at the filesystem root.

Interpret the evidence

Write the note under /home/learner/lab, not under the filesystem root.

A tempting mistake

Assume lab/review.txt always means /lab/review.txt.

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-001.json
{
  "fixture": "Fictional training data; not a live measurement.",
  "cwd": "/home/learner",
  "relative_path": "lab/review.txt",
  "resolved_path": "/home/learner/lab/review.txt"
}

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

$ jq .resolved_path /opt/ai-lab/cases/aiops-cli-workspace-001.json
"/home/learner/lab/review.txt"

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

$ printf '%s\n' 'use-resolved-path' > /home/learner/lab/aiops-cli-workspace-001-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 “use-resolved-path” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Orient inside the AI lab” justify?

Apply it elsewhere

A colleague concludes: “Assume lab/review.txt always means /lab/review.txt.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Read the workspace layoutTry 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. 01Read the workspace layoutA workspace separates source artifacts, mutable scratch and generated reports. Make experiments in scratch so an investigation does not overwrite the baseline it is meant to compare.Practice
  2. 02Inspect redacted environment dataRedacted configuration proves which keys are present without revealing their values. A redaction marker is not a credential and should not be pasted into an authentication request.Practice
  3. 03Protect local configurationConfiguration containing credentials needs an appropriate local permission boundary. In this exercise mode 600 gives the owner read/write access and no group or other access.Practice