LESSON 2 OF 4
Trace conflicting evidence
Prepare the lab
Save as Triage.ps1 in PowerShell 7. All observations are simulated. Do not replace them with production probes until you have separately tested and approved the collector.
$ErrorActionPreference = 'Stop'
function Get-TriageResult {
param([pscustomobject]$Evidence)
$state = 'REVIEW'
$next = 'Check the application response and affected scope'
if ($Evidence.Application -eq 'OK') { $state = 'AVAILABLE'; $next = 'Investigate the reported workflow, not ping alone' }
elseif ($Evidence.Dns -eq 'FAILED') { $next = 'Verify name and DNS source before testing the endpoint' }
elseif ($Evidence.Application -eq 'UNKNOWN') { $state = 'INCOMPLETE'; $next = 'Collect application evidence' }
[pscustomobject]@{Computer=$Evidence.Computer; Dns=$Evidence.Dns; Ping=$Evidence.Ping; Application=$Evidence.Application; State=$state; NextAction=$next}
}
$cases = @(
[pscustomobject]@{Computer='LAB-A';Dns='OK';Ping='FAILED';Application='OK'},
[pscustomobject]@{Computer='LAB-B';Dns='FAILED';Ping='UNKNOWN';Application='UNKNOWN'},
[pscustomobject]@{Computer='LAB-C';Dns='OK';Ping='OK';Application='UNKNOWN'}
)
$report = @($cases | ForEach-Object { Get-TriageResult $_ })
$report | Format-List
if (($report.State -join ',') -ne 'AVAILABLE,REVIEW,INCOMPLETE') { throw 'Triage test failed' }
Work through the evidence
Define the support question
For LAB-A, the application answered but ping failed. State what you can establish: that application check was available at that time. You cannot establish that every workflow is healthy or that the device ignores all ICMP traffic.
Trace precedence
The first condition handles an application success before considering DNS. For a real collector, contradictory results must be investigated, including cached DNS or a different target. Priority in a classifier does not erase contradictory evidence.
Distinguish incomplete work
LAB-C has a ping response but no application result. INCOMPLETE communicates an untested layer. A completed network probe is not a completed application investigation.
Expected baseline result
Baseline states: AVAILABLE, REVIEW, INCOMPLETE. LAB-A must not be labelled offline merely because ping failed. The extended report must flag contradictory evidence rather than pretending it is consistent.
Trace conflicting evidence
The supplied classifier gives an application success precedence over ping failure. That is appropriate for its narrow question, but it does not make every lower-layer observation consistent. Add LAB-D with Dns=FAILED, Ping=UNKNOWN and Application=OK. Possible explanations include cached resolution, a different target or mismatched observation times.
Do not invent which explanation is true. Add a ConsistencyNote and require aligned target/time evidence before closure. The existing AVAILABLE result means that the supplied application test succeeded; rename it or explain its scope if readers could mistake it for complete device health.
Evidence laboratory — attempt before reading the solution
A fictional read-only inventory collects service state from four approved lab hosts. H1: service Agent running; H2: Agent stopped; H3: connection denied; H4: Agent not installed. The business rule is to report stopped installed agents for review, not restart automatically. Produce separate counts for confirmed stopped, collection failure and not installed. An existing script converts every exception into “Stopped” and reports three failures. Explain why that result is unsafe.
YOUR NEXT STEP
Keep building your skills
No directly related CogniSkill book is mapped to this course yet. Continue with the free learning, or compare the publishing catalogue by your next goal.
Explore books by topic and goal →Sign in to save lesson completion. Reading position is separate from completion.
Practice notes — your working space
Save predictions, outputs and explanations as you work. Notes stay on this browser, not your account; people sharing this browser can access them. Avoid passwords and sensitive data. Export to keep a portable copy, or clear your notes before leaving a shared device.
How was this lesson?
Help us improve this lesson.