Let’s Get Certified
Module 12 / 12 · Context management and reliability

Evidence, checkpoints, and human review

Recover exploration state, measure errors by segment, and preserve the evidence behind claims.

Audit a research report before publication

A regional planning desk combines passenger surveys, station counts, and estimates from partner reports. Its dashboard looks accurate overall, but a major revision changes the reporting period for several stations.

5.4 · Externalize exploration state

When an assistant starts describing typical code patterns in place of named files and functions it inspected, return to evidence. Delegate bounded searches to isolated workers. Have each save its findings with paths, symbols, revision, completed work, and open questions in a scratchpad. Summarize the phase before delegating the next. Use /compact to free conversational space after persisting the facts.

Maintain a coordinator manifest with task IDs, checkpoint paths, statuses, and source revisions. After a crash, load the manifest, verify that its inputs still match, and inject the relevant checkpoint into each resumed assignment. Repeat only incomplete work or work invalidated by a source change.

Restart a repository investigation from evidence

The parent found the report entry point but has thousands of lines of search output. A worker traced the parser at revision D4. Another stopped halfway through scheduler tests. The parent process restarts after the scheduler changes in D5. What can the next coordinator safely reuse?

Rebuild the coordinator’s context

Load a small durable manifest indexed by task, source revision, state, and scratchpad location. Reuse the verified parser findings if the files and dependencies they rely on are unchanged. Give the scheduler worker its question, the changed paths, the last verified checkpoint and any relevant prior conclusions. Mark the half-finished branch incomplete.

Keep verbose discovery in worker contexts and store source-backed summaries outside the parent. Compact the conversation after saving exact references. On recovery, require an actual symbol, path and revision for each conclusion. A generic assertion that schedulers “usually” work a certain way cannot replace a missing trace.

Video background · freeCodeCamp at 11:06:57 · Using task manifests and per-worker scratchpads

5.5 · Measure errors where decisions are made

Score fields separately. Validate reported confidence against labeled data held out from prompt tuning. Among 100 fare values assigned a confidence near 0.9, only 72 agree with trusted labels. Treat that band as about 72% accurate for this sample and measure uncertainty before relaxing review. Inspect performance by field, source type, and layout. A high overall average can conceal a poor small segment.

Route contradictions, ambiguous evidence, and weakly calibrated fields to reviewers. Continue random sampling within high-confidence strata so confident mistakes remain visible. If an uncommon layout has few labels, gather more examples from that segment. Track accuracy again when the source mix changes.

Decide which high-confidence records still need review

A labeled replay has 900 typed forms and 100 handwritten forms. The amount is correct on 891 typed forms and 72 handwritten forms. The extractor labels both groups high confidence. A manager proposes automating all amounts because aggregate accuracy exceeds 96%. Which evidence should change that recommendation?

Calculate the segment error rates

The aggregate is 963/1,000, or 96.3%. Typed amount accuracy is 99%, but handwritten amount accuracy is 72%. At the proposed automation threshold that second group would send 28 wrong amounts per 100 on this replay. Break down other fields separately, because the same documents may have reliable dates.

Calibrate thresholds on labeled development data, then evaluate on an untouched sample by document type and field. Prioritize contradictory sources and weak segments for review. Continue stratified random sampling inside the high-confidence automatic path, including rare formats. Reviewers who see only low-confidence records cannot measure how often automation makes confident mistakes.

Video background · freeCodeCamp at 9:40:57 · Calibrating field confidence with human-labeled records

5.6 · Carry provenance through synthesis

For each claim preserve value, units, source reference, page or excerpt, publication date, collection period, and method. Merge these records by claim. Two different counts might cover different years or use different station boundaries. Compare definitions first. Where evidence still conflicts, report both values with attribution and name what would resolve the discrepancy.

Publish comparable figures in a table, recent events in prose, and technical caveats as a short list. Distinguish established findings, contested findings, and uncovered areas. A reference list at the bottom cannot reconstruct which source supports a particular number.

Decide whether two percentages contradict each other

An agency survey reports 68% satisfaction among weekday riders surveyed in March. A newsletter reports 76% among all riders in April and cites a second agency report. A worker drops the populations and writes “satisfaction rose eight points.” What can the synthesizer responsibly publish?

Build the claim records before drafting

For each value carry source document, locator, supporting excerpt, collection period, population, unit and method. Follow the newsletter citation to identify the original observation and record its relationship to the secondary account. Different sampling frames and dates leave the trend unestablished. A table with two labeled estimates is supportable.

If two credible sources really measure the same population and period yet disagree, keep both values attributed and mark the conflict for investigation. Split established observations, contested interpretation and missing evidence in the report. Present the numbers side by side and explain methodological limits in prose so an editor can trace each claim.

Video background · freeCodeCamp at 9:58:44 · Preserving claim-to-source mappings in synthesis

Worked comparison

A survey reports 62% satisfaction among weekday riders in May. A station intercept reports 71% among weekend riders in June. Keep both estimates with their populations and dates. The figures describe different samples. Neither figure alone establishes that satisfaction improved.

Further reading · Official CCAR-F exam guide, sample questions and practice exercises · Subagents in the Agent SDK

Knowledge check

Evidence, checkpoints, and human review quiz

Answer 9 questions. Check each answer for an explanation.