Course outline

DevOps QA / Basic: delivery evidence and suite design / Lesson 7

Design gates for required test evidence

Connect selected and executed tests to a candidate and make missing gate evidence visible.

About 23 min read20 worked examples20 practice exercisesContent reviewed
On this page

Lesson goals

  • State required evidence and missing-data policy.
  • Trace report identity and execution counts.
  • Check positive and negative gate decisions.
  • Define required evidence and missing-data policy bound to the candidate and run.
  • Exercise positive and negative gate decisions and validate report identity.

Define the evidence required for a decision

A delivery gate should answer a stated question about a particular candidate, not merely display a green icon. In a synthetic pipeline, require a unit report and a contract report for the same artifact before deciding whether it can proceed. Agree who owns the decision, what a missing report means and which tests are mandatory. This example describes an isolated learning environment; actual policy depends on the service and its risk. Record the candidate identity and policy version with the decision.

Track selection and execution separately

A job that selects zero tests may finish successfully without examining the behavior the gate requires. Record the number selected, executed, passed, failed and skipped, and define how an intentionally empty selection differs from a broken filter. The illustrative table shows two report inputs; it does not claim a real run occurred. Verify that selected cases actually ran and that the report was produced by the current job, rather than inferring coverage from job status alone.

text Illustrative gate record
Job | Selected | Executed | Gate input
unit | 5 | 5 | report A
contract | 3 | 3 | report B

The synthetic table describes expected evidence and does not claim execution.

Connect reports to the candidate

Link each report to the candidate artifact and pipeline run that produced it. A report from a previous successful run can be valid evidence for that earlier candidate and irrelevant to the current one. Check that report publication completed and that the gate reads the intended report name and path. Avoid attaching credentials or personal information to reports. If an external service is simulated, describe that limit so the gate decision does not imply an unperformed integration test.

Exercise missing and failing paths

In a disposable pipeline, exercise a passing synthetic case, a failing case and a case where the required report is deliberately absent. The gate must follow the agreed non-success policy for missing and failing evidence; a placeholder file must not stand in for execution. Inspect the selected count and gate input for each case. The table names expected decisions, not actual execution results. Restore any lab changes and preserve the evidence used to review the gate.

text Illustrative gate record
Case | Expected decision
required report missing | non-success
required test fails | non-success

The synthetic table describes expected evidence and does not claim execution.

Review the result and its limits

After a repair, rerun the original reproducer and the bounded positive and negative cases. Record the artifact, run identifiers, report references, policy and remaining gaps. A report count shows what the runner reported, but it does not establish that assertions were meaningful or that all user risks were covered. Review assertion quality and test selection separately. If the gate receives incomplete evidence, make the uncertainty visible to its owner rather than silently treating it as a pass.

Specify the decision and its evidence contract

A required-evidence gate answers a policy question about a specific candidate. Define the required suites and versions, expected cases or shard manifest, candidate artifact and run identity, environment, freshness, and the decision for pass, failure, skip, cancellation, invalid report, and missing evidence. A green job is not enough if its filter selected no required tests. The policy owner must decide how an intentionally empty selection is distinguished from a broken selection.

Use an explicit review record and trusted policy evaluator rather than relying on a report producer to authorize its own output. The records below are fictional gate fixtures for reasoning, not actual runs or deployable provider configuration. Their conservative hold decisions reflect the stated teaching policy, not a universal CI vendor default.

Trace selection, execution, and outcomes separately

A runner may select cases that never execute because setup fails or the job is cancelled. Record selected, executed, passed, failed, and skipped counts along with suite and run identity. These numbers must be internally consistent under the report’s definitions, but even consistent counts do not establish that assertions are meaningful. A job exiting zero after selecting zero cases supplies no behavior evidence for a required nonempty suite.

If a policy permits a legitimate empty selection for a particular change, require a reviewed selection reason and valid change context. A failed diff calculation is not equivalent to a verified empty change. Test both paths in an isolated pipeline, including a known positive control and a synthetic failing case. A later broad suite can reveal a selection defect but does not retroactively prove the earlier candidate passed.

Bind every report to the candidate and run

A valid report for artifact A can be authentic and still irrelevant to candidate B. Match the report’s artifact digest, source revision or build provenance, suite version, run identifier, environment, and collection time against the candidate and policy. Source-only checks should be labeled as such rather than assigned an invented artifact identity. If a later stage rebuilds or resolves a mutable reference differently, obtain evidence for the actual candidate.

Reports can also be duplicated, stale, malformed, or uploaded to an unexpected path. A placeholder file is not a substitute for execution. Validate expected names and contents, authenticity, freshness, and uniqueness before interpreting outcomes. Preserve both the original test status and publication error; a report uploader should not turn a failing required test into a green gate.

Exercise the gate’s own failure paths

A gate is software and needs tests for its decisions. In a disposable environment, supply a complete valid passing set, an intentionally failed required case, zero selected required cases, a missing report, a malformed or duplicate record, and a report for the wrong artifact. Compare the decision with the documented policy and inspect the expected versus received manifest. A known failing synthetic suite can reveal masked exit status or a report path that appears only on success.

Keep the policy evaluator in reviewed trusted code. A contribution-controlled job can produce feedback, but it should not be able to redefine the release rule or obtain privileged credentials merely by emitting a pass. Provider-specific conditions and skipped-job semantics must be verified for the installed service and runner; the lesson’s conceptual records are not vendor YAML.

Handle blocked evidence and exceptions transparently

A required check may be blocked by a test database outage rather than a product assertion. Record the cause classification, but neither state is a pass. Restore the isolated dependency and rerun when possible. If an exception is permitted, name the specific missing evidence, user risk, owner, reason, compensating evidence, expiration, and recovery plan. Acceptance of an exception is a policy decision, not an assertion that the suite passed.

Avoid permanent unconditional bypasses and stale exception records. A local stub or source-only check may be useful compensating evidence, but its limits must be explicit. The release owner needs to see which artifact and environment remain unverified. Preserve safe reports and exclude credentials or private data from the handoff.

Review strength after completeness

Completeness is necessary but not sufficient. A report can contain the expected number of passing cases while assertions only check that a response exists. Review whether those cases test the current user risk, independent expected values, and relevant side effects. For capacity, a one-process unit case does not establish an atomic two-request database invariant. A gate can enforce the presence of evidence but cannot turn a weak oracle into strong assurance.

After repairing selection, reporting, or product behavior, rerun the original reproducer and a bounded positive and negative control on the exact candidate. Record the policy version, decisions, report references, and remaining gaps. A planned gate test is not an observed enforcement result. Keep the first failure and make the next owner’s diagnostic path clear.

20 worked examples

1. Complete passing set

Problem: Analyze the synthetic complete passing set scenario and determine the required-evidence decision or result limit.

  1. Both required suites have valid matching reports in the fixture.
  2. Their selected cases executed and passed.
text Synthetic gate record, not an execution record
policy requires unit and contract reports for artifact X
unit: selected=5, executed=5, pass=5
contract: selected=3, executed=3, pass=3

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The stated evidence set satisfies this narrow policy.

Why this result follows: Completeness supports this policy decision without proving all product risks are covered.

2. Zero selected

Problem: Analyze the synthetic zero selected scenario and determine the required-evidence decision or result limit.

  1. The job succeeded as a process.
  2. It selected and ran no capacity cases. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
required capacity suite
job exit=0; selected=0; executed=0
policy: nonempty suite required

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Hold for missing required execution.

Why this result follows: A green job can provide no evidence for the required behavior. The conclusion is limited to the stated result and policy.

3. Selected not executed

Problem: Analyze the synthetic selected not executed scenario and determine the required-evidence decision or result limit.

  1. The runner selected five cases.
  2. None reached execution because setup failed. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
selected=5; setup fails
executed=0; report=blocked

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Classify the suite as blocked, not passed.

Why this result follows: Selection and execution are separate counts with different meanings. The conclusion is limited to the stated result and policy.

4. Skipped required case

Problem: Analyze the synthetic skipped required case scenario and determine the required-evidence decision or result limit.

  1. Only four cases executed.
  2. The fifth was skipped despite being required. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
selected=5; executed=4; skipped=1
policy: all five must execute

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The evidence is incomplete under the stated policy.

Why this result follows: A skipped case cannot disappear from the expected denominator. The conclusion is limited to the stated result and policy.

5. Wrong artifact

Problem: Analyze the synthetic wrong artifact scenario and determine the required-evidence decision or result limit.

  1. The result belongs to A.
  2. The candidate is a different artifact identity. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
report: suite passed on artifact A
candidate=B; A != B

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The report does not justify candidate B.

Why this result follows: Authentic evidence must still apply to the exact candidate. The conclusion is limited to the stated result and policy.

6. Previous run

Problem: Analyze the synthetic previous run scenario and determine the required-evidence decision or result limit.

  1. The artifact identity matches.
  2. The required run identity differs. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
report: artifact X, run 10, passed
candidate: artifact X, run 11
policy: current-run verification required

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Run 10 does not satisfy the stated current-run policy.

Why this result follows: Freshness and run policy are separate from byte identity. The conclusion is limited to the stated result and policy.

7. Source-only evidence

Problem: Analyze the synthetic source-only evidence scenario and determine the required-evidence decision or result limit.

  1. The source lint result has a valid source scope.
  2. It does not exercise a built candidate.
text Synthetic gate record, not an execution record
lint report: source revision=A
artifact not built
policy: artifact test required

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The artifact-level requirement remains missing.

Why this result follows: A source-only report must not be assigned an invented artifact result. The conclusion is limited to the stated result and policy.

8. Placeholder file

Problem: Analyze the synthetic placeholder file scenario and determine the required-evidence decision or result limit.

  1. The file exists but contains no valid execution result.
  2. The selected and executed counts are not established.
text Synthetic gate record, not an execution record
expected contract report
received file: empty placeholder
executed cases=unknown

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Do not accept the placeholder as passing evidence.

Why this result follows: File existence is not equivalent to a valid report. The conclusion is limited to the stated result and policy.

9. Malformed report

Problem: Analyze the synthetic malformed report scenario and determine the required-evidence decision or result limit.

  1. The report cannot be parsed reliably.
  2. Its presence does not provide a valid suite outcome. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
required report exists
parser rejects malformed XML

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Hold or reject according to the invalid-evidence policy.

Why this result follows: Validation must precede gate evaluation. The conclusion is limited to the stated result and policy.

10. Duplicate conflict

Problem: Analyze the synthetic duplicate conflict scenario and determine the required-evidence decision or result limit.

  1. Two results claim the same identity.
  2. The fixture gives no rule for choosing one as authoritative.
text Synthetic gate record, not an execution record
same suite and run: one pass record, one fail record
authoritative record=unknown

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Hold and investigate the conflicting records.

Why this result follows: Selecting the convenient pass would hide an evidence integrity problem. The conclusion is limited to the stated result and policy.

11. Missing shard

Problem: Analyze the synthetic missing shard scenario and determine the required-evidence decision or result limit.

  1. The expected manifest includes shard 4.
  2. No result for that shard arrived. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
expected shards={1,2,3,4}
received passing reports={1,2,3}

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Hold for incomplete evidence.

Why this result follows: Completeness is measured against the expected set, not only received files. The conclusion is limited to the stated result and policy.

12. Test failure plus upload

Problem: Analyze the synthetic test failure plus upload scenario and determine the required-evidence decision or result limit.

  1. The test outcome is nonzero.
  2. The later upload does not change the final job status. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
required test exits 1
report upload succeeds
job exits 1

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The required gate remains failed with diagnostics available.

Why this result follows: Reporting detail and execution verdict must remain separate. The conclusion is limited to the stated result and policy.

13. Masked exit

Problem: Analyze the synthetic masked exit scenario and determine the required-evidence decision or result limit.

  1. The original test failed.
  2. The gate receives only the later success status. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
test exits 1
wrapper exits 0 after writing report
gate sees success

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The evidence path masks a required failure.

Why this result follows: A controlled failing case can reveal incorrect status propagation. The conclusion is limited to the stated result and policy.

14. Database blocker

Problem: Analyze the synthetic database blocker scenario and determine the required-evidence decision or result limit.

  1. The environment prevented execution.
  2. No product assertion result exists. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
required integration setup: test database unavailable
assertions=not reached

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Report a blocker and missing integration evidence.

Why this result follows: Infrastructure failure is distinct from product failure but is not a pass.

15. Intentional empty selection

Problem: Analyze the synthetic intentional empty selection scenario and determine the required-evidence decision or result limit.

  1. The fixture provides a reviewed reason and a policy allowing this omission.
  2. The stable gate still evaluates the decision.
text Synthetic gate record, not an execution record
policy: documentation-only change may omit browser suite
reviewed diff and reason=valid
required policy entry point runs

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: Apply the documented empty-selection policy.

Why this result follows: An intentional exception differs from an accidental zero-test result. The conclusion is limited to the stated result and policy.

16. Failed diff calculation

Problem: Analyze the synthetic failed diff calculation scenario and determine the required-evidence decision or result limit.

  1. No reliable change list was produced.
  2. The empty list represents a calculation failure, not a reviewed empty diff.
text Synthetic gate record, not an execution record
selector input: empty list because diff command failed
policy treats empty as documentation-only

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The selection is invalid and must not justify skipping.

Why this result follows: Selection software must preserve errors rather than turning them into safe classifications.

17. Stubbed provider

Problem: Analyze the synthetic stubbed provider scenario and determine the required-evidence decision or result limit.

  1. The stub supplied the responses in the fixture.
  2. No real provider interaction was observed. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
contract suite passes with local stub
real provider verification=not run

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The local result is scoped to the simulated boundary.

Why this result follows: A gate should not imply an integration check that did not occur.

18. Expired exception

Problem: Analyze the synthetic expired exception scenario and determine the required-evidence decision or result limit.

  1. The exception’s valid period ended.
  2. No current accountable decision is recorded. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
required suite blocked
exception expired; no renewed approval

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The old exception cannot satisfy the stated policy.

Why this result follows: A bounded exception must not become a permanent silent bypass. The conclusion is limited to the stated result and policy.

19. Complete but weak

Problem: Analyze the synthetic complete but weak scenario and determine the required-evidence decision or result limit.

  1. The expected records arrived.
  2. The assertions can accept wrong values or side effects. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
all required reports present and pass
assertions check only response existence

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The evidence is complete but behavior coverage is limited.

Why this result follows: A gate cannot manufacture oracle strength from completeness. The conclusion is limited to the stated result and policy.

20. Planned gate test

Problem: Analyze the synthetic planned gate test scenario and determine the required-evidence decision or result limit.

  1. The scenarios specify intended decisions.
  2. No actual evaluator result appears in the fixture. This follows from the stated synthetic candidate and policy.
text Synthetic gate record, not an execution record
passing, failing, and missing scenarios documented
execution record=none

The hypothetical fixture supplies expected and received evidence and policy without running a gate.

Expected result: The gate verification is planned, not passed.

Why this result follows: A policy document is not evidence of enforcement. The conclusion is limited to the stated result and policy.

Common errors and fixes

Treating a successful job as proof that tests ran

Why it happens
The selection may match no cases.
How to fix it
Inspect selected and executed counts.
Prevent it next time
Define and verify empty-selection behavior.

Using a report from a different candidate

Why it happens
The report reference is not bound to the run and artifact.
How to fix it
Find the report for the actual candidate and reevaluate.
Prevent it next time
Record artifact and run identity with each report.

Accepting a placeholder when evidence is missing

Why it happens
File existence is confused with a valid result.
How to fix it
Require a valid report and an explicit non-success outcome.
Prevent it next time
Exercise missing and invalid report paths.

20 practice exercises

1. The job succeeds but selects zero required cases. What should the gate decide?

Show hint

Inspect selection and execution counts and the nonempty-suite policy.

Show worked solution

Apply the agreed missing-evidence policy, normally a non-success for a required suite, and investigate the selection. A successful job alone is insufficient.

A job can exit successfully while selecting zero cases and exercising no required behavior. Apply the agreed missing-evidence policy, normally a hold for a required nonempty suite, and investigate selection before rerunning. Job status alone is insufficient.

Check your solution

  • Selected and executed counts are zero.
  • Missing-evidence policy is applied.

2. A valid report names artifact A while the candidate is B. Can it justify B?

Show hint

Match the report to the exact candidate.

Show worked solution

No. Locate and verify the report generated for B; A’s evidence does not establish what happened for B.

A valid report for artifact A does not justify B. Preserve it as historical evidence, locate and verify B’s report with suite, run, and environment identity, and reevaluate the gate under the current policy.

Check your solution

  • A and B have different identities.
  • B receives its own verified report.

3. A required job exits zero after selecting and executing no tests. What should the gate decide?

Show hint

A green process is not execution evidence.

Show worked solution

Apply the agreed missing-evidence policy, normally a hold for a required nonempty suite, and investigate the selection and discovery inputs. Record selected and executed counts with the candidate and run. Do not infer behavior coverage from the successful job exit; rerun the expected cases after repairing the selector.

Check your solution

  • Selected and executed counts are zero
  • Required evidence is not called passed

4. A job selects five cases but setup fails before any execute. How should the report classify it?

Show hint

Selection and execution are different.

Show worked solution

Record five selected and zero executed with the setup failure and environment identity, then mark the required evidence blocked or non-passing under policy. Preserve the safe first error and restore the isolated dependency. Do not describe the selected cases as either passing or independent product failures when their assertions did not run.

Check your solution

  • Five selected, zero executed
  • Setup blocker is explicit

5. A signed report for image A is attached to a release decision for image B. Identify the identity check and the next evidence needed.

Show hint

Identity must match the decision target.

Show worked solution

No. Preserve A’s report as historical evidence and locate or produce the required verified report for B, including suite, run, and environment identity. Reevaluate the gate for B under the current policy. A valid report can be irrelevant to a different candidate even when both came from a similar branch.

Check your solution

  • A and B are distinct
  • B needs matching evidence

6. A report names the right artifact but comes from an earlier run while policy requires the current run. What follows?

Show hint

Artifact identity and freshness are separate.

Show worked solution

Hold or reevaluate according to the stated current-run policy, and collect the expected suite result from the current run. Record the old report as historical evidence and investigate why the new one is missing. Do not assume matching bytes automatically satisfy a policy that explicitly requires fresh execution.

Check your solution

  • Artifact matches
  • Required run identity does not match

7. A required report path contains an empty placeholder file. Why is file existence insufficient?

Show hint

The file needs valid execution content.

Show worked solution

The placeholder supplies no authenticated suite identity, selected and executed counts, result, or candidate binding. Mark the report invalid or missing under policy, inspect test discovery and publication, and rerun the required case. A file at the expected path cannot stand in for a report produced by actual execution.

Check your solution

  • Placeholder has no valid result
  • Required evidence remains incomplete

8. Three of four required shard reports arrive and pass. What should the gate do?

Show hint

Compare with the expected manifest.

Show worked solution

Hold for incomplete evidence and determine whether the fourth shard was skipped, cancelled, failed before publishing, or never scheduled. Keep the three valid reports but do not change the denominator to them. Recover or rerun the missing shard for the exact candidate before satisfying a completeness-required policy.

Check your solution

  • Fourth shard is absent
  • Gate holds under the stated policy

9. Two reports for the same suite and run conflict: one pass and one fail. How should ingestion respond?

Show hint

Do not choose the convenient record.

Show worked solution

Hold or classify the duplicate conflict according to reviewed policy, preserving both records, timestamps, candidate identities, and publication context. Investigate duplicate production or aggregation and rerun if necessary. A gate must establish which evidence is authoritative before evaluating an outcome, rather than silently selecting the pass.

Check your solution

  • Both conflicting records are retained
  • No arbitrary pass is accepted

10. A failing test exits nonzero but a later report command succeeds. How should the gate path be verified?

Show hint

Preserve the original status.

Show worked solution

Use the runner’s documented failure-aware reporting mechanism so the original nonzero status reaches the required gate while a sanitized report is published. In an isolated pipeline, run a known synthetic failure and verify that promotion is held. A successful report upload is diagnostic success, not a test pass.

Check your solution

  • Nonzero test status reaches gate
  • Report upload does not change verdict

11. The test database is unavailable before a required integration suite starts. How should its state be communicated?

Show hint

A setup blocker differs from a product assertion.

Show worked solution

Mark the suite blocked or non-passing according to policy, record the unavailable dependency and owner, and preserve safe startup evidence. Restore the isolated environment and rerun against the exact candidate. Do not label the product defective from an assertion that never ran or count the missing integration as passed.

Check your solution

  • Database blocker is named
  • Required evidence remains absent

12. A documentation-only change may omit browser tests under a reviewed policy. What proves the omission was intentional?

Show hint

Selection needs a valid reason and input.

Show worked solution

Record the verified diff, classification rule, policy version, candidate, and reason for omitting the browser suite, while the stable gate still evaluates other required evidence. A failed diff calculation returning an empty list is not equivalent. The exception applies only to the stated change class and policy.

Check your solution

  • Valid diff and reason are recorded
  • Stable gate still evaluates required evidence

13. The diff command fails and the selector receives an empty list. What should a conservative gate do?

Show hint

An error must not masquerade as no change.

Show worked solution

Treat selection as invalid or incomplete and hold the decision under the stated policy, preserving the command error and revision. Recalculate the diff and rerun selection after repair. Test a genuinely empty valid diff separately so the gate distinguishes an authorized omission from a broken input.

Check your solution

  • Diff failure is visible
  • Empty list is not assumed safe

14. A provider stub passes, but real integration is required and unrun. How should the gate describe the evidence?

Show hint

A substitute narrows the claim.

Show worked solution

Record the local stubbed behavior and its synthetic context, but mark the real-provider check missing or blocked. Under a policy requiring that boundary, hold or seek a bounded authorized exception with owner and expiry. Do not relabel the mock result as provider verification.

Check your solution

  • Stubbed result is identified
  • Required provider evidence remains absent

15. A required security suite is blocked and its previous exception has expired. What should be recorded?

Show hint

Exceptions have time limits.

Show worked solution

Keep the blocked result and expired exception visible, identify the current risk and owner, and require restored evidence or a new authorized decision under policy. Record any compensating evidence and recovery plan without calling the suite passed. An old waiver must not silently remain effective indefinitely.

Check your solution

  • Expired exception is explicit
  • Current decision or evidence is required

16. All required reports arrive and pass, but their assertions only check nonempty responses. Is the gate’s evidence strong?

Show hint

Completeness and oracle quality differ.

Show worked solution

The set may satisfy a narrow completeness rule, but the assertions can miss wrong values and side effects. Review the risk map and add independent semantic checks for important behavior, while reporting the current limitation to the release owner. A complete green set is not proof of product correctness.

Check your solution

  • Reports are complete
  • Oracle weakness remains visible

17. A required suite report is uploaded, but the job’s test status is lost. What must be established?

Show hint

A report and a process verdict are distinct.

Show worked solution

Inspect the report contents and original runner result, and repair the evidence path so the actual status reaches the gate independently of upload. Exercise a known synthetic failure and success in isolation. If the original outcome cannot be recovered, classify it as missing or inconclusive rather than assuming the uploaded file is a pass.

Check your solution

  • Original test result is sought
  • Unrecoverable status is not invented

18. A source-only lint report has no artifact digest because no artifact existed. How should a policy use it?

Show hint

Do not fabricate an identity.

Show worked solution

Label the report as source-only for its exact revision and environment, and let it satisfy only the policy item designed for source lint. Collect separate artifact-level evidence after the candidate is built if required. A missing digest is appropriate for this scope but cannot satisfy a different artifact-test requirement.

Check your solution

  • Source-only scope is explicit
  • Artifact requirement remains separate

19. A contribution job creates its own report and policy file. Why should a trusted release gate review them separately?

Show hint

The producer must not redefine the rule it is judged against.

Show worked solution

Treat contribution output as untrusted input, validate report identity and authenticity, and evaluate it with reviewed trusted policy and minimal release permissions. Bind results to the candidate artifact and expected suite set. Test an altered or missing record in isolation so a job cannot authorize promotion merely by writing “pass.”

Check your solution

  • Trusted policy is separate
  • Report and candidate binding are validated

20. A gate policy is written but passing, failing, and missing-report scenarios have not run. What is the status?

Show hint

A design is not observed enforcement.

Show worked solution

Report the policy and expected decisions as planned or reviewed, with gate behavior unverified until isolated synthetic cases exercise all three paths. Assign an owner and retain safe results when run. Do not claim promotion is protected simply because the policy document or function exists.

Check your solution

  • Gate tests are unexecuted
  • Positive and negative paths remain unverified

Key takeaways

  • Bind required reports to the candidate and actual execution.
  • Make missing, invalid and failing evidence explicit.
  • A zero-test green job does not prove required behavior.
  • Reports must match the candidate, run, and policy.
  • Completeness does not establish oracle strength or cover every risk.

Official references