Domain 1 capstone: a mobile triage runner that refuses to guess

capstone · 120 min · Objective 1.4

Task

Assemble the domain into one artefact: a triage script that asks the three questions in order, records the answers, and produces a verdict that names the layer -- plus a written record of what it cannot determine. A triage tool that always produces an answer is a tool that will confidently produce a wrong one.

Steps

  1. Write lab/triage-runner.sh that prompts for the three split questions, writes each answer to lab/triage/answers.csv with header question,answer,timestamp, and prints a verdict naming the layer.
  2. The runner must have a fourth outcome: when the answers do not determine a layer, it prints NOT DETERMINED and names the observation that would resolve it. Anything else is a tool that guesses.
  3. Run the runner against three of the faults from the applied lab in lesson 5, and record the verdicts in lab/triage/runs.csv with header run,fault,verdict,correct.
  4. Deliberately run it against a case it cannot resolve, and confirm it prints NOT DETERMINED. Record the run in the same file with correct set to n/a.
  5. Write lab/triage/undetermined.md listing at least four mobile faults this domain's methods cannot resolve without opening the device, and what each would require.

Verify

test -s lab/triage-runner.sh && echo "runner present"
grep -c 'NOT DETERMINED' lab/triage-runner.sh
awk -F, 'NR>1 && NF>=3 {n++} END {print n" answer(s) recorded"}' lab/triage/answers.csv
awk -F, 'NR>1 && NF>=4 {n++} END {print n" run(s)"}' lab/triage/runs.csv
awk -F, 'NR>1 && $4=="n/a" {n++} END {print n+0" undetermined run(s)"}' lab/triage/runs.csv
grep -c . lab/triage/undetermined.md

A runner containing the NOT DETERMINED path, three or more recorded answers, four or more runs of which at least one is undetermined, and four or more listed limits. A runner that never printed NOT DETERMINED has not been tested against a case it cannot answer.

Notes

lab/triage/undetermined.md is the most valuable file in this lab. Every course in this library keeps one, because a method that does not state its own limits is a method that will be trusted past them.

This is an independent study companion for CompTIA A+ Core 1 220-1201 and is not produced by or endorsed by CompTIA.