ECSS Certificate Of Conformity Sheet Format (space-systems/ecss/q20-coc-example)
Use when the task is the Annex H worked certificate of ECSS-Q-ST-20C taken
as the standard sheet format: a certificate is being raised for a delivery
or opened on receipt, and the question is whether the sheet in front of you
is laid out, numbered and dated the way every other one is.
Domain quick reference
- Format is not cosmetic on a certificate. A receiving organisation reads
hundreds of these and finds each block by position, so a sheet that
reorders or renames its blocks costs reading time on every delivery and
hides an omission in the noise.
- The blanks are reported together. One finding naming every mandatory
block left empty is actionable; one finding per block buries the sheet
under a list nobody triages.
- Serial ranges are arithmetic and the quantity is a second statement of
the same arithmetic. Six serials printed as a range and a quantity of
five is a delivery where somebody pulled an item and forgot the sheet,
and summing the ranges is the only thing that catches it.
- A range has one prefix and one padded width. A range printed across two
prefixes, or padded to two widths, or running backwards, does not
identify a set of items at all, and guessing what was meant is how the
wrong hardware travels under the right paperwork.
- Two ranges covering one serial is a different defect from a quantity
mismatch, and the two can cancel. A sheet whose overlapping ranges add up
to the declared quantity passes a count check and still certifies one
item twice.
- The certificate number is derived, not typed. Building it from the
contract reference and the sheet sequence and comparing it with what is
printed catches the sheet that was copied from the previous delivery.
- A sheet cannot be dated after the day it is presented. That is the
cheapest date check on the page and the one that catches a template
carrying somebody else's date.
Workflow
- Normalise the sheet block by block in the fixed order, collecting the
mandatory ones left blank rather than failing at the first.
- Validate the quantity as a positive integer and the issue date as an ISO
calendar day, leap years included.
- Parse each declared serial range into prefix, first, last and padded
width, refusing a mixed prefix, an inconsistent padding or an inverted
range.
- Report ranges of the same prefix that cover a serial twice.
- Sum the serials covered and compare with the declared quantity; where no
range is printed, report a declared quantity above one.
- Rebuild the certificate number from the contract reference and the sheet
sequence and compare it with the printed number.
- Compare the issue date with the presentation day, render the sheet in
block order and return the verdict.
Pitfalls
- Reading the quantity without the ranges. The pair is the check; either
number alone is a figure somebody typed.
- Accepting a range because it looks like one. A mixed prefix or a mixed
padding width is an identification failure, not a typographic one.
- Counting serials without checking for an overlap. Overlapping ranges can
sum to exactly the declared quantity and still certify an item twice.
- Trusting the printed certificate number. It is derivable from the
contract reference and the sequence, so it is checked rather than read.
- Failing at the first blank block. The useful output is every blank at
once, because the sheet goes back to its author exactly once.
Behavior contract (gate 3)
The block-order normalisation, the blanks collection, the ISO day parsing,
the serial-range parsing with its prefix, padding and direction rules, the
overlap detection, the quantity reconciliation, the certificate-number
rebuild and the issue-date comparison are exercised by the gate 3 contract
test: scripts/test_q20_coc_example.py against
scripts/q20_coc_example_logic.py (stdlib unittest, offline). Run:
python3 scripts/test_q20_coc_example.py
Compliance
- ECSS standards are freely downloadable (ESA); cite the source and
paraphrase per standards-map.yaml.
- compliance: STANDARDS-REF, gated: false.
1---2name: q20-coc-example3description: "Draft and grade a certificate of conformity against the worked example of ECSS-Q-ST-20C Annex H, taken as the standard sheet format: hold the printed block order, name every mandatory block left blank as one finding, parse each serial range into a prefix, a first and a last serial at one padded width, refuse a mixed prefix or a backwards range, report two ranges covering the same serial, reconcile the serials covered with the declared quantity, rebuild the certificate number from the contract reference and the sheet sequence, and refuse a sheet dated after the day it is presented. Use when a certificate is raised or checked on receipt. Trigger: ecss, q-st-20c-annex-h, certificate-of-conformity-format, coc-block-order, coc-serial-range-arithmetic, coc-number-pattern, coc-issue-date-check."4license: Apache-2.05compliance: STANDARDS-REF6standards:7 - id: ecss8 reference-only: true9gated: false10domain: space-systems11pack: space-systems12compatibility: "agentskills.io SKILL.md; any SKILL.md host (Claude Code, Hermes, OpenClaw)"13metadata:14 source: https://skillmd.com/skills/ashfordeou/q20-coc-example15 domain: space-systems16 subdomain: ecss17 tags: [ecss, q-st-20c-quality-assurance-scope, q20-coc-example, certificate-of-conformity-sheet-format, coc-block-order, coc-serial-range-arithmetic, coc-number-pattern, coc-issue-date-check]18 version: 0.1.019 author: Aero Agent Skills20---2122# ECSS Certificate Of Conformity Sheet Format (space-systems/ecss/q20-coc-example)2324Use when the task is the Annex H worked certificate of ECSS-Q-ST-20C taken25as the standard sheet format: a certificate is being raised for a delivery26or opened on receipt, and the question is whether the sheet in front of you27is laid out, numbered and dated the way every other one is.2829## Domain quick reference3031- Format is not cosmetic on a certificate. A receiving organisation reads32 hundreds of these and finds each block by position, so a sheet that33 reorders or renames its blocks costs reading time on every delivery and34 hides an omission in the noise.35- The blanks are reported together. One finding naming every mandatory36 block left empty is actionable; one finding per block buries the sheet37 under a list nobody triages.38- Serial ranges are arithmetic and the quantity is a second statement of39 the same arithmetic. Six serials printed as a range and a quantity of40 five is a delivery where somebody pulled an item and forgot the sheet,41 and summing the ranges is the only thing that catches it.42- A range has one prefix and one padded width. A range printed across two43 prefixes, or padded to two widths, or running backwards, does not44 identify a set of items at all, and guessing what was meant is how the45 wrong hardware travels under the right paperwork.46- Two ranges covering one serial is a different defect from a quantity47 mismatch, and the two can cancel. A sheet whose overlapping ranges add up48 to the declared quantity passes a count check and still certifies one49 item twice.50- The certificate number is derived, not typed. Building it from the51 contract reference and the sheet sequence and comparing it with what is52 printed catches the sheet that was copied from the previous delivery.53- A sheet cannot be dated after the day it is presented. That is the54 cheapest date check on the page and the one that catches a template55 carrying somebody else's date.5657## Workflow58591. Normalise the sheet block by block in the fixed order, collecting the60 mandatory ones left blank rather than failing at the first.612. Validate the quantity as a positive integer and the issue date as an ISO62 calendar day, leap years included.633. Parse each declared serial range into prefix, first, last and padded64 width, refusing a mixed prefix, an inconsistent padding or an inverted65 range.664. Report ranges of the same prefix that cover a serial twice.675. Sum the serials covered and compare with the declared quantity; where no68 range is printed, report a declared quantity above one.696. Rebuild the certificate number from the contract reference and the sheet70 sequence and compare it with the printed number.717. Compare the issue date with the presentation day, render the sheet in72 block order and return the verdict.7374## Pitfalls7576- Reading the quantity without the ranges. The pair is the check; either77 number alone is a figure somebody typed.78- Accepting a range because it looks like one. A mixed prefix or a mixed79 padding width is an identification failure, not a typographic one.80- Counting serials without checking for an overlap. Overlapping ranges can81 sum to exactly the declared quantity and still certify an item twice.82- Trusting the printed certificate number. It is derivable from the83 contract reference and the sequence, so it is checked rather than read.84- Failing at the first blank block. The useful output is every blank at85 once, because the sheet goes back to its author exactly once.8687## Behavior contract (gate 3)8889The block-order normalisation, the blanks collection, the ISO day parsing,90the serial-range parsing with its prefix, padding and direction rules, the91overlap detection, the quantity reconciliation, the certificate-number92rebuild and the issue-date comparison are exercised by the gate 3 contract93test: scripts/test_q20_coc_example.py against94scripts/q20_coc_example_logic.py (stdlib unittest, offline). Run:95python3 scripts/test_q20_coc_example.py9697## Compliance9899- ECSS standards are freely downloadable (ESA); cite the source and100 paraphrase per standards-map.yaml.101- compliance: STANDARDS-REF, gated: false.