Domain 1 capstone: a mobile triage runner that refuses to guess
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
- Write
lab/triage-runner.shthat prompts for the three split questions, writes each answer tolab/triage/answers.csvwith headerquestion,answer,timestamp, and prints a verdict naming the layer. - The runner must have a fourth outcome: when the answers do not determine a layer, it prints
NOT DETERMINEDand names the observation that would resolve it. Anything else is a tool that guesses. - Run the runner against three of the faults from the applied lab in lesson 5, and record the verdicts in
lab/triage/runs.csvwith headerrun,fault,verdict,correct. - Deliberately run it against a case it cannot resolve, and confirm it prints
NOT DETERMINED. Record the run in the same file withcorrectset ton/a. - Write
lab/triage/undetermined.mdlisting 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.