Automation & Code
EngineerCode / policy labScenario sim

Automation Capstone

Ship one control end to end as code: repository layout, tests that can fail, a gate that cannot be skipped quietly, and evidence emitted by the pipeline itself.

65 min 290 XPSkills: Automation, CI/CD, Policy as code

Brief

You have the pieces: version control, controls as data, policy as code, pipeline gates, OSCAL, APIs and tests. This room ships one control the whole way: from a record in a repository to a gate that blocks a merge and an evidence artefact nobody typed by hand.

Pick one control, take it end to end, and make every stage produce something a stranger could inspect six months from now.

A control is engineered when the pipeline, not a person, is the thing that says no.

The delivery spine

Six stages, and each one owes the next something concrete. The repository owes a versioned definition. The unit tests owe pinned fixtures. The policy tests owe a negative case that actually fails. The gate owes a fail-closed decision. Deployment owes a signed artefact. The final stage owes evidence with run metadata attached.

Break any one link and the chain reverts to a manual process wearing CI badges: the run is green, and nothing about the control is demonstrable.

Control delivery pipeline: control repo, unit tests, policy tests, CI gate, deploy and evidence emit, each annotated with the guarantee it owes the next stage.
Six stages, six guarantees. A missing guarantee is a broken control.

The gate is the control

The moment a gate can be skipped with an undocumented flag, the control stops existing, not partially, entirely. Skips are legitimate; silent skips are not. The engineered version records who, why, and when it expires.

An exception with an owner and an expiry date is a control operating as designed. A skip flag in a workflow file is an unrecorded change of control design made by whoever was on call.

Two columns comparing a bypass culture, where a failing gate is skipped with an undocumented flag, with an engineered gate that produces a documented exception with owner, expiry and audit trail.
Same failing gate. One path leaves a record, the other leaves nothing.

Evidence falls out of the pipeline

If someone has to remember to export the run, the automation ends at the gate. The pipeline should write the artefact itself: the decision, the control id, the run id, the inputs it evaluated and the population it covered.

Emit on both outcomes. A pipeline that only writes evidence when checks pass produces a record of the good days, which is precisely the period an auditor is not asking about.

Evidence only produced on success is a marketing artefact, not a control record.

Capstone project2 project steps · Automation & Code

This room is the track's final project. Every lab below is one step of a single deliverable - clear them all and the Automation & Code track is complete.

Next on your path · Data & Evidence

Evidence Pipelines

Collect, normalize, timestamp and store control evidence automatically.

Engineer 55 min 240 XP
Start next room

Community

Discussion & writeups

Sign in to post

Share how you approached the room or ask where you got stuck. Never paste task answers or full lab solutions: write the reasoning, not the key.

Loading discussion…